什麼是 code-refactoring?
簡化和重構程式碼,同時保留行為、提高清晰度並降低複雜性。在簡化複雜程式碼、刪除重複或套用設計模式時使用。處理提取方法、DRY 原則、SOLID 原則、行為驗證和重構模式。 來源:akillness/skills-template。
簡化和重構程式碼,同時保留行為、提高清晰度並降低複雜性。在簡化複雜程式碼、刪除重複或套用設計模式時使用。處理提取方法、DRY 原則、SOLID 原則、行為驗證和重構模式。
透過命令列快速安裝 code-refactoring AI 技能到你的開發環境
來源:akillness/skills-template。
Issue: Tests fail after refactor Cause: Behavior change occurred Solution: Revert and isolate the change, then retry
Issue: Code still complex Cause: Multiple responsibilities mixed in one function Solution: Extract into smaller units with clear boundaries
Issue: Performance regression Cause: Inefficient abstraction introduced Solution: Profile and optimize the hot path
簡化和重構程式碼,同時保留行為、提高清晰度並降低複雜性。在簡化複雜程式碼、刪除重複或套用設計模式時使用。處理提取方法、DRY 原則、SOLID 原則、行為驗證和重構模式。 來源:akillness/skills-template。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/akillness/skills-template --skill code-refactoring簡化和重構程式碼,同時保留行為、提高清晰度並降低複雜性。在簡化複雜程式碼、刪除重複或套用設計模式時使用。處理提取方法、DRY 原則、SOLID 原則、行為驗證和重構模式。 來源:akillness/skills-template。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/akillness/skills-template --skill code-refactoring 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/akillness/skills-template