architecture-review

architecture-review is a command for Claude Code from davepoon/buildwithclaude. It costs 5 tokens per session (710 once invoked), scanned A, original, MIT.

A codebase architecture review that examines how an application's parts are organised and how data moves between them. It checks module boundaries, design patterns, dependencies, layers, components, and common design problems.

In plain words
What is it for?
It is for assessing overall structure, separation of concerns, dependency direction, state management, persistence, and component design.
Why use it?
It helps reveal tangled dependencies, unclear responsibilities, circular links, inconsistent patterns, and weaknesses in validation or data flow.

Command for Claude Code

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

Part of the all-commands plugin — 23 commands shipped together

Good fit It is for assessing overall structure, separation of concerns, dependency direction, state management, persistence, and component design.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/davepoon/buildwithclaude/architecture-review
About the project

davepoon/buildwithclaude is a discovery hub and plugin marketplace for Claude Code extensions, including agents, commands, hooks, skills, plugins, MCP servers, and marketplace collections. Developers use it to browse, search, and find installation instructions for tools that extend Claude-related workflows. Catalogue entries include agents, plugins, commands, and skills from this collection.

davepoon/buildwithclaude · 3,429 stars · on GitHub · buildwithclaude.com

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/davepoon/buildwithclaude

Made for: Claude Code.

Or install all-commands, the plugin that ships this one along with the rest of its 23 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 architecture-review

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/davepoon/buildwithclaude/architecture-review"><img src="https://agentmods.dev/badge/commands/davepoon/buildwithclaude/architecture-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 710 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.00005 $0.00710
Opus 5 $0.00003 $0.00355
Sonnet 5 $0.00001 $0.00142
Haiku 4.5 $0.00001 $0.00071

Measured 3d ago against content hash 4d5caf68857a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 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.

plugins/all-commands/commands/architecture-review.md · 104 lines

How it starts

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

Architecture Review Command

Review and improve system architecture

Instructions

Perform a comprehensive architectural analysis following these steps:

  1. High-Level Architecture Analysis

    • Map out the overall system architecture and components
    • Identify architectural patterns in use (MVC, MVP, Clean Architecture, etc.)
    • Review module boundaries and separation of concerns
    • Analyze the application's layered structure
  2. Design Patterns Assessment

    • Identify design patterns used throughout the codebase
    • Check for proper implementation of common patterns
    • Look for anti-patterns and code smells
    • Assess pattern consistency across the application
  3. Dependency Management

    • Review dependency injection and inversion of control
    • Analyze coupling between modules and components
    • Check for circular dependencies
    • Assess dependency direction and adherence to dependency rule
  4. Data Flow Architecture

    • Trace data flow through the application
    • Review state management patterns and implementation
    • Analyze data persistence and storage strategies
    • Check for proper data validation and transformation
  5. Component Architecture

    • Review component design and responsibilities
    • Check for single responsibility principle adherence
    • Analyze component composition and reusability
    • Assess interface design and abstraction levels
  6. Error Handling Architecture

    • Review error handling strategy and consistency
    • Check for proper error propagation and recovery
    • Analyze logging and monitoring integration
    • Assess resilience and fault tolerance patterns
  7. Scalability Assessment

    • Analyze horizontal and vertical scaling capabilities
    • Review caching strategies and implementation
    • Check for stateless design where appropriate
    • Assess performance bottlenecks and scaling limitations
  8. Security Architecture

    • Review security boundaries and trust zones
    • Check authentication and authorization architecture
    • Analyze data protection and privacy measures
    • Assess security pattern implementation

Read the full file on GitHub · 104 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. 3d ago First seen · 104 lines · 5 tokens per session scan A 4d5caf68857a

Subscribe to this mod's changes

architecture-review is a command published in the GitHub repository davepoon/buildwithclaude (3,429 stars, last pushed today), licensed MIT. It adds 5 tokens to every session and 710 once invoked, about $0.0000 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-09-05.