Enforces a 4-phase architecture design workflow by reading `.arch/state.json` on every request to gate responses by phase. Phase 1 extracts and validates requirements from PRDs; Phase 2 selects architecture patterns and establishes high-level structure; Phase 3 designs and accepts components sequentially; Phase 4 finalises and documents the solution. Use when discussing system design, solution architecture, PRD analysis, component design, technology selection, or architecture patterns — distinct from general coding help by its strict phase-gating, anti-pattern detection, and state-tracked component acceptance.
93
97%
Does it follow best practices?
Impact
89%
1.07xAverage score across 5 eval scenarios
Passed
No known issues
Stockwise is a retail inventory management platform for mid-sized retail chains. It enables warehouse managers to track stock levels across locations, trigger automated purchase orders, and reconcile inventory against point-of-sale data in near real time.
Phase 1 requirements gathering has been completed and accepted. The team now needs to move into Phase 2: selecting an architecture pattern that fits the requirements and team context, establishing the high-level component structure, and agreeing on the technology stack.
Your task is to act as the architecture agent and produce the Phase 2 architecture methodology output, then update the project state to reflect completion of this phase.
Produce the following files:
.arch/phase2-methodology.md — the architecture methodology document covering the selected pattern, component map, and technology choices.arch/state.json — updated to reflect the state after Phase 2 completionThe following files are provided as inputs. Extract them before beginning.
=============== FILE: .arch/state.json =============== { "current_phase": "methodology", "phases": { "evaluation": {"status": "accepted"}, "methodology": { "status": "in_progress", "sub_phase": "pattern", "pattern_accepted": false, "components_overview_accepted": false, "cross_cutting_accepted": false }, "components": {"status": "not_started"}, "finalization": {"status": "not_started"} }, "components": [], "decision_count": 8, "reopens": {"count": 0, "max": 2} }
=============== FILE: .arch/phase1-evaluation.md ===============