What problem does it solve?
This Skill eliminates inconsistent Python coding practices, missing type hints, non-compliant docstrings, and unhandled edge cases that reduce code readability, increase review friction, and introduce avoidable bugs in Python 3.12+ projects.
Core Features & Use Cases
- PEP 8/257 Compliance: Enforces 4-space indents, line length guidelines, and proper docstring placement for all Python files.
- Type Hint Enforcement: Requires type hints on all function parameters and return values, using modern builtin generics where supported.
- Async & Environment Best Practices: Guides proper async I/O usage, virtualenv discipline, and dependency management for Python projects.
- Use Case: When your team is collaborating on a Python codebase, use this Skill to automatically align all contributors to the same coding standards, reducing review cycles and preventing style-related merge conflicts.
Quick Start
Use the python-conventions skill to review the attached Python file for compliance with type hint, docstring, and PEP 8 requirements.