Enforces production-grade Python standards by eliminating generic AI coding patterns through PEP 8 compliance, rigorous type hinting, and pandas best practices.
Python Anti-Slop is a specialized Claude Code skill designed to transform generic, low-quality AI outputs into robust, maintainable production code. It addresses common issues like ambiguous variable naming, missing type annotations, and inefficient pandas operations. By enforcing strict adherence to PEP 8, NumPy-style docstrings, and explicit error handling, this skill ensures that data science pipelines and general Python scripts are readable, type-safe, and ready for professional code reviews or deployment.
主要功能
01Optimizes pandas operations with method chaining and explicit copies
02Mandates comprehensive type hints for all function signatures
03Implements robust error handling with specific exception types
040 GitHub stars
05Enforces PEP 8 compliance and organized import hierarchies
06Standardizes NumPy/Google style docstrings for better documentation
使用场景
01Refining and cleaning AI-generated Python code for team collaboration
02Standardizing code quality across data science pipelines and ML workflows
03Converting quick notebook experiments into production-ready scripts