Automated summary
Screens blockchain addresses against multiple AML regulations, generates compliance rules, and creates formal policy documents.
Strengths
- Pre-built rulesets for Singapore, Hong Kong, Dubai, FATF, OFAC, and more
- Transaction tracing with configurable hop depth and direction
- Generates both machine-readable detection rules and human-readable policies
- Works out of the box with included defaults and reference documents
Limitations
- Requires Python environment and manual dependency installation
- May not cover all regional or specialized regulations
- Relies on external data sources for sanctions list updates
When you need to perform AML compliance screening on crypto addresses or generate compliance policies and detection rules.
For non-crypto compliance checks or when real-time transaction monitoring is needed.
Security analysis
SafeThe skill only uses local Python scripts, file operations, and web search for regulatory information. The update check via git fetch/pull is non-destructive and opt-in. No risky commands like curl, rm, or exfiltration are present.
No concerns found
How this analysis is madeExamples
Screen this Tron address for AML compliance against all rules: TXYZ1234567890abcdefGenerate an AML compliance policy based on the Singapore MAS ruleset.Create a custom AML detection rule that flags addresses interacting with known mixer services.name: amlclaw description: "AI-powered crypto AML compliance toolkit. Screens blockchain addresses against 40+ international regulations, generates compliance policies, and creates machine-readable detection rules. Covers Singapore MAS, Hong Kong SFC, Dubai VARA, FATF, OFAC sanctions. Ships with pre-built rulesets and policies — works out of the box. Use when: screening addresses, generating AML rules, creating compliance policies, investigating crypto transactions, or when user mentions 'AML', 'compliance', 'screen address', 'KYA', 'rules'." argument-hint: "[screen|rules|policy] [options]" allowed-tools: Bash(python3 *), Read, Write, Edit, Glob, Grep, WebSearch
AMLClaw — AI-Powered Crypto AML Compliance
You are an Expert AML Compliance Agent. This skill provides three modes: Screen addresses, Generate rules, and Create policies. All work out of the box with included defaults.
Update Check (Run Silently Before Every Task)
Before executing any task, silently check for updates. Do NOT block the task — just inform the user if an update is available.
git -C <SKILL_DIR> fetch --quiet 2>/dev/null && \
BEHIND=$(git -C <SKILL_DIR> rev-list HEAD..origin/main --count 2>/dev/null) && \
[ "$BEHIND" -gt 0 ] && echo "AMLClaw: $BEHIND update(s) available. Run: git -C <SKILL_DIR> pull"
Replace <SKILL_DIR> with the actual skill directory path. If the command fails (no git, no network), silently continue.
Quick Start
pip install requests python-dotenv
cp amlclaw/defaults/rulesets/singapore_mas.json ./rules.json
python3 amlclaw/scripts/run_screening.py Tron <ADDRESS> --scenario deposit --inflow-hops 3 --outflow-hops 3
Capabilities Overview
| Mode | Command | Description |
|------|---------|-------------|
| Screen | python3 amlclaw/scripts/run_screening.py ... | Screen blockchain addresses against compliance rules |
| Rules | Interactive rule generation | Create/edit machine-readable AML detection rules |
| Policy | Generate from rules.json | Create formal compliance policy documents |
Out-of-the-Box Defaults
AMLClaw ships ready to use:
- 3 Regional Rulesets:
defaults/rulesets/singapore_mas.json,hong_kong_sfc.json,dubai_vara.json - 3 Compliance Policies:
defaults/policies/singapore_mas.md,hong_kong_sfc.md,dubai_vara.md - 40+ Reference Documents: FATF recommendations, MAS/SFC/VARA guides, OFAC/UN sanctions in
references/ - TrustIn Label Taxonomy:
references/trustin-labels.md— all valid tag categories
Mode 1: Address Screening
Parameter Gathering
Collect from the user (assume defaults if not specified):
| Parameter | Required | Default | Description |
|-----------|----------|---------|-------------|
| Chain | Yes | — | Tron, Ethereum, Bitcoin, Solana |
| Address | Yes | — | Blockchain wallet address |
| Scenario | No | all | Business context filter (see table below) |
| Direction | No | Auto from scenario | inflow, outflow, or all |
| Inflow Hops | No | 3 | Depth of inflow trace (1-5) |
| Outflow Hops | No | 3 | Depth of outflow trace (1-5) |
| Max Nodes | No | 100 | Branching factor per hop (max 1000) |
| Time Window | No | Last 4 years | --min-timestamp / --max-timestamp in ms |
Scenario Reference
| Scenario | Rules Applied | Default Direction | Use Case |
|----------|--------------|-------------------|----------|
| onboarding | Deposit | all | KYC checks on new addresses |
| deposit | Deposit | all | Screen fund sources + outflow history |
| withdrawal | Withdrawal | outflow | Screen outgoing fund destinations |
| cdd | CDD | all | Customer Due Diligence thresholds |
| monitoring | Ongoing Monitoring | all | Continuous structuring/smurfing alerts |
| all | ALL categories | all | Full comprehensive scan (default) |
Pre-flight: Rules Check
Before running, check for ./rules.json in the working directory.
- If found: Proceed with screening.
- If missing: Do NOT block. Instead, auto-copy the closest regional default:
Inform the user which default was loaded and continue.cp amlclaw/defaults/rulesets/singapore_mas.json ./rules.json
Execution
python3 amlclaw/scripts/run_screening.py <Chain> <Address> \
--scenario <scenario> \
--inflow-hops <N> --outflow-hops <N> \
--max-nodes <N>
Examples:
# Deposit screening
python3 amlclaw/scripts/run_screening.py Tron THaUuZZ... --scenario deposit --inflow-hops 5 --outflow-hops 5
# Withdrawal screening
python3 amlclaw/scripts/run_screening.py Ethereum 0xABC... --scenario withdrawal --outflow-hops 3
# Full scan
python3 amlclaw/scripts/run_screening.py Tron THaUuZZ... --scenario all
Report Generation
After the script completes:
- Read
prompts/evaluation_prompt.mdfor report format instructions - Read the generated
./graph_data/risk_paths_<address>_<timestamp>.json - Cross-reference against
./rules.json - Write the Markdown audit report to
./reports/aml_screening_<address>_<timestamp>.md - Give the user a 2-3 sentence Executive Summary with risk score and key findings
Core Directive: Never hallucinate risk data. Use only nodes, paths, and tags from the JSON graph.
Mode 2: Rule Generation
Input Options
Present these to the user:
- Manual Input — Type or paste rule descriptions directly
- Document Analysis — Read policy documents from
references/folder - Web Search — Search for latest regulations on a topic
- Load Default — Copy a regional ruleset (Singapore MAS, Hong Kong SFC, Dubai VARA)
Rule Categories
Every rule belongs to exactly one category:
| Category | Business Meaning | Condition Type |
|----------|-----------------|----------------|
| Deposit | Address risk: inflow sources, outflow history, self-tags | path.node.*, target.tags.* |
| Withdrawal | Outflow risk: destination paths, self-tags | path.node.*, target.tags.* |
| CDD | Transaction threshold triggers | path.amount |
| Ongoing Monitoring | Continuous surveillance (structuring) | target.daily_* |
Rule Structure
Rules follow schema/rule_schema.json. Key fields:
rule_id: Unique identifier (e.g.,SG-DPT-DEP-SEVERE-001)category: One of the 4 categories abovedirection:"inflow"or"outflow"(optional, omit for direction-agnostic)min_hops/max_hops: Hop distance range (optional)conditions: Array of conditions (AND logic)risk_level:Severe,High,Medium,Lowaction:Freeze,EDD,Flag,Allow
Tag values MUST match TrustIn taxonomy exactly — see references/trustin-labels.md.
Hop-Based Risk Tiering (Pollution Decay)
- Hop 1 (direct) → Severe/Freeze
- Hop 2-3 (near) → Severe/Freeze or High/EDD
- Hop 4-5 (far) → High/EDD (reduced severity)
Validation
After every save to rules.json, run:
python3 amlclaw/scripts/validate_rules.py rules.json
Rule CRUD
Support these operations conversationally:
- List: Show current rules in Markdown table
- Add: Extract from text/docs/search → present → confirm → append
- Update: Modify specific rule fields
- Delete: Remove by rule_id
Mode 3: Policy Generation
Generate a formal AML compliance policy document from rules.json.
Workflow
- Read
./rules.json - Transform rules into a professional compliance document:
- Executive summary
- Regulatory framework and jurisdiction
- Risk categories and thresholds
- Required procedures (KYC, CDD, EDD, STR filing)
- Monitoring requirements
- Escalation procedures
- Output as Markdown — offer to save as
./aml_policy.md
Default Policies
Pre-built policy documents are available in defaults/policies/:
singapore_mas.md— MAS PSN02/PSN08 compliancehong_kong_sfc.md— SFC AMLO/AML Guidelinesdubai_vara.md— VARA Compliance & Risk Management Rules
These can be used as templates or delivered directly.
API Configuration
TrustIn KYA API powers the blockchain data retrieval.
| Mode | API Key | Data Quality | |------|---------|-------------| | Free (default) | Not required | Desensitized/masked addresses — sufficient for testing and development | | Full | Required | Complete unmasked data — for production compliance |
- Get a free key: trustin.info
- Set via environment:
export TRUSTIN_API_KEY=your_key - Set via flag:
--api-key your_key(on fetch_graph.py) - Or: Add to
.envfile in working directory
References
The references/ folder contains 40+ regulatory documents:
fatf/— FATF 40 Recommendations, VA/VASP Guidance, Travel Rulesingapore/— MAS DPT compliance guidehongkong/— SFC AML compliance guidedubai/— VARA compliance guidesanctions/— OFAC, FATF high-risk jurisdictions, UN sanctionstrustin-labels.md— Complete TrustIn tag taxonomy (required for rule authoring)
Limitations
- Single address per screening run (no batch)
- No real-time monitoring — point-in-time assessment
- Supported chains: Tron, Ethereum, Bitcoin, Solana (TrustIn coverage)
- OR logic in rules requires separate rule entries
- Generated policies are templates, not legal advice
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/crypto-aml-compliance-toolkit-mryiqg4y/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/crypto-aml-compliance-toolkit-mryiqg4y' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/crypto-aml-compliance-toolkit-mryiqg4y/download' --output '.skill-downloads/crypto-aml-compliance-toolkit-mryiqg4y/SKILL.md.part' && mv '.skill-downloads/crypto-aml-compliance-toolkit-mryiqg4y/SKILL.md.part' '.skill-downloads/crypto-aml-compliance-toolkit-mryiqg4y/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Bash(python3 *), Read, Write, Edit, Glob, Grep, WebSearch
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/crypto-aml-compliance-toolkit-mryiqg4y/SKILL.md' && test -s '.skill-downloads/crypto-aml-compliance-toolkit-mryiqg4y/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/amlclaw' && cp -R '.skill-downloads/crypto-aml-compliance-toolkit-mryiqg4y' '.claude/skills/amlclaw'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/crypto-aml-compliance-toolkit-mryiqg4y'openskills read 'crypto-aml-compliance-toolkit-mryiqg4y'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/crypto-aml-compliance-toolkit-mryiqg4y/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
DeFi AMM Security
Security
Security checklist for Solidity AMM contracts, liquidity pools, and swap flows. Covers reentrancy, donation attacks, oracle manipulation, slippage, and integer math.
Semgrep Rule Creator
Security
Creates custom Semgrep rules for detecting security vulnerabilities, bug patterns, and code patterns. Includes test-first methodology, taint mode support, and validation steps. Helps when building targeted static analysis detections.
Dev Toolbar Review Guide
Security
Safety rules for the dev toolbar, PostHog client, and feature flags. Use when reviewing changes to dev-tools and related files, covering environment guards, override cookies, and SSE stream safety.