reviewing-for-slop

Use when reviewing a diff, branch, or pull request for code quality - finds unneeded abstraction, vague names, disabled types, swallowed errors, narrating comments, and tests that cannot fail, and reports each with a concrete fix

Qu'est-ce que reviewing-for-slop ?

reviewing-for-slop is a Claude Code agent skill that use when reviewing a diff, branch, or pull request for code quality - finds unneeded abstraction, vague names, disabled types, swallowed errors, narrating comments, and tests that cannot fail, and reports each with a concrete fix.

Compatible avec~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hikariming/anti-slop/tree/HEAD/skills/reviewing-for-slop

Installed? Explore more Développement et programmation skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Reviewing for slop

A slop review asks one thing of every added line: does the codebase need this? It is not a bug hunt and not a style lint. Formatting belongs to the formatter.

Before reading the diff

  1. Load anti-slop:writing-clean-code and the skill for each language in the diff.
  2. Read the repository's contributor guide and linter configuration. Its conventions outrank these skills.
  3. Open two or three neighbouring files that the diff did not touch. They show what normal looks like here.

What to review

Review the lines the diff adds or changes. Code that was already there is out of scope, even when it is worse. Report older problems only when the diff copies or extends them.

Read each changed file in full, not only the hunks. A helper is single-use only if you checked the rest of the file and searched the repository for other callers.

Passes

Make one pass per question. Mixing them is how findings get missed.

  1. Does it need to exist? Single-use helpers and wrappers, interfaces with one implementation, unused parameters and options, new dependencies that duplicate the standard library, compatibility shims with no caller, files that could be ten lines in an existing file.
  2. Can it be read without lookup? Clipped or generic names, a value renamed as it passes between functions, missing units, misleading names.
  3. Are the types real? Escape-hatch types, unchecked casts, suppression comments, untyped maps used as records, bare strings for closed sets.
  4. Is the error handling honest? Swallowed errors, fabricated success values, impossible null checks, broad catches, log-and-rethrow, defaults that hide a missing required value.
  5. Do the comments earn their line? Narration, process and conversation residue, documentation that restates the signature, banners, emoji.
  6. Would the tests catch a regression? For each new test, name the code change that turns it red. Mocks asserting on themselves, formulas copied into expectations, weakened assertions.
  7. Is the diff clean? Unrelated reformatting, leftover debug output, scratch files, commented-out code.

Verify before reporting

For every finding, confirm it from the code, not from the pattern.

  • "Single-use" means you searched for callers and found one.
  • "This check is impossible" means you read the type or the caller that guarantees it.
  • "The standard library has this" means the version this project targets has it.

A wrong finding costs the author more than a missed one. Drop what you cannot confirm, or mark it as a question.

Report

Lead with the verdict in one sentence, then the findings, most damaging first.

Verdict: needs changes - 2 blocking, 3 cleanup.

Blocking
- src/orders/client.ts:41 - fetchOrder catches every error and returns null, so a network failure looks like "order not found". Remove the try/catch and let the caller see the error.

Cleanup
- src/orders/client.ts:12 - OrderClientImpl implements IOrderClient, which has no other implementation. Delete the interface and export the class.
- src/orders/client.ts:27 - `data` holds the parsed order. Rename to `order`.

Each finding has the location, what is wrong in plain words, and the exact change. "Consider simplifying" is not a finding.

Blocking is slop that hides failures or lies to the reader: swallowed errors, fabricated success, disabled types on a boundary, a test that cannot fail. Cleanup is everything that only adds weight.

If the diff is clean, say so in one line. Do not manufacture findings to look thorough, and do not pad the report with praise.

Skills associés