architecture-review
npx machina-cli add skill athola/claude-night-market/architecture-review --openclawTable 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 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.
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:principle-checks: LoD, security, performance.arch-review:risks-actions: Recommendation and follow-ups.
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 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 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.
Evolution
- Changes are reversible.
- Migration paths are clear.
- ADRs document decisions.
Troubleshooting
Common Issues
Command not found Ensure all dependencies are installed and in PATH
Permission errors Check file permissions and run with appropriate privileges
Unexpected behavior
Enable verbose logging with --verbose flag
Source
git clone https://github.com/athola/claude-night-market/blob/master/plugins/pensive/skills/architecture-review/SKILL.mdView on GitHub Overview
Architecture assessment against ADRs and design principles. It helps evaluate decisions, audit ADR compliance, analyze coupling, and validate design principles to improve architectural quality across large refactors and new modules.
How This Skill Works
The skill coordinates checks using tools like adr-auditor, coupling-analyzer, and principle-checker to verify ADRs, coupling boundaries, and principle conformance. It supports progressive loading of modules (adr-audit, coupling-analysis, principle-checks, fpf-methodology) based on the review scope to deliver focused or full architectural assessments.
When to Use It
- Approving reimplementations
- Large-scale refactoring reviews
- System design changes
- New module or service introduction
- Dependency restructuring
Quick Start
- Step 1: Run /architecture-review
- Step 2: Load relevant modules based on scope (e.g., adr-audit.md, coupling-analysis.md, principle-checks.md, fpf-methodology.md)
- Step 3: Review results and document required todo items
Best Practices
- Load modules based on the review scope to avoid noise
- Verify required ADR sections and immutability compliance during ADR audit
- Document architecture intent, subsystems, and design trade-offs
- Map module coupling and boundary violations to inform decisions
- Capture risks, actions, and follow-ups in a clear report
Example Use Cases
- Auditing ADR compliance after a major refactor of a payment subsystem
- Reviewing coupling and boundary violations in a multi-service system
- Validating design principles during a new module introduction
- Assessing dependency restructuring before migrating to microservices
- Approving reimplementation efforts with architecture alignment
Frequently Asked Questions
Related Skills
api-design-patterns
petekp/claude-code-setup
Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices
project-planning
athola/claude-night-market
Transform specifications into implementation plans with architecture design and dependency-ordered tasks. Use for spec-to-plan conversion, task breakdown, effort estimation. Skip if no spec exists.
memory-palace-architect
athola/claude-night-market
'Consult this skill when designing permanent memory palace structures.
architect
aiskillstore/marketplace
Design systems, plan implementations, review architecture decisions - Use when you need to plan a complex feature, design system architecture, or make high-level technical decisions.
explain-codebase
suryast/free-ai-agent-skills
Drop into any repo and generate a structured architecture overview. Maps the codebase, identifies entry points, frameworks, and dependencies — then produces a "start here" guide for new contributors.