Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Screens transactions and customers for AML/KYC risk: sanctions, PEP checks, transaction monitoring, CTR/SAR reporting, OFAC compliance.
58% 100%+42 ptsof test cases passed
Passed 24 of 24 test cases with the skill, and 14 of 24 without it.
When a transaction record has is_pep evaluated as True, what exact string notification is added to the alert array?
Outputs PEP flagged — enhanced monitoring
3 of 3 safety checks passed
AML/KYC compliance covers sanctions screening, PEP detection, transaction monitoring, currency transaction reports (CTR), suspicious activity reports (SAR), and OFAC compliance. Essential for fintech, banking, and payment applications handling regulated financial transactions.
uv pip install requests # for sanctions API integration
THRESHOLDS = {"ctr": 10000, "structuring_lookback": 5000}
HIGH_RISK_COUNTRIES = {"IR", "KP", "SY", "CU", "MM"}
def screen_tx(tx):
alerts = []
if tx.amount >= THRESHOLDS["ctr"]:
alerts.append("CTR required — cash transaction over $10k")
if tx.country in HIGH_RISK_COUNTRIES:
alerts.append("OFAC sanctioned jurisdiction — enhanced due diligence")
if tx.is_pep:
alerts.append("PEP flagged — enhanced monitoring")
return alerts
Next to this one in the catalogue, plus more from the same author.