mcpbeat Sign in

Architecture Review Skill for Claude

Assesses architecture decisions, ADR compliance, and coupling. Use when evaluating design changes or validating structural decisions before merging.

10k tokens
context cost
the whole folder, loaded on every use
6
files
instructions only
0
copies elsewhere
how many repositories repackaged it
324
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/athola/claude-night-market --skill architecture-review

The instruction itself

24 sections, as written by the author

Table of Contents

  • Quick Start
  • When to Use
  • Progressive Loading
  • Required TodoWrite Items
  • Workflow
  • Step 1: Establish Context (arch-review:context-established))
  • Step 2: ADR Audit (arch-review:adr-audit))
  • Step 3: Interaction Mapping (arch-review:interaction-mapping))
  • Step 4: Principle Checks (arch-review:principle-checks))
  • Step 5: Risks and Actions (arch-review:risks-actions))
  • Testing

Testing

Run pytest plugins/pensive/tests/skills/test_architecture_review.py to verify review logic.

  • Architecture Principles Checklist
  • Coupling
  • Cohesion
  • Layering
  • Evolution

Architecture Review Workflow

Architecture assessment against ADRs and design principles.

Quick Start

/architecture-review

When To Use

  • Approving reimplementations.
  • Large-scale refactoring reviews.
  • System design changes.
  • New module/service introduction.
  • Dependency restructuring.

When NOT To Use

  • Selecting architecture paradigms - use archetypes

skills

  • API surface review - use api-review
  • Selecting architecture paradigms - use archetypes

skills

  • API surface review - use api-review

Progressive Loading

Load modules based on review scope:

  • modules/adr-audit.md (~400 tokens): ADR verification and documentation.
  • modules/coupling-analysis.md (~450 tokens): Dependency analysis and boundary violations.
  • modules/principle-checks.md (~500 tokens): Code quality, security, and performance.
  • modules/fpf-methodology.md (~800 tokens): FPF (Functional, Practical, Foundation) multi-perspective review methodology.
  • modules/ceremony-audit.md (~600 tokens): Manual lenses for mapping layers that never diverge. Passthrough mappers, twin types, speculative DTOs, single-implementation interfaces. Includes the IO boundary counter-signal.

Load all modules for full reviews. For focused reviews, load only relevant modules.

Required TodoWrite Items

  • arch-review:context-established: Repository, branch, motivation.
  • arch-review:adr-audit: ADR verification and new ADR needs.
  • arch-review:interaction-mapping: Module coupling analysis.
  • arch-review:invariant-check: Invariant conflict detection and 3-option analysis.
  • arch-review:principle-checks: LoD, security, performance.
  • arch-review:ceremony-audit: Mapping layers that never diverge.
  • arch-review:risks-actions: Recommendation and follow-ups.
  • arch-review:findings-verified

Workflow

Step 1: Establish Context (arch-review:context-established)

Confirm repository and branch:

pwd
git status -sb

Document:

  • Feature/bug/epic motivating review.
  • Affected subsystems.
  • Architectural intent from README/docs.
  • Design trade-off assumptions.

Step 2: ADR Audit (arch-review:adr-audit)

Load: modules/adr-audit.md

  • Locate ADRs in project.
  • Verify required sections.
  • Check status flow.
  • Confirm immutability compliance.
  • Flag need for new ADRs.

Step 3: Interaction Mapping (arch-review:interaction-mapping)

Load: modules/coupling-analysis.md

  • Diagram before/after module interactions.
  • Verify composition boundaries.
  • Check data ownership clarity.
  • Validate dependency flow direction.
  • Identify coupling violations.

Step 3.5: Invariant Conflict Detection (arch-review:invariant-check)

Before checking principles, identify whether the changes

conflict with existing design invariants. This is the

highest-judgment step in architecture review: models

get this wrong more often than any other call.

Identify existing invariants:

  • Scan ADRs for recorded decisions still in "accepted"

