Agent skill

AI Slop Cleaner

by yangyuan-zhen in yangyuan-zhen/PolyWeather

[OMX] Run an anti-slop cleanup/refactor/deslop workflow. An agent skill from yangyuan-zhen/PolyWeather.

AGPL-3.0Auto-check passedWriting & Content

Install AI Slop Cleaner

skills CLI
$ npx skills add yangyuan-zhen/PolyWeather --skill ai-slop-cleaner -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install yangyuan-zhen/PolyWeather ai-slop-cleaner --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/yangyuan-zhen/PolyWeather.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/ai-slop-cleaner .claude/skills/ai-slop-cleaner && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ai-slop-cleaner
GitHub stars
316
Token cost
~2.2k tokens
SKILL.md length
948 words
Files
1
Skills in repo
26
Repo updated
First seen
Licence
AGPL-3.0

At a glance

[OMX] Run an anti-slop cleanup/refactor/deslop workflow. An agent skill from yangyuan-zhen/PolyWeather.

  • Works in 7 steps: Lock behavior with regression tests first → Create a cleanup plan before code → Inventory fallback-like code before… → …
  • Tasks that involve Humanizing AI text
  • SKILL.md covers When to Use, GPT-5.6 Guidance Alignment, Scoped File Lists and Ralph… and Procedure, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

AI Slop Cleaner is an agent skill from yangyuan-zhen/PolyWeather. [OMX] Run an anti-slop cleanup/refactor/deslop workflow

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Writing & Content, covering Humanizing AI text and Refactoring. The repository describes itself as: polymarket Intelligent Weather Quant Analysis Bot. The licence is AGPL-3.0.

When your agent uses it

  • Tasks that involve Humanizing AI text
  • Tasks that involve Refactoring

Example prompts

  • “/ai-slop-cleaner”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Lock behavior with regression tests first
  2. Create a cleanup plan before code
  3. Inventory fallback-like code before editing
  4. Categorize issues before editing
  5. Execute passes one smell at a time
  6. Run quality gates
  7. Finish with an evidence-dense report

What it can do on your machine

Read from SKILL.md and the folder at commit 43e658b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

AI Slop Cleaner loads about 2.2k tokens when it runs. Until then it costs about 18 tokens; SKILL.md has 948 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~18
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from yangyuan-zhen/PolyWeather at commit 43e658b, republished under its AGPL-3.0 licence (© yangyuan-zhen). 948 words, ~2,162 tokens.

