/ronce-racine:database-schema-evolutionfrom Ronce Racine
Guides safe schema migrations with zero-downtime expand-contract pattern. Scans all usages before editing, creates additive migrations, then drops old schema after switchover.
Ships in Ronce Racine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
If the current repo has a project-specific migration skill, it wins - it knows the SQL engine, the migration tool, the commands and the project's CI gates.
api-contract-versioning instead if: the change is about an exposed contract (API, events, public types), not the physical database schemapackage.json / Cargo.toml / Makefile / migrations/ folder) - know how a migration is created and applied- [ ] 1. Exhaustive scan of usages → impact plan
- [ ] 2. Expand: additive migration (new schema, nullable, idempotent)
- [ ] 3. Backfill / migrate the data to the new schema
- [ ] 4. Switch the code over to the new schema
- [ ] 5. Contract: separate migration dropping the old (after the switch is deployed)
- [ ] 6. End-to-end verification from a clean state
grep -rn the name to evolve across: migration and seed files, application code (queries), type definitions mapped onto the schema, frontend/client code consuming those types, specs/OpenAPI. Produce an impact plan:
| Area | Files | Nature of usage |
|---|---|---|
| migrations / seeds | N | DDL, data |
| data access | N | queries |
| types / DTOs | N | schema mapping |
| client / specs | N | consumed types |
Create a new migration (never edit an applied one). It only adds:
IF NOT EXISTS / IF EXISTS on every DDL operation, a conditional block if the engine supports it;RENAME while code still reads the old one.Copy the old data into the new schema (in the migration if the volume is low, otherwise a dedicated idempotent and re-runnable job). No DROP or NOT NULL at this step.
Update all usages from the impact plan to read/write the new schema. On a large scope, parallelize by area (see superpowers:dispatching-parallel-agents).
A separate migration, after the code switch is deployed and stable: add the constraints (NOT NULL), drop the old column/table. Never in the same migration as the expand: a code rollback must stay possible as long as the old schema exists.
Replay all migrations from a clean state (drop + recreate the local database), then compile/typecheck + tests touching the data, server side and client side.
| Excuse | Reality |
|---|---|
| "I'll fix the already-applied migration, simpler" | Most tools verify a checksum: editing an applied migration breaks the history. Create a new migration |
| "Rename + drop in the same migration, save time" | No rollback possible and guaranteed downtime if code still reads the old name. Expand then contract, separated |
| "No need for a backfill, new rows are enough" | The old data becomes invisible/inconsistent. Backfill before any constraint |
"NOT NULL straight on a table with data" | Immediate failure or a long lock. Add nullable → backfill → NOT NULL in a separate migration |
| "The scan is long, I'll just grep the queries" | A forgotten type, seed or spec breaks down the line. Exhaustive scan of every area |
| "Validated locally on my existing database" | An accumulated database masks a broken migration. Replay from a clean state |
DROP/NOT NULL before backfill + switchA missing box = do not apply in production.
grep -rn to the current project's extensions and foldersWhat SKILL.md sets; muted values are Claude Code's defaults
37 skills in this plugin
/adversarial-feature-challengeUse when a feature is "done" and needs adversarial stress-testing before shipping - "is it really ready", "est-ce vraiment prêt", "find the bugs", "trouve les bugs", "red team", before closing a ticket whose only validation is the golden path passing./api-contract-versioningUse when modifying an API endpoint, schema or contract consumed elsewhere - renaming/removing/restructuring a request or response field, pagination or envelope change, "field X must become", "le champ X doit devenir", introducing a breaking change, versioning an API, or deprecating a field/route. Covers REST, GraphQL and gRPC alike./audit-architecturenpx claudepluginhub charierefiedler/ronce-racine --plugin ronce-racineOther plugins' skills for the same job