NavanithanS

ask-db-migration-assistant

Safe database schema updates with migration and rollback scripts.

NavanithanS 1 1 Updated 3mo ago

Resources

4
GitHub

Install

npx skillscat add navanithans/agent-skill-kit/ask-db-migration-assistant

Install via the SkillsCat registry.

SKILL.md
❌ NO running migration without user confirmation ❌ NO migration without rollback script ✅ MUST create both up and down scripts ✅ MUST use timestamp/sequence naming ✅ MUST present both scripts for review before execution </critical_constraints> 1. **Draft Up Script**: SQL to apply change 2. **Draft Down Script**: SQL to undo change 3. **Review**: Present both to user 4. **Confirm**: Wait for explicit approval before running - Migration: `migrations/20260118_add_users_table.sql` - Rollback: `migrations/20260118_add_users_table_rollback.sql` User: "Add email column to users"

Up:

ALTER TABLE users ADD COLUMN email VARCHAR(255);

Down:

ALTER TABLE users DROP COLUMN email;