From architecture-review
Audits existing architecture for anti-patterns, scalability and reliability risks, and testability gaps. Graded findings with migration paths and a to-be diagram.
npx claudepluginhub realdougeubanks/claudemarketplace --plugin architecture-review/architecture-reviewReviews and improves system architecture: analyzes high-level structure, design patterns, dependencies, data flow, scalability, security, testing, and suggests enhancements.
/architecture-reviewReviews and improves system architecture: analyzes high-level structure, design patterns, dependencies, data flow, scalability, security, testing, and suggests enhancements.
/architecture-reviewPerforms principal-level architecture review auditing ADRs, design patterns, module boundaries, dependencies, and coupling. Outputs assessment, compliance status, recommendations, and escalates to War Room if risks detected.
/architecture-reviewConduct a comprehensive architecture review of your codebase, evaluating system design, scalability, maintainability, and adherence to best practices. This command provides senior-level analysis with actionable recommendations.
Evaluate the architecture of an existing system. Identify structural anti-patterns, scalability and reliability risks, coupling problems, and gaps in observability. Produce graded findings (Critical/High/Medium/Low) with concrete migration paths — not just "this is bad" but "here is how to fix it."
Use Glob and Read to build a structural picture:
index.*, main.*, server.*, app.*Read the 10 largest source files — they are usually the most problematic.
Produce a C4-style Level 2 Container diagram of what EXISTS today (not what should exist). Use Mermaid. This is the "as-is" baseline.
For each attribute, rate: OK Good / Concern / Problem
Maintainability:
Scalability:
Reliability:
Testability:
Observability:
Security posture:
Common Anti-Pattern Detection:
Explicitly check for and flag these named anti-patterns:
For each Problem and Concern finding, provide:
Based on the recommendations, produce an updated Mermaid C4 Container diagram showing the recommended target architecture.
Use Write to save to docs/architecture/architecture-review-<date>.md. Offer to write an ABD review artifact if handoffs/reviews/ exists.
## Architecture Review — <Project> — <Date>
### As-Is Architecture
[Mermaid C4 Container diagram]
### Quality Attribute Summary
| Attribute | Rating | Key Issues |
|-----------|--------|------------|
| Maintainability | Concern | God file: src/api.ts (847 lines) |
| Scalability | Problem | In-process session prevents horizontal scaling |
| Reliability | Concern | No circuit breaker on payment service calls |
| Testability | Problem | Business logic coupled to Express req/res objects |
| Observability | Concern | Logs lack request IDs |
| Security | Good | Auth middleware applied consistently |
### Anti-Patterns Detected
**[CRITICAL] Distributed Monolith**
- Description: 3 "services" share a single PostgreSQL database and call each other synchronously
- Impact: Defeats the purpose of the service split; one slow service degrades all
- Migration: [step by step]
- Effort: L | Risk: Medium
### To-Be Architecture
[Mermaid C4 Container diagram]
### Migration Roadmap
| Priority | Finding | Effort | Risk |
|----------|---------|--------|------|
| P1 | Extract session to Redis | S | Low |