From spring-boot
Analyzes Flyway SQL migrations and consolidates them into clean, domain-grouped CREATE TABLE migrations for pre-production projects with resettable databases.
npx claudepluginhub joaquimscosta/arkhe-claude-plugins --plugin spring-bootThis skill uses the workspace's default tool permissions.
Analyze incremental Flyway migrations and generate consolidated, domain-grouped CREATE TABLE migrations for pre-production projects where the database can be reset from scratch.
Generates versioned Flyway database migration scripts (V*.sql) with sequences, tables, constraints, and foreign keys from entity models. Useful for creating migrations, generating SQL scripts, or setting up database tables.
Plans safe database schema migrations with zero-downtime strategies, rollback procedures, data validation, and version tracking for PostgreSQL, MySQL, and SQLite.
Creates, validates, executes, and rolls back schema migrations for PostgreSQL, MySQL, MongoDB using Flyway, Alembic, Prisma, Knex.
Share bugs, ideas, or general feedback.
Analyze incremental Flyway migrations and generate consolidated, domain-grouped CREATE TABLE migrations for pre-production projects where the database can be reset from scratch.
| Scenario | Apply? |
|---|---|
| Pre-production project with migration sprawl | Yes |
| Database can be reset from scratch | Yes |
| Many incremental ALTER TABLE migrations | Yes |
| Want domain-based organization before release | Yes |
| Production database exists | No |
| Migration history must be preserved | No |
V*__*.sql files using GlobSee WORKFLOW.md for detailed step-by-step process.
Produce these deliverables in order:
| Signal | Assignment |
|---|---|
Table prefix (user_*, order_*) | Prefix-based domain |
| Foreign key cluster | Related tables share domain |
Join tables (user_roles) | Domain of primary entity |
Audit tables (*_audit, *_history) | Same domain as parent |
| Config/settings tables | Infrastructure domain |
| Explicit schema namespaces | Schema name as domain |
Present ambiguous cases to the user for decision.
ON CONFLICT DO NOTHING or equivalent for INSERT statements**/V*__*.sql and **/R*__*.sql to find versioned and repeatable migrationsCREATE TABLE, ALTER TABLE, FOREIGN KEY, INSERT INTO to search across migrationsSee EXAMPLES.md for complete before/after consolidation scenarios and TROUBLESHOOTING.md for common issues: