benefriches: Command for Claude Code

.claude/commands/adw-review.md

adw-review is a command for Claude Code from incubateur-ademe/benefriches. It costs 18 tokens per session (502 once invoked), scanned A, original, MIT.

A read-only review step for an ADW branch, comparing its code changes with an implementation specification. It records the result and findings in a review file.

In plain words
What is it for?
Use it to inspect commits and differences, run focused checks, classify problems as blockers or follow-up work, and cite the affected file and line.
Why use it?
It provides a consistent check that the requested work and listed tests were completed without changing the worktree or Git state.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter; positional $N argument.

This is incubateur-ademe/benefriches's own configuration. It tells Claude Code how to work on benefriches 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 benefriches configures →

Reuse

Borrowing it

Nothing to install: this file belongs to incubateur-ademe/benefriches. 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/incubateur-ademe/benefriches/main/.claude/commands/adw-review.md
Clone the repo
git clone --depth 1 https://github.com/incubateur-ademe/benefriches

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 adw-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/incubateur-ademe/benefriches/adw-review/github.svg)](https://agentmods.dev/commands/incubateur-ademe/benefriches/adw-review)
Your own site
<a href="https://agentmods.dev/commands/incubateur-ademe/benefriches/adw-review"><img src="https://agentmods.dev/badge/commands/incubateur-ademe/benefriches/adw-review/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 adw-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/incubateur-ademe/benefriches/adw-review"><img src="https://agentmods.dev/badge/commands/incubateur-ademe/benefriches/adw-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 502 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.00018 $0.00502
Opus 5.5 $0.00007 $0.00201
Sonnet 5.5 $0.00004 $0.00100
Haiku 4.5 $0.00002 $0.00050

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

Security

Grade A, and why

adw-review 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 9d 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/commands/adw-review.md · 40 lines

What it actually says

Review the commits on the current branch since $2 against the spec at $1, and write the review to review.md in the spec's directory. Edit nothing else: no file in the worktree, no git state (no commit, checkout, stash, reset). You may run read-only and test commands (git diff, git log, focused tests, the spec's Validation commands) to confirm a finding.

  1. Record git status --porcelain. It must be identical when you finish; if a command you ran changed it, say so in review.md.
  2. Read the spec, then git log --oneline $2..HEAD and git diff $2...HEAD.
  3. Invoke the code-reviewer skill with the Skill tool, scope git diff $2...HEAD, and follow it.
  4. Check the diff against the spec: the Approach and every item under Files are implemented, or the deviation is explained; the tests listed under Validation exist.
  5. Classify every finding, citing file:line:
    • blocker: the spec is not met, or a Critical or High finding that this diff introduces. Blockers send the branch back to the builder, so each one says what to change.
    • tech debt: a Medium finding, or a real problem outside the spec's scope or that predates this diff. Each one becomes a follow-up issue, so it must stand alone: what, where, why it matters.
    • Drop Low findings.
  6. Write review.md: the verdict, the blockers, the tech debt, then what you checked (commands run and their results).

Approve only when there are no blockers. End your final message with the verdict, alone in a json code block:

{
  "approve": false,
  "blockers": [
    {
      "title": "...",
      "location": "path:line",
      "detail": "what is wrong and what to change"
    }
  ],
  "techDebt": [
    {
      "title": "...",
      "location": "path:line",
      "detail": "what, where, why it matters"
    }
  ]
}
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. 9d ago First seen · 40 lines · 18 tokens per session scan A e6011d92c410

Subscribe to this mod's changes

adw-review is a command published in the GitHub repository incubateur-ademe/benefriches (45 stars, last pushed today), licensed MIT. It adds 18 tokens to every session and 502 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-10-21.