speckit-companion: Agent for Claude Code

.claude/agents/cleanup-reviewer.md

cleanup-reviewer is an agent for Claude Code from alfredoperez/speckit-companion. It costs 23 tokens per session (365 once invoked), scanned A, original, MIT.

An automated code-review agent that examines one assigned part of a repository cleanup diff and reports findings without editing files. A diff is the set of changes between two versions of code.

In plain words
What is it for?
Use it to review a named group of changed files, identify correctness or data-loss risks, and return findings for another agent or developer to fix.
Why use it?
It keeps review separate from implementation, checks repository-specific rules, and requires evidence for each reported problem.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md.

This is alfredoperez/speckit-companion's own configuration. It tells Claude Code how to work on speckit-companion itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything speckit-companion configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/alfredoperez/dev/GitHub/speckit-companion..

Reuse

Borrowing it

Nothing to install: this file belongs to alfredoperez/speckit-companion. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/alfredoperez/speckit-companion/main/.claude/agents/cleanup-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/alfredoperez/speckit-companion

Made for: Claude Code.

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 cleanup-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/alfredoperez/speckit-companion/cleanup-reviewer/github.svg)](https://agentmods.dev/agents/alfredoperez/speckit-companion/cleanup-reviewer)
Your own site
<a href="https://agentmods.dev/agents/alfredoperez/speckit-companion/cleanup-reviewer"><img src="https://agentmods.dev/badge/agents/alfredoperez/speckit-companion/cleanup-reviewer/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 cleanup-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/alfredoperez/speckit-companion/cleanup-reviewer"><img src="https://agentmods.dev/badge/agents/alfredoperez/speckit-companion/cleanup-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 365 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.00023 $0.00365
Opus 5.5 $0.00009 $0.00146
Sonnet 5.5 $0.00005 $0.00073
Haiku 4.5 $0.00002 $0.00036

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

Security

Grade A, and why

cleanup-reviewer 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.

.claude/agents/cleanup-reviewer.md · 20 lines

What it actually says

You review one lane of an uncommitted or committed diff in /Users/alfredoperez/dev/GitHub/speckit-companion.

Run the /code-review skill over the diff your brief names, scoped to the files it names. Use rtk proxy git diff when you need raw diff output; the default filter empties it.

Rules:

  1. Never edit a file, and never run a git write. You report; the orchestrator decides and a fixer applies.
  2. Read .claude/review-checklist.md and CLAUDE.md first. The repo has invariants a generic review misses: .sr-only vs hidden, the ellipsis trio, Preact string styles, the two extensions' separate docs and changelogs, escapeHtml being safe for element content only, design tokens (--text-secondary is metadata only), and screenshot filenames being load-bearing.
  3. Evidence or it is not a finding. Name the file and line, and give the concrete input or state that produces the wrong result. Machine-written claims about "no callers" or "duplicated" are wrong often enough that you check each one before reporting it.
  4. Rank by what breaks. A correctness or data-loss finding first, a convention violation after, a preference never.

Return: the findings, most severe first, each as file:line, what breaks, and the failing scenario. Then one line naming anything you checked and found fine that the brief flagged as risky. Never return file contents.

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 · 20 lines · 23 tokens per session scan A 9a925f23433b

Subscribe to this mod's changes

cleanup-reviewer is an agent published in the GitHub repository alfredoperez/speckit-companion (99 stars, last pushed 6d ago), licensed MIT. It adds 23 tokens to every session and 365 once invoked, about $0.0001 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-09-20.

Related

Other agents, from other repositories

angular-reviewer

Angular 22 and TypeScript code review specialist — Signals, Signal Forms (stable), standalone components, RxJS, performance, zoneless change detection, httpResource.

TheBeardedBearSAS/claude-craft · 36 tokens

logic-design

Decide where new application logic belongs — component shape, logic layer, store variant — and return a recommendation with the schematic to run and what to verify. Use the logic-review agent for existing code.

AmadeusITGroup/otter · 43 tokens

logic-review

Review existing components, services, and stores for misplaced logic and report findings with file, line, the rule broken, and the fix. Use the logic-design agent to decide where something new should go.

AmadeusITGroup/otter · 43 tokens

ia-kieran-reviewer

Persona-driven line-level Python and TypeScript code review with extremely high bar for type safety, naming conventions, and modern patterns. Use for line-level Py/TS quality after PR implementation. For broader review workflow, use the code-review skill.

iliaal/whetstone · 54 tokens

reviewer

Spec-Driven Development reviewer agent that compares implementation output against the original specification and produces a comprehensive, human-readable HTML/CSS compliance report. Identifies gaps, deviations, and quality issues.

SufficientDaikon/sdd-vscode-agents · 40 tokens

gsd-security-auditor

Verifies threat mitigations from PLAN.md threat model exist in implemented code. Returns structured security verdict (SECURED / OPENTHREATS / ESCALATE). Spawned by /gsd:secure-phase.

open-gsd/gsd-core · 49 tokens