Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
ruvnet avatar

Migrate Create

  • 640 installs
  • 67k repo stars
  • Updated August 4, 2026
  • ruvnet/ruflo

migrate-create is a ruflo agent skill that creates sequentially numbered database migration folders with up and down SQL files for developers who need consistent schema change scaffolding.

About

migrate-create is a ruvnet/ruflo skill that generates a new numbered database migration with matching up and down SQL files for schema changes like new tables, columns, indexes, or constraints. It uses Glob to find the highest existing migration number, then writes the next sequential pair through Read, Write, and Bash with optional claude-flow memory helpers. Developers invoke migrate-create when starting a schema change instead of manually copying filenames or risking numbering collisions across branches. The skill expects a migration name argument and fits standard SQL migration directory conventions.

  • migrate-create

Migrate Create by the numbers

  • 640 all-time installs (skills.sh)
  • +6 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #599 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/ruvnet/ruflo --skill migrate-create

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs640
repo stars67k
Last updatedAugust 4, 2026
Repositoryruvnet/ruflo

How do you create numbered SQL migration files?

Use migrate-create for development tasks

Who is it for?

Backend developers maintaining SQL migration directories who want agents to emit correctly numbered up/down migration pairs.

Skip if: Projects using ORM-only migrations without raw SQL files or teams that manage schema purely through GUI database tools.

When should I use this skill?

A developer needs a new migration for tables, columns, indexes, constraints, or other schema changes.

What you get

Sequentially numbered migration folder with up.sql and down.sql scripts ready to apply.

  • numbered migration folder
  • up.sql and down.sql scripts

By the numbers

  • Creates 2 SQL files per migration: up.sql and down.sql

Files

SKILL.mdMarkdownGitHub ↗

Migrate Create

Generate a new database migration with sequential numbering and up/down SQL file pair.

When to use

When you need to create a new database migration for schema changes such as creating tables, adding columns, creating indexes, or modifying constraints.

Steps

1. Determine next number -- use Glob to scan the migrations directory for existing migration files and find the highest number, then increment by 1 (zero-pad to 3 digits) 2. Select template -- based on the <name>, choose the appropriate SQL template:

  • Names starting with create_ -> CREATE TABLE template
  • Names starting with add_ -> ALTER TABLE ADD COLUMN template
  • Names starting with drop_ -> DROP with safety checks
  • Names containing index -> CREATE INDEX template
  • Other -> generic migration template with placeholder comments

3. Generate up migration -- write NNN_<name>.up.sql with the appropriate SQL using IF NOT EXISTS for idempotency 4. Generate down migration -- write NNN_<name>.down.sql with the reverse operation using IF EXISTS 5. Search past patterns -- call mcp__claude-flow__agentdb_pattern-search (ReasoningBank-routed; don't pass a namespace argument — pattern- tools ignore it). 6. Store metadata -- call `mcp__claude-flow__memory_store --namespace migrations` to record the migration with number, name, status (pending), and file paths. The `memory_ tool family routes by namespace; agentdb_hierarchical-` does NOT (it routes by tier `working|episodic|semantic`), so use `memory_` here. See ruflo-agentdb ADR-0001 §"Namespace convention". 7. Report -- display: migration number, file paths created, template used, any similar past migrations found

CLI alternative

npx @claude-flow/cli@latest memory store --namespace migrations --key "migration-NNN_NAME" --value '{"number": NNN, "name": "NAME", "status": "pending"}'

Related skills

How it compares

Use migrate-create for agent-guided raw SQL migration scaffolding instead of hand-copying the last migration number and folder pattern.

FAQ

What files does migrate-create generate?

migrate-create produces a sequentially numbered migration directory containing up.sql and down.sql files for forward and rollback schema changes. The skill scans existing migrations to pick the next number before writing files.

When should you use migrate-create?

migrate-create applies when adding tables, columns, indexes, or constraints that need versioned SQL migrations. Provide a migration name so the agent can create a numbered folder with paired up and down scripts.

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.