Skip to content
ruvnet avatar

Migrate Validate

Validates pending database migrations for foreign key integrity, rollback completeness, and naming conventions before they are applied.

CCM score
61 of 100
skills.sh installs
729
GitHub stars
82.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers pending .up.sql and .down.sql files, cross-referenced against applied history stored in the migrations memory namespace
  • Checks REFERENCES targets, NOT NULL columns without defaults, DOWN coverage for every UP change, and IF EXISTS / IF NOT EXISTS guards
  • Flags destructive operations such as DROP TABLE, DROP COLUMN, and TRUNCATE, and enforces plural table names, snake_case columns, and idx_table_column index names
  • Reports errors, warnings, and info items with file path and line number, and stores validation results for reuse

Install

$ npx -y skills add ruvnet/ruflo --skill migrate-validate -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

Details

Repository
github.com/ruvnet/ruflo
Categories
Databases, Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the migrate-validate skill check before migrations are applied?

It validates pending database migrations for foreign key consistency, rollback safety and best practices. It flags REFERENCES to tables that do not exist, ADD COLUMN with NOT NULL but no DEFAULT, and DOWN files that do not undo UP changes.

How do I install the migrate-validate skill?

Run npx -y skills add ruvnet/ruflo --skill migrate-validate -y in your project. The agent can then review pending .up.sql and .down.sql files before you apply them.

Which destructive database operations does migrate-validate warn about?

It warns on DROP TABLE, DROP COLUMN and TRUNCATE unless they are explicitly confirmed. It also checks that IF EXISTS and IF NOT EXISTS are used so migrations stay safe to re-run.

Where does migrate-validate sit among other database skills?

It is in the Databases category on Claude Marketplaces, alongside Supabase Postgres best practices and several Prisma skills. Unlike those, it focuses on checking migration files before they run.

More from ruvnet/ruflo

All 236

Similar to Migrate Validate

More Databases