跳到正文
Skillpedia
API 与服务器(后端)76k · #2628

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我: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 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

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

repo: rohitg00/ai-engineering-from-scratch

热度

GitHub 星标
76k
排名
#2628
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能