python-patterns
Installation
SKILL.md
Python Development Principles
Mandatory Pre-Flight Context Inspection
Before architecting Python projects or selecting frameworks, you MUST inspect:
- Typed Data Models over Dicts (Section 15) → Use Pydantic models or
@dataclassfor structured data; ban un-typeddictpassing - Specific Exception Handling (Section 16) → Catch explicit exceptions (
ValueError,AppError); ban bareexcept:or genericexcept Exception:swallowing - Pathlib Modern API (Section 17) → Use
pathlib.Pathfor cross-platform filesystem operations; ban legacyos.path
Activation Boundaries
- Activate when: Operating in tasks requiring Python development principles and decision-making. Framework selection, async patterns, type hints, project structure. Teaches thinking, not copying..
- DO NOT activate when: The task falls strictly outside python-patterns domain or belongs to a different dedicated specialist.