Skip to content
architecture-review logo

Architecture Review Skill

architecture-review

Architecture review and design validation. Evaluates system designs against best practices, identifies anti-patterns, and ensures architectural decisions align with non-functional requirements.

oimiragieo/agent-studio0installs43stars

SKILL.md

Full skill instructions

Architecture Review Skill

<identity> Architecture Review Skill - Evaluates system designs against best practices, identifies anti-patterns, and ensures architectural decisions align with non-functional requirements (scalability, maintainability, security, performance). </​identity> <capabilities> - Reviewing system architecture designs - Identifying anti-patterns and architectural smells - Validating against SOLID, DRY, YAGNI principles - Assessing non-functional requirements - Recommending architectural improvements </​capabilities> <instructions> <execution_process>

Step 1: Gather Architecture Context

Understand the current architecture by:

  1. Read project structure: Use Glob to map directory structure
  2. Identify key components: Find entry points, services, data layers
  3. Review dependencies: Check package.json, imports, module graph
  4. Understand data flow: Trace requests through the system

Step 2: Evaluate Design Principles

Check adherence to fundamental principles:

SOLID Principles:

  • Single Responsibility: Does each class/​module have one reason to change?
  • Open/​Closed: Can behavior be extended without modification?
  • Liskov Substitution: Are subtypes substitutable for base types?
  • Interface Segregation: Are interfaces focused and minimal?
  • Dependency Inversion: Do high-level modules depend on abstractions?

Other Principles:

  • DRY: Is logic duplicated unnecessarily?
  • YAGNI: Are there unused or speculative features?
  • Separation of Concerns: Are responsibilities properly divided?

Step 3: Check for Anti-Patterns

Identify common anti-patterns:

  • God Class/​Module: Classes doing too much
  • Spaghetti Code: Tangled, hard-to-follow logic
  • Circular Dependencies: Modules that reference each other
  • Feature Envy: Classes that use other classes' data excessively
  • Shotgun Surgery: Changes that require touching many files
  • Leaky Abstractions: Implementation details exposed to consumers

Step 4: Assess Non-Functional Requirements

Evaluate against NFRs:

  • Scalability: Can the system handle increased load?
  • Maintainability: How easy is it to modify and extend?
  • Testability: Can components be tested in isolation?
  • Security: Are there potential vulnerabilities?
  • Performance: Are there obvious bottlenecks?
  • Observability: Can the system be monitored effectively?

Step 5: Generate Review Report

Create a structured report with:

  1. Summary: Overall assessment and key findings
  2. Strengths: What the architecture does well
  3. Concerns: Issues requiring attention (prioritized)
  4. Recommendations: Specific improvements with rationale
  5. Trade-offs: Acknowledge valid design trade-offs

</​execution_process>

<best_practices>

  1. Be Constructive: Focus on improvements, not criticism
  2. Prioritize Issues: Not all problems are equally important
  3. Consider Context: Understand constraints and trade-offs
  4. Suggest Alternatives: Don't just identify problems
  5. Reference Patterns: Cite established patterns when relevant

</​best_practices> </​instructions>

<examples> <usage_example> **Example Review Request**:
Review the architecture of src/​services/ for scalability and maintainability

Example Response Structure:

## Architecture Review: src/​services/

### Summary

The service layer follows a reasonable structure but has some coupling issues...

### Strengths

- Clear separation between API handlers and business logic
- Good use of dependency injection

### Concerns

1. **High Priority**: UserService has 15 methods (God Class)
2. **Medium Priority**: Circular dependency between OrderService and InventoryService
3. **Low Priority**: Some magic numbers in validation logic

### Recommendations

1. Split UserService into UserAuthService and UserProfileService
2. Introduce EventBus to decouple Order and Inventory
3. Extract validation constants to configuration

</​usage_example> </​examples>

Iron Laws

  1. ALWAYS review architecture before COMPLEX or EPIC implementation starts — architectural problems discovered after implementation cost 10-100x more to fix; review in the design phase.
  2. NEVER approve an architecture with undocumented single points of failure — every SPOF must be explicitly identified and have a documented mitigation plan.
  3. ALWAYS evaluate against non-functional requirements — performance, security, scalability, maintainability, and observability are non-optional; functional correctness without NFR compliance is incomplete.
  4. NEVER treat architectural trade-offs as implicit — every trade-off must be explicitly documented with rationale; hidden trade-offs become future surprises and unowned technical debt.
  5. ALWAYS check for circular dependencies before approving a design — circular module dependencies make testing, refactoring, and deployment order unpredictable and progressively harder to resolve.

Anti-Patterns

