AI Code Cleanup (Deslop)

0•

Eliminates AI-generated code slop and enforces consistent coding styles by refining diffs and removing redundant patterns.

The deslop skill is a specialized utility for Claude Code designed to audit and refine code introduced by AI assistants. It meticulously compares branch changes against the main codebase to identify and remove 'slop'—unnecessary comments, excessive defensive checks, improper type casting, and overly complex nesting. By prioritizing local style consistency and minimal logic changes, it ensures that AI-aided development remains clean, readable, and production-ready without altering core functionality.

Key Features

01Complexity Reduction: Flattens deeply nested code using early returns for better readability.
02Type Integrity: Replaces lazy 'any' casts with proper typing or structural improvements.
030 GitHub stars
04AI Slop Removal: Automatically identifies and removes redundant comments and defensive checks.
05Style Alignment: Ensures new code matches the existing codebase's style and conventions.
06Diff-Based Auditing: Focuses specifically on changes introduced in a branch compared to the main branch.

Use Cases

01Cleaning up verbose boilerplate or comments generated by Large Language Models.
02Preparing a pull request by standardizing AI-suggested code before review.
03Simplifying complex logic blocks that were over-engineered by an automated agent.