Agent skill

migrate-validate

Validate pending migrations for foreign key consistency, rollback safety, and best practices

rUv72,748★ · +654/wk · 4 repos on radarProfile →
claude-codecodexcan modify filesMIT
Install
npx skills add ruvnet/ruflo --skill migrate-validate --agent claude-code

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

Facts
Files in the skill folder: 1
SKILL.md size: 3 KB
Bundled scripts: none
Allowed tools: ReadGlobGrepBashmcp__plugin_ruflo-core_ruflo__memory_searchmcp__plugin_ruflo-core_ruflo__memory_listmcp__plugin_ruflo-core_ruflo__memory_storemcp__plugin_ruflo-core_ruflo__agentdb_pattern-storemcp__plugin_ruflo-core_ruflo__agentdb_semantic-route
Path: plugins/ruflo-migrations/skills/migrate-validate/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 Validate Validate all pending database migrations for correctness, safety, and adherence to best practices. ## When to use Before applying migrations to catch issues early -- foreign key references to non-existent tables, missing rollback SQL, destructive operations without safeguards, and naming convention violations. ## Steps 1. **Find pending migrations** -- use `Glob` to list all migration files, cross-reference with applied history via `mcp__plugin_ruflo-core_ruflo__memory_search --namespace migrations` (or `memory_list`) to identify pending ones. The `memory_*` tool family routes by namespace; `agentdb_hierarchical-*` does NOT (it routes by tier), so use `memory_*` here. 2. **Parse SQL** -- use `Read` to load each pending `.up.sql` and `.down.sql` file and parse the SQL statements 3. **Check foreign keys** -- verify that all REFERENCES targets exist in the current schema or in prior migrations (both applied and pending) 4. **Check NOT NULL defaults** -- verify that any ADD COLUMN with NOT NULL has a DEFAULT value 5. **Check rollback completeness** -- verify every CREATE/ALTER in the UP file has a corresponding DROP/ALTER in the DOWN file 6. **Flag destructive ops**

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 search --query "migration validation results" --namespace migrations
More from ruflo
All skills →
About this skill
What does the migrate-validate skill do?

Validate pending migrations for foreign key consistency, rollback safety, and best practices

How do I install it?

Run `npx skills add ruvnet/ruflo --skill migrate-validate --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