Agent skill

Clean AI Slop

by tmdgusya in tmdgusya/engineering-discipline

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

No licenceAuto-check passedDevelopment

Install Clean AI Slop

skills CLI
$ npx skills add tmdgusya/engineering-discipline --skill clean-ai-slop -a claude-code

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

GitHub CLI
$ gh skill install tmdgusya/engineering-discipline clean-ai-slop --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/tmdgusya/engineering-discipline.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/clean-ai-slop .claude/skills/clean-ai-slop && 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
clean-ai-slop
GitHub stars
125
Token cost
~1.9k tokens
SKILL.md length
976 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
None found

At a glance

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

  • Works in 5 steps: Lock behavior before cleaning. Run… → One smell category per pass. Do not mix… → Run tests after every pass. If tests… → …
  • The user says deslop
  • SKILL.md covers Hard Gates, When To Use, When NOT To Use and Smell Categories, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Clean AI Slop is an agent skill from tmdgusya/engineering-discipline. Corrective cleanup of AI-generated code — removes LLM-specific patterns while preserving behavior. Use when the user says "deslop", "slop", "clean AI code", "remove AI patterns", or when you spot LLM-generated code smells after any generation session. For general post-change review and fixes ("clean up", "simplify"), use the simplify skill instead.

Its SKILL.md is about 1.9k 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 Development, covering Refactoring and Humanizing AI text. The repository describes itself as: SKILL for engineering-discipline.

When your agent uses it

  • The user says deslop
  • Remove AI patterns
  • You spot LLM-generated code smells after any generation session

Example prompts

  • “deslop”
  • “clean AI code”
  • “remove AI patterns”
  • “/clean-ai-slop”

Workflow steps

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

  1. Lock behavior before cleaning. Run existing tests. If coverage is insufficient, add regression tests for the code you're about to touch…
  2. One smell category per pass. Do not mix dead code removal with naming fixes. Complete one pass, verify, then start the next.
  3. Run tests after every pass. If tests fail, revert the pass and investigate. Do not proceed to the next category.
  4. Stay in scope. Only touch files that were generated or modified by AI. Do not expand into "nearby" code that looks like it could use…
  5. Preserve behavior exactly. If a cleanup changes observable behavior — even if you think the new behavior is "better" — revert it. Behavior…

What it can do on your machine

Read from SKILL.md and the folder at commit 137dead. 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

Clean AI Slop loads about 1.9k tokens when it runs. Until then it costs about 91 tokens; SKILL.md has 976 words of instructions outside code blocks.

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

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 976 words (~1,877 tokens).

“A corrective discipline for cleaning AI-generated code. Runs after code generation — whether from run-plan, a manual session, or any other source.”

— opening of SKILL.md by tmdgusya
name
clean-ai-slop

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/clean-ai-slop of tmdgusya/engineering-discipline.

Open the folder on GitHubat commit 137dead

Compare with similar skills

Clean AI Slop 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.

Clean AI Slop compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Clean AI Slop this skilltmdgusya/engineering-discipline125—~1.9kAutomated safety check: PassNone
Deslopmillionco/react-doctor15k—~1.2kAutomated safety check: PassCustom licence
Omh AI Slop Cleanerrlaope/oh-my-hermes3.3k—~2.7kAutomated safety check: PassMIT
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

Similar skills

  • Deslop

    millionco/react-doctor

    Simplify and refine recently modified code while preserving functionality.

    15k GitHub stars~1.2k tokensUpdated today
    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
  • 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
  • Unslop Text

    JCarterJohnson/vibecoded-design-tells

    Strips the cues that make prose read as AI-generated and forces a deliberate human voice instead of the model's default register.

    513 GitHub stars~3.5k tokensUpdated 3 mo ago
    DevelopmentAuto-check passed

More from tmdgusya/engineering-discipline

All 11 skills in this repo
  • Clarification

    tmdgusya/engineering-discipline

    A skill your agent uses when a user's request is vague, ambiguous, or underspecified.

    125 GitHub stars~3.4k tokensUpdated 3 mo ago
    Auto-check passed
  • Karpathy

    tmdgusya/engineering-discipline

    Behavioral guardrails to prevent common LLM coding mistakes — enforces surgical changes, assumption verification, and scope discipline before and during implementation.

    125 GitHub stars~2k tokensUpdated 3 mo ago
    Auto-check passed
  • Plan Crafting

    tmdgusya/engineering-discipline

    A skill your agent uses when a task's scope is clear and multi-step implementation is needed, before touching code.

    125 GitHub stars~4k tokensUpdated 3 mo ago
    Auto-check passed
  • Review Work

    tmdgusya/engineering-discipline

    Use after run-plan completes to independently verify the implementation.

    125 GitHub stars~2.5k tokensUpdated 3 mo ago
    Auto-check passed
  • Run Plan

    tmdgusya/engineering-discipline

    A skill your agent uses when you have a written implementation plan to execute.

    125 GitHub stars~4.6k tokensUpdated 3 mo ago
    Auto-check passed
  • Systematic Debugging

    tmdgusya/engineering-discipline

    A skill your agent uses when encountering any bug, test failure, or unexpected behavior.

    125 GitHub stars~2k tokensUpdated 3 mo ago
    Auto-check passed

Questions about Clean AI Slop

What does Clean AI Slop do?

Corrective cleanup of AI-generated code — removes LLM-specific patterns while preserving behavior. Clean AI Slop is an agent skill from tmdgusya/engineering-discipline. Corrective cleanup of AI-generated code — removes LLM-specific patterns while preserving behavior.

When should I use Clean AI Slop?

Clean AI Slop fits situations like: the user says deslop; remove AI patterns; you spot LLM-generated code smells after any generation session.

How do I install Clean AI Slop in Claude Code?

Run `npx skills add tmdgusya/engineering-discipline --skill clean-ai-slop -a claude-code`. Or copy the skill folder (skills/clean-ai-slop in tmdgusya/engineering-discipline) into .claude/skills/clean-ai-slop in your project. Claude Code loads it when a task matches its description.

How do I install Clean AI Slop in Codex?

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

Can I use Clean AI Slop 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 tmdgusya/engineering-discipline --skill clean-ai-slop -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/clean-ai-slop, .gemini/skills/clean-ai-slop, .github/skills/clean-ai-slop and .opencode/skills/clean-ai-slop in your project.

What does Clean AI Slop need to run?

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

Does Clean AI Slop 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 Clean AI Slop 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 Clean AI Slop use?

No licence was found for Clean AI Slop or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Clean AI Slop use?

About 1.9k tokens (SKILL.md is roughly 7.5k 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 Clean AI Slop?

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

Who maintains Clean AI Slop?

tmdgusya (a GitHub user) maintains it in tmdgusya/engineering-discipline, which has 125 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on July 3, 2026.

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