What problem does it solve? Python codebases drift into inconsistent formatting, unidiomatic constructs, and subtle bugs like mutable default arguments or bare except clauses. This Skill anchors the agent to idiomatic Python conventions so generated and reviewed code follows PEP 8 style, modern typing syntax, and safe language patterns. ## Core Features & Use Cases - Style and Naming Enforcement: Applies snake_case/PascalCase conventions, 4-space indentation, isort-ordered imports, and formatter-driven line lengths via ruff or black. - Idiom Guidance: Covers truthiness checks, comprehensions, generators, context managers, dataclasses with slots, structural pattern matching, and modern type annotations like int | str. - Anti-Pattern Detection: Flags mutable default arguments, bare except clauses, builtin shadowing, god classes, and isinstance chains, with concrete remedies. - Use Case: When asked to refactor a legacy module, the agent rewrites nested conditionals into guard clauses, replaces type(x) == int with isinstance, converts manual __init__ classes into frozen dataclasses, and annotates function signatures with modern union syntax. ## Quick Start Ask the agent to review or write Python code in this project and it will apply these idioms, for example: refactor my utils.py file to follow idiomatic Python conventions.