Anti-Slop: A 40-Rule Filter for AI Coding Agents

October 7, 2026

|repo-review

by Florian Narr

Anti-Slop: A 40-Rule Filter for AI Coding Agents

anti-slop is a rulebook for AI coding agents. It has 40 numbered rules against generic UI, generic copy and AI-shaped code comments, packaged as six skills plus a small contrast checker. There is almost no application code in it. The product is prose, and the engineering is in how that prose gets loaded and enforced.

Why I starred it

Everyone who has asked an agent for a landing page knows the output: the sparkle logo, the "NEXT-GEN" pill, the three pricing tiers with the middle one highlighted, "10K+ users" that nobody counted. Most attempts at fixing this are a style guide in the system prompt. This repo takes a different position, stated in the README: it is "a filter, not a style guide". No colors, fonts or layouts are prescribed. Direction comes from a DESIGN.md you write yourself, and the README shows the four combinations (neither, rules only, direction only, both) as screenshots.

I'm reviewing the rules as engineering artifacts, not judging the screenshots.

How it works

Three tiers. antislop.md Part 2 splits the 40 rules by what a violation costs. Hard Gate rules are absolute. Purpose-Gate rules allow a technique if you write down what it serves. Quality Locks are consistency checks. The same split drives the audit mode: a finding's priority is its tier, so Hard Gate is HIGH, Purpose-Gate is MEDIUM, Quality Locks is LOW.

The Hard Gate rules are written as checkable statements, not taste. R-23 (antislop.md:308) is a good example:

#### R-23 — Clarification & Visual Assets

- **REQUIRED**: before creating any asset without explicit instructions, ask or use a clear placeholder
...
- If asking is not possible (rapid prototyping, limited context): use clear placeholders and do not disguise them as final
  - Logo: product name as text in an appropriate typeface, or the marker `[LOGO]`
  - Statistics: not displayed, or marked `[REAL DATA]`

That is a rule with a fallback path, which is what makes it enforceable. An agent that cannot ask still has a defined behavior.

Mandatory evidence. The Delivery Gate (antislop.md:665) is the part I'd copy. Every item is a yes/no question, and the report must back each PASS with evidence:

Output its status with your deliverable as a PASS/FAIL report: one line per item, and every PASS
backed by concrete evidence (e.g. "R-26 PASS: every button has a real href or onClick; no dead controls")

"I checked" is not accepted. The gate also says it "cannot be delegated or replaced": if another workflow is leading the session, its own wrap-up does not stand in for the report. That clause is written against a real failure, a planning skill declaring victory before the checks ran.

Loading. This is the structural decision. The core file is about 9,900 words, and the six skills together are roughly 29,000. Loading all of that every session would be wasteful, so rules/antislop.md is a 140-word stub that acts as a router:

- Core filter, always on: skills/antislop/SKILL.md
- UI / visual: skills/antislop-ui/SKILL.md
- Copy & text: skills/antislop-copywriting/SKILL.md
- People: skills/antislop-human/SKILL.md
- Mobile / responsive: skills/antislop-layoutmobile/SKILL.md
- Code comments: skills/antislop-code/SKILL.md

Each skill's frontmatter description ends with "Load with the core.", so the agent's skill matcher pulls the relevant ones. The core uses the same trick the other way: skills/antislop-code/SKILL.md references core rules by number (R-31) and says it "never duplicates or renumbers them". Stable IDs are what let six files act as one rulebook.

One source, many doors. There are plugin manifests for Claude Code, Codex, Cursor, Kimi, Qoder, Cline and Oh My Pi, and cli/lib/install.mjs carries an AGENTS table mapping each agent to its skills directory and entry file (CLAUDE.md, AGENTS.md, GEMINI.md). The comments in that table are the useful part: Codex reads .agents/skills but calls its own folder deprecated, Cline lets a global skill outrank a project one, the reverse of every other row. Someone has actually tested these collisions.

cli/scripts/sync-skills.mjs generates the core SKILL.md by prepending frontmatter to antislop.md. The root file is the source of truth, and scripts/check-repo.mjs (463 lines) fails CI when manifests, versions or the generated index drift.

The one executable piece. skills/antislop-human/contrast-mcp.py is a stdio MCP server exposing check_contrast(foreground, background). It implements the WCAG luminance formula directly, and one comment shows care:

# The threshold is read from the raw ratio: 4.498:1 fails 4.5:1 even though it
# displays as 4.50 once rounded, and a rounded verdict would report the opposite.
ratio = contrast_ratio(fg, bg)

It also rejects 8-digit hex, so #00000080 cannot pass as opaque black. CI recomputes every row of the contrast table in the docs against the formula. That is more rigor than most color tooling gets.

Using it

npx antislop-ai              # interactive installer
npx antislop-ai --update     # replace every antislop folder it finds
npx antislop-ai --mode during   # save a default usage mode

On first use the agent asks whether to apply the rules DURING work or AFTER, as an audit. After mode writes numbered findings to anti-slop/audit-001-YYYY-MM-DD.md and touches nothing until you approve specific numbers. I did not install it or run it against an agent. I read the files only.

Rough edges

  • Size. The core is the biggest file in the repo. A model loading all of skills/antislop/SKILL.md spends a lot of context on rules before it writes a line. The split into skills helps, but the core is always on.
  • Compliance is self-reported. The PASS/FAIL report is generated by the same model that produced the work. Evidence requirements raise the cost of lying, they don't prevent it. The only machine-checked rule I found is contrast. There is no eval suite that measures whether output improves, and the before/after images are single runs.
  • Mode ceremony. Resolving the usage mode takes an ordered precedence list (session answer, then settings.json, then ask) and a required announcement string. Careful, but it is a lot of protocol for a prompt.
  • Mixed rules. Some rules are objective (R-25 contrast, R-02 no em dashes). Others, like "liveliness", depend on the model's judgment, which is the thing the repo is trying to correct.
  • Git history. I took a shallow clone and used the API for activity. It shows community PRs (#70, #72) landing on 2026-11-26 as part of the v3.2.33 release. The roadmap lists /antislop-pixel for v4.0.0.

Bottom line

If you run agents that generate UI, the router-plus-stable-IDs structure and the evidence-required delivery gate are worth stealing, even if you don't adopt the rules. Treat the rules themselves as a strong starting checklist you will want to prune, and measure the result against your own prompts.

miqdadbadjuber/anti-slop on GitHub
miqdadbadjuber/anti-slop