review-money-path
Skill2 starsChanged 3 days agoMITView on GitHub
Reviews a change that can move funds or decide whether they move. Use on every change to engine, signer, chain, chain-evm, chains or protocol, and paste the ticked checklist into the pull request.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-chainSkill
- add-mcp-toolSkill
- add-migrationSkill
- add-protocol-operationSkill
- add-venueSkill
- clean-diffSkill
- debug-failureSkill
- handle-security-reportSkill
- releaseSkill
- review-diffSkill
- review-testsSkill
- run-testsSkill
- shape-commitSkill
- speed-up-testsSkill
- test-telegramSkill
- tune-ciSkill
- vet-releaseSkill
- write-adrSkill
- binference-toolsSkill
- copy-tradingSkill
- dca-planSkill
- meme-huntingSkill
- safe-swapSkill
- token-due-diligenceSkill
The file
Files
Review the money path
Money code fails closed: when policy, risk, simulation or signing is in doubt, the action is
refused. Run this after review-diff on any change to engine, signer, chain, chain-evm,
chains or protocol. check:pr refuses such a branch before the merge when its PR body lacks
the ticked checklist.
1. Gather
git diff master...HEAD -- packages/engine packages/signer packages/chain packages/chain-evm packages/chains packages/protocol2. Check each line
Tick a line only after you checked it in the diff.
- Amounts stay bigint base units from input to output. No
number,parseFloat,toFixedor implicit coercion on an amount. Decimals appear only when parsing what a person typed and when i18n formats for display. USD is bigint micro-dollars; rates are integer basis points. - An intent changes state only through the intent state machine. No other module writes the state column, and the transition table test covers the new path.
- Side effects happen only in the wallet queue, after it rechecks the confirmation. The recheck sits right before signing, not earlier.
- Nothing retries after a side effect. Retries use the retry module, on transient faults only, with a cap on attempts and total time.
- Every network call and child process has a signal and a timeout.
- Secrets stay out of logs, URLs and command lines. Keys and tokens never reach a log record, an error message or a query string.
- Money fields in tool arguments are decimal strings, parsed by the shared decimal-string
schema, never through
number. - Policy and amount changes come with property tests beside the module.
Also check, without a checklist line:
- Names carry their units:
amountBase,slippageBps,usdMicros,timeoutMs. - Stored amounts are decimal strings of base units; times are epoch milliseconds in UTC.
- The ledger is append-only; nothing updates or deletes an entry.
- A raw transaction is stored before broadcast, so recovery never sends twice.
- A signature after its authorization expired is only a stuck step's cancel inside the minute of decision 0116, at most at the network fee cap; no replacement is signed above that cap.
3. Report
Paste the ticked checklist into the pull request's ## Money path section, exactly as the
template words it. For every line you could not tick, give file:line and what must change.
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.

