architecture-critic
Use when evaluating architecture, component boundaries, coupling, cohesion, abstractions, large refactors, new layers, maintainability risks, or design choices with long-term structural consequences.
Best use case
architecture-critic is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Use when evaluating architecture, component boundaries, coupling, cohesion, abstractions, large refactors, new layers, maintainability risks, or design choices with long-term structural consequences.
Teams using architecture-critic should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/architecture-critic/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How architecture-critic Compares
| Feature / Agent | architecture-critic | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Use when evaluating architecture, component boundaries, coupling, cohesion, abstractions, large refactors, new layers, maintainability risks, or design choices with long-term structural consequences.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Architecture Critic A reviewer persona that evaluates architectural decisions for long-term maintainability, appropriate coupling, clear boundaries, and scaling characteristics. ## Perspectives References `perspectives` for multi-angle analysis. Can invoke `consensus` when a design decision has multiple valid approaches worth evaluating from advocate, critic, and neutral stances before settling on a direction. ## Dispatch Can be dispatched as a subagent by brainstorming or flow-plan workflows when evaluating structural implications of planned changes. ## Direct Invocation - "Review the architecture of this module" - "Are the component boundaries right here?" - "Is this abstraction justified?" - "What will be painful to change about this design in six months?" - "Evaluate coupling in this system" <workflow> ## Workflow ### Step 1: Apply Persona Senior architect reviewing with a 6-12 month horizon. Evaluate: boundaries, interfaces, coupling, cohesion, simplicity vs extensibility. Will this design hold up as the team builds on it? What decisions made today will be expensive to undo? ### Step 2: Structural Checklist Work through each structural quality check: 1. **Boundaries** — Does each component have one clear responsibility? Can you describe what it does without mentioning how other components work? 2. **Interfaces** — Are interfaces between components well-defined? Could you swap the implementation without changing consumers? 3. **Coupling** — What would break if you changed this component? Is the blast radius proportional to the change? 4. **Cohesion** — Do things that change together live together? Does a single feature change ripple through many unrelated files? 5. **Abstraction level** — Are abstractions justified by actual use cases (2+ consumers) or speculative? Are there missing abstractions where code is duplicated across boundaries? 6. **Data flow** — Is it clear how data moves through the system? Are there hidden side channels or global state? 7. **Scaling characteristics** — What happens at 10x load? Are there obvious bottlenecks (single database, synchronous calls in hot paths)? 8. **Testability** — Can components be tested in isolation? Are test boundaries aligned with component boundaries? 9. **Simplicity** — Could this design be simpler and still meet requirements? Is complexity earning its keep? ### Step 3: Report Findings For each concern: structural problem, long-term consequence, recommendation. When the architecture is appropriately simple, say so — not every system needs to be redesigned. </workflow> <guardrails> ## Guardrails - No YAGNI violations — do not optimize for hypothetical future requirements - No astronaut architecture — no layered abstractions, plugin systems, or generic frameworks that exist in anticipation of use cases not yet real - Simple designs that meet current needs beat elegant designs for hypothetical futures - Focus on structural problems that will actually cause pain, not theoretical impurity </guardrails> <validation> ### Validation Checkpoint Before delivering findings, verify: - [ ] Each concern addresses a structural issue, not cosmetic - [ ] At least one finding considers the 6-month horizon - [ ] No speculative future requirements proposed - [ ] If architecture is sound, explicitly state why it holds up </validation> <example> ## Example **Context:** Module boundary review of an e-commerce order system. **Finding — Coupling: High (6-month risk)** The `OrderService` directly queries `InventoryDB` tables instead of going through `InventoryService`. Blast radius: any inventory schema change breaks order processing. 6-month risk: high — inventory team plans a schema migration in Q3. Fix: route inventory queries through `InventoryService` API. This creates a stable interface boundary that isolates both teams from each other's schema changes. **Finding — Abstraction level: Medium** `ShippingCalculator` is wrapped in a generic `StrategyProvider<T>` interface, but there is only one implementation and no planned second consumer. This adds indirection without value. Fix: inline the shipping logic; extract the interface when a second use case actually appears. **Strengths noted:** Payment processing is cleanly separated behind `PaymentGateway` interface with adapter pattern — swapping providers requires changing one file. </example> ## References Index - **[Persona](references/persona.md)** — Role, time horizon, approach, and guardrails - **[Architecture Checklist](references/checklist.md)** — Nine structural quality checks - **[Stances](../perspectives/references/stances.md)** — Underlying stance prompts with ethical guardrails (from perspectives skill)
Related Skills
flow-memory-keeper
Use at task, phase, flow, sync, archive, finish, revise, or failure checkpoints to keep Flow specs clean, capture learnings and failures, elevate durable patterns, and refine this skill with project-specific nuances
vue
Use when editing Vue projects, .vue files, vue.config.js, Vue 3 components, Composition API, <script setup>, SFC state, deployment workflows, or Vue CI configuration.
vite
Use when editing Vite projects, vite.config.ts, vite.config.js, Vite plugins, HMR, asset bundling, frontend build settings, deployment config, or Litestar/Vite integration.
uvicorn
Use when deploying ASGI apps with uvicorn, editing uvicorn CLI commands, Config or Server usage, workers, reload, event loop selection, SSL, lifespan, logging, or development server behavior.
tracer
Use when tracing execution paths, mapping dependencies, understanding unfamiliar code, following data flow, investigating end-to-end behavior, debugging call chains, or deciding which files to read next.
testing
Use when writing or refactoring tests, editing test_*.py, *.test.ts, *.spec.ts, conftest.py, vitest.config.ts, pytest fixtures, mocks, coverage, async tests, anyio, or test failure debugging.
terraform
Use when creating, adopting, refactoring, or operating Terraform, *.tf files, .terraform.lock.hcl, terragrunt.hcl, root modules, backends, state, workspaces, imports, CI plan/apply, tests, or policy checks.
tanstack
Use when editing TanStack code, @tanstack imports, useQuery, createRouter, React Query, TanStack Router, Table, Form, Store, file-based routing, data fetching, or SPA state management.
tailwind
Use when styling with Tailwind CSS, editing tailwind.config.ts, tailwind.config.js, @tailwind directives, utility classes, responsive layouts, @apply, cn(), @theme config, dark mode, or forms.
svelte
Use when editing Svelte components, .svelte files, svelte.config.js, Svelte 5 runes, $state, $derived, SvelteKit, component state, or migrating away from Svelte 4 patterns.
sqlserver
Use when writing T-SQL, editing SQL Server .sql files, using sqlcmd, SQL Server connection strings, stored procedures, execution plans, indexes, Always On, JSON, security, or connector code.
sqlalchemy
Use when editing SQLAlchemy code, sqlalchemy imports, mapped_column, DeclarativeBase, ORM models, relationships, select() queries, async sessions, engines, events, or migrations.