/anti-slop:slop-codefrom anti-slop
Reviews source code, tests, configs, docs, commits, and PRs for quality defects: hallucinated imports, non-load-bearing tests, ceremonial wrappers, and boilerplate text. Runs deterministic scanners to verify package existence and structural necessity.
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.
None: SKILL.md is the whole skill.
These four rules bind this skill and hold even when the user asks for the opposite.
The only HIGH severity in code is "this is not true". A package that does not exist in its registry. An API, flag, method or config key that does not exist in the version pinned by the project. A test that passes while asserting nothing about the behavior it names. A docstring that describes different behavior from the code under it. Everything else, however ugly, is MEDIUM or LOW.
Run scan_packages.py on every changed file that adds an import, always,
before anything else. Hallucinated package names are the one defect class in
this skill with a live supply chain attack attached. Frontier 2026 models
hallucinate package names at roughly 4.62% to 6.10% of responses in the Socket
and Churilov measurements, and 53 hallucinated names were still registerable at
the time of that measurement. Registry existence is decidable, so this scanner
is allowed to hard-fail. Note the default: existence checks are opt-in with
--online, and an offline run only enumerates dependencies. Reporting an
offline exit 0 as "packages verified" is itself a defect.
Verify APIs against the pinned version, not against memory. Read the lockfile, the vendored source, or the installed package. "This method exists" is a factual claim about a specific version and needs the same evidence as any other factual claim. If you cannot check, the finding is "unverified", not "correct".
Run the load-bearing test before flagging anything as ceremony. Delete the comment, the wrapper, the try/except, the assertion-free test, the interface with one implementation. Then name what broke. If nothing broke, that is the artifact and the finding is real. If something broke, there is no finding and you say so. A wrapper you dislike is not a defect.
Do not flag defensive code without knowing what it defends against. A try/except that swallows an exception is a defect when the swallowed error is one the caller needed. It is correct when the operation is genuinely optional. The load-bearing test answers this and your aesthetic sense does not.
Comments describe the thing as it is, not the change that produced it. Unless the document is version-scoped (changelog, release note, migration guide), a comment that narrates a diff is a defect: it stops being true at the next commit. Rewrite it to describe current behavior.
Read ../../references/code-markers.md before you write any code finding.
It holds the code-specific marker list, the load-bearing test's failure modes,
and the counter-evidence below.
Be honest that the field's evidence is split. The strongest numbers claiming agentic code is worse come from vendors selling engineering intelligence products. The strongest null result comes from academia: Borg et al., arXiv 2507.00788, a preprint rather than a published paper, pre-registered with In-Principle Acceptance granted at ICSME, 151 participants. Its Phase 2 found no significant differences in subsequent code evolution, completion time or quality; its observational Phase 1 found a 30.7 percent median reduction in completion time, so cite both phases and never the null alone. A peer-reviewed MSR 2026 result (Chowdhury et al.) does find pull requests handled only by code review agents merge at 45.20% versus 68.37% for human-only. Do not present either side as settled and do not use either as grounds for an authorship claim about the diff in front of you.
Scripts live at ../anti-slop-brain/scripts/ relative to this plugin's parent
directory. Do not reimplement them and do not guess their flags.
Exit codes are uniform: 0 clean, 1 findings, 2 usage error.
| Script | On code | Flag that matters |
|---|---|---|
scan_packages.py | every import resolves to a real registry entry | --online required for existence checks; --allowlist FILE for internal names |
scan_residue.py | vendor artifacts leaked into comments, docstrings, commit bodies or PR text | --include-code to scan fenced blocks and inline code spans, skipped by default in markdown |
scan_placeholders.py | TODO: quote, [Your Name], INSERT_SOURCE_URL, YYYY-MM-DD left in code or docs | --include-code as above |
scan_refs.py | URLs and DOIs in comments, READMEs and docstrings | --online required for resolution; offline checks shape and checksums only |
lint_voice.py | house style in prose files and in comment text | --voice FILE for the banned-token list |
Comment out nothing to make a scanner pass. If a scanner fires on a legitimate case, record it as a scanner false positive in your report and leave the code alone.
| Target | Delete it, then ask |
|---|---|
| Comment | Does the code still explain itself, or did the comment carry the only statement of intent, invariant, or gotcha? |
| Wrapper function | Does any caller lose anything, or was it a rename of a single call? |
| try/except | Does a real failure mode now escape uncaught, or was the handler catching something that cannot happen? |
| Test | Does it now fail on a real regression, or does it assert nothing about the named behavior? |
| Abstraction or interface | Is there a second implementation, or a planned one the user can name? |
| Config key | Does anything read it? |
| Type alias or constant | Is it used more than once, or does it name a concept the code needs? |
The artifact is the answer, written out. "Deleted the retry wrapper: nothing
broke, fetch_user was its only caller and it passed the arguments through
unchanged" is a finding. "The retry wrapper looks unnecessary" is not.
Same firewall, same two axes. The tells worth testing, from Wikipedia's edit-summary section, transfer directly:
The defect is not the register. The defect is a summary that does not let a reviewer find the change. That is what you report, and the deletion test is what proves it: cut the sentence and ask what a reviewer lost.
Use the slop-review template: a Layer 0 table, then findings with an ID,
severity, confidence, location, verbatim quote, test name and artifact, then
the "Not flagged, and why" section. For code, "Location" is
path/to/file.py:120-134.
If the user asked for repair as well as review, hand the findings to
slop-rewrite rather than editing inside the review pass, or run the two as
explicitly separate passes. Never do both in one breath.
../../references/code-markers.md before any code finding.../../references/structural-tests.md for the worked load-bearing
artifacts.../../references/false-positives.md before flagging a naming,
formatting or comment-density pattern, and always when the author is a
non-native English writer.../../references/markers-tier2.md before any finding that rests on
uniformity of line length, comment density or diff size.What SKILL.md sets; muted values are Claude Code's defaults
The artifact under review is source code, tests, configuration, generated documentation, a commit message, or a pull request description.
npx claudepluginhub agricidaniel/anti-slop --plugin anti-slop5 skills in this plugin
/anti-slopRouter for the anti-slop toolkit. Use when someone asks to review, clean, de-slop, humanize, or quality-check prose, documentation, code, commit messages, PR descriptions, or agent output, or asks whether some writing "sounds like AI". Also use for verifying citations, DOIs, links and imported package names, for stripping vendor residue markers such as oaicite or cite spans, and for auditing padding, filler, puffery, vague attribution and hollow analysis. Explains the three layers (deterministic scanners, structural procedures, evidence-tiered soft signals) and picks the right leaf skill: slop-review for read-only findings, slop-rewrite for repair, slop-code for code and docs, slop-verify for citations, links and packages. Never produces an authorship verdict and never treats a stylistic marker as proof of anything. Use this hub only when the surface or the operation is unclear; otherwise invoke the leaf skill directly.
/slop-reviewRead-only slop review of prose, documentation, reports, agent output, commit messages or PR descriptions. Use when someone asks what is wrong with a draft, asks for an editorial or quality review, asks whether text is padded, vague, puffed up, unsourced or hollow, or asks whether writing "sounds like AI". Produces a fixed findings report where every finding carries a verbatim quote, a severity (HIGH for a fabricated fact, citation or API, MEDIUM for padding or filler that changes nothing if cut, LOW for stylistic tells) and a separate confidence (low, medium, high), plus the artifact from the structural test that produced it. This skill diagnoses only. It cannot write or edit files, it never rewrites the text it is judging, and it never states or implies who or what wrote the text. Hand its findings to slop-rewrite when the user wants repair.
/slop-rewriteRepair pass that consumes an existing slop-review findings report and fixes only what it lists. Use when someone asks to clean up, de-slop, tighten, fix or rewrite a draft, documentation page, report or agent output after a review has been produced, or asks to strip vendor residue and placeholder text. Cuts padding that failed the deletion test, replaces vacuous claims that failed the inversion test, resolves or removes vague attributions, and deletes vendor residue. It never invents a fact, name, number, date, quote or citation that is not already in the source. It never re-derives findings and never expands scope beyond the report. The deterministic scanners re-run after every fix and their exit codes, not the model's judgment, decide whether the pass is finished. It never states or implies who or what wrote the original.
/slop-verifyVerification pass for citations, links, package names and vendor residue. Use when someone asks whether the sources in a document are real, asks to check DOIs, ISBNs, arXiv IDs or URLs, asks whether a cited source actually supports the claim attached to it, asks to check that imported packages exist, or asks to strip vendor artifacts such as oaicite, cite spans, lenticular bracket citations, grok cards or utm_source tracking parameters. This is the only layer allowed to hard-fail, because existence and resolution are decidable. It runs the attribution test on every vague authority claim and resolves it to a named source or reports it unresolved. A real source attached to a claim it does not support is a HIGH finding, not a pass. It never states or implies who or what wrote the document.
Other plugins' skills for the same job