Download SKILL.mdSave it as .claude/skills/ai-slop-cleaner/SKILL.md (or your agent's skills folder).
name
ai-slop-cleaner
description
[OMX] Run an anti-slop cleanup/refactor/deslop workflow

AI Slop Cleaner Skill

Reduce AI-generated slop with a regression-tests-first, smell-by-smell cleanup workflow that preserves behavior and raises signal quality.

When to Use

Use this skill when:

  • A code path works but feels bloated, noisy, repetitive, or over-abstracted
  • A user asks to “cleanup”, “refactor”, or “deslop” AI-generated output
  • Follow-up implementation left duplicate code, dead code, weak boundaries, missing tests, fallback-like code, or unnecessary wrapper layers
  • You need a disciplined cleanup workflow without broad rewrites

GPT-5.6 Guidance Alignment

  • Keep outputs concise and evidence-dense unless risk or the user requests more detail.
  • Treat newer user instructions as local workflow updates without discarding earlier non-conflicting constraints.
  • Keep using inspection, tests, diagnostics, and verification until the cleanup is grounded.
  • Proceed automatically through clear, reversible cleanup steps; ask only when a choice materially changes scope or behavior.

Scoped File Lists and Ralph Workflow

  • This skill can accept a file list scope instead of a whole feature area.
  • When the caller provides a changed-files list (for example, Ralph session-owned edits), keep the cleanup strictly bounded to those files.
  • In the Ralph workflow, the mandatory deslop pass should run this skill on Ralph's changed files only, in standard mode unless the caller explicitly requests otherwise.

Procedure

  1. Lock behavior with regression tests first

    • Identify the behavior that must not change
    • Add or run targeted regression tests before editing cleanup candidates
    • If behavior is currently untested, create the narrowest test coverage needed first
    • For fallback-like code, cover the primary path and any preserved compatibility/fail-safe fallback before cleanup
  2. Create a cleanup plan before code

    • List the specific smells to remove
    • Bound the pass to the requested files/scope
    • If a file list scope is provided, keep the pass restricted to that changed-files list
    • Include fallback findings, classifications, and escalation status in the plan
    • Order fixes from safest/highest-signal to riskiest
    • Do not start coding until the cleanup plan is explicit
  3. Inventory fallback-like code before editing

    • Search the requested scope for fallback-like detection signals: quick hacks, temporary workaround, temporary fallback, just bypass, just skip, fallback if it fails, swallowed errors, silent defaults, broad compatibility shims, and duplicate alternate execution paths
    • Classify each finding before changing it:
      • Masking fallback slop — hides errors or evidence, bypasses the primary contract, suppresses tests or validation, swallows failures, silently defaults, or adds untested alternate paths
      • Grounded compatibility/fail-safe fallback — is scoped to an external/version/fail-safe boundary, documents the rationale, preserves failure evidence, and has regression tests for both the primary and fallback behavior
    • Prefer root-cause repair, deletion, boundary repair, or explicit failure behavior before preserving fallback paths
    • For broad, ambiguous, cross-layer, or architectural fallback-like code, invoke $ralplan for consensus resolution before edits
    • Recursion guard: when already inside ralplan, ralph, team, or another OMX workflow, do not spawn a nested $ralplan; record the finding and attach it to the active ralplan, leader, or plan handoff instead
  4. Categorize issues before editing

    • Fallback-like code — masking fallbacks, workaround branches, bypasses, swallowed errors, silent defaults, broad shims, alternate execution paths
    • 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, leaky responsibilities, wrong-layer imports or side effects
    • UI/design slop — review visual outputs as context-sensitive signals, not absolute bans; preserve intentional brand, design-system, accessibility, or product-context exceptions when the rationale is clear
      • Korean body text that is too small: challenge 11-12px body copy; Korean body text generally needs 14px or larger unless a dense, accessible system explicitly supports smaller text
      • Gratuitous depth: avoid putting box shadows on every logo, surface, card, icon, background, and step block when hierarchy or affordance does not need it
      • Repetitive content scaffolding: trim repeated eyebrow + title + description + paragraph stacks, filler explanation text, and generic emoji badges that do not add meaning
      • Default AI palettes: question blue/purple defaults such as #3B82F6 when there is no brand, semantic, or system rationale
      • Over-perfect grids: avoid reflexive uniform 3-column or 4-column card grids when the product context would benefit from rhythm, asymmetry, carousel cuts, bento composition, or varied emphasis
      • Extreme gradients: tone down "AI demo" gradients unless the brand or campaign intentionally calls for that intensity
    • Missing tests — behavior not locked, weak regression coverage, gaps around edge cases
  5. Execute passes one smell at a time

    • Fallback-like code resolution gate — remove masking fallback slop, repair root causes, or escalate ambiguous cases before continuing
    • Pass 1: Dead code deletion
    • Pass 2: Duplicate removal
    • Pass 3: Naming/error handling cleanup
    • Pass 4: Test reinforcement
    • Re-run targeted verification after each pass
    • Avoid bundling unrelated refactors into the same edit set
  6. Run quality gates

    • Regression tests stay green
    • Lint passes
    • Typecheck passes
    • Relevant unit/integration tests pass
    • Static/security scan passes when available
    • Diff stays minimal and scoped
    • No new abstractions or dependencies unless explicitly required
  7. Finish with an evidence-dense report

    • Changed files
    • Simplifications made
    • Fallback findings, classifications, and escalation status
    • Tests/diagnostics/build checks run
    • UI/design reviewer checklist findings when visual/UI files were in scope
    • Remaining risks
    • Residual follow-ups or consciously deferred cleanup
Show full SKILL.md (122 more words)Show less

Output Format

text
AI SLOP CLEANUP REPORT
======================

Scope: [files or feature area]
Behavior Lock: [targeted regression tests added/run]
Cleanup Plan: [bounded smells and order]
Fallback Findings: [none, or finding -> masking fallback slop / grounded compatibility/fail-safe fallback -> escalation status]
UI/Design Findings: [none/N/A, or signal -> action taken/deferred -> intentional exception rationale]

Passes Completed:
- Fallback-like code resolution gate - [root-cause repair, explicit failure behavior, preserved grounded fallback, or ralplan handoff]
1. Pass 1: Dead code deletion - [concise fix]
2. Pass 2: Duplicate removal - [concise fix]
3. Pass 3: Naming/error handling cleanup - [concise fix]
4. Pass 4: Test reinforcement - [concise fix]

Quality Gates:
- Regression tests: PASS/FAIL
- Lint: PASS/FAIL
- Typecheck: PASS/FAIL
- Tests: PASS/FAIL
- Static/security scan: PASS/FAIL or N/A

Changed Files:
- [path] - [simplification]

Fallback Review:
- Findings: [fallback-like findings detected]
- Classification: [masking fallback slop | grounded fallback]
- Escalation Status: [none | raised to leader/ralplan | no escalation]

Remaining Risks:
- [none or short deferred item]

Scenario Examples

Good: The user says continue after tests already lock behavior and the next smell pass is clear. Continue with the next bounded cleanup pass.

Good: The user narrows the scope to a specific file after planning. Keep the regression-tests-first workflow, but apply the new scope locally.

Bad: Start rewriting architecture before protecting behavior with tests.

Bad: Collapse multiple smell categories into one large refactor with no intermediate verification.

Bad: Keep a fallback if it fails branch that silently defaults after a swallowed error instead of fixing the root cause or making failure explicit.

Good: A version-specific compatibility shim is narrow, documented, preserves error evidence, has primary and fallback regression tests, and is reported as a grounded compatibility/fail-safe fallback.

© yangyuan-zhen, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .codex/skills/ai-slop-cleaner of yangyuan-zhen/PolyWeather.

Open the folder on GitHubat commit 43e658b

Compare with similar skills

AI Slop Cleaner next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

AI Slop Cleaner compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
AI Slop Cleaner this skillyangyuan-zhen/PolyWeather316—~2.2kAutomated safety check: PassAGPL-3.0
DeslopMrZoyo/deslop-GPT138—~4kAutomated safety check: PassMIT
Prism Maintainirfndi/prism-liquidity-agent124—~1kAutomated safety check: PassMIT
Deslopsanity-io/sanity6.4k6 repos~180Automated safety check: PassMIT
Deslopmillionco/react-doctor15k—~1.2kAutomated safety check: PassCustom licence
Clean AI Sloptmdgusya/engineering-discipline125—~1.9kAutomated safety check: PassNone

Similar skills

  • Deslop

    MrZoyo/deslop-GPT

    Audit or apply evidence-backed, test-first subtractive cleanup for accumulated agent-created test bloat, verification theater, and defensive or fallback bloat while preserving independent external…

    138 GitHub stars~4k tokensUpdated 4 days ago
    Writing & ContentAuto-check passed
  • Prism Maintain

    irfndi/prism-liquidity-agent

    Maintain the Prism codebase: measure cyclomatic complexity, refactor hotspots, and enforce the anti-slop type discipline.

    124 GitHub stars~1k tokensUpdated 13 days ago
    Writing & ContentAuto-check passed
  • Deslop

    sanity-io/sanity

    Official

    Remove AI-generated code slop and clean up code style. An agent skill from sanity-io/sanity.

    6.4k GitHub starsUsed in 6 repos~180 tokens
    Writing & ContentAuto-check passed
  • Deslop

    millionco/react-doctor

    Simplify and refine recently modified code while preserving functionality.

    15k GitHub stars~1.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Clean AI Slop

    tmdgusya/engineering-discipline

    Corrective cleanup of AI-generated code — removes LLM-specific patterns while preserving behavior.

    125 GitHub stars~1.9k tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • Omh AI Slop Cleaner

    rlaope/oh-my-hermes

    [omh] Messy or AI-generated code to clean up: delete AI-generated slop, dead code, and duplication while observable behavior stays identical.

    3.3k GitHub stars~2.7k tokensUpdated today
    DevelopmentAuto-check passed

More from yangyuan-zhen/PolyWeather

All 26 skills in this repo
  • Analyze

    yangyuan-zhen/PolyWeather

    [OMX] Run read-only deep repository analysis and return a ranked synthesis with explicit confidence, concrete file references, and clear evidence-vs-inference boundaries.

    316 GitHub stars~1.6k tokensUpdated 20 days ago
    Auto-check passed
  • Autoresearch

    yangyuan-zhen/PolyWeather

    [OMX] Stateful validator-gated research loop with native-hook persistence

    316 GitHub stars~786 tokensUpdated 20 days ago
    Auto-check passed
  • Best Practice Research

    yangyuan-zhen/PolyWeather

    [OMX] Bounded best-practice research wrapper using official/upstream evidence first

    316 GitHub stars~1.4k tokensUpdated 20 days ago
    Auto-check passed
  • Cancel

    yangyuan-zhen/PolyWeather

    [OMX] Cancel any active OMX mode (autopilot, ralph, ultrawork, ecomode, ultraqa, swarm, ultrapilot, pipeline, team)

    316 GitHub stars~3.7k tokensUpdated 20 days ago
    Auto-check passed
  • Configure Notifications

    yangyuan-zhen/PolyWeather

    [OMX] Configure OMX notifications - unified entry point for all platforms

    316 GitHub stars~2.7k tokensUpdated 20 days ago
    Auto-check passed
  • Design

    yangyuan-zhen/PolyWeather

    [OMX] Canonical repo-local DESIGN.md workflow for product, UI/UX, and frontend decision source of truth

    316 GitHub stars~1.8k tokensUpdated 20 days ago
    Auto-check passed

Questions about AI Slop Cleaner

What does AI Slop Cleaner do?

[OMX] Run an anti-slop cleanup/refactor/deslop workflow. An agent skill from yangyuan-zhen/PolyWeather. AI Slop Cleaner is an agent skill from yangyuan-zhen/PolyWeather.

When should I use AI Slop Cleaner?

AI Slop Cleaner fits situations like: tasks that involve Humanizing AI text; tasks that involve Refactoring.

How do I install AI Slop Cleaner in Claude Code?

Run `npx skills add yangyuan-zhen/PolyWeather --skill ai-slop-cleaner -a claude-code`. Or copy the skill folder (.codex/skills/ai-slop-cleaner in yangyuan-zhen/PolyWeather) into .claude/skills/ai-slop-cleaner in your project. Claude Code loads it when a task matches its description.

How do I install AI Slop Cleaner in Codex?

Run `npx skills add yangyuan-zhen/PolyWeather --skill ai-slop-cleaner -a codex`. Or copy the skill folder (.codex/skills/ai-slop-cleaner in yangyuan-zhen/PolyWeather) into .agents/skills/ai-slop-cleaner in your project. Codex loads it when a task matches its description.

Can I use AI Slop Cleaner in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yangyuan-zhen/PolyWeather --skill ai-slop-cleaner -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ai-slop-cleaner, .gemini/skills/ai-slop-cleaner, .github/skills/ai-slop-cleaner and .opencode/skills/ai-slop-cleaner in your project.

What does AI Slop Cleaner need to run?

SKILL.md names no scripts, command-line tools or credentials: AI Slop Cleaner is instructions for the agent only.

Does AI Slop Cleaner access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is AI Slop Cleaner safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does AI Slop Cleaner use?

AI Slop Cleaner is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does AI Slop Cleaner use?

About 2.2k tokens (SKILL.md is roughly 8.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to AI Slop Cleaner?

Skills that share tags, products or a category with AI Slop Cleaner: Deslop (MrZoyo/deslop-GPT, 138 stars), Prism Maintain (irfndi/prism-liquidity-agent, 124 stars), Deslop (sanity-io/sanity, 6.4k stars) and Deslop (millionco/react-doctor, 15k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains AI Slop Cleaner?

yangyuan-zhen (a GitHub user) maintains it in yangyuan-zhen/PolyWeather, which has 316 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on September 20, 2026.

Source: yangyuan-zhen/PolyWeather on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.