Ensures Python code adheres to modern, production-grade standards specific to Python 3.11. This skill guides development by enforcing best practices such as Look-Before-You-Leap (LBYL) exception handling, modern type syntax (e.g., `list[str]`), the use of `pathlib` for file system operations, and clear, ABC-based interfaces. It also incorporates battle-tested patterns from Dagster Labs for API design, managing parameter complexity, and organizing code. Use this skill when writing new features, refactoring existing modules, or performing code reviews to maintain a high-quality, dignified codebase.
主な機能
01Guidance on LBYL (Look Before You Leap) exception handling.
02Enforcement of modern Python 3.11 type syntax and `pathlib` usage.
03Best practices for Abstract Base Class (ABC) interfaces and absolute imports.
04Patterns for explicit error handling at the command-line interface level.
05Production-tested code smell patterns for API design and code organization.
0629 GitHub stars