ai-slop-cleaner
O que ela faz
Esta skill guia um agente na limpeza de código que parece cheio de ruído, repetido ou complicado demais, mantendo o mesmo comportamento. É para quem quer um código mais enxuto depois que uma ferramenta de IA escreveu muito dele.
Quando usar
- ✓Quando o código funciona, mas parece inchado, repetitivo ou complicado demais depois de mudanças feitas por IA.
- ✓Quando você quer uma passada de limpeza que remova lógica duplicada e código morto.
- ✓Quando você só quer uma revisão do código em busca de problemas de limpeza, sem nenhuma mudança.
Link da skill
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/ai-slop-cleaner/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Este código funciona, mas foi escrito por uma IA e parece inchado. Você pode limpá-lo sem mudar o que ele faz?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente escreve um plano curto de limpeza, adiciona testes para fixar o comportamento atual e depois remove ou une o código passo a passo. Prefere apagar código a adicionar código novo.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
AI Slop Cleaner
Use this skill to clean AI-generated code slop without drifting scope or changing intended behavior. In OMC, 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
OMC 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:
oh-my-claudecode: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
Perguntas frequentes
A limpeza vai mudar o comportamento do app?
Ela é feita para não mudar. O agente adiciona testes de regressão primeiro e mantém o comportamento igual, a menos que você peça uma mudança.
Ele pode revisar o código sem editá-lo?
Sim. Um modo somente de revisão aponta problemas de limpeza sem alterar nenhum arquivo.
Isto serve para criar novas funcionalidades?
Não. Serve para simplificar código existente, e não para entregar novas funcionalidades do produto.
Detalhes
Descrição original do autor
Clean AI-generated code slop with a regression-safe, deletion-first workflow and optional reviewer-only mode
Popularidade
- Estrelas no GitHub
- 41 mil
- Posição no ranking
- #6990
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
agent-doc-discipline
41 milEnsina seu agente a escrever instruções que outros agentes de IA possam seguir por conta própria, com regras que podem ser verificadas e um motivo claro por trás de cada uma.
architecture-survey
41 milAjuda seu agente a revisar a estrutura de uma base de código e listar as partes que estão ficando difíceis de mudar, com evidências, sem alterar nada por conta própria.
ask-navigator
41 milAjuda seu agente a transformar um projeto vago em um mapa de perguntas de decisão claras, e depois resolvê-las uma a uma até o caminho ficar claro.
ask
41 milAjuda seu agente a enviar uma pergunta ou tarefa para outra ferramenta de IA, como Codex, Gemini ou Claude, e salvar a resposta em um arquivo.
Skills parecidas
diffs
394 milPermite que seu agente gere um diff real e compartilhável das edições, como link de visualização ou arquivo de imagem, em vez de um resumo escrito à mão.
coding-agent
394 milAjuda seu agente a passar um trabalho grande de programação para o Codex, Claude Code ou OpenCode em segundo plano e acompanhar o andamento.
gh-issues
394 milAjuda seu agente a encontrar issues do GitHub, escolher quais resolver e abrir pull requests com correções, acompanhando os comentários de revisão.