create-migration

Generate timestamped Flyway SQL migration files in Java projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/fireflyframework/fireflyframework-claude-skills --skill create-migration-fireflyframework
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-migration
Source: https://github.com/fireflyframework/fireflyframework-claude-skills/tree/main/commands/create-migration
Command: npx skills add https://github.com/fireflyframework/fireflyframework-claude-skills --skill create-migration-fireflyframework

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates Flyway migration files using a timestamp-based naming convention to ensure unique, ordered migrations.

Core Features & Use Cases

  • Creates a new V{timestamp}__{name}.sql migration in the appropriate db/migration directory.
  • Determines the correct project path (single-module vs multi-module) and creates the folder if missing.
  • Provides a template with updatable sections to guide migration design in SQL.

Quick Start

Invoke /create-migration with a descriptive name to generate a timestamped Flyway SQL migration file.

Frequently Asked Questions about create-migration

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

FAQPage Schema
How do I generate a timestamped Flyway migration file in a Java project?

To generate a Flyway migration file, invoke /create-migration with a descriptive name. It automatically creates a V{timestamp}__{name}.sql file in the correct db/migration directory for your single-module or multi-module Java project.

How does Flyway timestamp-based naming work for SQL migrations?

Flyway timestamp-based naming assigns a unique timestamp to each migration file name, ensuring migrations are ordered chronologically. This prevents naming conflicts and maintains a clear sequence of database schema changes.

Can I use this to create Flyway migrations for a multi-module Java project?

Yes, this works with multi-module Java projects. It automatically locates the correct db/migration directory based on your project type, creating the folder if it is missing, and adds the timestamped SQL migration file.

What is the best way to structure a new SQL database migration?

The best way to structure a SQL database migration is to use a template with updatable sections. This skill generates a migration file with a guided template to help you design your database schema changes effectively.

Do I need to manually create the db/migration directory before generating a Flyway migration?

No, you do not need to manually create the db/migration directory. The migration generation process determines the correct project path and automatically creates the missing folder structure for your Flyway SQL files.