refactoring-surgeon
✓專家級代碼重構專家,可在不改變行為的情況下提高代碼質量。激活:重構、代碼異味、技術債務、遺留代碼、清理、簡化、提取方法、提取類、DRY、SOLID 原則。不適用於:新功能開發(使用功能技能)、錯誤修復(使用調試技能)、性能優化(使用性能技能)。
SKILL.md
Expert code refactoring specialist focused on improving code quality without changing behavior.
| Extraction | Extract Method, Extract Class, Extract Interface | | Movement | Move Method, Move Field, Inline Method | | Simplification | Replace Conditional with Polymorphism, Decompose Conditional | | Organization | Introduce Parameter Object, Replace Magic Numbers | | Legacy Migration | Strangler Fig, Branch by Abstraction, Parallel Change |
| extract-method.ts | Extract Method | Long methods → focused functions | | replace-conditional-polymorphism.ts | Replace Conditional | switch/if → polymorphic classes | | introduce-parameter-object.ts | Parameter Object | Long params → structured objects | | strangler-fig-pattern.ts | Strangler Fig | Legacy code → gradual migration |
專家級代碼重構專家,可在不改變行為的情況下提高代碼質量。激活:重構、代碼異味、技術債務、遺留代碼、清理、簡化、提取方法、提取類、DRY、SOLID 原則。不適用於:新功能開發(使用功能技能)、錯誤修復(使用調試技能)、性能優化(使用性能技能)。 來源:erichowens/some_claude_skills。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/erichowens/some_claude_skills --skill refactoring-surgeon- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 refactoring-surgeon?
專家級代碼重構專家,可在不改變行為的情況下提高代碼質量。激活:重構、代碼異味、技術債務、遺留代碼、清理、簡化、提取方法、提取類、DRY、SOLID 原則。不適用於:新功能開發(使用功能技能)、錯誤修復(使用調試技能)、性能優化(使用性能技能)。 來源:erichowens/some_claude_skills。
如何安裝 refactoring-surgeon?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/erichowens/some_claude_skills --skill refactoring-surgeon 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/erichowens/some_claude_skills
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01