/a-team:architecture-auditfrom a-team
Systematic architecture review workflow that maps the system as-built, identifies load-bearing decisions, and dispatches parallel specialist reviews for evidence-backed findings.
Ships in a-team. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
AN ARCHITECTURE CLAIM WITHOUT A FILE REFERENCE IS AN OPINION.
"The service layer is tightly coupled" is not a finding.
"OrderService imports 14 concrete classes from 6 modules (src/services/order.ts:1-22),
so a payment-provider swap requires touching all 6" is a finding.
Document what the code actually does, not what the docs or diagrams claim. Read entry points, build files, and dependency manifests before any source.
## System Map — YYYY-MM-DD
**Entry points:** (servers, CLIs, cron jobs, queue consumers — with file paths)
**Modules/layers:** (as they exist in the folder structure, not the intended design)
**External dependencies:** (databases, queues, third-party APIs — where each is called from)
**Data flow:** (request → response path for the 2-3 most important operations)
**Trust boundaries:** (where unvalidated input enters, where auth is checked)
If the as-built map contradicts existing architecture docs, record every divergence — each one is a finding.
List the architectural decisions the system depends on, whether or not anyone made them deliberately:
| Decision | Where visible | Deliberate or accidental? |
|---|---|---|
| Monolith vs services | repo layout, deploy config | |
| Sync vs async processing | queue usage, HTTP call chains | |
| Data ownership | which modules write which tables | |
| Coupling direction | import graph between layers | |
| State management | session stores, caches, singletons |
Use the dispatching-parallel-agents skill. Each specialist gets the Step 1 system map plus a scoped question:
| Agent | Scoped question |
|---|---|
| architect | Do module boundaries and coupling direction support the next 12 months of planned work? |
| security-reviewer | Are trust boundaries enforced at every entry point in the system map? |
| performance-profiler | Which architectural choices (N+1 patterns, sync chains, missing caches) cap throughput? |
| database-reviewer | Does data ownership match module boundaries? Any schema shared by unrelated modules? |
| infra-reviewer | Does the deploy topology match the code topology? Any single points of failure? |
Skip a specialist only if their domain is absent (e.g., no database → no database-reviewer).
Every finding must carry a file reference and a consequence:
## Finding N: <one-line statement>
**Evidence:** `path/to/file.ts:12-40` — <what the code shows>
**Consequence:** <what breaks, slows, or blocks because of this>
**Effort to fix:** S / M / L
**Risk if unfixed:** <concrete scenario, not "tech debt">
Findings without evidence are deleted, not softened.
| Severity | Criteria | Action |
|---|---|---|
| CRITICAL | Data loss, security boundary bypass, or scaling wall within one milestone | Block feature work until addressed |
| HIGH | Change amplification — routine features require touching 3+ modules | Schedule before next major feature |
| MEDIUM | Coupling or duplication that slows work but doesn't block it | Backlog with owner |
| LOW | Style-level structure issues | Note only |
## Architecture Audit — YYYY-MM-DD
**Scope:** <what was audited>
**System map:** (Step 1 output)
**Findings:** N critical / N high / N medium / N low
**Verdict:** SOUND | SOUND-WITH-RISKS | INTERVENTION-REQUIRED
**Top 3 actions:** (ordered by risk-to-effort ratio)
| Verdict | Criteria |
|---|---|
| SOUND | No critical or high findings — proceed with planned work |
| SOUND-WITH-RISKS | High findings exist with agreed mitigation dates |
| INTERVENTION-REQUIRED | Any critical finding — architecture work precedes feature work |
Feed CRITICAL and HIGH findings into the writing-plans skill as remediation plans. Record accepted risks as ADRs via the architect agent so the next audit can check whether the risk materialised.
What SKILL.md sets; muted values are Claude Code's defaults
20 skills in this plugin
/api-contract-firstHard gate before implementing any API endpoint or service interface. Requires a written, reviewed contract (OpenAPI 3.x, protobuf, or GraphQL schema) before any implementation code is written. Prevents breaking changes, misaligned clients, and undocumented behaviour./brainstormingUse BEFORE any creative work — creating features, building components, adding functionality. Explores user intent, requirements, and design before implementation. Hard-gated: no code until user approves the spec./data-migrationHard gate before any database schema change or data transformation in production. Requires a written migration plan with rollback strategy, dry run, and verification steps before execution. Prevents data loss, downtime, and irreversible schema changes.npx claudepluginhub rbraga01/a-team --plugin a-teamOther plugins' skills for the same job