jellydn/my-ai-tools/slop
Claude Code and agent skill by jellydn/my-ai-tools
- community
Checking that the SKILL.md file is still in the repository.
Remove AI-generated code slop from git diffs to maintain code quality
Install
npx vskill@latest install jellydn/my-ai-tools/slopSKILL.md
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
anyto 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: Use switch statements or if/else chains over nested ternary operators
- Choose clarity over brevity - explicit code is often better than overly compact code
4. Maintain Balance
Preserve necessary complexity — over-simplification can:
- Reduce code clarity or maintainability
- Create overly clever solutions that are hard to understand
- Combine too many concerns into single functions
- Remove helpful abstractions that improve code organization
- Prioritize "fewer lines" over readability
Process
1. Get the diff
2. Review each changed file
For each changed file:
- Read the current content
- Compare with original (before changes)
- Identify AI-generated slop patterns
- Check for opportunities to improve elegance and consistency
3. Remove slop and refine
- Remove unnecessary comments
- Simplify overly defensive code
- Remove
anycasts where possible - Restore natural code style
- Apply project-specific best practices
- Ensure all functionality remains unchanged
4. Verify
Common Slop Patterns
- Over-commenting: Comments explaining obvious code
- Verbose error handling: Try/catch blocks where not needed
- Unnecessary type casts:
x as anyto bypass TypeScript - Defensive programming: Checks for already-validated inputs
- Redundant validation: Duplicate null/undefined checks
- Nested ternaries: Complex nested ternary operators
- Overly compact code: Dense one-liners that sacrifice readability
Refinement Guidelines
When refining code:
- Identify the modified sections - Only refine code that changed in the diff
- Analyze for improvement opportunities - Look for ways to enhance elegance and consistency
- Apply project standards - Follow established conventions and patterns
- Preserve functionality - Ensure behavior remains unchanged
- Verify improvements - The refined code should be simpler and more maintainable
- Document significant changes - Only document changes that affect understanding
Code Style Preferences
- Prefer explicit over compact - readable code beats clever code
- Use descriptive names - clarity over brevity
- Flatten deep nesting with early returns and guard clauses
- Remove redundant code - eliminate duplicates
- Use language-appropriate patterns - follow idiomatic practices
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/slop/SKILL.md
Popularity
- Repository stars
- 54
- Repository forks
- 9
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 7 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jellydn/my-ai-tools/slop)