rules-reviewer

rules-reviewer is an agent for Claude Code from recomposesh/recompose. It costs 46 tokens per session (580 once invoked), scanned A, original, MIT.

A code-review agent that checks changed files against the project's written rules, such as rules in CLAUDE.md and .claude/rules/. It focuses on design and testing constraints that linters and type checks cannot reliably judge.

In plain words
What is it for?
Use it after implementing a feature or fix to review comments, test design, mocks, behavior-based test names, and domain-specific naming in the current diff.
Why use it?
Automated checks may accept code that violates project conventions or creates fragile tests. A rules-focused review catches those problems before a commit.

Agent for Claude 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.

agentmods
npx agentmods add agents/recomposesh/recompose/rules-reviewer
Clone the repo
git clone --depth 1 https://github.com/recomposesh/recompose

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/recomposesh/recompose/rules-reviewer.svg)](https://agentmods.dev/agents/recomposesh/recompose/rules-reviewer)
Your own site
<a href="https://agentmods.dev/agents/recomposesh/recompose/rules-reviewer"><img src="https://agentmods.dev/badge/agents/recomposesh/recompose/rules-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 580 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00046 $0.00580
Opus 5 $0.00023 $0.00290
Sonnet 5 $0.00009 $0.00116
Haiku 4.5 $0.00005 $0.00058

Measured 3d ago against content hash 46d24c554abd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rules-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 3d 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/rules-reviewer.md · 29 lines

What it actually says

You review the current diff for compliance with recompose's project rules. Focus only on what automated tooling can't catch, since oxlint/oxfmt/tsc already ran.

Get the diff: git diff HEAD (or the range specified). Read surrounding context of changed files where needed.

Check each changed file for compliance with these rules:

  1. Comments: no code comments allowed. Sole exception: a constraint/invariant the code can't express. Flag every comment that explains what code does, restates the obvious, or narrates the diff.
  2. Tests couple to behavior only: tests must not reach into private state, assert call order/counts of internals, or import non-public modules. A pure refactor must never require test changes. Flag any test that would break under refactor.
  3. Test doubles only at process boundaries (network, fs, clock, child processes). Flag mocks of internal collaborators.
  4. Behavior-Driven Development (BDD) spec language: test names describe behavior in domain language, not implementation ("failover shifts traffic to next healthy target," not "calls selectTarget twice").
  5. Naming: intent-revealing, domain vocabulary (gateway, virtualModel, router, target, provider). Flag manager, helper, util, data, info, generic handlers.
  6. Don't Repeat Yourself (DRY) for knowledge, not lines: flag merged code that couples two different business decisions. Flag duplicated business rules.
  7. You Aren't Gonna Need It (YAGNI) / Keep It Simple (KISS): flag speculative abstractions, such as interfaces with one implementation, config for constants, or scaffolding "for later."
  8. Errors: no swallowed errors; expected failures (rate limit, auth expired, target down) modeled as typed results, not thrown surprises; error messages carry context.
  9. TypeScript: no any, no silencing as casts, no unexplained @ts-ignore/@ts-expect-error.
  10. Boundaries: packages/engine must have zero electron imports; no cross-package deep imports.

Report findings one line at a time, most severe first, using this format: file:line: rule violated, what to change

If nothing violates the rules, say exactly that in one line. Don't invent findings to seem thorough. Don't review style that oxlint/oxfmt owns.

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. 3d ago First seen · 29 lines · 46 tokens per session scan A 46d24c554abd

Subscribe to this mod's changes

rules-reviewer is an agent published in the GitHub repository recomposesh/recompose (26 stars, last pushed 7d ago), licensed MIT. It adds 46 tokens to every session and 580 once invoked, about $0.0002 per session on Opus 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 agents, from other repositories

spec-compliance-reviewer

Agent Spec Compliance Reviewer — vérifie indépendamment que chaque Acceptance Criteria (AC) de chaque US est implémentée dans le code matérialisé. Re-lit le code sans faire confiance au rapport dev-, sur le pattern "Do not trust the report" (superpowers v5.1). Produit spec-compliance.{md,json} avec verdict 🟢/🟡/🔴…

zekiriabd/SDD-Pro · 104 tokens

code-quality-reviewer

Per-module objective code quality assessment with measurable metrics and threshold-based PASS/FAIL. Produces reviews/phase-6-review/code-review.md. Focuses on maintainability and pattern consistency — not spec compliance (rtl-critic) or functional correctness (Phase 5). (Opus).

babyworm/rtl-agent-team · 62 tokens

audit-geo

Evaluates AI crawler access, llms.txt compliance, content citability, brand authority signals, and multi-platform GEO scoring (Google AIO, ChatGPT, Perplexity, Bing Copilot).

XuanRanL/loamwright-SEO-Skill · 44 tokens

ui-visual-validator

Rigorous visual validation expert specializing in UI testing, design system compliance, and accessibility verification. Masters screenshot analysis, visual regression testing, and component validation. Use PROACTIVELY to verify UI modifications have achieved their intended goals through comprehensive visual analysis.

Dicklesworthstone/pi_agent_rust · 54 tokens

patent-disclosure-reviewer

审核法律合规性和撰写质量.

illusionaireal/oh-my-patent · 17 tokens

agent-registry-auditor

Audits agents for DIP-0016 compliance and registry alignment. Use this agent when: Adding a new agent to the system Checking if existing agents need registry entries Validating spawn relationships and circular dependencies Generating missing registry entries Upgrading agents with Agent Context sections This agent…

datacore-one/datacore · 84 tokens