python-design-patterns

Installation
Summary

Fundamental design principles for writing maintainable, testable Python code.

  • Covers five core patterns: KISS (Keep It Simple), Single Responsibility Principle, Separation of Concerns, Composition Over Inheritance, and the Rule of Three
  • Includes practical code examples contrasting anti-patterns with recommended approaches for each principle
  • Provides layered architecture guidance (API, Service, Repository layers) with dependency injection patterns for testability
  • Emphasizes explicit, readable code over premature abstraction and offers guidelines for function size and complexity management
SKILL.md

Python Design Patterns

Write maintainable Python code using fundamental design principles. These patterns help you build systems that are easy to understand, test, and modify.

When to Use This Skill

  • 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

Core Concepts

1. KISS (Keep It Simple)

Choose the simplest solution that works. Complexity must be justified by concrete requirements.

Related skills

More from wshobson/agents

Installs
10.5K
Repository
wshobson/agents
GitHub Stars
35.3K
First Seen
Jan 30, 2026