
database-migrations
Safe, reversible database migration patterns: forward-only production changes
by affaan-mFree
Description
database-migrations is an agent skill from the ECC collection by affaan-m, listed on skills.sh. It sets out patterns for safe, reversible schema changes in production databases. Its core rules are that every change is a migration and no production database is altered by hand, that production migrations move forward only so that a rollback is a new forward migration, that schema and data changes are kept in separate migrations, and that a deployed migration is never edited. It also advises testing against production-sized data, since a migration that is quick on a hundred rows can lock a table at ten million. The patterns include expand-contract renames for zero-downtime changes, concurrent index creation and batched backfills. The skill applies to creating or altering tables, adding or removing columns and indexes, running backfills, planning zero-downtime changes, and setting up migration tooling for a new project. A skill is a SKILL.md file of instructions that an AI agent loads when a task calls for it. It is free and open source.…
Highlights
- Forward-only production migrations
- Expand-contract renames with no downtime
- Concurrent indexes and batched backfills
- Separates schema and data migrations
Ratings & Reviews
No ratings yet
Be the first to rate database-migrations.
People also visit
database-migrations FAQ
What does the database-migrations skill do?
It guides an agent in writing schema and data migrations that are safe to run on production, including zero-downtime changes.
Can I roll back a production migration?
The skill says production migrations are forward-only, so a rollback is written as a new forward migration rather than an edit.
Why test on production-sized data?
A migration that works on 100 rows may lock a table on 10 million, so the skill asks for tests at realistic size.
How do I install it?
Run: npx skills add https://github.com/affaan-m/ecc --skill database-migrations
Is it free?
Yes. It is free and open source.
Are there security findings?
The skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passing.
What are the best database-migrations alternatives?
Popular alternatives to database-migrations include convex-migration-helper, migration and convex-migrate. See all database-migrations alternatives













