slop-code

slop-code is a skill for Claude Code from AgriciDaniel/anti-slop. It costs 161 tokens per session (2,129 once invoked), scanned A, original, Apache-2.0.

A review and repair process for source code, tests, configuration, generated documentation, README files, commit messages, and pull-request descriptions, focused on concrete defects and unsupported claims.

In plain words
What is it for?
Use it to inspect changes for false imports, nonexistent APIs or configuration keys, tests that assert nothing, inaccurate documentation, and other quality problems.
Why use it?
It separates real impact from style signals and checks whether packages, APIs, settings, and tests actually exist and behave as described. Scanners are rerun after repairs to verify the result.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Part of the anti-slop plugin — 5 skills, 2 agents, 1 hook shipped together

Good fit Use it to inspect changes for false imports, nonexistent APIs or configuration keys, tests that assert nothing, inaccurate documentation, and other quality problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agricidaniel/anti-slop/slop-code
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AgriciDaniel/anti-slop --skill slop-code
Clone the repo
git clone --depth 1 https://github.com/AgriciDaniel/anti-slop

Made for: Claude Code.

Or install anti-slop, the plugin that ships this one along with the rest of its 5 skills, 2 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for slop-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/agricidaniel/anti-slop/slop-code/github.svg)](https://agentmods.dev/skills/agricidaniel/anti-slop/slop-code)
Your own site
<a href="https://agentmods.dev/skills/agricidaniel/anti-slop/slop-code"><img src="https://agentmods.dev/badge/skills/agricidaniel/anti-slop/slop-code/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for slop-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/agricidaniel/anti-slop/slop-code"><img src="https://agentmods.dev/badge/skills/agricidaniel/anti-slop/slop-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 161 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,129 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00161 $0.02129
Opus 5.5 $0.00064 $0.00852
Sonnet 5.5 $0.00032 $0.00426
Haiku 4.5 $0.00016 $0.00213

Measured 1mo ago against content hash ed431ad38347, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

slop-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

anti-slop-plugin/skills/slop-code/SKILL.md · 171 lines

How it starts

The opening of the file, as written. The whole thing — 171 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Slop code

The firewall

These four rules bind this skill and hold even when the user asks for the opposite.

  1. Never emit an authorship verdict. Report defects, not origin. Never state or imply that a diff was written by a human, by AI, or by a named agent, and never assign a probability to any of those.
  2. Never hard-fail on a stylistic marker alone. A marker is a routing hint. Its only legitimate output is "run a structural test on this span".
  3. Severity is impact. Confidence is certainty. Two axes. Never merge them, never trade one against the other.
  4. Never let the model gate its own rewrite. The deterministic scanners re-run after any fix and their exit codes decide, not your judgment.

Standing instructions

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".

Read the full file on GitHub · 171 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 171 lines · 161 tokens per session scan A ed431ad38347

Subscribe to this mod's changes

slop-code is a skill published in the GitHub repository AgriciDaniel/anti-slop (64 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 161 tokens to every session and 2,129 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

technical-debt

Technical debt inventory, prioritization, and audit for PHP/Laravel (MySQL) and Node/TypeScript/React projects. Use when assessing code health, identifying refactoring candidates, planning debt paydown, or auditing a codebase for accumulated debt. Triggers on "audit technical debt", "find tech debt", "debt inventory"…

AsyrafHussin/agent-skills · 109 tokens

code-slop

Detect AI-generated code patterns ("slop") in PHP/Laravel and TypeScript/React source — comment narration, generic naming, premature interfaces, defensive overdose, mock-everything tests, and the absence of human "scars". Use when reviewing AI-assisted PRs, auditing code for taste/quality (not metrics — that's…

AsyrafHussin/agent-skills · 110 tokens

php-best-practices

PHP 8.x modern patterns, PSR standards, and SOLID principles. Use when reviewing PHP code, checking type safety, auditing code quality, or ensuring PHP best practices. Triggers on "review PHP", "check PHP code", "audit PHP", or "PHP best practices".

AsyrafHussin/agent-skills · 64 tokens

clean-code-principles

SOLID principles, design patterns, DRY, KISS, and clean code fundamentals. Use when reviewing architecture, checking code quality, refactoring, or discussing design decisions. Triggers on "review architecture", "check code quality", "SOLID principles", "design patterns", or "clean code".

AsyrafHussin/agent-skills · 67 tokens

code-humanizer

Use when AI-written code needs structural cleanup or when implementing a change under a guard against AI coding slop — duplicated reimplementations of existing helpers, try-import fallbacks, broad exception swallowing, speculative abstraction layers, v2 copies, dead "for future use" code, narrating comments …

LeonardNJU/code-humanizer · 100 tokens

slop-cop

Audit, grade, rewrite, and issue funny evidence-backed tickets for generic AI-slop patterns in prose, social posts, UI/design, and code. Use when asked to de-slop writing, humanize AI copy, grade a draft, review a landing page or generated interface, remove vague claims and repetitive rhetoric, inspect AI-written code…

howshannon/slop-cop · 101 tokens