antislop-code
Qué hace
Filtra los comentarios de código que suenan a escritura genérica de IA, como los banners decorativos o los comentarios que repiten el código, y conserva los que aportan información real. Es para desarrolladores que quieren comentarios de código más limpios.
Cuándo usarla
- ✓Cuando un desarrollador pide a un agente de IA que escriba o edite comentarios de código en un proyecto.
- ✓Cuando un desarrollador quiere quitar los banners decorativos o los comentarios obvios del código.
- ✓Cuando un desarrollador quiere conservar solo los comentarios que dan información real al lector.
Link de la skill
https://github.com/miqdadbadjuber/anti-slop/blob/main/skills/antislop-code/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Limpia los comentarios de este archivo. Quita el relleno y conserva las notas útiles.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La habilidad comprueba que cada comentario tenga una finalidad real y después quita los decorativos, repetitivos o llamativos. Está configurada para cambiar solo los comentarios, nunca el código ejecutable.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Cambiará mi código?
No. La habilidad indica que solo edita comentarios y deja el código, los nombres, las importaciones y el formato como están.
¿Necesita las reglas básicas de antislop?
Sí. La habilidad está pensada para usarse con el archivo principal de antislop, que contiene las reglas compartidas.
¿Qué comentarios conserva?
Conserva los comentarios que aportan información real al lector y elimina los que no añaden nada.
Detalles
Descripción original del 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
Popularidad
- Estrellas en GitHub
- 8,0 mil
- Posición en el ranking
- #12648
- Licencia
- MIT
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
antislop-copywriting
8,0 milAyuda a tu agente a escribir y editar textos de marketing, titulares y llamadas a la acción con un lenguaje sencillo y humano, evitando patrones típicos de la IA y datos inventados.
antislop-human
8,0 milAyuda a tu agente a crear interfaces que funcionen para personas reales, con buen contraste de texto, uso con teclado, foco visible y estados claros.
antislop-layoutmobile
8,0 milAyuda a tu agente a crear diseños que se adaptan bien del teléfono al escritorio, sin desbordes laterales y con botones fáciles de tocar.
antislop-ui
8,0 milAyuda a tu agente a diseñar interfaces con aspecto cuidado y no genérico, con una paleta de colores pensada, un diseño real y animaciones con propósito.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.