Agent skill · software engineering · aiskillstore

ai-code-cleanup

Remove AI-generated code slop from branches. Use after AI-assisted coding

Why this skill is useful

Adds specific patterns and commands for identifying and removing AI-generated code artifacts that improve code quality.

What it needs

About 4k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

AI Code Cleanup This skill identifies and removes AI-generated artifacts that degrade code quality, including defensive bloat, unnecessary comments, type casts, and style inconsistencies. When to Use This Skill After AI-assisted coding sessions Before code reviews or merging branches When cleaning up code that feels "over-engineered" When removing unnecessary defensive code When standardizing code style after AI generation When preparing code for production What This Skill Does 1. Identifies AI Artifacts: Detects patterns typical of AI-generated code 2. Removes Bloat: Eliminates unnecessary defensive code and comments 3. Fixes Type Issues: Removes unnecessary type casts and workarounds 4. Standardizes Style: Ensures consistency with project conventions 5. Preserves Functionality: Maintains code behavior while improving quality 6. Validates Changes: Ensures code still compiles and tests pass How to Use Clean Up Branch Specific Cleanup Slop Patterns to Remove 1. Unnecessary Comments Patterns: Comments explaining obvious code Comments inconsistent with file's documentation style Redundant comments that restate the code Over-documentation of simple operations Example: 2. Defensive Bloat Patterns: Extra try/catch blocks abnormal for that codebase Defensive null/undefined checks on trusted paths Redundant input validation when callers already validate Error handling that can never trigger Example: 3. Type Workarounds Patterns: Casts to any to bypass type issues Unnecessary type assertions (as X) @ts-ignore or @ts-expect-error without legitimate reason Overly complex generic constraints Example: 4. Style Inconsistencies Patterns: Naming conventions different from rest of file Formatting that doesn't match surrounding code Import organization inconsistent with file patterns Variable declarations inconsistent with file style Example: 5. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/ai-code-cleanup

View the source on GitHub

Browse the @skills marketplace