Agent skill

Antislop Code

by miqdadbadjuber in miqdadbadjuber/anti-slop

Code comment hygiene for AI coding agents: remove generic AI-slop comments, keep the valuable ones, never touch the code.

MITAuto-check passedWriting & Content

Install Antislop Code

skills CLI
$ npx skills add miqdadbadjuber/anti-slop --skill antislop-code -a claude-code

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

GitHub CLI
$ gh skill install miqdadbadjuber/anti-slop antislop-code --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/miqdadbadjuber/anti-slop.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/antislop-code .claude/skills/antislop-code && 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
antislop-code
GitHub stars
4.8k
Token cost
~2.2k tokens
SKILL.md length
1,290 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Code comment hygiene for AI coding agents: remove generic AI-slop comments, keep the valuable ones, never touch the code.

  • Tasks that involve Technical documentation
  • SKILL.md covers How to use this skill, Comments That Add Nothing, How It Should Read and Not a Ban (preserve these), plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Antislop Code is an agent skill from miqdadbadjuber/anti-slop. Code comment hygiene for AI coding agents: remove generic AI-slop comments, keep the valuable ones, never touch the code.

Its SKILL.md is about 2.2k 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 Writing & Content, covering Technical documentation. The repository describes itself as: Rules for an AI coding agent to filter out generic AI-generated UI designs, text, and code. The licence is MIT.

When your agent uses it

  • Tasks that involve Technical documentation

Example prompts

  • “/antislop-code”

Requirements

  • Pre-approved tools (allowed-tools): Read, Write, Edit, Glob, Grep

What it can do on your machine

Read from SKILL.md and the folder at commit 388cbe3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).

    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

Antislop Code loads about 2.2k tokens when it runs. Until then it costs about 34 tokens; SKILL.md has 1,290 words of instructions outside code blocks.

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

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

The full file from miqdadbadjuber/anti-slop at commit 388cbe3, republished under its MIT licence (© miqdadbadjuber). 1,290 words, ~2,234 tokens.

Download SKILL.mdSave it as .claude/skills/antislop-code/SKILL.md (or your agent's skills folder).
name
antislop-code
description
Code comment hygiene for AI coding agents: remove generic AI-slop comments, keep the valuable ones, never touch the code.
allowed-tools
Read, Write, Edit, Glob, Grep

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.
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 // ✅ Validation or // 🚀 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 label adds nothing.
End Markers
  • Tell: comments that only mark the end of a block, like } // end if, # End of function, or // End processOrder.
  • Why: the closing brace already ends the block. The marker exists out of habit, not need.
  • Fix: remove. In the rare case an end marker genuinely helps a long file, keep it only where it prevents confusion, not as a habit.

How It Should Read

Show full SKILL.md (576 more words)Show less
The Over-Explained Comment
  • Tell: one comment that runs on for several lines, stacking reasons, context, and history around a fact that fits in one line: a four-line block explaining that a stub sits on PATH, which release introduced the workaround, and what broke before it. Every sentence is true. The length is the tell.
  • Why: a person leaves a note, a generator writes a case. Padding a one-line fact into a paragraph, building a "because X, so Y, and therefore Z" chain, or citing the issue number and the version that fixed it are the same flourish as any other AI pattern, and they bury the one line that matters under the ones that do not.
  • Fix: cut to the constraint alone: one line, two at most, never three. Keep the platform trap, the silent failure, the protocol rule, the performance cost. Drop the issue number, the version history, and the reasoning chain.
Line-by-Line Narration
  • Tell: a comment on every trivial statement, narrating each line as it is written: // Initialize count, then // Loop items, then // Get item, then // Increment, then // Return result.
  • Why: when every line is commented, none of the comments matter. The reader has to check each one to find the one that carries meaning.
  • Fix: write one concise comment per logical block instead of one per line. If the block needs no comment, write none.
Stiff or Loud Wording
  • Tell: comments that sound formal, long, or shout: "This function is responsible for validating whether the supplied credentials are valid before continuing with the authentication process", or // MAIN LOGIC in caps.
  • Why: formal and loud wording reads as generated, not as an engineer leaving a note for the next person.
  • Fix: write short, sentence-case lines in a natural developer voice: // Validate credentials before issuing a token. Good comments explain why, not what, and they stay short.

Not a Ban (preserve these)

Never remove comments that explain:

  • business logic and intent
  • architectural decisions
  • security considerations
  • performance trade-offs
  • concurrency behavior
  • protocol details
  • API contracts
  • workarounds
  • edge cases and assumptions
  • licensing and legal notices

Example that must stay:

js
// Stripe may retry webhook deliveries for up to three days.
// Ignore duplicate events using the event ID.

A comment earns its place when it explains something the code does not already show: the reason, the constraint, the non-obvious behavior.

Earning a place says what may stay, never how long it may run. A workaround note is one line about the workaround, not a paragraph about it. The example above is two lines because two facts are real, not because two lines is a target. This list is the most common reason a comment survives a review it should not: the content is legitimately valuable, so the length goes unexamined. Value is not length.

Code Comment Checklist

Run these alongside the core Delivery Gate when the task touches comments. All answers must be yes:

  • Does every comment add information the code does not already show? (R-31)
  • Do the comments avoid decorative separators, ALL CAPS banners, and box-drawn headers?
  • Do the comments avoid restating the obvious line, declaration, or signature?
  • Do the comments avoid step-by-step workflow narration?
  • Do the comments avoid empty labels and vague TODOs that name no task?
  • Do the comments avoid decorative emoji and end markers?
  • Is the comment density one per logical block, not one per line?
  • Is every comment one line, or two only when the second carries a new fact?
  • Do the remaining comments read short, natural, and in sentence case?
  • Is the scope guardrail held: only comments changed, the code untouched?

