safe-refactor
✓在重构、重写或迁移关键代码路径时,编排 安全循环:评估风险→实施→验证→文件。链条预检 并通过内置的实施阶段来证明这一点。防止“重构失败” 生产”灾害。在“重构”、“重写”、“迁移”或 “清理”不平凡的代码。
SKILL.md
An elixir for risky code changes. Refactors feel safe ("I'm just cleaning up") but they're where bugs hide. This chains risk assessment → careful implementation → verification → documentation. The ceremony slows you down just enough to catch problems before production does.
| pre-mortem | Risk assessment before starting | Falls back to built-in checklist | | prove-it | Verification enforcement | Falls back to built-in verification | | retrospective | Document learnings | Skipped (optional phase) |
User: "Refactor the authentication module to use the new token format"
在重构、重写或迁移关键代码路径时,编排 安全循环:评估风险→实施→验证→文件。链条预检 并通过内置的实施阶段来证明这一点。防止“重构失败” 生产”灾害。在“重构”、“重写”、“迁移”或 “清理”不平凡的代码。 来源:elliotjlt/claude-skill-potions。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/elliotjlt/claude-skill-potions --skill safe-refactor- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-05
- 更新时间
- 2026-02-18
快速解答
什么是 safe-refactor?
在重构、重写或迁移关键代码路径时,编排 安全循环:评估风险→实施→验证→文件。链条预检 并通过内置的实施阶段来证明这一点。防止“重构失败” 生产”灾害。在“重构”、“重写”、“迁移”或 “清理”不平凡的代码。 来源:elliotjlt/claude-skill-potions。
如何安装 safe-refactor?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/elliotjlt/claude-skill-potions --skill safe-refactor 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/elliotjlt/claude-skill-potions
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-05