Good AI Tools

database-migration

Complete framework for context-efficient AI development - Philosophy, Metrics, Education, Skills, and Agents. Master context engineering principles through interactive learning. Achieve 92% token reduction with proven strategies.

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".
allowed-tools: Read, Write, Edit, Grep, Glob, Bash
version: 1.0.0
Comment utiliser cette compétence ?
  • Cliquez sur le bouton d'installation pour copier le plugin bin dans le presse-papiers.
  • Ouvrez votre app Claude et collez le plugin bin pour installer la compétence.

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 🗄️