review-arch

review-arch is a command for Claude Code from JuanMarchetto/agent-skills. It costs 28 tokens per session (1,169 once invoked), scanned A, original, MIT.

A command that compares a project's architecture documents with its actual code. Architecture documents describe the system's structure and design decisions.

In plain words
What is it for?
Use it to locate architecture documents, inspect modules, imports, dependencies, and project structure, and produce a drift report.
Why use it?
It finds where the code has changed away from the documented design, so teams can decide whether to update the code or the documentation.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the architecture-reviewer plugin — 1 skill, 3 commands shipped together

Good fit Use it to locate architecture documents, inspect modules, imports, dependencies, and project structure, and produce a drift report.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/juanmarchetto/agent-skills/review-arch
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.

Clone the repo
git clone --depth 1 https://github.com/JuanMarchetto/agent-skills

Made for: Claude Code.

Or install architecture-reviewer, the plugin that ships this one along with the rest of its 1 skill, 3 commands.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/juanmarchetto/agent-skills/review-arch"><img src="https://agentmods.dev/badge/commands/juanmarchetto/agent-skills/review-arch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,169 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.00028 $0.01169
Opus 5 $0.00014 $0.00584
Sonnet 5 $0.00006 $0.00234
Haiku 4.5 $0.00003 $0.00117

Measured 12d ago against content hash a21c94c212c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

review-arch 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 12d 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.

skills/architecture-reviewer/commands/review-arch.md · 146 lines

How it starts

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

/review-arch -- Full Architecture Drift Audit

You are the Architecture Reviewer skill's primary audit engine. The user has triggered /review-arch to run a comprehensive drift analysis of their project.

Instructions

Step 1: Find Architecture Documentation

Scan the project for architecture documents in this order:

  1. ARCHITECTURE.md (project root)
  2. docs/architecture.md or docs/ARCHITECTURE.md
  3. docs/adr/ directory (Architecture Decision Records)
  4. ADR/ or adr/ directory
  5. docs/design.md or docs/design/
  6. DESIGN.md
  7. CLAUDE.md (architecture-relevant sections only)
  8. README.md (sections: "Architecture", "Structure", "Design", "How It Works")
  9. package.json workspaces (monorepo structure)
  10. tsconfig.json path aliases and project references

If NO documents are found:

No architecture documentation found in this project.

To get started:
  /arch-init    Generate an ARCHITECTURE.md from your current codebase

Or create ARCHITECTURE.md manually and run /review-arch again.

Stop here.

Step 2: Parse Architecture Claims

Extract structured claims from each document:

  • Modules: Named modules/packages/services and their documented responsibilities
  • Boundaries: Which modules can import from which (dependency rules)
  • Patterns: Documented architecture patterns (MVC, layered, hexagonal, etc.)
  • Technologies: Languages, frameworks, databases, APIs mentioned
  • Data Flow: How data moves between modules (if documented)
  • Directory Map: Expected directory structure and file organization
  • Conventions: Naming conventions, file patterns, code organization rules

Step 3: Scan the Codebase

Build a structural map of the actual code:

  1. Directory tree: Top-level and second-level directory structure
  2. Module boundaries: What directories/packages exist and their sizes
  3. Import graph: Cross-module imports (focus on boundary crossings)
  4. Technology inventory: Actual languages, frameworks, libraries in use
  5. Pattern analysis: What architecture pattern the code actually follows
  6. File metrics: Line counts for modules to detect responsibility creep

Read the full file on GitHub · 146 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. 12d ago First seen · 146 lines · 28 tokens per session scan A a21c94c212c6

Subscribe to this mod's changes

review-arch is a command published in the GitHub repository JuanMarchetto/agent-skills (5 stars, last pushed 5mo ago), licensed MIT. It adds 28 tokens to every session and 1,169 once invoked, about $0.0001 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-31.