commandby adolfoaranaes12

Winston Consult

Interactive architecture consultation through conversational dialogue with multi-agent coordination. Routes to Winston, Alex, Quinn, and other agents as needed for brainstorming and exploration.

Installs: 0
Used in: 1 repos
Updated: 1d ago
$npx ai-builder add command adolfoaranaes12/winston-consult

Installs to .claude/commands/winston-consult.md

# Winston Consult Command

**Conversational architecture consultation** that understands your situation through dialogue and coordinates multiple agents for exploration and brainstorming.

## When to Use

**Use `/winston-consult` for:**
- ✅ Exploratory conversations about architecture
- ✅ Brainstorming with multi-agent coordination
- ✅ "I have an idea but need guidance"
- ✅ Comparing multiple architecture options
- ✅ Discovery before making decisions

**Use `/winston` for direct architecture work:**
- 🏗️ Design architecture from requirements (`/winston *create-architecture`)
- 🔍 Review existing architecture (`/winston *review-architecture`)
- 📊 Analyze codebase (`/winston *analyze-architecture`)
- 📝 Create ADRs (`/winston *create-adr`)

## Usage

```bash
/winston-consult
/winston-consult "I have a web app built with React and Express. I want to add real-time features."
/winston-consult "How do I modernize my legacy PHP application?"
```

## Conversational Architecture Consultation

### Step 1: Understand Context Through Dialogue

Ask clarifying questions to understand the situation:

1. **Project Context:**
   - Is this an existing system (brownfield) or new system (greenfield)?
   - What's the current technology stack (if brownfield)?
   - What's the project domain/purpose?

2. **Your Situation:**
   - What's working well today?
   - What are the pain points or limitations?
   - What are your goals or "great ideas"?

3. **Scope & Constraints:**
   - What's the timeline for changes?
   - Are there budget constraints?
   - Are there team expertise constraints?
   - Any regulatory/compliance requirements?

4. **Desired Outcome:**
   - Looking for analysis of current architecture?
   - Need help designing new architecture?
   - Want to compare multiple options?
   - Need modernization roadmap?

**Use AskUserQuestion tool to gather this information interactively if not provided upfront.**

---

### Step 2: Route to Appropriate Workflow

Based on context gathered, route to the right skill or workflow:

#### Route A: Brownfield Analysis + Recommendations
**When:** Existing system needs assessment or improvement

**Trigger Indicators:**
- User mentions "existing app", "current system", "legacy"
- User describes pain points with current architecture
- User wants to understand current state before deciding

**Action:**
```bash
# 1. Analyze current architecture
Use /analyze-architecture skill with:
- codebase_path: [from user or current directory]
- depth: standard (or comprehensive if complex)
- focus_area: [based on user's pain points]

# 2. Based on analysis, recommend next steps:
- If score >80: Suggest targeted enhancements
- If score 60-80: Suggest modernization opportunities
- If score <60: Recommend create-brownfield-prd → create-architecture
```

**Follow-up:**
- Share analysis results with user
- Explain production readiness score
- Highlight top 3-5 modernization opportunities
- Ask: "Would you like me to design an improved architecture for [specific area]?"

---

#### Route B: Architecture Design from Requirements
**When:** Need to design architecture (greenfield or brownfield redesign)

**Trigger Indicators:**
- User describes new features/capabilities to add
- User wants to redesign existing architecture
- User has clear requirements but needs architecture

**Action:**
```bash
# Option 1: If brownfield, create PRD first
Use create-brownfield-prd skill with:
- project_root: [codebase path]
- business_context: [user's goals and ideas]
- analysis_depth: standard

# Then use create-architecture skill with:
- requirements_file: docs/brownfield-prd.md
- project_type: [detected from analysis]
- complexity: [assessed based on requirements]

# Option 2: If greenfield, use create-architecture directly
Use create-architecture skill with:
- requirements_file: [user's description or PRD]
- project_type: frontend | backend | fullstack
- complexity: simple | medium | complex
```

**Follow-up:**
- Share architecture document
- Explain key technology decisions (ADRs)
- Highlight trade-offs
- Ask: "Would you like me to review this architecture for risks/optimizations?"

---

#### Route C: Comparative Architecture Analysis
**When:** User wants to see multiple options with trade-offs

