AI Code Deslopper
Refines AI-generated code by removing redundant comments, excessive defensive checks, and inconsistent styling to ensure production quality.
The Deslop skill streamlines the transition from AI-generated drafts to production-ready code by identifying and removing 'slop'—unnecessary elements often introduced by LLMs. It analyzes the diff between your current branch and the main branch to strip out redundant comments, overly cautious try/catch blocks, non-standard type casts, and inconsistent import patterns. By focusing on style consistency and removing artifacts like inline Python imports or 'any' casts, this skill ensures your codebase remains professional, maintainable, and aligned with human-written standards.
Key Features
01Analyzes git diffs to target only newly introduced slop
02Eliminates excessive defensive checks and abnormal try/catch blocks
030 GitHub stars
04Removes redundant AI-generated comments and documentation
05Refactors inline Python imports to the top of the file
06Standardizes type casts by removing 'any' bypasses
Use Cases
01Refining raw AI code generations to match project coding standards
02Automating the removal of boilerplate 'slop' during rapid prototyping
03Cleaning up feature branches before submitting a pull request