什麼是 refactoring?
技術債修復和程式碼重組工作流程。改進時使用 程式碼結構、降低複雜度、提取抽像或付出代價 累積的技術債。 來源:ar4mirez/samuel。
技術債修復和程式碼重組工作流程。改進時使用 程式碼結構、降低複雜度、提取抽像或付出代價 累積的技術債。
透過命令列快速安裝 refactoring AI 技能到你的開發環境
來源:ar4mirez/samuel。
Structured approach to technical debt remediation. Improve code structure while maintaining behavior through incremental, safe changes.
| Guardrail Violations | Functions >50 lines, files >300 lines | | Complexity Threshold | Cyclomatic complexity >10 | | Code Duplication | Same logic in 3+ places | | Quarterly Review | Regular technical debt assessment | | Pre-Feature | Before adding features to messy code | | Post-Incident | After bugs caused by confusing code |
| Long Method | >50 lines, multiple responsibilities | High | | Large Class | >300 lines, low cohesion | High | | Feature Envy | Method uses other class more than own | Medium | | Data Clumps | Same group of variables together | Medium | | Primitive Obsession | Overuse of primitives vs objects | Medium | | Switch Statements | Large switch blocks | Low |
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/ar4mirez/samuel --skill refactoring技術債修復和程式碼重組工作流程。改進時使用 程式碼結構、降低複雜度、提取抽像或付出代價 累積的技術債。 來源:ar4mirez/samuel。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/ar4mirez/samuel --skill refactoring 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/ar4mirez/samuel