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/application-layergit 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/application-layer)<a href="https://agentmods.dev/rules/hiromaily/go-crypto-wallet/application-layer"><img src="https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/application-layer.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.00000 | $0.00866 |
| Opus 5 | $0.00000 | $0.00433 |
| Sonnet 5 | $0.00000 | $0.00173 |
| Haiku 4.5 | $0.00000 | $0.00087 |
Grade A, and why
application-layer 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 — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Application Layer Rules
Overview
Rules for working with the Application layer (internal/application/).
This layer orchestrates use cases and defines port interfaces.
Structure
internal/application/
├── dto/ # Data Transfer Objects
│ ├── btc/ # Bitcoin DTOs
│ └── ripple/ # XRP DTOs
├── ports/ # Interface definitions (abstractions)
│ ├── api/ # External API interfaces (btc, eth, xrp)
│ ├── file/ # File storage interfaces
│ ├── repository/# Repository interfaces (cold, watch)
│ └── wallet/ # Wallet key generator interfaces
└── usecase/ # Use case implementations
├── keygen/ # Key generation (btc, bch, eth, xrp, shared)
├── sign/ # Signing (btc, bch, eth, xrp, shared)
├── watch/ # Watch wallet (btc, bch, eth, xrp, shared)
└── shared/ # Shared helpers
Port Interfaces (application/ports/)
CRITICAL: Interfaces are defined where they are USED, not where they are implemented.
Rules
- Define interfaces in
application/ports/for infrastructure abstractions - Use application-layer DTOs in method signatures (NOT infrastructure types)
- Infrastructure packages implement these interfaces
Example
// application/ports/api/btc/interface.go
package btc
import btcdto "internal/application/dto/btc"
type Bitcoiner interface {
GetBalance() (btcutil.Amount, error)
GetAddressInfo(addr string) (*btcdto.AddressInfo, error) // Uses DTO
}
DTOs (application/dto/)
Rules
- DTOs define data structures for port interface method signatures
- Keep DTOs simple - no business logic
- Map infrastructure types to DTOs in infrastructure layer
Example
// application/dto/btc/dto.go
package btc
type AddressInfo struct {
Address string
ScriptPubKey string
IsWitness bool
Labels []string
}
Use Cases (application/usecase/)
Rules
- Each use case represents a single business operation
- Depend on port interfaces, not concrete implementations
- Delegate business logic to domain layer
- Wrap errors with context
- Should be kept as simple as possible, and specific functionality should be delegated to shared package layers such as the domain layer or /pkg.
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 · 126 lines · 0 tokens per session scan A 7c503eb3681b
application-layer 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 866 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.
Other cursor rules, from other repositories
documentation
Documentation discovery index for Lineth monorepo.
design-system
../../.agents/rules/design-system.md.
env-vars
../../.agents/rules/env-vars.md.
tests-unit
../../.agents/rules/tests-unit.md.
tests-visual
../../.agents/rules/tests-visual.md.
typescript
../../.agents/rules/typescript.md.