/nlsmdn:review-architecture [--staged | --unpushed | --changed | --all | --multi]from nlsmdn
Review system architecture — layering, module boundaries, coupling/cohesion, pattern fit, quality attributes (scalability, resilience, evolvability), and architectural smells. Triggers "review architecture", "architecture review", "system design review", "check architecture".
Ships in nlsmdn. 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.
Macro-level review of system structure: how modules, layers, and components fit together. Complements review-cleancode (micro/code smells) and review-interfaces (single-interface design).
Use only these finding priorities, in descending order:
Grade the demonstrated consequence, realistic reachability, and available recovery against project priorities. A category, missing convention, hypothetical future problem, or confidence that a claim is true does not set its priority. Do not assign automatic severity floors or ceilings. Keep unverified claims in validation gaps, outside the graded finding count; distinguish suggestions from defects. For plans, trace the consequence if implemented and state the assumptions.
Use the short labels Must Fix, Should Fix, and Nice to Have in summaries and ledgers.
Keep effort, verification status, user-facing change size, and tool/vendor diagnostic ratings
separate. When called by code-review, return its requested evidence and impact fields; the parent
owns scoring and final triage. Otherwise apply this rubric directly. Omit empty priority sections.
/review-architecture # Review context-related code
/review-architecture --staged # Review staged changes against the surrounding architecture
/review-architecture --unpushed # Review all unpushed commits against the surrounding architecture
/review-architecture --changed # Review unstaged changes against the surrounding architecture
/review-architecture --all # Full system audit (parallel agents per category)
/review-architecture --multi # Also get external advisor opinions
| Flag | Scope | Method |
|---|---|---|
| (none) | Context-related code | Files from the current conversation context. If no context, ask the user to specify a target or use --staged/--changed/--all. |
--staged | Staged changes + their architectural context | git diff --cached --name-only, then read each file's surrounding module/layer to judge fit |
--unpushed | Unpushed commits + their architectural context | git diff --name-only $(git rev-list HEAD --not --remotes | tail -1)^..HEAD, then read each file's surrounding module/layer to judge fit |
--changed | Unstaged changes + their architectural context | git diff --name-only, then read each file's surrounding module/layer to judge fit |
--all | Full system | Map directory/module structure, then parallel agents per category |
--multi | Add external opinions | Combines with any scope; invokes second-opinion --quick |
--unpushed derives its range from git rev-list HEAD --not --remotes (oldest unpushed commit's parent → HEAD). If nothing is unpushed, or there is no remote/upstream (or the range walks back to the root commit) so it can't be determined reliably, stop and ask the user to pick another scope.
CLAUDE.md, docs/, ADRs) overrides generic best practice. Read those first; do not flag a deliberate deviation as a violation.review-cleancode (SOLID at class level) or review-interfaces (single-function/class design). Architecture is about between modules, not within one.--staged only touches isolated leaf code, say so and stop — do not invent issues.Read project conventions first — CLAUDE.md (root + relevant subdirs), docs/architecture/, docs/adr/, any ADR-style markdown. These define the intended architecture; the review checks alignment to it, not to a generic ideal.
Determine scope based on flags (see Scope table).
Map the structure:
--staged or --changed: identify which modules/layers the changed files belong to and what they import from.--all: build a quick mental map of top-level modules, their dependencies, and the dominant pattern (layered, hexagonal, event-driven, modular monolith, microservices).Review against the 6 categories in the Architecture Checklist below.
Parallelize if --all or the diff scope spans >5 modules: spawn one sub-agent per category, each scanning across the scope. Merge and deduplicate findings.
Dispatch workers that return findings without editing files. Disable delegation tools where supported; read-only access alone does not prevent delegation. Any coordinating role needs explicit subtasks, a descendant limit, and a stopping condition in its brief.
External opinions (if --multi): invoke second-opinion --quick, which queries every advisor it has configured, in parallel (the roster lives in the second-opinion skill). Phrase the diff source according to the resolved scope (git diff --cached for --staged, git diff for --changed, the whole repository for --all):
Read-only architecture review. Review the architecture of the <diff source> and their surrounding modules in this repository. Focus on: module boundaries and coupling, layering violations, pattern consistency, support for stated quality attributes (scalability, resilience, evolvability), and architectural smells (god modules, circular deps, leaky abstractions, manager classes, modular mirage). Provide a focused review in 300 words or less.
Wait for all external results before proceeding to step 7.
For each attribute the project cares about, check whether the architecture actively supports it. Don't grade attributes the project doesn't claim.
review-correctness.(Specific deep dives belong to review-security and review-perf — here, look for structural support or lack of support, not specific bugs.)
process.env reads.review-correctness.CLAUDE.md, docs/, ADRs. Flag deviations and note when documentation is stale relative to the code.| Smell | Signal | Consequence to verify |
|---|---|---|
| Circular module dependency | A → B → A | Initialization failure or coupled changes |
| Layer inversion | Lower layer imports from higher | Concrete dependency or testing constraint |
| God module | Imported by ~everything, imports ~everything | Measured change surface or ownership conflict |
| Modular mirage | Split folders + shared mutable state / singleton manager | Cross-module behavior or change coupling |
| Leaky abstraction | Interface exposes implementation type | Caller breakage when implementation changes |
| Anemic domain | Logic in services, models are data bags | A cost beyond disagreement with the chosen style |
| Distributed monolith | Services must deploy together | Required deployment independence is blocked |
| Shotgun surgery axis | One change touches many modules | Repeated, concrete maintenance cost |
| Manager centralization | One module orchestrates, others are passive | Bottleneck or ownership problem |
| Hidden coupling | Modules sync via shared DB table / global state instead of API | Traced failures or costly coordination |
## Architecture Review: {scope}
### Summary
{1-3 sentences: dominant pattern, biggest risk, overall health}
### Critical Issues (Must Fix)
- {module or file:line} - {category}: {description}
**Impact:** {what breaks or becomes risky}
**Fix:** {direction — not necessarily a full design}
### Improvements (Should Fix)
- {module} - {category}: {description}
**Fix:** {direction}
### Suggestions (Nice to Have)
- {module} - {description}
### Documentation Gaps
- {decisions that lack an ADR or comment explaining why}
If --multi was used, append:
### External Opinions
Add one subsection per advisor that responded, titled with the advisor's name as reported by `second-opinion`:
#### {advisor name}
{that advisor's review}
#### Cross-Model Agreement
{areas where the external advisors agree/disagree with the Claude review — consensus issues (flagged by multiple models) get higher confidence}
Staged change introduces a layering violation:
/review-architecture --staged
A new file in src/ui/ directly imports db/connection.ts. The review reads the surrounding module, sees that all other UI code goes through services/, and reports the layer inversion as Should Fix only if it creates a concrete testing or maintenance cost; otherwise as Nice to Have with the fix to route the call through the existing service.
Full audit finds a god module:
/review-architecture --all
Parallel agents per category. Finds lib/utils.ts imported by 80+ files and itself importing from auth, db, and HTTP layers. Traces representative changes and caller constraints. Reports Should Fix if the coupling causes meaningful repeated work; otherwise a useful split is Nice to Have. Import counts alone do not set priority.
Cross-model architecture review on a contested refactor:
/review-architecture --multi --staged
Runs the 6-category review plus the external advisors. Cross-model agreement highlights that multiple reviewers flag the same circular dependency between orders and billing, raising confidence.
Solution: The diff may be leaf-level but introduce a coupling not visible from the file alone. Re-run with a wider lens — read the parent module's imports and exports, and ask whether this change shifts where data flows or who owns what.
review-cleancode or review-interfacesSolution: Architecture findings should be about relationships between modules. If a finding is fully describable inside a single class or function, it belongs in review-cleancode. If it's about a single interface's signature, it belongs in review-interfaces. Drop the overlap.
Solution: Pattern choice is a project decision, not a universal one. If CLAUDE.md/docs/ document the intended pattern, judge against that. If not, flag the absence of a documented decision rather than imposing one.
--all is too slow on a large codebaseSolution: Restrict scope to a top-level module: /review-architecture src/orders/ or similar. Architecture review is most valuable per bounded context, not whole-repo at once.
CLAUDE.md, docs/, ADRs) before flagging deviations as violations.--all, parallelize one agent per category (6 agents).What SKILL.md sets; muted values are Claude Code's defaults
xhighnpx claudepluginhub nielsmadan/skills --plugin nlsmdnOther plugins' skills for the same job
65 skills in this plugin
/blind-spotsSurface consequential decisions a plan, design, or research brief left silently assumed, by interviewing the user in dependency order. Use when the user says "blind spots", "grill me", "stress-test this plan", "poke holes in this", "what am I missing", "interrogate this design", "what haven't I decided", or needs a loose idea or research brief clarified before work begins. Do NOT use for a clear factual lookup, to explain a previous reply in more detail (use `huh`), to generate ideas when it is unclear what to build (use `ideation`), or to review an already-written plan with agents (use `review-plan`)./brainstormWork out how to solve a problem the user can already name — interview them with `blind-spots` to understand it, generate structurally different approaches, validate each with an independent critic, then present the survivors with trade-offs and a recommendation. Use when the user says "brainstorm", "brainstorm approaches", "how should we solve/approach/tackle X", "what are our options", "compare approaches", "think this through with me", or wants solutions weighed before committing. Works on any topic, with codebase recon when a repo is involved; `--debate` adds external advisors for high-stakes calls. Do NOT use when stuck on what to build or what the problem is (use `ideation`), to probe an already-chosen plan (use `blind-spots`), or to pick a library or service (use `evaluate-tech`)./check-agent-logsSearch past Claude Code, Codex, Cursor CLI, Devin CLI, Droid, and Pi session logs to recover context from earlier work across the current project and sibling checkouts. Use when a bug, topic, or decision was handled in a previous session but its agent or checkout is unknown; when the user says "we fixed/discussed this before", "find the session where", "recover prior context", "check agent logs", "check Claude projects", "search past sessions/transcripts", or "which checkout was that in". Do not use for aggregate failure-pattern analysis; use review-logs for that./codebase-reviewReview a whole codebase aspect by aspect, with aspects fitted to the project type (mobile, desktop, web frontend, static site, CLI, backend, library) — docs truth-check, architecture, tests, security, the type's foundations, feature deep dives, consistency, roadmap — writing a doc per aspect and a verified findings ledger that doubles as the TODO. Plans first (recon, `blind-spots`, `review-plan`, plan approval), then walks the plan with the user aspect by aspect — agents review and verify in the background, the user confirms rulings and decides judgment calls one at a time. `--auto` runs independently after the gate, with decision waves at the end. `--fix` hands settled findings through `crew` to worker sessions, integrated locally, never pushed. Use for "codebase review", "review the whole codebase", "onboard me to this repo", "deep dive this app", "audit the code base", "review and fix everything". Not for a diff or PR (code-review), a CLI release pass (release-review), or building a feature (longshot)./codebase-review-typescriptSupply TypeScript and JavaScript structural evidence to codebase-review using dependency-cruiser, ESLint complexity, and Git churn. Use for whole-codebase import-cycle and complexity-hotspot investigation, or when discovered as a project-local codebase-review extension. Does not replace review-typescript's type-design checks or review a diff./code-guideCoach the user through writing a feature themselves, one small step at a time, the way an experienced developer would build it. Each step comes with the code to type and a checkpoint that proves it works, such as logging the endpoint's response shape before typing it, or rendering a hardcoded value before wiring the real one. After each step the agent reads the user's diff and verifies it. The happy path comes first and edge cases come last. Use when the user says "code-guide", "guide me to write", "help me write this myself", "I want to code it myself", "coach me through implementing", "walk me through building this feature", "don't write it for me", or wants to learn by typing the code. Do NOT use for console or dashboard setup (use guide), explaining existing code (use code-tour), or when the agent should implement the change itself (use plan or longshot).