/python-design-patterns
Python 設計模式,含 KISS、關注點分離、單一職責與組合優於繼承。用於從零設計新服務或元件並分層職責,或重構 God class 與過大的函式。
- 安裝次數
- 2.3 萬
- 專案星數
- 4.2 萬 ★
- 授權
- MIT
- 專案更新
- 2026-11-02
怎麼裝
npx skills add https://github.com/wshobson/agents --skill python-design-patterns安裝前請先看過原文內容。中文說明是 AI 翻譯,不保證安全。
原文
Python design patterns including KISS, Separation of Concerns, Single Responsibility, and composition over inheritance. Use this skill when designing a new service or component from scratch and choosing how to layer responsibilities, when refactoring a God class or monolithic function that has grown too large, when deciding whether to add a new abstraction or live with duplication, when evaluating a pull request for structural issues like tight coupling or leaking internal types, when choosing between inheritance and composition for a new class hierarchy, or when a codebase is becoming hard to test because of entangled I/O and business logic.