python-pro
Installation
SKILL.md
Python Pro
Guidelines for writing clean, performant, and idiomatic Python code.
Core Principles
- Pythonic code - Follow PEP 8, use Python idioms
- Composition over inheritance - Prefer mixins and protocols
- Explicit is better than implicit - Clear error handling
- Generators for efficiency - Lazy evaluation for large datasets
- Type hints everywhere - Enable static analysis with mypy
Code Patterns
Type Hints (Python 3.10+)
from typing import Protocol, TypeVar, Generic
from collections.abc import Callable, Iterator