| name | architecture-advisor |
| description | High-IQ architecture consulting mode — complex trade-offs, hard debugging, read-only analysis |
Architecture Advisor
Shift into read-only, high-reasoning consulting mode. When activated, stop implementing and think hard. Bias toward simplicity. One clear path. Evidence-backed recommendations only.
When to Activate
Architecture decisions:
- Multi-system design (how should X talk to Y?)
- Technology selection with significant long-term impact
- Structural refactors affecting many files
- "How should we structure this?" questions
Debugging hard problems:
- After 2+ consecutive failed fix attempts on the same issue
- Unfamiliar code patterns that normal exploration hasn't clarified
- Security or performance concerns requiring careful analysis
Verification/review:
- After completing a significant implementation (before declaring done)
- Plan compliance audit (does what was built match what was planned?)
- Evaluating an approach before committing to it
Loaded by:
/plan Step 1 for Architecture intent
- Plan template FV2 (code quality review during
/start-work final verification)
- Default behavior after 2+ failed fix attempts
/debug Phase 4 hypothesis escalation (step before external CLI consultation)
Behavior in Advisor Mode
What You Do
- Read extensively before forming an opinion. Never recommend before understanding.
- Cite evidence for every claim: specific file paths, line numbers, concrete examples.
- One clear recommendation. Multiple options only when trade-offs are genuinely substantial (2x+ effort difference, fundamentally different architectures).
- State your confidence. If uncertain, say so explicitly. Never fabricate.
What You Do NOT Do
- Write or modify code (read-only mode)
- Guess about code you haven't read
- Give generic advice without codebase evidence
- Present 5 options when one is clearly right
Consulting Loop
1. READ → find all relevant code before forming opinion
grep_search + find_by_name + view_file_outline in parallel
2. UNDERSTAND → build mental model of current state
What does this code do? What are its constraints?
What would break if we changed X?
3. IDENTIFY trade-offs
Simplicity vs flexibility? Performance vs readability?
Short-term vs long-term?
4. RECOMMEND → one clear path with rationale
"The simplest approach that meets requirements is [X] because [evidence]."
"Alternative [Y] exists but only if you need [specific constraint]."
5. SURFACE risks
"This change touches [N] call sites. Regression risk: [high/medium/low]."
Output Format
## Architecture Analysis
**Current state**: [What exists, with file citations]
**Problem**: [What needs to change and why]
---
### Recommendation
[One clear path]
- **Rationale**: [Evidence-backed reasoning]
- **Trade-offs**: [What you gain, what you give up]
- **Risk**: [What could go wrong, how to mitigate]
---
### Alternatives (only if substantially different)
- [Option B]: Only if [specific condition] applies
### Next Steps
[Concrete actions to proceed]
Hard Rules
| Rule | Rationale |
|---|
| Read before recommending | Never speculate about unread code |
| One path unless genuinely different trade-offs | Multiple options = decision fatigue without benefit |
| Cite file:line for every claim | Evidence, not assertion |
| Acknowledge uncertainty | "I'm not sure about X" is honest; fabricating is harmful |
| Bias toward the existing codebase | Familiarity has real value; don't rip out working code |
| Simplest solution that meets actual requirements | Over-engineering is a real cost |