From Claude DB
Applies safe, reversible database schema migrations from an audit — adding indexes, constraints, and type corrections as expand-contract steps. Runs only on explicit user invocation via /claude-db:fix.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-db:fix <path|findings.json> [--category keys|integrity|types|constraints|indexing|index-hygiene|migration] [--dry-run]<path|findings.json> [--category keys|integrity|types|constraints|indexing|index-hygiene|migration] [--dry-run]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
`disable-model-invocation: true` means the model can **never** trigger this on its own — only the user running `/claude-db:fix`. Writes happen only through the **db-migration-writer** subagent (the one agent with Write/Edit) and only after explicit confirmation. Default is **dry-run**.
disable-model-invocation: true means the model can never trigger this on its own — only the user running /claude-db:fix. Writes happen only through the db-migration-writer subagent (the one agent with Write/Edit) and only after explicit confirmation. Default is dry-run.
fixable field — see schema/finding.schema.json)NOT NULL/CHECK/UNIQUE constraint via NOT VALID then VALIDATE; add a missing FK as NOT VALID then validate; add a default or generated column additively; widen an undersized integer key. Each ships with a clean down-migration.float→numeric money), backfills, denormalization/normalization moves, renames, enum mutations, soft-delete/temporal columns.fixable: auto (+ proposed if the user opts in). Honor --category to scope.fix (without --dry-run) would change, including lock level and reversibility per step.--dry-run and confirming./claude-db:migrate token handshake before it is written — fix routes such steps through migration-safety, it does not shortcut them. The handshake is concrete, not yes/no: the user must type the affected object's name verbatim (e.g. type orders to confirm dropping the orders table) — a non-matching reply aborts the step.--force; prefer a branch. Detect via git status --porcelain. No-git-repo branch: git status --porcelain exits 128 outside a repo — treat "no repo" as writable (there is nothing to dirty), and backups still go to the plugin data dir; say so in one line to the user before writing.verification.reproduce / assertion and report pass/fail per change..git/, .env/secrets, lockfiles, or files outside the project root; never write to a live database — fix emits migration files, application is the migration tool's job under the handshake.npx claudepluginhub hainrixz/claude-db --plugin claude-dbProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Searches MemPalace before answering questions about past work, people, projects, or prior decisions. Returns verbatim stored content instead of guessing from model memory.