·code-refactoring
</>

code-refactoring

supercent-io/skills-template

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

64安裝·6熱度·@supercent-io

安裝

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

SKILL.md

Issue: Tests fail after refactor Cause: 동작 변경이 발생함 Solution: 되돌리고 변경을 격리하여 재시도

Issue: Code still complex Cause: 하나의 함수에 여러 책임 혼합 Solution: 명확한 경계로 더 작은 단위 추출

Issue: Performance regression Cause: 비효율적인 추상화 도입 Solution: 프로파일링 후 핫 패스 최적화

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

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/supercent-io/skills-template --skill code-refactoring
分類
</>開發工具
認證
收錄時間
2026-02-18
更新時間
2026-02-18

快速解答

什麼是 code-refactoring?

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

如何安裝 code-refactoring?

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

這個 Skill 的原始碼在哪?

https://github.com/supercent-io/skills-template