·code-refactoring
</>

code-refactoring

簡化和重構程式碼,同時保留行為、提高清晰度並降低複雜性。在簡化複雜程式碼、刪除重複或套用設計模式時使用。處理提取方法、DRY 原則、SOLID 原則、行為驗證和重構模式。

17安裝·0熱度·@akillness

安裝

$npx skills add https://github.com/akillness/skills-template --skill code-refactoring

如何安裝 code-refactoring

透過命令列快速安裝 code-refactoring AI 技能到你的開發環境

  1. 開啟終端機: 開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 執行安裝指令: 複製並執行以下指令:npx skills add https://github.com/akillness/skills-template --skill code-refactoring
  3. 驗證安裝: 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

來源:akillness/skills-template。

SKILL.md

查看原文

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
分類
</>開發工具
認證
收錄時間
2026-03-09
更新時間
2026-03-11

Browse more skills from akillness/skills-template

快速解答

什麼是 code-refactoring?

簡化和重構程式碼,同時保留行為、提高清晰度並降低複雜性。在簡化複雜程式碼、刪除重複或套用設計模式時使用。處理提取方法、DRY 原則、SOLID 原則、行為驗證和重構模式。 來源:akillness/skills-template。

如何安裝 code-refactoring?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/akillness/skills-template --skill code-refactoring 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

這個 Skill 的原始碼在哪?

https://github.com/akillness/skills-template

詳情

分類
</>開發工具
來源
skills.sh
收錄時間
2026-03-09