Applies Pythonic idioms and PEP 8 standards to ensure applications are robust, efficient, and maintainable.
This skill provides a comprehensive framework for writing high-quality Python code by integrating PEP 8 standards, modern type hinting (Python 3.9+), and advanced architectural patterns. It guides Claude to prioritize readability and explicit configurations while implementing sophisticated features like context managers, decorators, and data classes. Whether you are refactoring legacy scripts or designing a new package structure, this skill ensures the output follows industry-standard best practices for error handling, concurrency, and resource management.
主要功能
01Resource management via custom and class-based context managers
02Modern type hinting support including Protocols and Generic types
03Enforcement of PEP 8 standards and Pythonic idioms for maximum readability
04Robust error handling patterns with exception chaining and custom hierarchies
05Optimized concurrency patterns for both I/O-bound and CPU-bound tasks
060 GitHub stars
使用场景
01Implementing type-safe data models using Dataclasses and NamedTuples
02Architecting high-performance asynchronous applications with proper I/O patterns
03Refactoring procedural legacy code into modular, maintainable Python packages