Skip to content
P

python-design-patterns

Fundamental design principles for writing maintainable, testable Python code

by wshobsonFree

Launch
#1803in AI Skills
0In stores

Description

python-design-patterns is an agent skill from the wshobson/agents collection that sets out fundamental design principles for writing maintai…

Highlights

  • KISS and the Single Responsibility Principle
  • Separation of Concerns
  • Composition over inheritance
  • Rule of Three before abstracting
  • Anti-pattern and better-version code examples
  • Installs with the skills CLI

Ratings & Reviews

No ratings yet

Be the first to rate python-design-patterns.

People also visit

P

python-project-structure

Python project organization, module architecture, and public API design

AI Skills
Launch
G

golang-design-patterns

Idiomatic Golang design patterns

AI Skills
Launch
D

django-patterns

Django architecture patterns, REST API design

AI Skills
Launch
D

design-patterns

Rust design patterns for RTK

AI Skills
Launch
A

airflow-dag-patterns

Build production Apache Airflow DAGs

AI Skills
Launch
A

async-python-patterns

Comprehensive guide to asyncio, concurrent patterns

AI Skills
Launch

python-design-patterns FAQ

What principles does it cover?

KISS, Single Responsibility, Separation of Concerns, Composition Over Inheritance, and the Rule of Three.

What is the Rule of Three?

Waiting until a pattern has appeared three times before turning it into an abstraction, so the abstraction is based on real repetition.

Does it show code examples?

Yes. It includes practical examples that contrast anti-patterns with better versions.

When is it useful?

When designing new components, refactoring tangled code, deciding whether to add an abstraction, or choosing between inheritance and composition.

How do I install it?

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

What security audits does it have?

skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.

What are the best python-design-patterns alternatives?

Popular alternatives to python-design-patterns include python-project-structure, golang-design-patterns and django-patterns. See all python-design-patterns alternatives

Developer Stuff

Badges