architecture-reviewer

architecture-reviewer is an agent for Claude Code from camilooscargbaptista/cto-toolkit. It costs 92 tokens per session (1,177 once invoked), scanned A, original, MIT.

An agent that examines a whole codebase's architecture, meaning how its parts are organized and depend on one another. It produces a report covering structure, dependencies, coupling, cohesion, and common design problems.

In plain words
What is it for?
Use it to assess project organization, dependency direction, circular dependencies, configuration, module boundaries, and refactoring options.
Why use it?
It helps reveal tangled dependencies, weak separation between layers, oversized modules, and other issues that make software harder to change.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; names the NotebookEdit tool.

Part of the cto-toolkit plugin — 54 skills, 6 agents, 3 hooks shipped together

Good fit Use it to assess project organization, dependency direction, circular dependencies, configuration, module boundaries, and refactoring options.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/camilooscargbaptista/cto-toolkit/architecture-reviewer
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/camilooscargbaptista/cto-toolkit

Made for: Claude Code.

Or install cto-toolkit, the plugin that ships this one along with the rest of its 54 skills, 6 agents, 3 hooks.

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-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/camilooscargbaptista/cto-toolkit/architecture-reviewer/github.svg)](https://agentmods.dev/agents/camilooscargbaptista/cto-toolkit/architecture-reviewer)
Your own site
<a href="https://agentmods.dev/agents/camilooscargbaptista/cto-toolkit/architecture-reviewer"><img src="https://agentmods.dev/badge/agents/camilooscargbaptista/cto-toolkit/architecture-reviewer/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-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/camilooscargbaptista/cto-toolkit/architecture-reviewer"><img src="https://agentmods.dev/badge/agents/camilooscargbaptista/cto-toolkit/architecture-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 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,177 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.00092 $0.01177
Opus 5 $0.00046 $0.00589
Sonnet 5 $0.00018 $0.00235
Haiku 4.5 $0.00009 $0.00118

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

Security

Grade A, and why

architecture-reviewer 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.

agents/architecture-reviewer.md · 134 lines

How it starts

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

Architecture Reviewer Agent

You are an autonomous senior architect agent. Your job is to analyze an entire codebase and produce a comprehensive Architecture Health Report.

Mission

Scan the project systematically. Do NOT ask the user questions — work autonomously until you have a complete analysis. Read files, grep for patterns, and explore the structure until you can assess every dimension below.

Analysis Dimensions

1. Project Structure & Organization

  • Directory layout: is it organized by feature, layer, or hybrid?
  • Separation of concerns: are business logic, infrastructure, and presentation clearly separated?
  • Naming conventions: consistent and meaningful?
  • Configuration management: environment-specific configs, secrets handling

2. Dependency Analysis

  • Dependency direction: does domain depend on infrastructure? (it should NOT)
  • Circular dependencies between modules/packages
  • External dependency count and freshness (outdated packages)
  • Dependency injection patterns vs hard-coded instantiation

3. Coupling & Cohesion

  • Tight coupling indicators: direct imports across boundaries, shared mutable state
  • God classes/modules (too many responsibilities)
  • Feature envy (class uses another class's data more than its own)
  • Shotgun surgery risk (one change requires modifications across many files)

4. Error Handling Patterns

  • Consistent error handling strategy or ad-hoc?
  • Swallowed exceptions (catch blocks that ignore errors)
  • Error propagation: do errors bubble up with context?
  • Global error handlers present?

5. Security Posture

  • Secrets in code or config files?
  • Input validation at trust boundaries?
  • Authentication/authorization patterns consistent?
  • SQL injection, XSS vectors?

6. Testability Assessment

  • Test coverage structure (unit, integration, e2e directories)
  • Dependency injection enabling testability?
  • Hard-to-test patterns (static methods, singletons, tight coupling)?
  • Test file naming and organization

Read the full file on GitHub · 134 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. 9d ago First seen · 134 lines · 92 tokens per session scan A f89d07bdcd83

Subscribe to this mod's changes

architecture-reviewer is an agent published in the GitHub repository camilooscargbaptista/cto-toolkit (7 stars, last pushed 5mo ago), licensed MIT. It adds 92 tokens to every session and 1,177 once invoked, about $0.0005 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.

Related

Other agents, from other repositories

senior-software-developer

Architecture reviewer evaluating system design, SOLID principles, scalability, API design, and technical debt.

pjt222/agent-almanac · 25 tokens

decision-checker

Use to check a plan, diff, or set of changed paths against the architecture decisions that govern them, and get a per-decision verdict. Read-only; never writes a record.

mbeacom/adrkit · 41 tokens

legacy-modernization-assistant

Assesses a legacy .NET codebase and produces a pragmatic, incremental modernization roadmap — from .NET Framework to modern .NET, monolith to modular, and toward testability, DI, async, and current patterns — prioritized by risk and value. Use when the user wants to modernize legacy code, migrate from .NET Framework…

StefanTheCode/dotnet-ai-toolkit · 100 tokens

opus-plan-reviewer

Reviews implementation plans (fallback when external LLMs unavailable).

piercelamb/deep-plan · 17 tokens

devils-advocate

Use this agent to challenge code reviews, architecture decisions, or security approvals by finding the most plausible failure mode. The Devil's Advocate identifies where systems collapse.

alejandrosaenz117/bonfires-marketplace · 37 tokens

etyb-reviewer

Independent stage-2 code reviewer. Delegate to it after implementation work (especially subagent output) to get a fresh-context quality review focused on correctness, security, behavioral regressions, missing tests, and protocol violations. Returns severity-ranked findings and a verdict (APPROVE / APPROVEWITHCONCERNS…

e-t-y-b/etyb-skills · 100 tokens