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/dto)<a href="https://agentmods.dev/rules/hiromaily/go-crypto-wallet/dto"><img src="https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/dto/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/dto"><img src="https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/dto.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.01369 |
| Opus 5.5 | $0.00000 | $0.00548 |
| Sonnet 5.5 | $0.00000 | $0.00274 |
| Haiku 4.5 | $0.00000 | $0.00137 |
Grade A, and why
dto 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 2mo 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 — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.
DTO and Data Definition Placement Rules
Overview
Rules for where to define data types (DTOs, wire types, presentation types) and where to place
conversion logic in the Clean Architecture layers of internal/.
Layer Summary
Interface Adapters → defines: presentation input/output types (CLI args, HTTP body, gRPC message)
converts: presentation → application DTO before calling use case
Application Layer → defines: canonical cross-boundary DTOs (internal/application/dto/)
port interfaces use ONLY these types in their signatures
Infrastructure → defines: internal wire/DB types (JSON-tagged structs, ORM models)
converts: wire types ↔ application DTOs at the boundary
Domain Layer → defines: domain entities, value objects (with business logic — NOT DTOs)
no conversion, no DTOs
Rules
1. Application DTOs Are the Canonical Cross-Boundary Types
All types used in application/ports/ interface signatures MUST be defined in internal/application/dto/.
Infrastructure types MUST NOT appear in port interface signatures.
// ✅ GOOD: port interface uses application DTO
// internal/application/ports/api/xrp/interface.go
type TransactionPreparer interface {
CreateRawTransaction(
ctx context.Context,
senderAccount, receiverAccount string,
amount float64,
instructions *dtoxrp.Instructions, // application DTO
) (*dtoxrp.TxInput, string, error) // application DTO
}
// ❌ BAD: port interface returns an infrastructure package type
type KeyGenerator interface {
WalletPropose(ctx context.Context, passphrase string) (*xrprpcadmin.ResponseWalletPropose, error)
// ^^^^^^^^^ infrastructure type in port
}
2. Infrastructure Defines Wire Types Locally, Converts at the Boundary
Infrastructure packages may define their own internal types optimised for wire format (JSON tags, protocol buffer fields, etc.). These must be converted to/from application DTOs before crossing the boundary.
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.
- 2mo ago First seen · 158 lines · 0 tokens per session scan A 16696852dfea
dto is a cursor rule published in the GitHub repository hiromaily/go-crypto-wallet (129 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,369 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-03.
dto compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dtohiromaily/go-crypto-wallet | Cursor rule | 129 | 7mo ago | MIT | A | 0 | Cursor |
| go-backend-scalability-cursorrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 1,200 | Cursor |
| go-servemux-rest-api-cursorrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 389 | Cursor |
| development_workflowethpandaops/spamoor | Cursor rule | 80 | 6d ago | MIT | A | 7 | Cursor |
| workflowWebDevPeterGriffin/The-VibeCode-Bible | Cursor rule | 42 | 25d ago | none | A | 0 | Cursor |
| go-api-development-general-rulesWebDevPeterGriffin/The-VibeCode-Bible | Cursor rule | 42 | 25d ago | none | A | 0 | Cursor |
| go-grpc-service-ruleWebDevPeterGriffin/The-VibeCode-Bible | Cursor rule | 42 | 25d ago | none | A | 123 | Cursor |