stablecoin-settlement-audit
Skill3 starsChanged 14 days agoApache-2.0View on GitHub
Reconcile freight or logistics invoices against on-chain stablecoin (USDC) payments: which invoices are paid, short-paid, paid twice, overdue, or paid to an address that is not the payee. Trigger for "运费有没有付清", "USDC 对账", "稳定币对账", "链上付款核对", "重复付款", "付错地址", "哪些发票逾期", "reconcile USDC payments", "stablecoin settlement audit", "did we pay this invoice", "duplicate payment", "payment sent to the wrong wallet", or whenever the user supplies invoices with payee wallets alongside on-chain transfers or a wallet to check. Also for a 3PL doing this for one shipper (货主). Do NOT trigger for making or signing a payment, trading, token prices, or wallet balances alone — this skill reads and reconciles only.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- artherahq/skillsword for word, first seen Oct 31, 2026
Other versions1 project uses a version of this.
Word for word · 1
- artherahq/skills★ 3100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- ai-generated-ui-craftSkill
- backtest-validationSkill
- carrier-scorecardSkill
- compliance-audit-trailSkill
- conversational-ui-restraintSkill
- equity-research-reportSkill
- execution-positionSkill
- factor-researchSkill
- gamma-exposureSkill
- industry-design-directionSkill
- inventory-policySkill
- minimal-editorial-exportsSkill
- minimal-editorial-posterSkill
- multiple-testing-correctionSkill
- operator-revenue-integritySkill
- point-in-time-researchSkill
- portfolio-optimizationSkill
- risk-assessmentSkill
- short-form-video-editingSkill
- strategy-generationSkill
- terminal-software-designSkill
- trading-ui-patternsSkill
- ui-asset-sourcingSkill
- ui-design-systemSkill
- your-skill-nameSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
Read-only, always: Never ask for, accept, or handle a private key, seed phrase or wallet export.
- Very specific: line 48
Incomplete data is said out loud: If any transaction could not be read from the chain, the result carries incomplete: an invoice shown as …
- Very specific: line 63
If incomplete is present, lead with it and do not call any invoice unpaid without that caveat.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Stablecoin Settlement Audit
Paying carriers in USDC settles in seconds; finding out a month later that an invoice was paid twice, short by a fee, or to a lookalike address does not. This skill reconciles invoices against the transfers that actually landed on chain, with the same discipline as the other logistics skills: exact arithmetic, stated rules, one shipper at a time, and no guessing.
The matching rules do not depend on the network. Reading payments directly
from a chain (--rpc) currently supports USDC on Solana; for any other
network, export the transfers to a file.
Principles
- Read-only, always. Never ask for, accept, or handle a private key, seed phrase or wallet export. The audit needs public addresses and public transactions, nothing else. If the user offers a key, tell them to keep it and not to paste it anywhere.
- Exact money. Amounts are integers in the token's smallest unit (USDC: 6 decimals). Never round; an amount with too many decimals is an error to report, not to fix.
- A payment to the wrong address is not a payment. A transfer that cites
an invoice but went to an address other than the invoice's payee is
reported first, as
wrong_payee— the signature of address substitution — and the invoice stays unpaid. - Reference before amount. A memo naming the invoice is strong evidence;
a matching amount alone is weak and is listed as
matched_by_amountfor a person to confirm. Two candidates means no match, never a guess. - One shipper at a time. Invoices spanning shippers are refused unless
--owneror--all-ownersis given. A client-facing report never lists transfers it cannot tie to that shipper's invoices;--all-ownersoutput is marked not for client distribution. - Incomplete data is said out loud. If any transaction could not be read
from the chain, the result carries
incomplete: an invoice shown as unpaid may have been paid in it.
Workflow — order matters
- Get invoices:
invoice_id,payee_wallet,amount(USD), and ideallydue_date,carrier,owner_id. - Get payments, either an export (
signature,to_owner,amountoramount_raw,memo,mint,block_time) or read them read-only:python scripts/settlement_audit.py --invoices invoices.csv --rpc <https URL> --owner <shipper>Without --rpc, pass--transfers transfers.csv. - Report in this order: payments to the wrong address; duplicates and
overpayments; shortfalls and overdue invoices; then amount-only matches to
confirm. Quote the
summarytotals and theassumptionsblock. - If
incompleteis present, lead with it and do not call any invoice unpaid without that caveat.
Bundled resources
scripts/settlement_audit.py— the reconciliation. Standard library only (usescertififor TLS certificates if installed).--demochecks hand-computed values: a 300 shortfall, a 640.50 duplicate, 750 unpaid and overdue, 300 paid to the wrong address.references/rules.md— read when the user asks why a payment was or was not matched, or wants different rules.agents/openai.yaml— the human-facing entry point.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

