db-migrate
Guided database migration workflow — from schema design to rollback documentation.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Guided database migration workflow — from schema design to rollback documentation.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Generate customized .claude/ harness framework with Fusion Architecture (GAN-inspired + Domain Specialists). TRIGGER when user wants to set up AI-assisted development structure, create a new project harness, add structure to existing projects, or mentions 'harness', 'scaffold', 'framework setup'. Supports all domains through template + dynamic generation.
Negotiates 'done' criteria between Generator, Evaluator, and architect-lead before implementation begins. Converts subjective goals into testable, gradable criteria with clear domain responsibilities.
Production incident response workflow — triage, root cause analysis, and resolution.
Track, categorize, and prioritize technical debt across the codebase.
Save current progress with structured handoff artifact. Enables context reset for long-running tasks and session recovery.
Analyze existing web development codebase and generate documentation for AI-assisted development. Use when adding harness to existing projects (1→N).
| name | db-migrate |
| description | Guided database migration workflow — from schema design to rollback documentation. |
| argument-hint | [migration description] |
| user-invocable | true |
| allowed-tools | Read, Glob, Grep, Write, Edit, AskUserQuestion |
Design and document database schema changes with proper rollback support.
Ask the user:
Check existing schema:
models/ for current table definitionsmigrations/ for recent changesPropose the migration approach:
Ask critical questions:
Design rollback:
Generate migration with proper naming: YYYYMMDD_HHMM_description.py
"""
Migration: [Description]
Rollback:
[Exact commands to reverse this migration]
Performance Impact:
- [Document any index changes and expected query impact]
Data Migration Notes:
- [Any data transformation that occurs]
"""
def up(connection):
"""Apply the migration."""
connection.execute("""
[SQL commands to apply migration]
""")
def down(connection):
"""Rollback the migration."""
connection.execute("""
[SQL commands to reverse migration]
""")
Before finalizing, verify:
Present the migration and ask:
"Here's the migration file. Should I write it to
migrations/[filename]?"
Important: Do NOT execute the migration. Only create the file.
User executes: alembic upgrade head or equivalent.
If Redis schema changes are needed:
Document key patterns:
Key Pattern: app:module:entity:{id}
Purpose: [What this key stores]
TTL: [Expiration time]
Document migration strategy:
migrations/