antislop-code

antislop-code is a skill for Claude Code from miqdadbadjuber/anti-slop. It costs 30 tokens per session (1,717 once invoked), scanned A, original, MIT.

Rules for cleaning comments written by AI coding agents while leaving the program itself unchanged.

In plain words
What is it for?
Use it when reviewing or editing code comments to make them clearer, more relevant, and less repetitive.
Why use it?
It removes comments that merely restate obvious code or use generic wording, while keeping comments that explain useful information.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the antislop plugin — 6 skills shipped together

Good fit Use it when reviewing or editing code comments to make them clearer, more relevant, and less repetitive.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/miqdadbadjuber/anti-slop/antislop-code
About the project

anti-slop is a set of rules and skills that coding agents use to avoid generic AI-generated interfaces, copy, and code. It is intended for people building pages or writing and reviewing text with an agent, while a user-provided DESIGN.md supplies the visual direction. The catalogue entries package these rules as agent skills and a plugin.

miqdadbadjuber/anti-slop · 1,870 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add miqdadbadjuber/anti-slop --skill antislop-code
Clone the repo
git clone --depth 1 https://github.com/miqdadbadjuber/anti-slop

Made for: Claude Code.

Or install antislop, the plugin that ships this one along with the rest of its 6 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for antislop-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/miqdadbadjuber/anti-slop/antislop-code/github.svg)](https://agentmods.dev/skills/miqdadbadjuber/anti-slop/antislop-code)
Your own site
<a href="https://agentmods.dev/skills/miqdadbadjuber/anti-slop/antislop-code"><img src="https://agentmods.dev/badge/skills/miqdadbadjuber/anti-slop/antislop-code/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for antislop-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/miqdadbadjuber/anti-slop/antislop-code"><img src="https://agentmods.dev/badge/skills/miqdadbadjuber/anti-slop/antislop-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,717 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 20 Aug 2026
  • Snyk pass 20 Aug 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.01717
Opus 5 $0.00015 $0.00859
Sonnet 5 $0.00006 $0.00343
Haiku 4.5 $0.00003 $0.00172

Measured 10d ago against content hash b51a389ce089, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

antislop-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/antislop-code/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on 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.md whenever 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: // ======================= around Authentication, // -------- 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 variable above let count = 0, // User class above class User {}, // Validate user above function validateUser(), or const 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.

Read the full file on GitHub · 120 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 120 lines · 30 tokens per session scan A b51a389ce089

Subscribe to this mod's changes

antislop-code is a skill published in the GitHub repository miqdadbadjuber/anti-slop (1,870 stars, last pushed 2d ago), licensed MIT. It adds 30 tokens to every session and 1,717 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.