Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/hiromaily/go-crypto-walletnpx agentmods add rules/hiromaily/go-crypto-wallet/cli-structureWrote 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/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/cli-structure"><img src="https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/cli-structure.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.00005 | $0.00574 |
| Opus 5.5 | $0.00002 | $0.00230 |
| Sonnet 5.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 1mo 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.
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.
- 1mo ago 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 (128 stars, last pushed 6mo ago), licensed MIT. It adds 5 tokens to every session and 574 once invoked, about $0.0000 per session on Opus 5.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
go-backend-scalability-cursorrules-prompt-file
Cursor rules for Go development with backend scalability.
backend
You are an expert in Go, Gin, Gorm, Gen, Cosy (https://cosy.uozi.org/) with a deep understanding of best practices and performance optimization techniques in these technologies.
go-servemux-rest-api-cursorrules-prompt-file
Cursor rules for Go development with ServeMux REST API integration.
development_workflow
Spamoor Development Workflow and Best Practices.
go-temporal-dsl-prompt-file
description: "Cursor rules for Go development with Temporal DSL integration." globs: / alwaysApply: false.
workflow
This file provides rules and context for generating or understanding Go code related to a custom Domain Specific Language (DSL) for defining Temporal workflows within this project.