/anti-slop:anti-slop-rolloutfrom Anti-slop
Executes one step of an anti-AI-slop rollout plan per run, adding a code quality check (strict TypeScript, lint rules, mutation testing, dead-code detection, CI gates) as a single PR with fixes and documentation.
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.
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 anti-slop-audit skill wrote a plan of small PRs: the steps in anti-slop/todo.md, the reasoning in anti-slop/plan.md. This skill carries out one step per run.
One step is one PR because each one needs a human review. These checks exist to cut how much code people have to read, not to skip reading. Don't continue into the next step unless the user asks.
Read anti-slop/todo.md. If it doesn't exist, say so and offer to run anti-slop-audit first.
Take the step the user named, or else the first unchecked one. Check its "Depends on": if an earlier step's PR isn't merged yet, say so. Ask whether to wait or to branch from that PR. The rules-file trim has a third option: ship without it (recipes, Trim the rules file).
Then read anti-slop/plan.md for the context the step needs: its move's notes, the Assumptions, the When checks run row, the Stack (which tools this project uses), and the Variants (the plan's side of four choices: lint backlog, mutation testing in CI, exactOptionalPropertyTypes, react-doctor). A plan without a Stack section: read the stack from package.json and the lockfile. A plan without a Variants table predates it and was written for cleanup, report-only, count-gated, and gated.
The plan's numbers are from the audit, and the code has moved since. Counts drift both ways, and an earlier refactor can move the step's starting point: find it by symbol. Rerun the relevant probe section from the sibling skill:
node <skill-dir>/../anti-slop-audit/scripts/probe.mjs --only <sections, comma-separated: tsc,lint,knip,jscpd,doctor, or scars for the rules-file trim>
<skill-dir> is the directory this SKILL.md is in. If the audit skill isn't installed next to it, run the tool from the recipe directly. Note the numbers: they go into the PR description and the Log in plan.md.
Start from the default branch, up to date (fetch first; if the network is down, branch from the local copy and say so in the report). Name the branch the way the project does (check AGENTS.md, CONTRIBUTING, recent branches), or chore/anti-slop-<step-slug> if nothing says.
If the working tree has uncommitted changes, they're the user's. Don't stash them or sweep them into the branch. Ask, or work in a git worktree. The one exception is an uncommitted anti-slop/plan.md and anti-slop/todo.md fresh from the audit: committing them is step 1's job, so carry them onto the branch.
Read references/recipes.md: Adapting to the stack, Conventions, Running often, and the section for this step only. Wire the check at the moments the plan's When checks run table gives it: agent hook, pre-commit, CI, or the scheduled report.
assets/ holds files to copy into the project. They're templates: adapt them to the project's aliases, globs, tools, and naming, and drop the parts that don't apply.
assets/scripts/ holds the detector scripts and the PR-comment helper for report jobs, assets/lint-rules/ the project-rule template, and assets/agent-check.sh the agent hook.anti-slop/ (recipes, Where things go). anti-slop/ holds only the plan and the todo, and the last step deletes it.Add packages with the project's package manager as devDependencies, at current versions. The plan step names them, and asking for the step is asking for them. If the project's rules require approval for new dependencies anyway, list them and confirm before adding.
The plan and the recipe can disagree on a mechanical detail (a file name, a script name, where commands go). The recipe wins unless the plan says why it differs. Note the deviation in the plan's Log.
Follow the rollout discipline, on the plan's side of each variant:
!, as any, disable comments, or reason-less ignore entries to get a check green. A false positive gets a config-level ignore with a comment saying why. If a suppression is truly needed, it carries the reason.todo.md for later PRs. Number them after the step they follow (3a, 3b) instead of renumbering: Log entries and PRs cite step numbers. The hooks hold every changed file to zero warnings, so a cleanup for one rule also has to clear the other warning-level rules' hits in the files it touches. When those ride-along fixes balloon, the choice is the team's: fix them in the same PR, exempt that one rule in the hook's config with a reason, or commit with --no-verify. Ask, and record the choice in the Log. Never exempt silently.Add the Conventions section from recipes.md to the project's agent rules file the first time; later steps only add their commands to its list. Use AGENTS.md if the project has it, otherwise CLAUDE.md. Match the file's style and keep additions short. If the file already states in prose the rule this step's check now enforces, delete that line in the same PR: the check is the rule now. The plan's last step sweeps what's left.
--fix), plant something it can't repair: it rewrites a @ts-ignore into @ts-expect-error or a type into an interface, and the plant vanishes. Plants that hold: a required parameter added to a function with unchanged callers (typecheck), items[0].label (noUncheckedIndexedAccess), a ! (no-non-null-assertion), a nested ternary in a changed file (the sonarjs warnings), a failing assertion (tests), an unimported file and an unused export (knip), a stale mock, a copied module (jscpd), an effect that adds a listener without cleanup (react-doctor).git worktree of the base branch and from the branch), or diff a production build against the base branch's with the noise masked: bundle hashes, generated ids, signed URLs, random seeds, build timestamps, nondeterministic ordering. Include one planted change to show the comparison can fail. Record the numbers in the Log; commit the harness only if asked.git show <sha>^:<file>).error can still miss what the line forbids (recipes, Trim the rules file).Check the step off in todo.md. Append to the Log in plan.md: date, step, branch or PR, numbers before → after, which "Verify on this PR" items stayed unverified, and anything that changed the plan (a rule turned off as noise, a threshold moved, follow-up steps inserted into todo.md). The last step deletes anti-slop/, so its PR description carries what the Log entry would, plus every item still open anywhere in the Log: checks not yet verified on a real PR, settings changes not yet applied, scar candidates waiting for an incident, and the re-audit date.
Commit in the project's message style (short and imperative if nothing says otherwise). Push, and open the PR with gh pr create (or the forge's CLI or API).
The PR description says:
Link the plan step (in local mode, its path and number: anti-slop/todo.md, step N).
Local mode: if the user asked not to push or open PRs (testing, offline, reviewing first), stop after the commit. Print the PR title and description so they can open it later.
Then report the branch, the PR link (or "local only"), the numbers, and the next unchecked step in todo.md.
assets/agent-check.sh (opens in a new tab)assets/lint-rules/index.cjs (opens in a new tab)assets/lint-rules/lint-rules.test.mjs (opens in a new tab)assets/scripts/changed-mutants.mjs (opens in a new tab)assets/scripts/find-dead-code.mjs (opens in a new tab)assets/scripts/find-dead-mocks.mjs (opens in a new tab)assets/scripts/jscpd-top.mjs (opens in a new tab)assets/scripts/mutation-pr-report.mjs (opens in a new tab)assets/scripts/pr-comment.mjs (opens in a new tab)assets/scripts/resolve-module.mjs (opens in a new tab)references/recipes.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub gretchenfitze/anti-slop --plugin anti-slop2 skills in this plugin