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.
git clone --depth 1 https://github.com/hiromaily/go-crypto-walletWrote 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/rules/hiromaily/go-crypto-wallet/eth-contracts)<a href="https://agentmods.dev/rules/hiromaily/go-crypto-wallet/eth-contracts"><img src="https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/eth-contracts/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/rules/hiromaily/go-crypto-wallet/eth-contracts"><img src="https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/eth-contracts.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.00693 |
| Opus 5 | $0.00000 | $0.00347 |
| Sonnet 5 | $0.00000 | $0.00139 |
| Haiku 4.5 | $0.00000 | $0.00069 |
Grade A, and why
eth-contracts 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ETH Contracts Directory Rules
Rules for working in apps/eth-contracts/ — a standalone Foundry project for Ethereum smart contracts.
Skill
Use the solidity-development skill for all changes in this directory.
Toolchain
| Tool | Command | Notes |
|---|---|---|
| Compile | forge build |
Artifacts go to out/ |
| Test | forge test -v |
All *.t.sol files in test/ |
| Lint | bun run lint |
solhint — must exit 0, zero errors |
| Format | bun run fmt |
dprint — must exit 0 |
| Install deps | bun install |
npm packages (node_modules/) |
| Install forge libs | forge install foundry-rs/forge-std |
Foundry libs go to lib/ |
forgeis at~/.foundry/bin/forgeif not in PATH.
Verification (required before commit)
cd apps/eth-contracts
forge build # must succeed with zero errors
bun run lint # must exit 0, zero solhint errors
forge test -v # must pass with zero failures
Solidity Conventions
- Pragma:
^0.8.34(or latest stable) - Imports: Named imports only —
import {ERC20} from "..."(no global imports) - NatSpec: Required on all contracts (
@title,@author,@notice) and public/external functions (@notice,@param,@return) - Visibility: Explicit on all functions; constructors exempt in Solidity ≥0.8
- Dependencies: OpenZeppelin Contracts
^5.6.1via npm (node_modules/) - Foundry libs: forge-std via
forge install(not npm), stored inlib/
Security Rules
- Never hardcode private keys — use
vm.envUint("PRIVATE_KEY")in scripts - Always keep
.envin.gitignore - Do not add custom access control, pausability, or upgradeability unless explicitly required
_mintshould only be called in constructors (fixed supply)
File Layout
apps/eth-contracts/
├── contracts/ ← production Solidity source (*.sol)
├── script/ ← Foundry deploy scripts (*.s.sol)
├── test/ ← Foundry unit tests (*.t.sol)
├── lib/ ← forge install libraries (gitignored)
├── node_modules/ ← bun install packages (gitignored)
└── out/ ← compiled artifacts (gitignored)
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.
- 7d ago First seen · 72 lines · 0 tokens per session scan A 085ff433f8a1
eth-contracts is a cursor rule published in the GitHub repository hiromaily/go-crypto-wallet (127 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 693 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-01.
Other cursor rules, from other repositories
solidity
Solidity development standards with Foundry.
tx-tests
Tx type matrix, 4844 KZG test cost, and official vector runners.
tests-unit
../../.agents/rules/tests-unit.md.
tests-visual
../../.agents/rules/tests-visual.md.
tester
Tester role - Unit, E2E, and visual regression testing.
wagmi
Web3 integration patterns using Wagmi v2.