python-conventions
Installation
SKILL.md
Python conventions
Modern Python (3.11+) defaults.
Types
- Type hints required everywhere
from __future__ import annotationsat top- Pydantic v2 for I/O, TypedDict for internal, Literal for string enums
Stdlib
- pathlib.Path over os.path
- dataclasses over manual init
- subprocess.run over os.system
- f-strings except logging
- match for tagged unions