architecture-review

architecture-review is a command for Claude Code from oxygen-fragment/claude-modular. It costs 0 tokens per session (600 once invoked), scanned A, original, MIT.

A command that reviews how a software system is structured and records its components, connections, interfaces, and deployment setup. It also documents technical debt, meaning work needed to improve the system.

In plain words
What is it for?
Use it to create architecture diagrams, map dependencies, review scalability and performance issues, record decisions, and plan improvements.
Why use it?
It makes architecture decisions and maintenance problems easier to understand, especially for new developers.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to create architecture diagrams, map dependencies, review scalability and performance issues, record decisions, and plan improvements.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/oxygen-fragment/claude-modular/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/oxygen-fragment/claude-modular

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/oxygen-fragment/claude-modular/architecture-review/github.svg)](https://agentmods.dev/commands/oxygen-fragment/claude-modular/architecture-review)
Your own site
<a href="https://agentmods.dev/commands/oxygen-fragment/claude-modular/architecture-review"><img src="https://agentmods.dev/badge/commands/oxygen-fragment/claude-modular/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/oxygen-fragment/claude-modular/architecture-review"><img src="https://agentmods.dev/badge/commands/oxygen-fragment/claude-modular/architecture-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 600 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.00000 $0.00600
Opus 5 $0.00000 $0.00300
Sonnet 5 $0.00000 $0.00120
Haiku 4.5 $0.00000 $0.00060

Measured 10d ago against content hash 2b00082f23b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d 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/documentation/architecture-review.md · 98 lines

What it actually says

Architecture Review Command

2. **Component Documentation**
   - Document individual component responsibilities
   - Map component dependencies and interfaces
   - Analyze coupling and cohesion patterns
   - Identify reusable components and libraries

3. **Technical Debt Assessment**
   - Identify architectural inconsistencies
   - Analyze code quality and maintainability
   - Document technical debt and improvement opportunities
   - Assess scalability and performance bottlenecks

4. **Documentation Generation**
   - Create architecture diagrams and visualizations
   - Generate component interaction diagrams
   - Document API contracts and interfaces
   - Create deployment and infrastructure diagrams

5. **Review and Recommendations**
   - Assess architecture against industry best practices
   - Identify improvement opportunities
   - Document architectural decisions and rationale
   - Create roadmap for architectural evolution

6. **Knowledge Sharing**
   - Create architecture overview presentations
   - Document onboarding materials for new developers
   - Establish architecture review processes
   - Create decision logs and ADRs
# Generated documentation:
# - System overview diagrams
# - Component documentation
# - Technical debt analysis
# - Improvement recommendations
```

```bash
# Review specific architecture layer
/docs:architecture-review --layer=data-layer

# Layer-specific review:
# - Data architecture analysis
# - Database design review
# - Data flow documentation
# - Performance optimization
```

```bash
# Architecture review for scaling
/docs:architecture-review --focus=scalability

# Scalability-focused review:
# - Performance bottlenecks
# - Scaling strategies
# - Load balancing options
# - Infrastructure requirements
```
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. 10d ago First seen · 98 lines · 0 tokens per session scan A 2b00082f23b0

Subscribe to this mod's changes

architecture-review is a command published in the GitHub repository oxygen-fragment/claude-modular (283 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 600 tokens. 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 commands, from other repositories

assess

Assesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use…

yonatangross/orchestkit · 72 tokens

review-pr

PR review using parallel specialized agents for code quality, security, testing, architecture, and performance analysis. Synthesizes findings into a review report with conventional comments (praise/issue/suggestion/nitpick) and approve or request-changes verdict. Use when reviewing pull requests, conducting security…

yonatangross/orchestkit · 69 tokens

paul:audit

Run enterprise-grade architectural audit on current plan.

ChristopherKahler/paul · 13 tokens

tech-debt

Detectar y cuantificar deuda técnica con clasificación. Usa cuando el usuario dice "deuda técnica", "technical debt", "code smells", "refactorizar", "tech debt", "code rot", "spaghetti code", "duplicación", "complejidad ciclomática", "mantenibilidad". Incluye clasificación especial para AI slop. Genera reporte con…

doncheli/don-cheli-sdd · 84 tokens

revisar

Peer review estricto de código con análisis de rendimiento, arquitectura, seguridad y cumplimiento. Usa cuando el usuario dice "revisar código", "code review", "peer review", "revisame este archivo", "review my code", "analizar código", "revisar PR", "revisar feature". Incluye análisis de performance, security OWASP…

doncheli/don-cheli-sdd · 82 tokens

reversa

Extraer arquitectura de un codebase existente (ingeniería inversa).

doncheli/don-cheli-sdd · 14 tokens