architecture-reviewer

architecture-reviewer is an agent for Claude Code from ruslan-korneev/claude-plugins. It costs 10 tokens per session (1,760 once invoked), scanned A, original, MIT.

An agent that reviews the design of a Python backend, including its folders, layers, dependencies, and use of shared services such as databases. It checks whether different parts of the application have clearly separated responsibilities.

In plain words
What is it for?
Use it to assess project organisation, layered architecture, dependency injection, and common design violations in FastAPI and SQLAlchemy applications.
Why use it?
It helps reveal structural problems such as business rules in request handlers, direct database access in the wrong layer, or dependencies pointing in the wrong direction.

Agent for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Part of the tech-lead plugin — 14 commands, 9 agents shipped together

Good fit Use it to assess project organisation, layered architecture, dependency injection, and common design violations in FastAPI and SQLAlchemy applications.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ruslan-korneev/claude-plugins/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/ruslan-korneev/claude-plugins

Made for: Claude Code.

Or install tech-lead, the plugin that ships this one along with the rest of its 14 commands, 9 agents.

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/ruslan-korneev/claude-plugins/architecture-reviewer.svg)](https://agentmods.dev/agents/ruslan-korneev/claude-plugins/architecture-reviewer)
Your own site
<a href="https://agentmods.dev/agents/ruslan-korneev/claude-plugins/architecture-reviewer"><img src="https://agentmods.dev/badge/agents/ruslan-korneev/claude-plugins/architecture-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 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,760 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.00010 $0.01760
Opus 5 $0.00005 $0.00880
Sonnet 5 $0.00002 $0.00352
Haiku 4.5 $0.00001 $0.00176

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

plugins/tech-lead/agents/architecture-reviewer.md · 297 lines

How it starts

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

Agent architecture-reviewer

You are a software architecture expert specializing in Python backend systems (FastAPI, SQLAlchemy). Your task is to perform comprehensive architecture analysis.

Analysis Checklist

1. Project Structure

Analyze the directory structure:

# Get project tree
find . -type f -name "*.py" | head -100
ls -la src/ 2>/dev/null || ls -la app/ 2>/dev/null

Check for:

  • Clear module boundaries (src/modules/ or src/apps/)
  • Core infrastructure isolated (src/core/)
  • Tests mirroring source structure
  • No utils.py dumping ground (max 100 lines)

2. Layered Architecture

Verify layer separation:

Glob: **/routers.py, **/views.py     # Presentation
Glob: **/services.py                  # Application
Glob: **/models.py                    # Domain
Glob: **/repositories.py              # Infrastructure

Violations to detect:

  • Business logic in routers (should be in services)
  • Direct DB access in services (should be via repositories)
  • Models importing services (inverted dependency)

3. Dependency Injection

Check DI implementation:

# Good: Constructor injection
Grep: "def __init__.*:$" in **/services.py

# Bad: Hardcoded dependencies
Grep: "= UserRepository\(\)" in **/services.py

Verify:

  • Services receive dependencies via __init__
  • DI container configured (dependency-injector or Depends)
  • No global mutable state
  • Protocols/Interfaces for dependencies

4. Data Model Quality

Analyze SQLAlchemy models:

Grep: "class.*Base\):" in **/models.py
Grep: "mapped_column" in **/models.py
Grep: "relationship" in **/models.py
Grep: "ForeignKey" in **/models.py

Check:

  • SQLAlchemy 2.0 style (Mapped, mapped_column)
  • Proper relationships defined
  • Indexes on frequently queried fields
  • No circular relationships
  • Soft delete pattern (if applicable)

5. API Design

Review FastAPI routers:

Glob: **/routers.py
Grep: "@router." in **/routers.py
Grep: "status_code=" in **/routers.py

Read the full file on GitHub · 297 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. 8d ago First seen · 297 lines · 10 tokens per session scan A 0187a2253a2c

Subscribe to this mod's changes

architecture-reviewer is an agent published in the GitHub repository ruslan-korneev/claude-plugins (4 stars, last pushed 6mo ago), licensed MIT. It adds 10 tokens to every session and 1,760 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.

Related

Other agents, from other repositories

oban-specialist

Oban worker specialist - reviews idempotency, error handling, and production safety. Use proactively when implementing or reviewing background jobs.

oliver-kriska/claude-elixir-phoenix · 30 tokens

information-architect

Adversarial information architect who assumes the current documentation is harder to find, orient in, and comprehend than it needs to be. Audits READMEs, API docs, plugin docs, ADR collections, tutorials, and reference content against established IA practice — the four IA systems (organization, labeling, navigation…

testdouble/han · 193 tokens

enterprise-saas-reviewer

B2B / enterprise-SaaS pre-implementation reviewer. Outputs threat model TM-{slug}.md and signs off tenant-isolation decisions before senior-dev claims tasks.

avelikiy/great_cto · 40 tokens

integrations-engineer

Third-party integration specialist for SMB Product-Builder archetypes. Owns the integration contract — OAuth2/API-key flows, webhook signature verification, idempotency keys, retry/backoff with jitter, rate-limit handling, secret storage, and sandbox→prod promotion — for Stripe, Twilio, QuickBooks, Google/Microsoft…

avelikiy/great_cto · 106 tokens

migration-import-engineer

Data-migration and onboarding-import specialist for SMB Product-Builder archetypes. Owns the import contract — incumbent export (CSV/XLSX/JSON/API) → our schema with field mapping, type coercion, dedup, a validation report, dry-run + rollback, and idempotent re-import. Source playbooks for ServiceTitan, Toast…

avelikiy/great_cto · 109 tokens

api-platform-reviewer

API platform / dev-API pre-implementation reviewer. Outputs threat model TM-{slug}.md.

avelikiy/great_cto · 25 tokens