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/sqlcgit clone --depth 1 https://github.com/hiromaily/go-crypto-walletWhat 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.00004 | $0.01558 |
| Opus 5 | $0.00002 | $0.00779 |
| Sonnet 5 | $0.00001 | $0.00312 |
| Haiku 4.5 | $0.00000 | $0.00156 |
Grade A, and why
sqlc 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 — 225 lines — stays where its author put it; the contents beside it link to each section on GitHub.
sqlc File Rules
Overview
Rules for modifying SQLC-related files in go-crypto-wallet. The project supports three database backends: PostgreSQL (default), MySQL, and SQLite.
File Categories
| Path | Description | Editable |
|---|---|---|
tools/sqlc/queries/postgres/*.sql |
SQLC query definitions (PostgreSQL) | Yes |
tools/sqlc/queries/mysql/*.sql |
SQLC query definitions (MySQL) | Yes |
tools/sqlc/schemas/postgres/*.sql |
SQLC schema files (PostgreSQL) | Auto-generated |
tools/sqlc/schemas/mysql/*.sql |
SQLC schema files (MySQL) | Auto-generated |
tools/sqlc/schemas/sqlite/*.sql |
SQLC schema files (SQLite) | Auto-generated |
tools/sqlc/sqlc_postgres.yml |
SQLC config (PostgreSQL) | Yes |
tools/sqlc/sqlc_mysql.yml |
SQLC config (MySQL) | Yes |
tools/sqlc/sqlc_sqlite.yml |
SQLC config (SQLite) | Yes |
internal/infrastructure/database/postgres/sqlcgen/*.go |
Generated Go code (PostgreSQL) | Auto-generated |
internal/infrastructure/database/mysql/sqlcgen/*.go |
Generated Go code (MySQL) | Auto-generated |
internal/infrastructure/database/sqlite/sqlcgen/*.go |
Generated Go code (SQLite) | Auto-generated |
tools/atlas/migrations/**/*.sql |
Atlas migration files | Auto-generated |
docker/*.sql |
Initial data/seed scripts | Yes |
Verification Commands
SQLC Validation
| Command | Purpose | Required |
|---|---|---|
make sqlc-compile |
Check syntax and type errors (postgres + mysql) | Yes |
make sqlc-vet |
Check for potential issues (postgres + mysql) | Yes |
make sqlc-validate |
Compile + vet combined | Recommended |
make sqlc-lint |
Alias for sqlc-vet |
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 · 225 lines · 4 tokens per session scan A 198c361245fa
sqlc is a cursor rule published in the GitHub repository hiromaily/go-crypto-wallet (127 stars, last pushed 4mo ago), licensed MIT. It adds 4 tokens to every session and 1,558 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-01.
Other cursor rules, from other repositories
code_standards
Spamoor Code Standards and Conventions.
d-gen-po-model-converter-from-sql
根据sql生成model和po文件,以及converter转化器.
typescript
TypeScript coding standards and best practices.
viem
Viem v2 integration patterns and Rules.
thing
Cursor rule "thing" from WeatherPal-AI/MCP-handle, covering rule name: thing orm usage guide, description, core concept, configuration and basic usage.
typescript
Cursor rule "typescript" from devridge0/basilic-evm, covering typescript rules, core principles, error handling and file structure & organization important.