antislop-code
O que ela faz
Filtra comentários de código que soam como escrita genérica de IA, como banners decorativos ou comentários que repetem o código, e mantém os que trazem informação real. É para desenvolvedores que querem comentários de código mais limpos.
Quando usar
- ✓Quando um desenvolvedor pede a um agente de IA que escreva ou edite comentários de código em um projeto.
- ✓Quando um desenvolvedor quer banners decorativos ou comentários óbvios removidos do código.
- ✓Quando um desenvolvedor quer manter apenas os comentários que dão informação real ao leitor.
Link da skill
https://github.com/miqdadbadjuber/anti-slop/blob/main/skills/antislop-code/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
“Por favor, limpe os comentários deste arquivo. Remova o enchimento e mantenha as anotações úteis.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill verifica cada comentário quanto a ter uma finalidade real e depois remove os decorativos, repetitivos ou barulhentos. Ela só altera comentários, nunca o código executável.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
antislop-code
Anti Slop: Rules for AI Coding Agents. Code Comments skill
Part of the antislop system. Read together with
antislop.md(the core). This skill filters comments that read as generically AI (decorative, restating the obvious, stiff, loud) while preserving the comments that carry real information. It references core rules by number and never duplicates or renumbers them. Load it when the task writes or edits code comments.
How to use this skill
- Load together with
antislop.mdwhenever the task touches code comments. The core holds the mechanism (the purpose test, the three tiers, the Delivery Gate); this skill holds comment-specific depth. - Every entry has the same shape: Tell (the pattern), Why (why it reads as slop), Fix (what to do instead), with the governing core rule cited as R-XX.
- Scope guardrail: this skill only modifies comments. Never modify executable code, identifiers, imports, formatting, indentation, whitespace, control flow, or logic. When in doubt, leave the code untouched.
- The Delivery Gate in the core remains the gate. The "Code Comment Checklist" at the end of this file is the comment-specific supplement to run alongside it.
Comments That Add Nothing
Decorative Separators
- Tell: banner comments built from repeated characters, ALL CAPS labels, or box drawing around a section name:
// =======================aroundAuthentication,// -------- WORKFLOW --------, or a/* ---- ROUTES ---- */header. - Why: the decoration is the message. A label wrapped in
=or-signals "AI made this" without adding information, and ALL CAPS reads as shouting. - Fix: replace with a single plain line, or remove entirely if the label adds nothing (R-31).
Restating the Obvious
- Tell: a comment that repeats what the next line or declaration already shows, like
// Initialize the variableabovelet count = 0,// User classaboveclass User {},// Validate userabovefunction validateUser(), orconst userAge = 25; // User age is 25. - Why: it doubles the reading load without adding anything. The code already says it; the comment just repeats it.
- Fix: remove and leave the line of code alone.
Workflow Narration
- Tell: comments that narrate the flow step by step, like
// Step 1: Validate input,// Step 2: Process request,// Step 3: Return response, or// First...,// Next...,// Finally.... - Why: the control flow is visible in the code itself. Numbering it reads as a checklist, not an explanation.
- Fix: remove. If the flow is genuinely hard to follow, that is a structure problem, not a missing comment problem.
Empty Labels
- Tell: generic labels with no information behind them:
// Main logic,// Core logic,// Business logic,// Helper function,// Entry point,// Error handling, or// Note: This is important./// Important: Please read. - Why: the label names a category, not a fact. "Main logic" tells the reader nothing they could not infer from the code.
- Fix: remove unless the label carries specific information. "Note: retries happen only on 5xx" earns its place; "Note: this is important" does not.
Vague Placeholders
- Tell: comments that promise future work without saying what:
// TODO: Improve this,// Future improvements,// Additional optimization can be added here,// Add more validation. - Why: a vague TODO is noise. It names a feeling (this could be better) instead of a task (what, and why).
- Fix: remove. Keep a TODO only when it names a specific task with enough context to act on.
Signature Echo
- Tell: documentation that only restates the signature, like a JSDoc block that repeats
@param price The price.and@returns Total price.for a function whose name and parameters already say all of it. - Why: docs that echo the signature add length, not understanding. The reader learns nothing new.
- Fix: simplify or remove the echo. Keep documentation that explains business rules, edge cases, assumptions, algorithms, limitations, side effects, API behavior, or security implications. Never strip real documentation.
Decorative Emoji
- Tell: emoji used as decoration in comments, like
// ✅ Validationor// 🚀 Performance. - Why: emoji is visual noise in code, and the specific set (✅, 🚀, 🔒) is the AI default vocabulary.
- Fix: replace with plain English, or remove if the lab
Perguntas frequentes
Ela vai mudar meu código?
Não. A skill diz que só edita comentários e deixa código, nomes, imports e formatação intactos.
Preciso dos arquivos centrais do antislop?
Sim. A skill foi feita para ser usada com o arquivo principal do antislop, que guarda as regras compartilhadas.
Quais comentários ela mantém?
Mantém os comentários que trazem informação real para o leitor e remove os que não acrescentam nada.
Detalhes
Descrição original do autor
Code comment hygiene for AI coding agents: remove generic AI-slop comments, keep the valuable ones, never touch the code.
repo: miqdadbadjuber/anti-slop
Popularidade
- Estrelas no GitHub
- 8,0 mil
- Posição no ranking
- #12648
- Licença
- MIT
- Atualizada em
- 01/11/2026
Comentários
- …
Mais skills deste repositório
antislop-copywriting
8,0 milAjuda seu agente a escrever e editar textos de marketing, títulos e chamadas para ação em linguagem simples e humana, evitando padrões comuns de escrita de IA e fatos inventados.
antislop-human
8,0 milAjuda seu agente a criar interfaces que funcionam para pessoas reais, com contraste legível, uso pelo teclado, foco visível e estados claros.
antislop-layoutmobile
8,0 milAjuda seu agente a criar layouts que se reorganizam bem do celular ao computador, com grades bem definidas, sem rolagem lateral e alvos de toque fáceis de acertar.
antislop-ui
8,0 milAjuda seu agente a criar interfaces com aparência elaborada, e não genérica, com uma paleta de cores pensada, layout real e animações que tenham uma função.
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.