Home / Skills / rohitg00/ai-engineering-from-scratch

migration-review

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.

skillLicense: MIT Source: rohitg00/ai-engineering-from-scratch

Install

Copy this folder into your Claude Code project (needs Node.js):

npx degit rohitg00/ai-engineering-from-scratch/certifications/claude/lessons/19-claude-code-memory-rules-skills-and-ci/outputs/migration-review-skill .claude/skills/migration-review

Or install it for every project:

npx degit rohitg00/ai-engineering-from-scratch/certifications/claude/lessons/19-claude-code-memory-rules-skills-and-ci/outputs/migration-review-skill ~/.claude/skills/migration-review

File content

Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source ↗

---
name: migration-review
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.
allowed-tools: Read Grep Glob Bash(python3 ${CLAUDE_SKILL_DIR}/scripts/check_scope.py *)
---

# 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.