·design-patterns
</>

design-patterns

應用四聯設計模式來解決 TypeScript 中的架構問題。 在重構程式碼架構、實作可擴展系統、解耦時使用 組件,或遵循 SOLID 原則。涵蓋所有 22 個 GoF 模式:創造型 (工廠方法、抽象工廠、建構器、原型、單例)、結構 (適配器、橋接器、複合器、裝飾器、外觀、享元、代理)和行為 (責任鏈、命令、迭代器、中介者、備忘錄、觀察者、狀態、 策略、範本方法、訪客)。

16安裝·0熱度·@fellipeutaka

安裝

$npx skills add https://github.com/fellipeutaka/leon --skill design-patterns

如何安裝 design-patterns

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

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

來源:fellipeutaka/leon。

SKILL.md

查看原文

Proven architectural patterns for building maintainable, extensible, and testable TypeScript codebases. All 22 Gang of Four patterns with practical implementations.

| Factory Method | Delegate object creation to subclasses | | Abstract Factory | Create families of related objects without concrete types | | Builder | Construct complex objects step-by-step | | Prototype | Clone existing objects instead of building from scratch | | Singleton | Ensure exactly one instance with global access |

| Adapter | Make incompatible interfaces work together | | Bridge | Separate abstraction from implementation | | Composite | Treat individual objects and compositions uniformly | | Decorator | Attach responsibilities dynamically without subclassing | | Facade | Simplify complex subsystem with a unified interface |

可引用資訊

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

安裝指令
npx skills add https://github.com/fellipeutaka/leon --skill design-patterns
分類
</>開發工具
認證
收錄時間
2026-02-21
更新時間
2026-03-10

Browse more skills from fellipeutaka/leon

快速解答

什麼是 design-patterns?

應用四聯設計模式來解決 TypeScript 中的架構問題。 在重構程式碼架構、實作可擴展系統、解耦時使用 組件,或遵循 SOLID 原則。涵蓋所有 22 個 GoF 模式:創造型 (工廠方法、抽象工廠、建構器、原型、單例)、結構 (適配器、橋接器、複合器、裝飾器、外觀、享元、代理)和行為 (責任鏈、命令、迭代器、中介者、備忘錄、觀察者、狀態、 策略、範本方法、訪客)。 來源:fellipeutaka/leon。

如何安裝 design-patterns?

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

這個 Skill 的原始碼在哪?

https://github.com/fellipeutaka/leon