什麼是 refactoring-surgeon?
專家級程式碼重構專家,可在不改變行為的情況下提高程式碼品質。啟動:重構、程式碼異味、技術債、遺留程式碼、清理、簡化、擷取方法、擷取類別、DRY、SOLID 原則。不適用於:新功能開發(使用功能技能)、錯誤修復(使用偵錯技能)、效能最佳化(使用效能技能)。 來源:curiositech/some_claude_skills。
專家級程式碼重構專家,可在不改變行為的情況下提高程式碼品質。啟動:重構、程式碼異味、技術債、遺留程式碼、清理、簡化、擷取方法、擷取類別、DRY、SOLID 原則。不適用於:新功能開發(使用功能技能)、錯誤修復(使用偵錯技能)、效能最佳化(使用效能技能)。
透過命令列快速安裝 refactoring-surgeon AI 技能到你的開發環境
來源:curiositech/some_claude_skills。
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 原則。不適用於:新功能開發(使用功能技能)、錯誤修復(使用偵錯技能)、效能最佳化(使用效能技能)。 來源:curiositech/some_claude_skills。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/curiositech/some_claude_skills --skill refactoring-surgeon專家級程式碼重構專家,可在不改變行為的情況下提高程式碼品質。啟動:重構、程式碼異味、技術債、遺留程式碼、清理、簡化、擷取方法、擷取類別、DRY、SOLID 原則。不適用於:新功能開發(使用功能技能)、錯誤修復(使用偵錯技能)、效能最佳化(使用效能技能)。 來源:curiositech/some_claude_skills。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/curiositech/some_claude_skills --skill refactoring-surgeon 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/curiositech/some_claude_skills