Python Best Practices Follows type-first, functional, and error handling patterns from CLAUDE.md. This skill covers language-specific idioms only. Make Illegal States Unrepresentable Use Python's type system to prevent invalid states at type-check time. Frozen dataclasses for immutable domain models: Discriminated unions with Literal: NewType for domain primitives: Protocol for structural typing: Python-Specific Error Handling Chain exceptions with to preserve the original traceback: Structured Logging Use a module-level logger with formatting (deferred string interpolation): Optional: ty For…