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 agentmods add rules/hiromaily/go-crypto-wallet/cli-structuregit 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/cli-structure)<a href="https://agentmods.dev/rules/hiromaily/go-crypto-wallet/cli-structure"><img src="https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/cli-structure.svg" alt="Measured on agentmods" 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 | $0.00005 | $0.00574 |
| Opus 5 | $0.00003 | $0.00287 |
| Sonnet 5 | $0.00001 | $0.00115 |
| Haiku 4.5 | $0.00001 | $0.00057 |
Grade A, and why
cli-structure 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 yesterday.
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.
CLI Subcommand Structure Rules
Current command tree:
internal/interface-adapters/cli/README.md
Rule 1: Command Hierarchy Order
CLI subcommands follow the order: [wallet type] → [verb] → [target]
<wallet> <verb> <target>
keygen create key
keygen sign tx
watch import address
watch send tx
Verb Layer contains action-oriented subcommands (e.g., create, sign, import, send).
Target Layer contains the object of the action (e.g., key, tx, address, multisig).
multisigis a target — it lives at the target layer under a verb (e.g.,watch send multisig), not as a top-level verb.- Chain-specific API calls (e.g.,
api btc,api eth) are an exception: they are allowed as verbs to directly invoke chain node RPC commands. This exception applies only to low-level node API wrappers that do not fit naturally into the generic verb/target hierarchy.
# Standard pattern
keygen create key
keygen create multisig ← multisig is a target
# Exception: chain API commands act as verbs
keygen api btc <rpc-command>
watch api eth <rpc-command>
Rule 2: Unsupported Coin Type Handling
Some CLI commands are only valid for specific chains. When a command is called with an unsupported coin type, do not silently skip — output a human-readable message indicating the command is recognized but not supported for that chain.
// ✅ GOOD: explicit unsupported message
switch coinType {
case coin.BTC, coin.BCH:
cmd.AddCommand(newDescriptorCmd(btcClient))
default:
fmt.Printf("[WARN] descriptor command is not supported for coin type: %s\n", coinType)
}
// ❌ BAD: silent no-op
switch coinType {
case coin.BTC, coin.BCH:
cmd.AddCommand(newDescriptorCmd(btcClient))
// other coins simply get nothing — no feedback
}
The message format should follow the pattern:
[WARN] <command> command is not supported for coin type: <coinType>
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.
- yesterday First seen · 72 lines · 5 tokens per session scan A 5e7b8aa7f472
cli-structure is a cursor rule published in the GitHub repository hiromaily/go-crypto-wallet (127 stars, last pushed 4mo ago), licensed MIT. It adds 5 tokens to every session and 574 once invoked, about $0.0000 per session on Opus 5. 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-03.
Other cursor rules, from other repositories
code_standards
Spamoor Code Standards and Conventions.
development_workflow
Spamoor Development Workflow and Best Practices.
typescript
../../.agents/rules/typescript.md.
typescript
TypeScript coding standards and best practices.
viem
Viem v2 integration patterns and Rules.
typescript
Cursor rule "typescript" from devridge0/basilic-evm, covering typescript rules, core principles, error handling and file structure & organization important.