Anti-PatternWhy It FailsCorrect Approach
No NFR evaluationDesign may pass functional tests but fail at scale or under attackAlways evaluate performance, security, scalability, observability
Reviewing only the happy pathSystems fail at error boundaries, not in the happy pathReview failure modes, retry behavior, and circuit breakers
Approving without trade-off documentationHidden trade-offs become future surprisesExplicitly document all trade-offs with rationale
Single point of failure left undocumentedSystem has silent fragility that surfaces under loadMap all SPOFs; require mitigation plans for each
Checking SOLID without anti-pattern catalogPrinciple adherence doesn't guarantee absence of anti-patternsCheck both principles AND concrete anti-patterns (God Class, Shotgun Surgery, etc.)
Architecture review after implementation startsToo late to fix structural issues without major reworkReview in design phase, before any code is written

Rules

  • Always provide constructive feedback with actionable recommendations
  • Prioritize issues by impact and effort to fix
  • Consider existing constraints and trade-offs

Related Workflow

This skill has a corresponding workflow for complex multi-agent scenarios:

  • Workflow: .claude/​workflows/​architecture-review-skill-workflow.md
  • When to use workflow: For comprehensive audits or multi-phase analysis requiring coordination between multiple agents (developer, architect, security-architect, code-reviewer)
  • When to use skill directly: For quick reviews or single-agent execution

Memory Protocol (MANDATORY)

Before starting:

cat .claude/​context/​memory/​learnings.md

After completing:

  • New pattern -> .claude/​context/​memory/​learnings.md
  • Issue found -> .claude/​context/​memory/​issues.md
  • Decision made -> .claude/​context/​memory/​decisions.md

ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

More skills from oimiragieo

cloud-devops-expert logo
oimiragieo/agent-studio

cloud-devops-expert

Cloud and DevOps expert including AWS, GCP, Azure, and Terraform

43 0
View
xlsx logo
oimiragieo/agent-studio

xlsx

Spreadsheet toolkit (.xlsx/.csv). Create/edit with formulas/formatting, analyze data, visualization, recalculate formulas, for spreadsheet processing and analysis.

43 0
View
project-analyzer logo
oimiragieo/agent-studio

project-analyzer

Automated brownfield codebase analysis with weighted keyword scoring, three-stream analysis, and design pattern recognition. Detects project type, frameworks, dependencies, architecture patterns, and generates comprehensive project profile.

43 0
View
readme logo
oimiragieo/agent-studio

readme

Use when creating, updating, or generating README and documentation files for projects and libraries

43 0
View
scientific-writing logo
oimiragieo/agent-studio

scientific-writing

Core skill for the deep research and writing tool. Write scientific manuscripts in full paragraphs (never bullet points). Use two-stage process with (1) section outlines with key points using research-lookup then (2) convert to flowing prose. IMRAD structure, citations (APA/AMA/Vancouver), figure...

43 0
View
android-expert logo
oimiragieo/agent-studio

android-expert

Comprehensive Android development expert covering Jetpack Compose, Kotlin coroutines/Flow, Architecture Components, Hilt DI, Navigation, testing, performance, Material Design 3, and modern Android patterns (MVI, Clean Architecture).

43 0
View
biorxiv-database logo
oimiragieo/agent-studio

biorxiv-database

Efficient database search tool for bioRxiv preprint server. Use this skill when searching for life sciences preprints by keywords, authors, date ranges, or categories, retrieving paper metadata, downloading PDFs, or conducting literature reviews.

43 0
View
omega-gemini-cli logo
oimiragieo/agent-studio

omega-gemini-cli

Use when the user wants to use Google Gemini for analysis, large files or codebases, sandbox execution, or brainstorming. Uses headless Gemini CLI scripts (no MCP). Triggers on "use Gemini", "analyze with Gemini", "large file", "sandbox", "brainstorm with Gemini".

43 0
View
gtars logo
oimiragieo/agent-studio

gtars

High-performance toolkit for genomic interval analysis in Rust with Python bindings. Use when working with genomic regions, BED files, coverage tracks, overlap detection, tokenization for ML models, or fragment analysis in computational genomics and machine learning applications.

43 0
View
service-class-conventions logo
oimiragieo/agent-studio

service-class-conventions

Defines the structure and implementation of service classes, enforcing the use of interfaces, ServiceImpl classes, DTOs for data transfer, and transactional management.

43 0
View
diffdock logo
oimiragieo/agent-studio

diffdock

Diffusion-based molecular docking. Predict protein-ligand binding poses from PDB/SMILES, confidence scores, virtual screening, for structure-based drug design. Not for affinity prediction.

43 0
View
skill-discovery logo
oimiragieo/agent-studio

skill-discovery

How agents discover and use skills. Use to understand skill invocation protocol.

43 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View