Agent Skills: Database Migration Generator

Create database migration with schema changes and rollback. Auto-invoke when user says "create migration", "add table", "modify schema", or "change database".

UncategorizedID: alekspetrov/navigator/database-migration

Skill Files

Browse the full folder contents for database-migration.

Download Skill

Loading file tree…

skills/database-migration/SKILL.md

Skill Metadata

Name
database-migration
Description
Create database migration with schema changes and rollback. Auto-invoke when user says "create migration", "add table", "modify schema", or "change database".

Database Migration Generator

Generate database migrations with rollback capability for schema changes.

When to Invoke

Auto-invoke when user mentions:

  • "Create migration"
  • "Add table"
  • "Modify schema"
  • "Change database"
  • "Database migration for [change]"

What This Does

  1. Generates migration file with timestamp
  2. Creates schema change SQL (up migration)
  3. Creates rollback SQL (down migration)
  4. Validates SQL syntax
  5. Follows migration tool conventions (Knex, Prisma, TypeORM)

Success Criteria

  • [ ] Migration file generated with unique timestamp
  • [ ] Up migration creates/modifies schema correctly
  • [ ] Down migration rolls back changes
  • [ ] SQL syntax is valid
  • [ ] Follows naming conventions

Auto-invoke when creating database schema changes πŸ—„οΈ