arch:review

arch:review is a command for Claude Code from ruslan-korneev/claude-plugins. It costs 21 tokens per session (1,710 once invoked), scanned A, original, MIT.

An architecture review command for Python backends that examines project structure, layers, module boundaries, dependencies, and recurring design problems. Architecture is the way a codebase is organized and how its parts work together.

In plain words
What is it for?
Use it to inspect Python files, configuration, tests, application layers, module boundaries, and common architecture violations.
Why use it?
It helps find misplaced business logic, excessive connections between modules, and unclear responsibilities before they become harder to change.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Good fit Use it to inspect Python files, configuration, tests, application layers, module boundaries…

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/ruslan-korneev/claude-plugins/arch-review.svg)](https://agentmods.dev/commands/ruslan-korneev/claude-plugins/arch-review)
Your own site
<a href="https://agentmods.dev/commands/ruslan-korneev/claude-plugins/arch-review"><img src="https://agentmods.dev/badge/commands/ruslan-korneev/claude-plugins/arch-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 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,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.00021 $0.01710
Opus 5 $0.00010 $0.00855
Sonnet 5 $0.00004 $0.00342
Haiku 4.5 $0.00002 $0.00171

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

Security

Grade A, and why

arch: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 6d 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/commands/arch-review.md · 285 lines

How it starts

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

Command /architect:review

Comprehensive architecture review for Python backend projects.

Instructions

Step 1: Discover Project Structure

Use Glob to map the project:

# Find main structure
Glob: **/main.py, **/app.py, **/wsgi.py
Glob: **/__init__.py
Glob: **/models.py, **/services.py, **/routers.py, **/repositories.py

# Find configuration
Glob: **/config.py, **/settings.py, **/.env.example

# Find tests
Glob: **/test_*.py, **/*_test.py, **/conftest.py

Step 2: Analyze Layer Architecture

Check if proper separation exists:

Layer Files Responsibility
Presentation routers.py, views.py HTTP handling, DTOs
Application services.py Business logic
Domain models.py Entities, business rules
Infrastructure repositories.py Data access

Check violations:

  • Business logic in routers (should be in services)
  • Direct DB access in services (should be via repositories)
  • Models returning DTOs (should return domain objects)

Step 3: Check Module Boundaries

For each module, verify:

  1. Cohesion: Related functionality grouped together
  2. Coupling: Minimal dependencies on other modules
  3. Encapsulation: Clear public API (__init__.py exports)
# Check for cross-module imports
Grep: "from src.modules.users" in orders/
Grep: "from src.modules.orders" in users/

Circular dependencies:

Module A imports Module B
Module B imports Module A  ← Problem!

Step 4: Analyze Dependency Injection

Check how dependencies are managed:

Good patterns:

# Constructor injection
class UserService:
    def __init__(self, repository: UserRepository):
        self._repository = repository

# DI container (dependency-injector)
user_service = providers.Factory(UserService, repository=user_repository)

Bad patterns:

# Hard-coded dependencies
class UserService:
    def __init__(self):
        self._repository = UserRepository()  # Tight coupling!

# Global instances
user_service = UserService()  # Global state!

Read the full file on GitHub · 285 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. 6d ago First seen · 285 lines · 21 tokens per session scan A ba58b3f17664

Subscribe to this mod's changes

arch:review is a command published in the GitHub repository ruslan-korneev/claude-plugins (4 stars, last pushed 6mo ago), licensed MIT. It adds 21 tokens to every session and 1,710 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.