SKILL23.0K installs41.8K

Python Design Patterns

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.

Type
Skill
Author
wshobson
Category
Backend
GitHub stars
41.8K
Installs
23.0K
Last updated
November 2, 2026

Install

npx skills add https://github.com/wshobson/agents --skill python-design-patterns

Use cases


Frequently Asked Questions

When should I reach for this skill?

It fits designing a new service or component, refactoring a God class, or reviewing a PR for structural issues.

Does it cover inheritance versus composition?

Yes, composition over inheritance is one of the patterns it covers, along with KISS and single responsibility.

Can it help with untestable code?

It applies when a codebase is hard to test because I/O and business logic are entangled.


About this skill

Python design patterns such as KISS, separation of concerns, single responsibility, and composition over inheritance are the core of this skill. Use it when designing a new service or component, refactoring a God class, deciding whether to add an abstraction, or reviewing a PR for tight coupling and leaking internal types. It also helps when a codebase is hard to test because I/O and business logic are entangled.

Summary written with AI assistance from the project's public description.


Categories


More from wshobson


Similar Skills