Database Migrate
SkillDatabases & dataGenerate and apply database migration scripts. Use when changing a database schema.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Database Migrate skill
What this skill tells your AI
The instructions your AI receives, as published by stbenjam/skillsaw in tests/fixtures/agentskills/clean/database-migrate/SKILL.md and read by ahel’s review.
Generate and apply database migration scripts from schema changes.
When to Use This Skill
Use when the user modifies database models and needs to create a migration, or when applying pending migrations to an environment.
Implementation Steps
Step 1: Detect Migration Tool
Check the project for migration tooling:
alembic.ini→ Alembic (Python / SQLAlchemy)knexfile.js→ Knex (Node.js)dbconfig.yml→ Goose (Go)
Step 2: Generate Migration
Create a new migration file from the current model diff:
- Alembic:
alembic revision --autogenerate -m "$DESCRIPTION" - Knex:
npx knex migrate:make $DESCRIPTION - Goose:
goose create $DESCRIPTION sql
Step 3: Review the Migration
Display the generated SQL and ask the user to confirm:
- Check for destructive operations (DROP TABLE, DROP COLUMN)
- Verify index additions won't lock large tables
- Confirm data backfill steps are idempotent
Step 4: Apply
Run the migration against the target database:
- Alembic:
alembic upgrade head - Knex:
npx knex migrate:latest - Goose:
goose up
Report the migration version and any errors.
Signals
- GitHub stars
- 66
- Forks
- 15
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
database-migrate- Source
- github.com/stbenjam/skillsaw