ai-slop-cleaner
Skill0 starsChanged 7 months agoMITView on GitHub
Clean AI-generated code slop with a regression-safe, deletion-first workflow and optional reviewer-only mode
We split this skill into the rules it gives an agent
19 rules. 0 are common, 18 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
18
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Use this skill to clean AI-generated code slop without drifting scope or changing intended behavior.
- Distinctive: line 13
Use this skill when:
- Distinctive: line 16
follow-up implementation left duplicate logic, dead code, wrapper layers, boundary leaks, or weak regression coverage
- Distinctive: line 22
Do not use this skill when:
- Distinctive: line 32
Write a cleanup plan before editing code.
- Distinctive: line 33
Prefer deletion over addition.
- Distinctive: line 35
Avoid new dependencies unless the user explicitly requests them.
- Distinctive: line 36
Keep diffs small, reversible, and smell-focused.
- Distinctive: line 38
Treat new user instructions as local scope updates without dropping earlier non-conflicting constraints.
- Distinctive: line 47
Do not silently expand a changed-file scope into broader cleanup work unless the user explicitly asks for it
- Distinctive: line 55
After the cleanup pass, Ralph re-runs regression verification before completion
- Distinctive: line 67
Do not start by editing files.
- Distinctive: line 82
Add or run the narrowest regression tests needed before editing.
- Distinctive: line 83
If tests cannot come first, record the verification plan explicitly before touching code.
- Distinctive: line 103
Do not bundle unrelated refactors into the same edit set.
- Distinctive: line 106
Keep regression tests green.
- Distinctive: line 107
Run the relevant lint, typecheck, and unit/integration tests for the touched area.
- Distinctive: line 108
Run existing static or security checks when available.
- Distinctive: line 109
If a gate fails, fix the issue or back out the risky cleanup instead of forcing it through.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AI Slop Cleaner
Use this skill to clean AI-generated code slop without drifting scope or changing intended behavior. In copilot-omni, this is the bounded cleanup workflow for code that works but feels bloated, repetitive, weakly tested, or over-abstracted.
When to Use
Use this skill when:
- the user explicitly says
deslop,anti-slop, orAI slop - the request is to clean up or refactor code that feels noisy, repetitive, or overly abstract
- follow-up implementation left duplicate logic, dead code, wrapper layers, boundary leaks, or weak regression coverage
- the user wants a reviewer-only anti-slop pass via
--review - the goal is simplification and cleanup, not new feature delivery
When Not to Use
Do not use this skill when:
- the task is mainly a new feature build or product change
- the user wants a broad redesign instead of an incremental cleanup pass
- the request is a generic refactor with no simplification or anti-slop intent
- behavior is too unclear to protect with tests or a concrete verification plan
copilot-omni Execution Posture
- Preserve behavior unless the user explicitly asks for behavior changes.
- Lock behavior with focused regression tests first whenever practical.
- Write a cleanup plan before editing code.
- Prefer deletion over addition.
- Reuse existing utilities and patterns before introducing new ones.
- Avoid new dependencies unless the user explicitly requests them.
- Keep diffs small, reversible, and smell-focused.
- Stay concise and evidence-dense: inspect, edit, verify, and report.
- Treat new user instructions as local scope updates without dropping earlier non-conflicting constraints.
Scoped File-List Usage
This skill can be bounded to an explicit file list or changed-file scope when the caller already knows the safe cleanup surface.
- Good fit:
copilot-omni:ai-slop-cleaner skills/ralph/SKILL.md skills/ai-slop-cleaner/SKILL.md - Good fit: a Ralph session handing off only the files changed in that session
- Preserve the same regression-safe workflow even when the scope is a short file list
- Do not silently expand a changed-file scope into broader cleanup work unless the user explicitly asks for it
Ralph Integration
Ralph can invoke this skill as a bounded post-review cleanup pass.
- In that workflow, the cleaner runs in standard mode (not
--review) - The cleanup scope is the Ralph session's changed files only
- After the cleanup pass, Ralph re-runs regression verification before completion
--reviewremains the reviewer-only follow-up mode, not the default Ralph integration path
Review Mode (--review)
--review is a reviewer-only pass after cleanup work is drafted. It exists to preserve explicit writer/reviewer separation for anti-slop work.
- Writer pass: make the cleanup changes with behavior locked by tests.
- Reviewer pass: inspect the cleanup plan, changed files, and verification evidence.
- The same pass must not both write and self-approve high-impact cleanup without a separate review step.
In review mode:
- Do not start by editing files.
- Review the cleanup plan, changed files, and regression coverage.
- Check specifically for:
- leftover dead code or unused exports
- duplicate logic that should have been consolidated
- needless wrappers or abstractions that still blur boundaries
- missing tests or weak verification for preserved behavior
- cleanup that appears to have changed behavior without intent
- Produce a reviewer verdict with required follow-ups.
- Hand needed changes back to a separate writer pass instead of fixing and approving in one step.
Workflow
- Protect current behavior first
- Identify what must stay the same.
- Add or run the narrowest regression tests needed before editing.
- If tests cannot come first, record the verification plan explicitly before touching code.
- Write a cleanup plan before code
- Bound the pass to the requested files or feature area.
- List the concrete smells to remove.
- Order the work from safest deletion to riskier consolidation.
- Classify the slop before editing
- Duplication — repeated logic, copy-paste branches, redundant helpers
- Dead code — unused code, unreachable branches, stale flags, debug leftovers
- Needless abstraction — pass-through wrappers, speculative indirection, single-use helper layers
- Boundary violations — hidden coupling, misplaced responsibilities, wrong-layer imports or side effects
- Missing tests — behavior not locked, weak regression coverage, edge-case gaps
- Run one smell-focused pass at a time
- Pass 1: Dead code deletion
- Pass 2: Duplicate removal
- Pass 3: Naming and error-handling cleanup
- Pass 4: Test reinforcement
- Re-run targeted verification after each pass.
- Do not bundle unrelated refactors into the same edit set.
- Run the quality gates
- Keep regression tests green.
- Run the relevant lint, typecheck, and unit/integration tests for the touched area.
- Run existing static or security checks when available.
- If a gate fails, fix the issue or back out the risky cleanup instead of forcing it through.
- Close with an evidence-dense report
Always report:
- Changed files
- Simplifications
- Behavior lock / verification run
- Remaining risks
Usage
/copilot-omni:ai-slop-cleaner <target>/copilot-omni:ai-slop-cleaner <target> --review/copilot-omni:ai-slop-cleaner <file-a> <file-b> <file-c>- From Ralph: run the cleaner on the Ralph session's changed files only, then return to Ralph for post-cleanup regression verification
Good Fits
Good: deslop this module: too many wrappers, duplicate helpers, and dead code
Good: cleanup the AI slop in src/auth and tighten boundaries without changing behavior
Bad: refactor auth to support SSO
Bad: clean up formatting
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 5
- Yeachan-Heo/oh-my-claudecode★ 40k80% same
- Yeachan-Heo/oh-my-claude-sisyphus★ 40k80% same
- listener-He/java-harness-agent★ 1642% same
- yeaight7/agent-powerups★ 623% same
- Gopyr/gopyr-skills-hub★ 038% same
Wrote their own version · 4
- Yeachan-Heo/oh-my-codex★ 34ksame name
- zereight/gitlab-mcp★ 2.1ksame name
- blas1n/claude-skills★ 2same name
- Malkuku/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use ultragoal, hud and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Yeachan-HeoSkillultragoal
Create and execute durable repo-native multi-goal plans over Codex goal mode artifacts.
Also in 3 projects that use this
ibahgatSkillhud
Control omi visual HUD profile and keep status output readable in normal, compact, or hidden mode.
Also in 3 projects that use this
markmdevSkillself-improve
Analyze Claude Code sessions to find workflow frictions, underused tools, stale instructions, documentation gaps, and opportunities for new skills or automation. Produces actionable improvement suggestions with prioritized recommendations. Use when the user says "self-improve", "analyze my workflow", "what can we improve", "find frictions", "optimize workflow", or asks about improving their Claude Code setup. Also suggest running this after long sessions, multi-session projects, or when the user seems frustrated with repetitive work.
Also in 4 projects that use this
dubwoahSkillask
Answer questions about the codebase without generating or modifying any code. Use when the user wants to understand how something works, find where something is defined, or explore the project structure. Invoked with /ask.
Also in 3 projects that use this
GitHubSkillautoresearch
Autonomous iterative experimentation loop for any programming task. Guides the user through defining goals, measurable metrics, and scope constraints, then runs an autonomous loop of code changes, testing, measuring, and keeping/discarding results. Inspired by Karpathy''s autoresearch. USE FOR: autonomous improvement, iterative optimization, experiment loop, auto research, performance tuning, automated experimentation, hill climbing, try things automatically, optimize code, run experiments, autonomous coding loop. DO NOT USE FOR: one-shot tasks, simple bug fixes, code review, or tasks without a measurable metric.
Also in 3 projects that use this
GoogleSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 3 projects that use this
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- autopilotSkill
- cancelSkill
- configure-notificationsSkill
- debugSkill
- deep-diveSkill
- deepinitSkill
- deep-interviewSkill
- external-contextSkill
- mcp-setupSkill
- omni-doctorSkill
- omni-referenceSkill
- omni-setupSkill
- omni-planSkill
- ralphSkill
- ralplanSkill
- releaseSkill
- rememberSkill
- setupSkill
- skillifySkill
- skillSkill
- teamSkill
- traceSkill
- ultraqaSkill
- ultraworkSkill
- verifySkill
- wikiSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

