sqlc

Rules for modifying SQLC-related files in go-crypto-wallet. The project supports three database backends: PostgreSQL (default), MySQL, and SQLite.

Cursor rule for Cursor

Install

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.

agentmods
npx agentmods add rules/hiromaily/go-crypto-wallet/sqlc
Clone the repo
git clone --depth 1 https://github.com/hiromaily/go-crypto-wallet

Made for: Cursor.

Per session 4 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,558 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured yesterday against content hash 198c361245fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

.cursor/rules/database/sqlc.mdc · 225 lines

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

Read the full file on GitHub · 225 lines

Changes

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.

  1. yesterday First seen · 225 lines · 4 tokens per session scan A 198c361245fa

Subscribe to this mod's changes

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.