·design-patterns
</>

design-patterns

ratacat/claude-skills

在設計軟件架構、重構代碼結構、解決重複出現的設計問題,或者當代碼表現出緊密耦合、嚴格的層次結構、分散的職責或難以測試的組件等症狀時使用。在選擇架構方法或檢查結構改進代碼時也可使用。

24安裝·1熱度·@ratacat

安裝

$npx skills add https://github.com/ratacat/claude-skills --skill design-patterns

SKILL.md

Design patterns are proven solutions to recurring software design problems. They provide a shared vocabulary for discussing design and capture collective wisdom refined through decades of real-world use.

Core Philosophy: Patterns are templates you adapt to your context, not blueprints to copy. Use the right pattern when it genuinely simplifies your design—not to impress or over-engineer.

| Encapsulate What Varies | Isolate changing parts from stable parts | Changes ripple through codebase | | Program to Interfaces | Depend on abstractions, not concretions | Can't swap implementations | | Composition Over Inheritance | Build behavior by composing objects | Deep rigid class hierarchies |

在設計軟件架構、重構代碼結構、解決重複出現的設計問題,或者當代碼表現出緊密耦合、嚴格的層次結構、分散的職責或難以測試的組件等症狀時使用。在選擇架構方法或檢查結構改進代碼時也可使用。 來源:ratacat/claude-skills。

查看原文

可引用資訊

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

安裝指令
npx skills add https://github.com/ratacat/claude-skills --skill design-patterns
分類
</>開發工具
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 design-patterns?

在設計軟件架構、重構代碼結構、解決重複出現的設計問題,或者當代碼表現出緊密耦合、嚴格的層次結構、分散的職責或難以測試的組件等症狀時使用。在選擇架構方法或檢查結構改進代碼時也可使用。 來源:ratacat/claude-skills。

如何安裝 design-patterns?

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

這個 Skill 的原始碼在哪?

https://github.com/ratacat/claude-skills