python-design-patterns

Fundamental design principles for writing maintainable, testable Python code.

wshobson ↓ 17k
Claude Code
View source ↗

What it does

  • Designing new components or services
  • Refactoring complex or tangled code
  • Deciding whether to create an abstraction
  • Choosing between inheritance and composition
  • Evaluating code complexity and coupling
  • Planning modular architectures
  • python-testing-patterns — Test each layer in isolation using the dependency injection structure established here

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

Fundamental design principles for writing maintainable, testable Python code.

Source

Repository: https://github.com/wshobson/agents

python-design-patterns FAQ

What does the python-design-patterns skill do?

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. Designing new components or services Refactoring complex or tangled code

How do I install python-design-patterns?

Run: npx -y skills add https://github.com/wshobson/agents --skill python-design-patterns --agent claude-code — the source lives at github.com/wshobson/agents.

Maintain python-design-patterns?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

python-design-patterns on getagentictools
[![python-design-patterns on getagentictools](https://getagentictools.com/badge/skills/wshobson-agents-python-design-patterns.svg)](https://getagentictools.com/skills/wshobson-agents-python-design-patterns?ref=badge)
npx agentictools info skills/wshobson-agents-python-design-patterns

The second line is the CLI lookup for this page — handy in READMEs and docs.