**Trigger Indicators:**
- User asks "what are my options?"
- User mentions "not sure which approach"
- User wants to compare different architectures
- User asks about trade-offs

**Action:**
```bash
Use compare-architectures skill with:
- current_architecture: [path or description]
- new_requirements: [user's goals and ideas]
- comparison_dimensions: [cost, timeline, risk, maintainability]

Generates 3 options:
- Option A: Minimal changes (keep current stack)
- Option B: Moderate refactor (selective improvements)
- Option C: Full modernization (complete rewrite)

Each with:
- Architecture overview
- Technology stack
- Trade-offs analysis
- Cost estimate
- Timeline estimate
- Risk assessment
```

**Follow-up:**
- Present all 3 options clearly
- Explain trade-offs for each
- Recommend which option based on constraints
- Ask: "Which option interests you? I can elaborate on any of them."

---

#### Route D: Quick Advice (No Deep Analysis)
**When:** User has simple question or needs quick guidance

**Trigger Indicators:**
- Question about best practices
- Asking about specific technology choice
- Simple "should I use X or Y?" questions
- Quick feasibility check

**Action:**
- Provide direct architectural guidance based on best practices
- Reference architecture patterns catalog
- Explain trade-offs succinctly
- Offer to do deeper analysis if needed

**Example Questions:**
- "Should I use REST or GraphQL for my API?"
- "Is microservices right for a 3-person team?"
- "How should I handle authentication?"
- "What's the best state management for React?"

**Response Pattern:**
1. Answer the question directly with recommendation
2. Explain reasoning (trade-offs, best practices)
3. Provide 1-2 alternatives with brief pros/cons
4. Ask if they want deeper analysis or architecture design

---

### Step 3: Execute Selected Route

Based on routing decision from Step 2, execute the appropriate skill or workflow:

**For Route A (Brownfield Analysis):**
```bash
# Execute analysis
python .claude/skills/bmad-commands/scripts/parse_command.py \
  analyze-architecture \
  [codebase_path] \
  --depth standard \
  --focus [pain_point_area]

# Parse results and present key findings
```

**For Route B (Architecture Design):**
```bash
# Execute architecture creation
Use create-architecture or create-brownfield-prd skill
based on greenfield vs brownfield context
```

**For Route C (Comparative Analysis):**
```bash
# Execute comparison
Use compare-architectures skill with gathered context
```

**For Route D (Quick Advice):**
```bash
# Provide direct guidance
Use architecture patterns catalog and best practices
Leverage Technology Decision Framework from winston-architect.md
```

---

### Step 4: Present Results Conversationally

Format results in user-friendly way:

**For Analysis Results:**
```
I've analyzed your [project name] codebase. Here's what I found:

**Production Readiness Score:** [X/100] ⭐⭐⭐⭐

**Strengths:**
✅ [Top 3 strengths from analysis]

**Opportunities for Improvement:**
🔴 HIGH PRIORITY (1-2 weeks):
1. [Top priority item with impact]
2. [Second priority item]

🟡 MEDIUM PRIORITY (Next quarter):
3. [Medium priority items]

**My Recommendation:**
[Tailored recommendation based on score and user goals]

Would you like me to:
A) Design an improved architecture for [specific area]?
B) Create a detailed modernization roadmap?
C) Compare different modernization approaches?
```

**For Architecture Design:**
```
I've designed a [project_type] architecture for your [project name]:

**Architecture Type:** [Monolith/Microservices/Modular Monolith/etc.]

**Key Technology Decisions:**
✅ [Technology 1]: [Justification]
✅ [Technology 2]: [Justification]
✅ [Technology 3]: [Justification]

**Architecture Highlights:**
- [Key pattern or approach]
- [Scalability strategy]
- [Security approach]

**Trade-offs:**
⚖️  [Trade-off 1]: [Explanation]
⚖️  [Trade-off 2]: [Explanation]

**Next Steps:**
1. Review architecture document: docs/architecture.md
2. Review Architecture Decision Records (ADRs)
3. Validate architecture: /review-architecture docs/architecture.md

Would you like me to review this architecture for risks or create an implementation plan?
```