status

  • Check module boundaries (are imports crossing layers

that previously didn't?)

  • Check data flow direction (does data now flow in a

new direction?)

  • Check API contracts (are public interfaces changing

shape?)

  • Check structural patterns (is a new pattern being

introduced alongside an existing one?)

# Detect boundary crossings in changed files
git diff --name-only | while read f; do
  head -20 "$f" 2>/dev/null | rg "^(import|from|use |require)" || true
done

When a conflict is detected:

Do NOT recommend a resolution. Present the three options

and escalate to human judgment:

| Option | When Right | When Wrong |

|--------|------------|------------|

| Preserve invariant (reject feature) | Invariant simplifies many things; feature is marginal | Feature is genuinely needed and invariant is stale |

| Layer on top (add inelegantly) | Feature is needed; invariant still valuable; imperfection is OK | Layering creates a maintenance trap that will compound |

| Revise invariant (change the design) | Genuine new learning invalidates the original reasoning | You're "cleaning up" a decision you don't fully understand |

Output format:

### Invariant Conflicts

[I1] **[Invariant name]** — [what decision it represents]
- **Location**: file.py:42
- **Anchor**: `verbatim source text at line 42`
- **Conflict**: [what change clashes]
- **Options**: Preserve / Layer / Revise
- **Recommendation**: ESCALATE TO HUMAN
- **Risk if wrong**: [what compounds]

Why this matters: Bad invariant decisions compound.

After a few wrong calls the codebase becomes

unsalvageable. This is a judgment problem rather than a

context problem: the agent should surface it, not solve it.

Step 4: Principle Checks (arch-review:principle-checks)

Load: modules/principle-checks.md

  • Law of Demeter.
  • Anti-slop patterns.
  • Security (input validation, least privilege).
  • Performance (N+1 queries, caching).

Step 4.5: Ceremony Audit (arch-review:ceremony-audit)

Load: modules/ceremony-audit.md

Coupling analysis (Step 3) finds boundaries that leak. This step finds the

opposite failure: boundaries that cost something and separate nothing.

  • Passthrough mappers whose fields are all 1:1 copies.
  • Twin types that are structurally identical across layers.
  • Speculative DTOs with no external contract pinning their shape.
  • Interfaces with exactly one implementation and no test double.

Each finding must name the need the ceremony serves today. If no current

need can be named, the ceremony is the finding.

Do not flag mappers at an IO boundary. They are load-bearing even when

they look like passthroughs, because they stop future internal fields from

escaping. See the counter-signal in the module.

Step 5: Risks and Actions (arch-review:risks-actions)

Summarize using imbue:diff-analysis/modules/risk-assessment-framework:

  • Current vs proposed architecture.
  • Business impact.
  • Technical debt implications.

List follow-ups with owners and dates.

Provide recommendation:

  • Approve: Architecture sound.
  • Approve with actions: Minor issues to address.
  • Block: Fundamental problems requiring redesign.

Architecture Principles Checklist

Coupling

  • [ ] Dependencies follow defined boundaries.
  • [ ] No circular dependencies.
  • [ ] Extension points used properly.
  • [ ] Abstractions don't leak.

Cohesion

  • [ ] Related functionality grouped.
  • [ ] Single responsibility per module.
  • [ ] Clear module purposes.

Layering

  • [ ] Layers have clear responsibilities.
  • [ ] Dependencies flow downward.
  • [ ] No layer bypassing.

Invariants

  • [ ] Existing design invariants identified.
  • [ ] Conflicts between changes and invariants surfaced.
  • [ ] Three-option analysis (preserve/layer/revise) presented.
  • [ ] Invariant changes escalated to human judgment.
  • [ ] No silent invariant revisions in the diff.

Evolution

  • [ ] Changes are reversible.
  • [ ] Migration paths are clear.
  • [ ] ADRs document decisions.

Verify Findings Are Grounded (arch-review:findings-verified)

Every finding must cite a real location and a verbatim anchor. Write

findings to .review/findings.json and confirm each citation resolves:

python plugins/imbue/scripts/citation_verifier.py \
  --findings .review/findings.json --repo-root .

Drop or label UNVERIFIED any finding the verifier fails (exit 1); only

verified findings enter the report. See Skill(imbue:review-core) Step 5

and Skill(imbue:structured-output) for the schema.

Exit Criteria

  • Context established, ADR audit complete, interaction mapping done,

invariant conflicts surfaced, principle checks run, risks and actions

documented.

  • Every reported finding carries a Location + verbatim Anchor

confirmed by citation_verifier.py (exit 0), or unverified findings

were dropped or labeled UNVERIFIED.

Other skills for the same job

different authors, same section of the catalogue
Doc Coauthoring
by anthropics
vendor ×10

Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.

4k tokens
File Organizer
by frostant
×10

Intelligently organizes your files and folders across your computer by understanding context, finding duplicates, suggesting better structures, and automating cleanup tasks. Reduces cognitive load and keeps your digital workspace tidy without manual effort.

3k tokens
Domain Name Brainstormer
by frostant
×8

Generates creative domain name ideas for your project and checks availability across multiple TLDs (.com, .io, .dev, .ai, etc.). Saves hours of brainstorming and manual checking.

1k tokens
Brainstorming
by ZhanlinCui
×4

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

626 tokens
Planning With Files
by ZhanlinCui
×3

Implements Manus-style file-based planning for complex tasks. Creates task_plan.md, findings.md, and progress.md. Use when starting complex multi-step tasks, research projects, or any task requiring >5 tool calls.

9k tokens scripts
Scientific Brainstorming
by christophacham
×3

Creative research ideation and exploration. Use for open-ended brainstorming sessions, exploring interdisciplinary connections, challenging assumptions, or identifying research gaps. Best for early-stage research planning when you do not have specific observations yet. For formulating testable hypotheses from data use hypothesis-generation.

5k tokens
GitHub Project Management
by ComeOnOliver
×3

Comprehensive GitHub project management with swarm-coordinated issue tracking, project board automation, and sprint planning

14k tokens
Grill Me
by ComeOnOliver
×3

Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".

3k tokens

How to use it

Copy the folder

Take athola/architecture-review from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.