Remove AI-generated code slop from a branch: unnecessary comments, redundant defensive checks, boilerplate, style drift, and type casts.
NewMaintained
Automatic
◆Coding pack
Last verified 8/13/2026
What it changes
Passed 5 of 19 test cases with the skill, and 14 of 19 without it.
Without skill75%
With skill25%
Checks it passed that the model alone missed
Specifies the exact command git diff main...HEAD.
Restricts the final summary report to 1 to 3 sentences.
2 fixed9 passed either way5 still failing6 broke
Pass-rate lift
-50 pp
Tokens
-47%
Agent turns
0%
Response time
-62%
Model gemini-3.6-flashMeasured 8/13/2026v111 of 22 cases passed with skill · 19 comparable
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 2
Prompt
What exact git command should be run first to inspect all changes introduced on the feature branch against the main branch?
What was checked, without and with the skill
Checked
Without skill
With skill
Specifies the exact command git diff main...HEAD.
Missed
Passed
case-13 · gemini-3.6-flash · 8/13/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md22 linessingle file
Remove AI Code Slop
Check the diff against main and remove all AI-generated slop introduced in this branch.
Routing Boundary
Use this skill when the user's problem is cleanup of AI-generated code noise. If the user asks for a broad correctness/maintainability review, use code-reviewer. If the user asks whether existing review comments should be accepted, use receiving-code-review.
What to Remove
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 any to get around type issues
Inline imports in Python (move to top of file with other imports)
Any other style that is inconsistent with the file
Process
Get the diff against main: git diff main...HEAD
Review each changed file for slop patterns
Remove identified slop while preserving legitimate changes