Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add fdueblab/Micro-Agent --skill trade_compliancegit clone --depth 1 https://github.com/fdueblab/Micro-AgentWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/fdueblab/micro-agent/trade_compliance)<a href="https://agentmods.dev/skills/fdueblab/micro-agent/trade_compliance"><img src="https://agentmods.dev/badge/skills/fdueblab/micro-agent/trade_compliance/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/fdueblab/micro-agent/trade_compliance"><img src="https://agentmods.dev/badge/skills/fdueblab/micro-agent/trade_compliance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00650 |
| Opus 5.5 | $0.00000 | $0.00260 |
| Sonnet 5.5 | $0.00000 | $0.00130 |
| Haiku 4.5 | $0.00000 | $0.00065 |
Grade A, and why
trade_compliance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
你正在生成一个跨境贸易合规类算法模型(名单筛查/HS编码归类/单证审核等)。合规场景的红线与通用分类任务不同:
核心原则:宁缺毋滥 + 每条结论带依据
- 未命中必须返回 None/需人工:名单没匹配上、品类没识别出时,输出
None + "需人工处理",绝对禁止随机选编码或强行给结论——申报错误/漏放行的合规责任远大于自动化率 - 每条结论带依据:命中的关键词、名单条目、规则名必须写进
reason(审计追溯要求) - 规则表与逻辑分离:
HS_RULES/DOC_RULES/名单作为模块级常量,每条注明来源(监管文件/业务制度)
名单筛查:模糊匹配是核心技术
真实名单匹配从不全等(大小写/空格/别名/音译/缩写),必须标准化 + 分层匹配:
标准化:去标点 → 压空白 → 转大写 → 常见别名映射(CO LTD→COMPANY LIMITED)
匹配分层:全等(1.0) > 包含(0.9) > token重叠≥0.8(0.7+),超阈值即命中
禁止 name == list_entry 式全等匹配(真实数据几乎永远匹配不上)。
HS 编码归类:关键词规则 + 置信度分层
品名文本命中规则表关键词(可多个加权)→ 输出编码 + 置信度 + 命中关键词;未命中 → hs_code=None, confidence=0, reason="需人工归类"。
单证审核:规则引擎模式
跨字段一致性校验(币种一致/金额区间/必填字段),每条规则独立捕获字段缺失与类型错误(转为"该规则不通过"而非崩溃),输出 pass/reject + 未通过规则清单。
数据防御(单证数据脏值极普遍)
- 金额字段:非数值、负数、科学计数法字符串都要防御
- 币种缺失:降级 + 提示,禁止默认 USD
- 多币种金额比较前先归一化(汇率快照注明日期)
评估与汇报
- 匹配/归类任务:精确率与召回率并列(漏放行 vs 误拦截的业务代价不同,说明权衡)
- 规则覆盖率/自动化率单独汇报:多少比例样本可自动判定、多少进入人工——这本身是核心业务指标
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 38 lines · 0 tokens per session scan A 806fdca9583e
trade_compliance is a skill published in the GitHub repository fdueblab/Micro-Agent (101 stars, last pushed 7d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 650 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-25.
trade_compliance compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| trade_compliancefdueblab/Micro-Agent | Skill | 101 | 7d ago | MIT | A | 0 | Claude Code, Codex |
| rag-knowledgevstorm-co/full-stack-ai-agent-template | Skill | 2.0k | 4d ago | MIT | A | 76 | Claude Code |
| pii-handlingjohnsonhk88/AI-Bank-Statement-Document-Automation-By-LLM-And-Personal-Finanical-Analysis-Prediction | Skill | 638 | 3d ago | Apache-2.0 | A | 17 | Claude Code, Codex |
| RAG Reasoningmeiiie/wiii | Skill | 6 | yesterday | MIT | A | 18 | Claude Code, Codex |
| colregsmeiiie/wiii | Skill | 6 | yesterday | MIT | A | 16 | Claude Code, Codex |
| solasmeiiie/wiii | Skill | 6 | yesterday | MIT | A | 12 | Claude Code, Codex |
| marpolmeiiie/wiii | Skill | 6 | yesterday | MIT | A | 12 | Claude Code, Codex |