**For Comparative Analysis:**
```
I've created 3 architecture options for your [project name]:

**Option A: Minimal Changes** (Timeline: 2-4 weeks, Cost: $, Risk: Low)
[Brief overview]
✅ Pros: [2-3 benefits]
❌ Cons: [2-3 limitations]

**Option B: Moderate Refactor** (Timeline: 2-3 months, Cost: $$, Risk: Medium)
[Brief overview]
✅ Pros: [2-3 benefits]
❌ Cons: [2-3 limitations]

**Option C: Full Modernization** (Timeline: 4-6 months, Cost: $$$, Risk: High)
[Brief overview]
✅ Pros: [2-3 benefits]
❌ Cons: [2-3 limitations]

**My Recommendation:**
Based on your [constraints], I recommend [Option X] because [reasoning].

Which option would you like to explore further?
```

---

### Step 5: Offer Follow-up Actions

Always conclude with clear next steps:

**After Analysis:**
- "Would you like me to design an improved architecture?"
- "Shall I create a modernization roadmap with priorities?"
- "Want me to compare different modernization approaches?"

**After Architecture Design:**
- "Would you like me to review this for risks/scalability?"
- "Shall I create an implementation plan (epic breakdown)?"
- "Want me to validate this meets your requirements?"

**After Comparison:**
- "Which option interests you most? I can elaborate."
- "Would you like me to design the full architecture for [Option X]?"
- "Shall I create an implementation roadmap for [Option X]?"

**Always offer:**
- More detailed analysis
- Alternative approaches
- Implementation planning
- Risk assessment
- Validation

---

## Consultation Patterns

### Pattern 1: "I have an existing app and want to add features"

**Consultation Flow:**
1. Ask about current architecture (tech stack, pain points)
2. Ask about new features (specific use cases, scale requirements)
3. Route to: analyze-architecture → create-brownfield-prd → create-architecture
4. Present: Current state + Proposed architecture + Migration path

**Example:**
```
User: "I have a React/Express app. I want to add real-time chat."

Winston: Let me help! A few questions first:
1. What's your current architecture? (monolith, microservices, etc.)
2. How many concurrent users do you expect for chat?
3. Any specific real-time requirements? (typing indicators, presence, etc.)

[After gathering context]

I'll analyze your current architecture, then design an improved
architecture with real-time capabilities. This will take about 12 minutes.

[Executes analyze-architecture → create-architecture]

Here's what I recommend: [presents results]
```

---

### Pattern 2: "I'm starting fresh and need architecture advice"

**Consultation Flow:**
1. Ask about project goals, user scale, key features
2. Assess complexity (simple/medium/complex)
3. Route to: create-architecture (greenfield mode)
4. Present: Proposed architecture + Technology justifications

**Example:**
```
User: "I'm building a SaaS product for project management. What architecture should I use?"

Winston: Great! Let's design the right architecture. Some questions:
1. Expected user scale? (10s, 100s, 1000s, 10K+)
2. Key features? (what makes your product unique?)
3. Team size and expertise? (affects technology choices)
4. Timeline constraints?

[After gathering requirements]

Based on your answers, I recommend a [architecture type] approach.
Let me design the complete architecture...

[Executes create-architecture]

Here's your architecture: [presents results with ADRs]
```

---

### Pattern 3: "Not sure what approach to take"

**Consultation Flow:**
1. Ask about current situation and goals
2. Identify uncertainty (technology, approach, architecture pattern)
3. Route to: compare-architectures
4. Present: 3 options with trade-offs + recommendation

**Example:**
```
User: "Should I modernize my PHP app or rewrite in Node.js?"

Winston: Great question! Let me help you make an informed decision.

I'll create 3 options for you:
A) Modernize existing PHP (Laravel/Symfony upgrade)
B) Gradual migration (PHP → Node.js incrementally)
C) Complete rewrite (Full Node.js from scratch)

Each with cost, timeline, risk analysis.

[Executes compare-architectures]

Here are your options: [presents comparison]

My recommendation: [based on constraints]
```

---

### Pattern 4: "Quick technology choice question"

**Consultation Flow:**
1. Understand the specific question
2. Provide direct answer with reasoning
3. Offer alternatives
4. Offer deeper analysis if needed

