Antislop code

From aicodedecode/awesome-muse-skills · View interactive version

Antislop code is an AI agent skill from the GitHub repository aicodedecode/awesome-muse-skills. Code comment hygiene for AI coding agents: remove generic AI-slop comments, keep the valuable ones, never touch the code.

How to use this skill

Skill file

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

Comments That Add Nothing

Decorative Separators

Restating the Obvious

Workflow Narration

Empty Labels

Vague Placeholders

Signature Echo

Decorative Emoji

End Markers

How It Should Read

The Over-Explained Comment

Line-by-Line Narration

Stiff or Loud Wording

Not a Ban (preserve these)

Never remove comments that explain:

Example that must stay:

// 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:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.