AI Code Deslop
Refines AI-generated code by removing redundant comments, defensive checks, and style inconsistencies to match human coding standards.
The Deslop skill streamlines the transition from AI-generated prototypes to production-ready code by identifying and removing 'slop'—the typical hallmarks of large language model output. By comparing the current branch against main, the skill detects unnecessary verbose comments, excessive try/catch blocks, improper type casts, and non-standard import placements. It ensures that the final codebase remains clean, maintainable, and indistinguishable from manually written code, significantly reducing the manual review effort required after an AI coding session.
主要功能
01Elimination of excessive defensive checks and try/catch blocks
02Removal of verbose or redundant AI-generated comments
03Automated slop detection using git diff against main
040 GitHub stars
05Normalization of Python import placements to the top of files
06Cleanup of 'any' type casts and improper type handling
使用场景
01Cleaning up an AI-generated feature branch before submitting a pull request
02Standardizing code style across a multi-file refactor performed by an LLM
03Reducing technical debt and verbosity introduced during AI-assisted development