deslop
Remove AI Code Slop
Check the diff against main and remove all AI-generated slop introduced in this branch.
Usage
/deslop
What It Removes
- Extra comments that a human wouldn't add or are 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
anyto get around type issues - Over-engineered patterns that don't match the file's existing style
- Unnecessary type annotations on obvious types
- Verbose error handling where simpler patterns exist
- Redundant null checks in already-validated paths
- Excessive logging beyond what's normal for the codebase
What It Preserves
- Actual bug fixes and intended functionality
- Comments that provide genuine value
- Defensive code at trust boundaries (user input, external APIs)
- Type annotations that improve clarity
Process
- Gets diff between current branch and main
- Reviews each changed file for AI slop patterns
- Removes slop while preserving intended changes
- Reports a 1-3 sentence summary of what was changed
Output
A brief summary like:
"Removed 3 unnecessary try/catch blocks in
query.py, deleted 5 redundant comments inhandler.ts, and removed 2anycasts that were hiding type issues."
More from v1-io/v1tamins
interview-me
Use when the user provides an idea, feature request, Linear ticket, or concept that needs fleshing out. Triggers on "interview me about X", "help me spec out Y", "I have an idea for Z", "flesh out this idea".
12complexity
Use when reducing cognitive complexity, flattening nested code, or simplifying functions. Triggers on "reduce complexity", "simplify", "too nested".
10code-review
Use when reviewing a PR or posting code review feedback to GitHub. Triggers on "review this PR", "code review", "check this pull request".
9write-tests
Use when writing unit tests for code changes or new functionality. Triggers on "write tests", "add tests", "test this code".
9pr-description
Use when writing or updating a PR description on GitHub. Triggers on "write PR description", "update PR body", "describe this PR".
8address-review
Use when addressing PR review comments from Copilot, bots, or humans. Triggers on "fix review comments", "address Copilot feedback", "respond to PR comments".
8