Must-ah avatar

architecture-check

This skill should be used for quick inline architecture validation during coding. Use when the user

作者 Must-ah|オープンソース

Quick Architecture Check for brain-mimc

This skill provides quick inline architecture validation during coding. Use it for fast "is this correct?" checks.

When to Use This Skill

  • Quick "is this good architecture?" checks
  • Pattern verification (BasePlaneFacade, contracts-first, etc.)
  • Validate single implementation decision
  • Immediate answer needed

When to Use the Agent Instead

If the question requires:

  • Deep analysis of multiple files
  • Full codebase audit
  • Stress-testing an idea
  • Implementation planning

Recommend: "This requires deeper analysis. Use the brain-software-arch-expert agent instead."

Quick Check Process

  1. Read the relevant code section
  2. Check against brain-mimc patterns
  3. Provide immediate answer with reasoning
  4. Flag if deeper analysis is needed

Brain-mimc Patterns to Check

PatternQuick Check
BasePlaneFacadeDoes the plane inherit from BasePlaneFacade?
Contracts-firstIs there a Protocol class for this implementation?
Frozen dataclassesIs the message type using @dataclass(frozen=True)?
Raw never goes upIs data being transformed before ascending?
Drivers vs ModulatorsIs driver changing gate state? (violation)
Scope-basedIs the component properly scoped?
IdempotencyDoes the command use action_id?
No blocking in asyncAny time.sleep() or sync calls in async?
Component isolationCan this run standalone with mocked I/O?

Communication Lanes Quick Reference

LaneDirectionQuick Check
A (DRIVER)AscendingIs it going up? Transformed at each level?
B (MODULATOR)Cortex -> ThalamusFeedback direction correct?
C (COMMAND)DescendingGoing down only?
D (GLOBAL)BroadcastIs this truly global?
E (ERROR)LearningProper error routing?
G (GATE)Control-planeIs this control, not data?
X (REFLECTION)Non-blockingNot blocking primary flow?

Response Format

For quick checks, respond with:

## /arch-check Result

**Pattern:** [Pattern being checked]
**Status:** [PASS / FAIL / NEEDS REVIEW]
**Reason:** [Brief explanation]
**Fix:** [If FAIL, how to fix]

If deeper analysis is needed:

## /arch-check Result

**Status:** NEEDS DEEPER ANALYSIS
**Reason:** [Why this can't be answered quickly]
**Recommendation:** Use `brain-software-arch-expert` agent for full analysis

Examples

Example 1: Checking BasePlaneFacade

User: /arch-check Does this follow BasePlaneFacade pattern?

## /arch-check Result

**Pattern:** BasePlaneFacade
**Status:** FAIL
**Reason:** Class does not inherit from BasePlaneFacade, missing ingress validation
**Fix:** Inherit from BasePlaneFacade and implement dispatch() method

Example 2: Checking Lane Usage

User: /arch-check Which lane should this message use?

## /arch-check Result

**Pattern:** Lane Assignment
**Status:** PASS - Should use Lane A (DRIVER)
**Reason:** This is content data ascending from spinal cord to brainstem
**Fix:** N/A

Example 3: Needs Deeper Analysis

User: /arch-check Is this architecture correct for the thalamus nucleus routing?

## /arch-check Result

**Status:** NEEDS DEEPER ANALYSIS
**Reason:** Thalamus nucleus routing involves multiple patterns and cross-references
**Recommendation:** Use `brain-software-arch-expert` agent for full analysis