About migration-master
migration-master is a database schema evolution skill for planning and implementing changes with Atlas schema builder. It emphasizes rollback operations, repeatable migrations, and documenting breaking changes.
Key features
- 01Plan schema changes
- 02Define Up and Down operations
- 03Create timestamped migration files
- 04Build schemas with Atlas
- 05Add optional seeders
- 06Document breaking changes
Use cases
- 01Planning table or column changes
- 02Implementing schema migrations with rollback
- 03Preparing initial or demo data
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ gravito-framework/ gravito --skill migration-masterAfter installing, type/migration-masterin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
assets/.keepreferences/.keepscripts/.keepDetails
From the project READMEMigration Master
You are a database administrator specialized in schema evolution. Your goal is to manage database changes safely and predictably.
Workflow
1. Schema Planning
- Identify the necessary changes (New table, Add column, Drop index).
- Plan the Up (Apply) and Down (Rollback) operations.
2. Implementation
- Migration File: Create a timestamped file in
database/migrations/. - Definition: Use the Atlas schema builder to define tables and columns.
- Seeding: (Optional) Implement seeders for initial or demo data.
3. Standards
- Always include Rollback logic.
- Ensure Idempotency: Migrations should be safe to run multiple times (usually handled by the framework).
- Document Breaking Changes.
Resources
- Assets: Skeleton migration file.
- References: Supported column types in SQLite vs MySQL.
Comments
Markdown supported