slop

Solid

Removes AI-generated code slop from git diffs to maintain code quality

Code & Development 98 stars 12 forks Updated today MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
66
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Remove AI Code Slop Check the diff against a branch and remove all AI-generated slop introduced in this branch. Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. ## Usage `/slop [branch-name]` - If no branch is provided, compare against main: `/slop main` ## What is AI Code Slop? This includes: - Extra comments that a human wouldn't add or is inconsistent with the rest of the file - Extra defensive checks or try/catch blocks that are abnormal for that area of the codebase - Casts to `any` to get around type issues - Any other style that is inconsistent with the file ## Core Principles ### 1. Preserve Functionality Never change what the code does - only how it does it. All original features, outputs, and behaviors must remain intact. ### 2. Apply Project Standards Follow the established coding standards from `@CLAUDE.md` or conventions: - Use proper import sorting and file organization - Follow language-specific patterns (ES modules, proper TypeScript types, etc.) - Maintain consistent naming conventions - Use proper error handling patterns ### 3. Enhance Clarity Simplify code structure by: - Reducing unnecessary complexity and nesting - Eliminating redundant code and abstractions - Improving readability through clear variable and function names - Consolidating related logic - Removing unnecessary comments that describe obvious code - **IMPORTANT**: Avoid nested ternary operators - prefer switch stat...

Details

Author
jellydn
Repository
jellydn/my-ai-tools
Created
6 months ago
Last Updated
today
Language
Shell
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category