python-design

Installation
SKILL.md

Python Design

Design patterns extracted from 40 mainstream Python projects. The patterns database (references/patterns-db.json) contains 455 patterns across 11 dimensions; this skill surfaces the 70 high-frequency patterns (≥3 project validations) as actionable reference with recognition signals, trade-offs, and anti-pattern contrasts.

Workflow

  1. Identify the design dimension.
  2. Load the matching reference file for patterns with Recognize signals, When/When not guidance, and ❌→✅ code contrast.
  3. Consult decisions.md for trade-off guides (dataclass vs TypedDict, Protocol vs ABC, eager vs lazy, sync/async strategies).
  4. Consult CONTEXT.md for pattern glossary, cross-cutting concerns, and dimension definitions.

Pattern reference by dimension

Dimension Key question File
Data modeling, Validation, Serialization How to model, validate, and serialize data? data.md (16 patterns)
Pipeline composition, Error strategy, Sync/async How to chain stages, handle errors, bridge sync/async? flow.md (17 patterns)
Interface design, Module organization Protocol vs ABC? Public vs internal? structure.md (27 patterns)
Plugin architecture, Config management, State context How to extend, configure, and propagate context? extension.md (10 patterns)
Installs
2
Repository
peachest/skills
First Seen
9 days ago