architecture-review

architecture-review is a command for Claude Code from nicelight/DevRails-26. It costs 20 tokens per session (743 once invoked), scanned A, original, MIT.

A command for reviewing one feature's architecture, including its purpose, boundaries, responsibilities, dependencies, and supporting documentation.

In plain words
What is it for?
Use it with a feature, its product and implementation plan, and indexed tasks to perform a bounded C4-style architecture review.
Why use it?
It checks whether the planned design fits the accepted requirements and surrounding system.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it with a feature, its product and implementation plan, and indexed tasks to perform a bounded C4-style architecture review.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/nicelight/devrails-26/architecture-review
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/nicelight/DevRails-26

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/nicelight/devrails-26/architecture-review.svg)](https://agentmods.dev/commands/nicelight/devrails-26/architecture-review)
Your own site
<a href="https://agentmods.dev/commands/nicelight/devrails-26/architecture-review"><img src="https://agentmods.dev/badge/commands/nicelight/devrails-26/architecture-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 743 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.00020 $0.00743
Opus 5 $0.00010 $0.00371
Sonnet 5 $0.00004 $0.00149
Haiku 4.5 $0.00002 $0.00074

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

Security

Grade A, and why

architecture-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 8d 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/_shared/references/commands/architecture-review.md · 89 lines

What it actually says

/architecture-review - Feature architecture review

<input_contract> Require one FT-<NNN> plus its product, relevant epic, feature, implementation plan, and indexed tasks. Include applicable direct architecture/spec links; their absence is valid when canonical evidence shows none applies to the reviewed feature. Read additional canonical specs or code evidence only when needed to verify a finding. </input_contract>

<hard_invariants>

  • Work read-only. Do not repair specs, plans, tasks, or lifecycle state.
  • Review the accepted target; do not invent architecture or requirements.
  • The verdict covers this architecture review; /review-tasks-plan owns its final APPROVE|REJECT.
  • Do not require an ADR unless accepted project policy or the reviewed decision requires one.
  • Create no separate report artifact. </hard_invariants>
  1. C4 L1-L3
    • product/system purpose and actors remain coherent;
    • relevant epic/subsystem boundaries and value are consistent;
    • target feature/module responsibilities and dependencies fit that context.
  2. Architecture support
    • applicable architecture/guides or equivalent contracts, states, runbooks, testing, invariants, and spec-index routes are present and consistent;
    • one concrete concern has one canonical path.
  3. Boundaries and invariants
    • ownership, source of truth, public boundaries, dependency direction, cross-component orchestration, and required proof paths are preserved;
    • dependencies are explicit and no task must invent a material boundary. Their outcomes are prerequisites, not inherited proof; regression checks do not transfer claim ownership;
    • the relevant subgraph has registered modules, exact contracts, accepted directions, and complete consumer impact until compatibility stops it;
    • accepted architecture and rollout constraints—not graph shape alone—justify task dependencies and waves;
    • a capability-sliced cross-slice outcome names one accepted capability slice as orchestration owner; reject an orchestration slice invented in planning;
    • applicable linked rules retain existing mechanical gates and required runtime reproducibility proof; require neither without canonical evidence.
  4. Anti-patterns
    • speculative architecture without current evidence;
    • hidden or cyclic dependencies;
    • business orchestration in transport handlers, generic utilities, or the composition root when accepted architecture forbids it;
    • missing applicable invariants or required architecture proof.

<agent_discretion> Choose reading order, probes, and depth proportional to the target. Follow relevant dependencies beyond the feature only when they can change the verdict. </agent_discretion>

<required_outputs> Return only:

  • verdict: APPROVE|REQUEST_CHANGES|OWNER_DECISION_NEEDED;
  • findings;
  • evidence_checked;
  • risks_or_questions.

Do not repeat source contents or the caller's task-planning review. </required_outputs>

<handoff_contract> Return the report to /review-tasks-plan; the caller owns the final verdict and repair route. </handoff_contract>

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. 8d ago First seen · 89 lines · 20 tokens per session scan A af1bec61f7e8

Subscribe to this mod's changes

architecture-review is a command published in the GitHub repository nicelight/DevRails-26 (22 stars, last pushed 3d ago), licensed MIT. It adds 20 tokens to every session and 743 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-30.