migration-review
它能做什么
这项技能在合并之前,审查数据库迁移文件的安全性。适合修改数据库结构、并希望先进行仔细检查的开发者。
适用场景
- ✓当某项改动在合并之前添加或修改了数据库迁移文件时。
- ✓当你想知道某个迁移能否安全回滚时。
- ✓当你想检查迁移是否存在锁定或数据量方面的风险时。
技能链接
https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/certifications/claude/lessons/19-claude-code-memory-rules-skills-and-ci/outputs/migration-review-skill/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请审查我的新迁移文件,并告诉我合并是否安全。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体检查只有迁移文件在审查范围内,阅读每个文件及其假设,并报告正向影响、回滚限制、锁定风险以及任何阻塞项。它不会执行迁移。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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.
- Run
python3 ${CLAUDE_SKILL_DIR}/scripts/check_scope.py $ARGUMENTS. - Stop if the checker rejects any path outside
migrations/. - Read references/review-checklist.md.
- Inspect each accepted file and its schema assumptions.
- 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. The
allowed-tools entry pre-approves only that command for the invocation turn; it
does not remove other tools or replace project permission rules.
常见问题
它会执行迁移吗?
不会。该技能只审查文件,并不授权运行它们。
报告包含什么?
它列出范围、证据、风险、回滚、阻塞项和结论;当证据缺失时,结论为阻止。
它能审查迁移文件夹之外的文件吗?
不能。如果某个文件位于迁移文件夹之外,它会停止。
详情
作者的原始描述
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.
热度
- GitHub 星标
- 76k
- 排名
- #2628
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
blueprint-figure
76k帮你的智能体为课程、README 和手册绘制清晰的静态 SVG 图示,展示系统中真实部件之间的连接关系。
build-project
76k充当项目导师,每次带你完成一个实践 AI 项目阶段,提供提示和评分,但不给出完整答案。
check-understanding
76k对 AI Engineering from Scratch 课程中已完成的阶段进行小测验,让你在进入下一阶段前检查自己学到了什么。
claude-certification
76k在 AI Engineering from Scratch 课程的 Claude 认证路线中充当分步导师,提供课程、实验和练习考试。