
Migration Review
Reviews database migration files for rollback, locking, and data-safety risks before merge.
- Repository
- rohitg00/ai-engineering-from-scratch
- Stars
- 76,331
- Licence
- MIT
- Files
- 3 files
What it does
When a code change adds or edits database migration files under a migrations/ folder, this skill tells the AI agent to check only those named files, read a review checklist, and inspect how each migration behaves going forward, how it could be rolled back, whether it could lock tables or touch large amounts of data, and what evidence is missing. It produces a structured report with Scope, Evidence, Risks, Rollback, Blockers, and Decision sections, and marks the decision as blocked when proof is lacking. It does not apply any migration.
Great for
- Engineers who want a consistent pre-merge safety review of database schema changes
- Teams that use SQL or Python migration files in a migrations/ directory and want reviews to follow the same checklist
Skip it if
- Projects without migrations under a migrations/ folder, since the scope checker rejects any other path
- Production approval decisions on their own: the skill gathers evidence but a human must judge the result, and it does not verify the database against a live system
Try asking
- “Review the migration files added in this branch under migrations/ before I merge”
- “Check migrations/0042_add_orders_index.sql for lock risk and rollback limits”
- “Run the migration review on migrations/2024_07_user_email.py and report the decision”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 3 original files, the MIT licence and an attribution note.
migration-review-skill.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip migration-review-skill.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip migration-review-skill.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Pass repository-relative paths only, such as migrations/0001_init.sql; paths with .. or outside migrations/ are rejected by the checker.
- Include the schema or the surrounding application code the migration affects so the agent can verify compatibility rather than guess.
- Read the Decision line first; if it says blocked, the report lists the missing evidence you need to supply.
What's inside
- references/review-checklist.md
- scripts/check_scope.py
- SKILL.md
Redistributed unmodified from rohitg00/ai-engineering-from-scratch under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.