db-generation-hygiene

Official

Keep sqlc bindings in sync with migrations.

Authorblock
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Server DB access goes through sqlc-generated bindings, with the source of truth split between migrations (server/migrations/) and queries (server/sqlc/queries/). Generated Go lives under server/generated/sqlc/.

Core Features & Use Cases

  • Maintains alignment between migrations, queries, and generated sqlc bindings to prevent drift.
  • Guides safe changes to migrations by requiring coordinated generation and commits.
  • Supports review and CI by ensuring generated output reflects SQL source changes.

Quick Start

After completing SQL edits, run just gen from the repo root, verify the expected diffs land under server/generated/sqlc/, and commit SQL sources and generated output together.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: db-generation-hygiene
Download link: https://github.com/block/proto-fleet/archive/main.zip#db-generation-hygiene

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.