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-patternsUse cases
- Refactor a God class into smaller components with clear responsibilities.
- Decide whether a new abstraction is worth adding or duplication is fine.
- Review a pull request for tight coupling and leaking internal types.
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.
More from wshobson
Typescript Advanced Types
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building typ...
by wshobson
Tailwind Design System
Build scalable design systems with Tailwind CSS v4, design tokens, component libraries, and responsive patterns. Use when creating component librar...
by wshobson
Nodejs Backend Patterns
Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database in...
by wshobson
Brand Landingpage
Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished...
by wshobson
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh