Agent skill · Databases

migrate-create

Create a new sequentially numbered database migration with up/down SQL files

rUv71,307★ · +1,002/wk · 3 repos on radarProfile →
claude-codecodexcan modify filesMIT
Install
npx skills add ruvnet/ruflo --skill migrate-create --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Allowed tools: ReadWriteGlobBashmcp__plugin_ruflo-core_ruflo__memory_storemcp__plugin_ruflo-core_ruflo__memory_searchmcp__plugin_ruflo-core_ruflo__agentdb_pattern-search
Path: plugins/ruflo-migrations/skills/migrate-create/SKILL.md
Open the folder on GitHub →
Where it comes from
Source: ruvnet/ruflo
Stars: 67,015 · +629 this week
Language: TypeScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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__plugin_ruflo-core_ruflo__agentdb_pattern-search` (ReasoningBank-routed; **don't** pass a `namesp

What's inside
Steps it walks through
  1. When to use
  2. Steps
  3. CLI alternative
Commands it runs
npx @claude-flow/cli@latest memory store --namespace migrations --key "migration-NNN_NAME" --value '{"number": NNN, "name": "NAME", "status": "pending"}'
More from ruflo
All skills →
About this skill
What does the migrate-create skill do?

Create a new sequentially numbered database migration with up/down SQL files

How do I install it?

Run `npx skills add ruvnet/ruflo --skill migrate-create --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ruvnet/ruflo, a repository with 67,015 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going