# Migration Review

Reviews database migration files for rollback, locking and data safety before merge.

- Repository: https://github.com/rohitg00/ai-engineering-from-scratch (76237 stars)
- Category: Git and review
- License: MIT
- Last updated: 2026-10-29
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add rohitg00/ai-engineering-from-scratch --skill migration-review -g -a claude-code -y`
Codex: `npx skills add rohitg00/ai-engineering-from-scratch --skill migration-review -g -a codex -y`
Cursor: `npx skills add rohitg00/ai-engineering-from-scratch --skill migration-review -g -a cursor -y`
Gemini CLI: `npx skills add rohitg00/ai-engineering-from-scratch --skill migration-review -g -a gemini-cli -y`

## Description

Review database migration files when a change adds or modifies paths under migrations/. Use it before merge to collect forward, rollback, locking, and data-safety evidence.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Migration Review

Review only the migration files named in `$ARGUMENTS` and the code needed to
verify their compatibility. This Skill does not authorize applying a migration.

1. Run `python3 ${CLAUDE_SKILL_DIR}/scripts/check_scope.py $ARGUMENTS`.
2. Stop if the checker rejects any path outside `migrations/`.
3. Read [references/review-checklist.md](references/review-checklist.md).
4. Inspect each accepted file and its schema assumptions.
5. Report forward behavior, rollback limits, lock risk, data-volume risk,
   verification evidence, and unresolved blockers.

Return these headings: `Scope`, `Evidence`, `Risks`, `Rollback`, `Blockers`, and
`Decision`. Use `Decision: blocked` whenever required evidence is missing.

The bundled checker is [scripts/check_scope.py](scripts/check_scope.py). The
`allowed-tools` entry pre-approves only that command for the invocation turn; it
does not remove other tools or replace project permission rules.

