# Python Patterns

> Write maintainable Python packages with type hints, dataclasses, pathlib, and clear module boundaries.

- Skill: `erichare/python-patterns` (Agent Skill)
- Install (CLI): `npx skillmds@latest add erichare/python-patterns`
- Raw SKILL.md: https://api.skillmd.com/api/skills/erichare/python-patterns/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: erichare (https://skillmd.com/u/erichare)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/erichare/python-patterns

---


# Python Patterns

Use this skill for Python package structure, idiomatic code, error handling,
dataclasses, and maintainable module design.

## When to Use

- Build a new Python library or CLI.
- Refactor Python modules without changing behavior.
- Choose simple standard-library patterns before adding dependencies.