© miqdadbadjuber, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/antislop-code of miqdadbadjuber/anti-slop.

Open the folder on GitHubat commit 388cbe3

Compare with similar skills

Antislop Code 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.

Antislop Code compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Antislop Code this skillmiqdadbadjuber/anti-slop4.8k—~2.2kAutomated safety check: PassMIT
Beads Documentation Style Guidegastownhall/beads28k—~3.2kAutomated safety check: PassMIT
Technical Writing Standardcursor/plugins10k10 repos~2.4kAutomated safety check: PassNone
Heym Documentation Articlesheymrun/heym1.4k—~780Automated safety check: PassCustom licence
Developer Docs Technical Writervercel-labs/github-tools131—~3.9kAutomated safety check: PassMIT
Aholo Viewer Docsmanycoretech/aholo-viewer1.1k—~341Automated safety check: PassMIT

Similar skills

  • Sets the house style for the beads user docs: the canonical concept model, required terminology, prose and diagram conventions, and checks before docs work is done.

    28k GitHub stars~3.2k tokensUpdated today
    Writing & ContentAuto-check passed
  • Official

    Applies four layers of technical-writing rules to docs, RFCs, readmes, PR descriptions and commit messages so a tired engineer follows them on the first read.

    10k GitHub starsUsed in 10 repos~2.4k tokens
    Writing & ContentAuto-check passed
  • Creates and updates documentation articles for the Heym platform: category choice, manifest entry, markdown file and cross-links from existing pages.

    1.4k GitHub stars~780 tokensUpdated today
    Writing & ContentAuto-check passed
  • Developer Docs Technical Writer

    vercel-labs/github-tools

    Official

    Writes, reviews and edits developer documentation for SDKs, libraries and frameworks, from getting-started guides and API references to migration guides.

    131 GitHub stars~3.9k tokensUpdated today
    Writing & ContentAuto-check passed
  • Aholo Viewer Docs

    manycoretech/aholo-viewer

    Guides writing and maintaining Aholo Viewer documentation: README, AGENTS.md, architecture notes, bilingual manual pages and AI collaboration guides.

    1.1k GitHub stars~341 tokensUpdated today
    Writing & ContentAuto-check passed
  • Grammar Check

    ethereum/execution-specs

    Audit grammar in documentation and code comments. An agent skill from ethereum/execution-specs.

    1.2k GitHub stars~424 tokensUpdated today
    Writing & ContentAuto-check passed

More from miqdadbadjuber/anti-slop

  • Antislop Layoutmobile

    miqdadbadjuber/anti-slop

    Mobile layout skill for antislop. An agent skill from miqdadbadjuber/anti-slop.

    4.8k GitHub starsUsed in 1 repo~4.1k tokens
    Auto-check passed
  • Antislop Human

    miqdadbadjuber/anti-slop

    Human and accessibility skill for antislop. An agent skill from miqdadbadjuber/anti-slop.

    4.8k GitHub stars~2.8k tokensUpdated 3 days ago
    Auto-check passed
  • Antislop

    miqdadbadjuber/anti-slop

    Anti Slop: Rules for AI Coding Agents. An agent skill from miqdadbadjuber/anti-slop.

    4.8k GitHub stars~14k tokensUpdated 3 days ago
    Auto-check passed
  • Antislop Copywriting

    miqdadbadjuber/anti-slop

    Copy and text skill for antislop. An agent skill from miqdadbadjuber/anti-slop.

    4.8k GitHub stars~6.3k tokensUpdated 3 days ago
    Auto-check passed
  • Antislop UI

    miqdadbadjuber/anti-slop

    UI and visual skill for antislop. An agent skill from miqdadbadjuber/anti-slop.

    4.8k GitHub stars~6.7k tokensUpdated 3 days ago
    Auto-check passed

Questions about Antislop Code

What does Antislop Code do?

Code comment hygiene for AI coding agents: remove generic AI-slop comments, keep the valuable ones, never touch the code. Antislop Code is an agent skill from miqdadbadjuber/anti-slop. Code comment hygiene for AI coding agents: remove generic AI-slop comments, keep the valuable ones, never touch the code.

When should I use Antislop Code?

Antislop Code fits situations like: tasks that involve Technical documentation.

How do I install Antislop Code in Claude Code?

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

How do I install Antislop Code in Codex?

Run `npx skills add miqdadbadjuber/anti-slop --skill antislop-code -a codex`. Or copy the skill folder (skills/antislop-code in miqdadbadjuber/anti-slop) into .agents/skills/antislop-code in your project. Codex loads it when a task matches its description.

Can I use Antislop Code 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 miqdadbadjuber/anti-slop --skill antislop-code -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/antislop-code, .gemini/skills/antislop-code, .github/skills/antislop-code and .opencode/skills/antislop-code in your project.

What does Antislop Code need to run?

SKILL.md names no scripts, command-line tools or credentials: Antislop Code is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Write, Edit, Glob, Grep.

Does Antislop Code 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 Antislop Code 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 Antislop Code use?

Antislop Code is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Antislop Code use?

About 2.2k tokens (SKILL.md is roughly 8.9k 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 Antislop Code?

Skills that share tags, products or a category with Antislop Code: Beads Documentation Style Guide (gastownhall/beads, 28k stars), Technical Writing Standard (cursor/plugins, 10k stars), Heym Documentation Articles (heymrun/heym, 1.4k stars) and Developer Docs Technical Writer (vercel-labs/github-tools, 131 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Antislop Code?

miqdadbadjuber (a GitHub user) maintains it in miqdadbadjuber/anti-slop, which has 4,833 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 4, 2026.

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