What problem does it solve?
AI-generated Python code frequently contains unnecessary bloat ("slop") including over-defensive checks, unused code, verbose patterns, and redundant documentation that increases technical debt and reduces code maintainability. This Skill automates the detection and cleanup of this slop across entire Python codebases.
Core Features & Use Cases
- 6-Category Slop Detection: Identifies over-defensive code, premature abstractions, dead weight, verbose patterns, structural bloat, and documentation/logging noise with weighted scoring to prioritize high-impact issues.
- Systematic Verification: Uses caller count checks, data tracing, and call chain analysis to eliminate false positives before flagging findings.
- Automated Fixes: Offers to apply idiomatic, behavior-preserving fixes to reduce code size and improve readability.
- Use Case: For a Python project with messy AI-generated utility modules, run the skill to identify and remove unreachable guards, unused parameters, and unnecessary delegation chains to cut code bloat by 20% or more.
Quick Start
Use the deslop skill to scan your Python project directory for AI-generated code bloat and get a prioritized list of automated fix suggestions with a weighted slop density score.