architecture-review
Installation
SKILL.md
Architecture Review
Use this skill before implementing a non-trivial structural change. Do not use it for a local bug fix or a small refactor whose boundaries and contracts remain unchanged.
The score is a decision aid, not a substitute for reasoning. Explain the evidence behind each score and reject an abstraction that adds complexity without improving the baseline.
Workflow
- Describe the current design as the baseline, including its duplication, coupling, contracts, tests, and hot path.
- Describe the smallest viable proposal and at most one meaningful alternative.
- Identify affected public APIs, package boundaries, consumers, and per-call production paths.
- Score the baseline and proposal from 1–10 on each dimension below using
baseline → proposal. - Require the proposal to score at least 8/10 on five dimensions. Treat regressions in public-surface discipline or hot-path fitness as blockers even if the aggregate score passes.
- Ask the user before implementation when two viable designs have meaningful trade-offs.
- Record the selected design's contracts and cover boundaries with observable tests.