unslop
Only use when explicitly specified by the user.
When & Why to Use This Skill
The 'unslop' Claude skill is a specialized developer tool designed to refine AI-generated code by identifying and removing 'slop'—redundant comments, excessive defensive logic, and inconsistent styling. It ensures that code remains clean, maintainable, and aligned with human-written standards by auditing branch diffs and enforcing professional coding patterns.
Use Cases
- Refining Pull Requests: Automatically stripping away verbose or redundant AI-generated comments and documentation that clutter the codebase before a merge.
- Codebase Hardening: Identifying and removing unnecessary 'any' type casts and excessive try-catch blocks to ensure type safety and cleaner error-handling logic.
- Style Alignment: Auditing new code against existing patterns to eliminate architectural inconsistencies and 'abnormal' defensive programming introduced during rapid AI generation.
- Test Suite Optimization: Detecting and deleting AI-generated tests that lack meaningful assertions or fail to test actual functional logic.
| name | unslop |
|---|---|
| description | Only use when explicitly specified by the user. |
| short-description | Remove AI code slop. |
Check the diff against main, and remove all AI generated slop introduced in this branch.
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 (especially if called by trusted / validated codepaths)
- Casts to any to get around type issues
- Tests that do not test actual code
- Any other style that is inconsistent with the file
Report at the end with only a 1-3 sentence summary of what you changed