sqlc

sqlc is a cursor rule for Cursor from hiromaily/go-crypto-wallet. It costs 4 tokens per session (1,558 once invoked), scanned A, original, MIT.

A set of rules for editing sqlc files in a Go cryptocurrency wallet project. sqlc generates Go database code from SQL definitions, and the project supports PostgreSQL, MySQL, and SQLite.

In plain words
What is it for?
Use it when changing database queries, schemas, sqlc configuration, or generated database code for the supported backends.
Why use it?
It clarifies which SQL and configuration files developers may edit and which schemas or Go files are generated automatically. This helps avoid editing generated files that will be overwritten.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: positional $N argument.

Good fit Use it when changing database queries, schemas, sqlc configuration, or generated database code for the supported backends.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/hiromaily/go-crypto-wallet/sqlc
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.

Clone the repo
git clone --depth 1 https://github.com/hiromaily/go-crypto-wallet

Made for: Cursor.

Wrote 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.

agentmods badge for sqlc

README.md
[![agentmods](https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/sqlc/github.svg)](https://agentmods.dev/rules/hiromaily/go-crypto-wallet/sqlc)
Your own site
<a href="https://agentmods.dev/rules/hiromaily/go-crypto-wallet/sqlc"><img src="https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/sqlc/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.

agentmods 80×15 button for sqlc

Your own site · 80×15
<a href="https://agentmods.dev/rules/hiromaily/go-crypto-wallet/sqlc"><img src="https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/sqlc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00004 $0.01558
Opus 5.5 $0.00002 $0.00623
Sonnet 5.5 $0.00001 $0.00312
Haiku 4.5 $0.00000 $0.00156

Measured 1mo ago against content hash 198c361245fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

.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. 1mo ago 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 (128 stars, last pushed 6mo ago), licensed MIT. It adds 4 tokens to every session and 1,558 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-01.