/anti-slop:anti-slop-auditfrom Anti-slop
Audits a TypeScript/React frontend repo against ten anti-AI-slop checks (strict TS, lint rules, mutation testing, dead code, duplicates, CI gates) and produces a PR-by-PR rollout plan.
Ships in Anti-slop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill is built by Evil Martians, an American design and engineering consultancy for developer tools, AI, and cybersecurity startups.
Companion to 10 anti-AI slop moves for frontend projects going faster than humans can review by Yuri Mikhin. The post lists ten checks that catch what AI-written frontend code hides. Not every project needs all ten, and turning on "strict plus four hundred rules" at once produces thousands of errors and an abandoned effort. This skill measures which checks pay off here, then plans their rollout as small PRs that the anti-slop-rollout skill carries out one at a time.
The audit changes nothing but anti-slop/plan.md and anti-slop/todo.md. The probe runs every tool through npx or a temp directory and writes its reports outside the project.
Run the probe from the repository root:
node <skill-dir>/scripts/probe.mjs --out <temp-dir>/anti-slop-probe > <temp-dir>/anti-slop-probe.md
<skill-dir> is the directory this SKILL.md is in; <temp-dir> is wherever the host keeps scratch files (--out defaults to a fresh dir under the OS temp dir). The probe takes a minute or two on a mid-size repo, longer on a big monorepo. Run it in the background or with a long timeout; it logs each phase to stderr. It needs git, Node 22+, network access for npx, and installed dependencies (tsc and knip read node_modules). If node_modules is missing, say so and ask whether to install or skip those sections. --only and --skip take a comma-separated list of sections (stack,tsc,lint,knip,jscpd,doctor,scars) for a rerun.
The Markdown summary names a probe.json with everything, including each tool's raw report path.
Read the stack from the probe. Don't assume TypeScript, Vitest, pnpm, or Claude Code. Map each line of the probe's Stack section to its row in moves.md's Read the stack first table, and pick every tool in the plan from there.
While it runs, read for intent. Look at the README, the agent rules files the probe lists (AGENTS.md, CLAUDE.md, CONVENTIONS), the lint config, tsconfig, CI workflows, and package scripts. The probe gives counts; these files explain them. A rule switched off with a comment is a decision, not a gap, and the plan should respect it or argue with it explicitly. List every rule the lint config already sets to warn: each one gets a plan step (with the gradual backlog, the warnings review) or a skip reason (section 6).
Check the baseline is clean. Run the project's own lint and unit tests once, and time both: section 5 uses the seconds. "Fix everything and make it an error" only works on top of a green baseline. If it isn't green, that's the first step of the plan.
The test is three conditions: the code outlives a quarter, someone other than the author reads it, and bugs have consequences outside the team. The probe's repo signals (first commit, authors and commits in 90 days) usually answer the first two. Ask the user only what the repo can't tell you, usually the third, in one question.
A prototype that stays a prototype fails the test. Say so, recommend at most the API contract (if there's an API) and a CI gate for checks that already exist, then stop.
A prototype becoming a product is the opposite case, and the best moment for this audit. Signs: the user says so, or there's a launch, a funding round, or a team joining. Judge the test by where the code is going, not where it's been. The plan changes in five ways:
A project just starting (a fresh scaffold, a few commits, the user says they're about to build) is the cheapest case of all: nothing to clean up, so nothing is a warning.
Read references/moves.md. For each move, decide:
Tool output is a lead, not a finding. Before quoting a number:
Report how many held up. A plan built on the raw number loses the team's trust in the first PR.
Recommend a move because the numbers show it finds something here, or because it prevents a defect class this codebase is exposed to, never because it's one of the ten.
Section 5 of moves.md explains this: turn bugs the project already shipped into custom lint-rule candidates, using the probe's fix commits and the "never do X" lines in its agent and convention files. Propose two to five, each with the incident behind it, or, for a default override, the measured cost of the default it cancels. Neither, no rule. A count from grep is an upper bound: label it so in the plan, since the rollout counts again with the real rule before picking the level.
A check catches slop only where it runs, and it survives only if it doesn't slow people down. Place each adopted check at the cheapest moment that still catches what it's for. Use this repo's numbers:
gh pr list --state merged --limit 5) before concluding the team pushes straight to it. Without PRs, CI runs on push and reports after the fact, so the hooks become the gate.gh run list shows it when gh is available), and the check scripts nothing in CI runs (scripts.notInCi). Also the probe's count of recent commits that touched no code or config: when it's a large share, a changes job that skips each check on PRs that can't affect it is worth a plan step (the rollout recipe's CI section).Then fill the moments. These budgets are defaults; the team can move them:
--no-verify. react-doctor's startup alone takes most of that, so it runs in the agent hook and PR CI instead.@latest (react-doctor) keeps its scheduled run after its gate: otherwise a rule from a new release first shows up as a block on some unrelated PR.A check that's over budget moves to the next moment instead of being dropped. The plan's table records where each check landed and why.
One step is one PR that a reviewer can read in one sitting.
Pick the variants first. Four choices have two reasonable answers each: the lint backlog (gradual or cleanup), mutation testing in CI (required or report-only), exactOptionalPropertyTypes (always on or count-gated), and react-doctor (report or gated). moves.md, Variants, describes both sides. Plan option 1 of each unless the user already chose, and put each side's cost in this repo's numbers in the plan's Variants table: the report (section 8) asks whether to switch any. The choices shape the steps below.
Order the steps so each one makes the next one cheaper:
scripts.notInCi), and each scars.runWhen line ("run <cmd> when touching X"). Each becomes a CI step filtered on what the command reads. Rank them by the incident behind them: a script written after a bug shipped goes first. A check that fails on a defect becomes a gate; a heuristic that exits 0 by design becomes a report job that comments on the PR, not a required check.cognitive-complexity) go in a step of their own first, or the step names them as out of scope.warn. A warning the hooks deny is an error that lands later, on whoever next edits the file. Every rule at warn, the plan's and the ones already in the config (section 1), gets a step or a skip reason. A preset's last step promotes all of it, cognitive-complexity included once what's left fits one PR (about ten functions); a rule that can't reach zero by then gets a named follow-up step, not "until the re-audit".no-non-null-assertion before noUncheckedIndexedAccess, so the type fixes can't take the ! shortcut.scars.ruleLines), then deletes anti-slop/: the scripts, hook, and rules the rollout added live in the project's tooling folder.Write two files:
anti-slop/plan.md from assets/plan-template.md: the reasoning, the numbers, and the Log.anti-slop/todo.md from assets/todo-template.md: the rollout steps only, as a checklist. Anyone can see at a glance what's done and what's next, and the rollout skill goes straight to the first unchecked step.The plan must stand alone. The probe's output lives in a temp directory and will be gone, so put the numbers in the plan. Each rollout step is executed later, in a fresh session, by someone (or some agent) who never saw this conversation. Each step in todo.md names the packages, files, rules, and commands, and says how to tell it's done. Earlier steps rewrite code, so counts drift and <file>:<line> pointers go stale. Write counts as "N at audit", and name starting points by symbol (parseInvoice's status chain), not file and line.
If the files already exist, this is a re-audit: keep checked steps in todo.md and the Log in plan.md, update the numbers, and mark what changed. Don't renumber steps: Log entries and PRs cite them. Number an inserted step after the one it follows (3a, 3b), and keep a moved step's number. If the files are gone but git has them (git log -- anti-slop/), a finished rollout deleted them: read the last version's Skipped list and Log before writing a fresh plan.
Give the user the status table, the Variants table with each side's cost, the When checks run table, and the step list, and ask what to drop, reorder, or switch to the other variant. A switch rewrites the steps it touches, not the rest of the plan. Point at the scar candidates; they're the part only the team can judge. Where React is present and the plan gates react-doctor, ask one more question: should react-doctor warnings block too, or only report (the default)? Give the warning count, so the team sees what blocking would cost. Don't commit anything: committing the plan is the first rollout step.
anti-slop/plan.md and anti-slop/todo.md. The audit only measures.react-doctor install or react-doctor ci install: both write files. Always run react-doctor as npx -y --min-release-age=7 react-doctor@latest --no-telemetry --no-supply-chain. The gate skips versions younger than a week; without the flags it reports usage and sends the dependency list to Socket.dev for a supply-chain check.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ai-slop, code-quality, linting, dead-code, mutation-testing, duplicate-detection
npx claudepluginhub gretchenfitze/anti-slop --plugin anti-slop2 skills in this plugin
Other plugins' skills for the same job