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