python-patterns

Installation
SKILL.md

Python Development Principles


Mandatory Pre-Flight Context Inspection

Before architecting Python projects or selecting frameworks, you MUST inspect:

  1. Typed Data Models over Dicts (Section 15) → Use Pydantic models or @dataclass for structured data; ban un-typed dict passing
  2. Specific Exception Handling (Section 16) → Catch explicit exceptions (ValueError, AppError); ban bare except: or generic except Exception: swallowing
  3. Pathlib Modern API (Section 17) → Use pathlib.Path for cross-platform filesystem operations; ban legacy os.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.

Hallucination Traps (Read First)

Installs
3
GitHub Stars
7
First Seen
Apr 26, 2026