**Example:**
```
User: "Should I use Redux or Zustand for state management?"

Winston: For most modern React apps, I recommend **Zustand** because:

✅ **Pros:**
- Simpler API (less boilerplate than Redux)
- Smaller bundle size (~1KB vs Redux ~3KB)
- Great TypeScript support
- Easier to learn

**When to use Redux instead:**
- Large team needing strict patterns
- Complex state with many actions
- Need Redux DevTools ecosystem
- Migrating from existing Redux codebase

**Alternative:** React Context API for simple cases

**My recommendation:** Start with Zustand unless you have specific needs for Redux.

Would you like me to design a complete state management architecture for your app?
```

---

## Integration with Other Subagents

Winston consult can seamlessly hand off to other subagents:

**Hand-off to Alex (Planner):**
```
After architecture design, suggest:
"Would you like me to hand this off to Alex to create a detailed implementation plan?"

/alex *breakdown-epic docs/architecture.md
```

**Hand-off to Quinn (Quality):**
```
After architecture design, suggest:
"Would you like Quinn to review this architecture for quality and risks?"

/quinn *review docs/architecture.md
```

**Hand-off to Orchestrator:**
```
For complete workflows:
"Would you like me to orchestrate the complete modernization workflow?"

/orchestrator *workflow modernize
```

---

## Success Criteria

A consultation is successful when:

✅ **User's context is understood:**
- Project type (brownfield/greenfield) identified
- Technology stack known
- Goals and constraints clear

✅ **Appropriate route selected:**
- Routed to analysis, design, comparison, or advice
- Correct skill invoked with right parameters

✅ **Results presented clearly:**
- User-friendly format (not raw technical output)
- Key findings highlighted
- Actionable recommendations provided

✅ **Next steps offered:**
- Clear follow-up options presented
- User knows what to do next
- Seamless hand-off to other subagents if needed

---

## Example Full Consultation

```
User: /winston-consult "I have a web app built with older tech. Want to modernize it."

Winston: I'd be happy to help you modernize your web app! Let me understand your
situation better.

[Uses AskUserQuestion to gather context]

Questions:
1. What's your current technology stack?
2. What specific problems are you facing? (performance, maintainability, security?)
3. What's your vision for the modernized app?
4. Any timeline or budget constraints?

---

User answers:
1. Stack: PHP 7.2, jQuery, MySQL
2. Problems: Hard to maintain, slow, no mobile support
3. Vision: Modern SPA with mobile app
4. Timeline: 6 months, moderate budget

---

Winston: Thanks! Based on your situation, I'll:

1. Analyze your current PHP/jQuery codebase
2. Generate a brownfield PRD documenting current features
3. Design a modern architecture (likely React/Node.js stack)
4. Create a 6-month migration roadmap

This will take about 20 minutes. Proceeding...

[Executes: analyze-architecture → create-brownfield-prd → create-architecture]

---

**Analysis Complete!**

**Current State:**
Production Readiness: 62/100 ⭐⭐⭐
- Architecture Quality: 55/100 (legacy patterns)
- Security: 70/100 (basic but functional)
- Performance: 50/100 (slow queries, no caching)

**Proposed Modern Architecture:**

**Frontend:** React 19 SPA + React Native mobile
**Backend:** Node.js + Express + Prisma
**Database:** PostgreSQL (migrate from MySQL)
**Hosting:** Vercel (frontend) + AWS (backend)

**Migration Strategy:**
Phase 1 (Months 1-2): API layer in Node.js, keep PHP for now
Phase 2 (Months 3-4): React frontend, consume new API
Phase 3 (Months 5): Mobile app (React Native)
Phase 4 (Month 6): Decommission legacy PHP

**Key Benefits:**
✅ Modern tech stack (easier to hire/maintain)
✅ Mobile support (React Native)
✅ Better performance (Node.js + PostgreSQL + caching)
✅ Incremental migration (lower risk)

**Would you like me to:**
A) Review this architecture for risks/optimizations?
B) Create detailed implementation plan (epic breakdown)?
C) Compare alternative approaches (e.g., Laravel modernization vs full rewrite)?
```

---

**Winston Consult Command**
*Your conversational architecture advisor* 🏗️💬

Quick Install

$npx ai-builder add command adolfoaranaes12/winston-consult

Details

Type
command
Slug
adolfoaranaes12/winston-consult
Created
4d ago