# Review Architecture

> Architecture pattern compliance review. Evaluates Type-State, Channel-Based, Iterator Pipelines, Actor Model, and Minimal Testing patterns.

- Skill: `nwiizo/review-architecture` (Agent Skill)
- Install (CLI): `npx skillmds@latest add nwiizo/review-architecture`
- Raw SKILL.md: https://api.skillmd.com/api/skills/nwiizo/review-architecture/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: nwiizo (https://skillmd.com/u/nwiizo)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/nwiizo/review-architecture

---


When subagents are enabled in Codex, prefer delegating this workflow to the `architecture-reviewer` custom agent.

Review ccswarm architecture pattern compliance based on CLAUDE.md and docs/ARCHITECTURE.md.

Evaluate these 5 patterns:

| Pattern | Search For | Avoid |
|---------|-----------|-------|
| Type-State | `PhantomData`, `impl<S: State>` | Runtime state enums |
| Channel-Based | `mpsc::channel`, `broadcast::channel` | `Arc<Mutex<...>>` |
| Iterator Pipelines | `.iter().filter().map().collect()` | Manual for loops |
| Actor Model | `Receiver<Message>`, `recv().await` | Shared mutable state |
| Minimal Testing | ~8-10 focused tests | 300+ fragile tests |

Output a JSON report with per-pattern `{ status, usage_count, score }`, `overall_score`, and `recommendations`.

