new-migration

Scaffold paired up/down database migration files with tool detection.

1|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/RaNDoM6913/claude-code-superkit --skill new-migration-random6913
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-migration
Source: https://github.com/RaNDoM6913/claude-code-superkit/tree/main/packages/codex/skills/new-migration
Command: npx skills add https://github.com/RaNDoM6913/claude-code-superkit --skill new-migration-random6913

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffold a complete database migration file pair (up + down) with auto-detection of the migration tool and numbering conventions.

Core Features & Use Cases

  • Auto-detect target migration tool and numbering scheme across popular systems (golang-migrate, dbmate, Rails, Alembic, Prisma, Drizzle).
  • Generate paired up/down migration files named to match project conventions, including safe identifiers and timestamps where supported.
  • Convert a human description into a compliant migration descriptor and scaffold files with robust defaults.

Quick Start

Run the new-migration command with a short description to generate the migration file pair.

Frequently Asked Questions about new-migration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new database migration file pair automatically?

To scaffold a database migration, provide a short description and the tool auto-detects your migration system, generating paired up and down scripts with compliant filenames and robust defaults.

What migration tools are auto-detected when generating up and down scripts?

Auto-detection supports popular migration tools including golang-migrate, dbmate, Rails, Alembic, Prisma, and Drizzle, matching each system's specific numbering scheme and file conventions.

Can I generate migration files from a plain text description?

Yes, the tool converts a human-readable task description into a safe, compliant migration filename descriptor, then scaffolds the corresponding up and down files automatically.

What's the best way to ensure migration filenames match project conventions?

Use an auto-detecting scaffold tool to analyze your existing migration setup and generate new files that automatically match your project's numbering scheme and naming conventions.

Do I need to configure a specific migration tool before scaffolding files?

No configuration is required. The tool auto-detects the target migration system and numbering conventions across multiple frameworks, automatically applying the correct formatting and defaults.

Why are both up and down scripts generated together for a database schema change?

Generating paired up and down scripts together ensures database schema changes are reversible, providing a robust rollback path that follows standard migration tool conventions and safe defaults.