From janmarkuslanger-engineering
Full architecture review of an implemented feature or module. Evaluates against clean design principles — single responsibility, dependency direction, layer separation, and interface quality — and produces actionable findings.
How this skill is triggered — by the user, by Claude, or both
Slash command
/janmarkuslanger-engineering:architecture-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
When this skill is activated, perform a structured architecture review of a feature, module, or the full codebase and produce a `docs/reviews/ARCHITECTURE_REVIEW.md` report. This review evaluates the *quality* of the architecture as built — not the original intent.
When this skill is activated, perform a structured architecture review of a feature, module, or the full codebase and produce a docs/reviews/ARCHITECTURE_REVIEW.md report. This review evaluates the quality of the architecture as built — not the original intent.
Before starting the review, ask the engineer the following questions. Skip any already clearly answered in the conversation. Wait for the answers before proceeding.
docs/DESIGN.md or docs/SYSTEM_DESIGN.md exist that the implementation should be compared against?Write a file called docs/reviews/ARCHITECTURE_REVIEW.md (create the docs/reviews/ folder if it does not exist) with the following sections:
What was reviewed. One paragraph of overall verdict: is the architecture sound, concerning, or critical?
A Mermaid diagram of the actual architecture as found in the code — layers, modules, and their dependencies:
graph TD
subgraph Presentation
A[HTTP Handler]
end
subgraph Domain
B[OrderService]
C[PriceCalculator]
end
subgraph Infrastructure
D[PostgresRepository]
E[StripeClient]
end
A --> B
B --> C
B --> D
B --> E
Evaluate each dimension with a rating and findings:
Rating: Good | Fair | Poor
Are components doing one thing? List any components with mixed responsibilities.
Rating: Good | Fair | Poor
Does the dependency arrow point the right way? Domain must not depend on infrastructure. High-level policy must not depend on low-level detail. List every violation.
Rating: Good | Fair | Poor
Are presentation, domain, and infrastructure concerns clearly separated? Are there layer leaks (e.g. SQL in a domain object, HTTP response objects in business logic)?
Rating: Good | Fair | Poor
Are interfaces narrow and focused (Interface Segregation)? Are abstractions at the right level? Are there fat interfaces that force irrelevant implementations?
Rating: Good | Fair | Poor
A high-level pass only: is coupling conscious and managed, or are there accidental couplings that will cause change propagation? Give a rating and name the worst offenders — but do not produce a full coupling inventory here. For depth (dependency map, per-coupling classification, circular-dependency detection), run the dedicated coupling-review skill. If docs/reviews/COUPLING_REVIEW.md already exists, summarise and reference it instead of re-analysing.
Rating: Good | Fair | Poor
A high-level pass only: does the architecture allow components to be tested in isolation, and are there seams at significant boundaries? Give a rating and name the biggest blockers — but do not produce a full testability report here. For depth (per-component testability score, seam-by-seam fixes), run the dedicated testability-review skill. If docs/reviews/TESTABILITY_REVIEW.md already exists, summarise and reference it instead of re-analysing.
For each problem found across all dimensions:
Finding: {Short Title}
Critical | Major | Minor| Finding | Severity | Effort | Recommended Action |
|---|---|---|---|
| Domain imports Stripe SDK | Critical | Medium | Extract PaymentPort interface in domain layer |
Patterns or decisions in the codebase that are architecturally sound and should be preserved or extended. Good architecture reviews acknowledge what's right, not only what's wrong.
docs/DESIGN.md exists, compare the as-built architecture against the original design and note driftdocs/reviews/COUPLING_REVIEW.md or docs/reviews/TESTABILITY_REVIEW.md exist, reference them rather than duplicating their findingsCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub janmarkuslanger/skills --plugin janmarkuslanger-engineering