From skills
Review system-level architecture of a PR, branch, namespace, or whole project — boundary violations, dependency cycles, layer breaches, ADR compliance, cohesion of modules and bounded contexts. Make sure to use this skill whenever the user asks to review the architecture, audit module boundaries, check for circular dependencies, verify domain structure, or says things like "architektur-review", "prüfe die struktur", "check architecture", "review namespace", "audit boundaries", "are our modules clean". Use this skill for HIGH-LEVEL structural review only — SOLID, class design, and method-level issues belong in `component-review`.
How this skill is triggered — by the user, by Claude, or both
Slash command
/skills:architecture-review [pr <N> | branch <name> | namespace <path> | leave empty for whole project][pr <N> | branch <name> | namespace <path> | leave empty for whole project]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Audit structural health: boundaries, dependency direction, layering, ADR drift. Report findings — never modify code.
Audit structural health: boundaries, dependency direction, layering, ADR drift. Report findings — never modify code.
In scope: module/context boundaries, dependency cycles, layer violations, namespace cohesion, public-API surface leaks, shared-model pollution, drift from documented ADRs.
Out of scope: SOLID inside a class, naming of private methods, style, line-level bugs (→ component-review or general code review).
# Review architecture of a specific PR
/architecture-review pr 42
# Review a branch against main
/architecture-review branch feat/orders-refactor
# Focus on a single namespace/module
/architecture-review namespace src/Order
# Review the whole project
/architecture-review
flowchart TD
A["Parse target mode"] --> B["Load project context"]
B --> C["Collect files in scope"]
C --> D["Build dependency map"]
D --> E["Run checks"]
E --> F["Report findings"]
From $ARGUMENTS:
pr <N> → gh pr diff <N>, gh pr view <N> --json headRefName,files, read full file context via git show <branch>:<file>branch <name> → git diff main...<name>, git ls-tree -r <name>, read files via git show <branch>:<file>namespace <path> → recursively read files under <path>Check in order:
.agent-context/layer1-bootstrap.md, layer2-project-core.md.agent-context/decisions.json → ADRs that define intended structuredocs/architecture/**/*.mdCLAUDE.md, AGENTS.md, CONTRIBUTING.mdNever block on missing context — infer from code layout.
Per detected stack, extract imports/uses:
use statements, PSR-4 namespaces from composer.jsonimport statements, path aliases from tsconfig.json/nuxt.configimport blocks, module path from go.modimport + package declarationsimport/from, top-level packagesGroup imports by top-level module/namespace. Flag:
Run each relevant check and record findings with file:line:
internal/decisions.json or docs/architecture/adr/: does the current code still match?WebFetch / Context7 for current-version best practices when the stack version mattersinternal/Output in the user's language. Structure:
## Architecture Review — <scope>
**Risk Level:** LOW | MEDIUM | HIGH | CRITICAL
**Detected stack:** <stack>
**Checks run:** <list>
## Critical (must fix)
- **<Title>** — `path/to/file:line`
- Problem: <what>
- Why it matters: <impact>
- Suggested direction: <high-level fix, not code>
## Warnings (should fix)
- ...
## Observations (worth knowing)
- ...
## ADR Compliance
| ADR | Status | Notes |
| --------------------- | ----------- | ---------------------------------- |
| ADR-0003 Hexagonal | ✅ ok | |
| ADR-0007 No shared DB | ⚠️ drifting | `OrderRepo` touches billing tables |
## Suggested Next Steps
1. ...
2. ...
component-review instead.file:line reference.npx claudepluginhub lx-wnk/claude-marketplace --plugin skillsProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.