claude-flow-novice 2.14.16 → 2.14.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,7 @@ Execute CFN Loop using CLI spawning for maximum cost savings (95-98% vs Task too
15
15
  ## What is CLI Mode?
16
16
 
17
17
  **CLI Mode Architecture v3.0 (Enhanced):**
18
- - Main Chat spawns **single coordinator agent** via Task()
18
+ - Main Chat spawns **single coordinator agent**
19
19
  - Enhanced coordinator spawns **all workers via CLI** with protocol compliance
20
20
  - CLI agents use **Z.ai custom routing** (when enabled)
21
21
  - **Real-time monitoring** with automatic recovery from stuck agents
@@ -77,23 +77,121 @@ Savings: 64% with custom routing, 95-98% vs all-Task
77
77
  | Standard | ≥0.75 | ≥0.90 | 10 | 3-4 | Production features |
78
78
  | Enterprise | ≥0.85 | ≥0.95 | 15 | 5 | Security, compliance, critical systems |
79
79
 
80
- ## 🚨 CRITICAL EXECUTION INSTRUCTIONS
80
+ ## How CLI Mode Works
81
81
 
82
- **YOU ARE MAIN CHAT. YOU SPAWN ONLY THE cfn-v3-coordinator AGENT.**
82
+ 1. **Main Chat** spawns a single `cfn-v3-coordinator` agent
83
+ 2. **Coordinator** orchestrates the entire CFN Loop workflow
84
+ 3. **Loop 3** agents implement the solution and validate against quality gates
85
+ 4. **Loop 2** agents review and provide validation feedback
86
+ 5. **Product Owner** makes the final decision on deliverables
87
+ 6. **Background execution** with Redis coordination for scalability
83
88
 
84
- **DO NOT spawn Loop 3 agents (backend-dev, researcher, etc.)**
85
- **DO NOT spawn Loop 2 agents (reviewer, tester, etc.)**
86
- **DO NOT spawn product-owner**
89
+ The coordinator handles all agent spawning internally using optimized CLI processes.
87
90
 
88
- The coordinator handles ALL agent spawning internally via enhanced CLI mode v3.0.
91
+ ## CLI Mode Benefits
92
+
93
+ **Cost Savings:**
94
+ - 64% savings with Z.ai routing vs all-Anthropic
95
+ - 95-98% savings vs Task tool spawning
96
+ - Scales linearly with iterations (Task mode scales exponentially)
97
+
98
+ **Production Features v3.0:**
99
+ - Background execution (no timeout issues)
100
+ - Redis state persistence (crash recovery)
101
+ - Zero-token waiting (BLPOP blocks without API calls)
102
+ - Web portal visibility (http://localhost:3000)
103
+ - **Enhanced monitoring**: Real-time agent progress tracking
104
+ - **Automatic recovery**: Dead process cleanup and agent restart
105
+ - **Protocol compliance**: Prevents "consensus on vapor" anti-patterns
106
+ - **Progress visibility**: Detailed reports with timestamps and health status
107
+
108
+ **Performance:**
109
+ - Parallel agent spawning (no sequential bottleneck)
110
+ - Instant wake-up (<100ms latency)
111
+ - Scalable (10+ agents, indefinite cycles)
112
+
113
+ ## When to Use CLI Mode
114
+
115
+ **Use CLI Mode for:**
116
+ - ✅ Production features
117
+ - ✅ Long-running tasks (>10 min)
118
+ - ✅ Multi-iteration workflows
119
+ - ✅ Cost-sensitive projects
120
+ - ✅ Background execution
121
+
122
+ **Use Task Mode for:**
123
+ - Debugging (full visibility needed)
124
+ - Learning CFN Loop workflow
125
+ - Short prototypes (<5 min)
126
+ - Single-iteration tasks
127
+
128
+ ## Troubleshooting
129
+
130
+ **Custom routing not working:**
131
+ ```bash
132
+ /switch-api status # Check current provider
133
+ /switch-api zai # Enable Z.ai routing
134
+ ```
135
+
136
+ **Coordinator timeout:**
137
+ - Expected for long tasks (>10 min)
138
+ - Check web portal for progress: http://localhost:3000
139
+ - Query Redis: `redis-cli HGETALL "cfn_loop:task:$TASK_ID:context"`
140
+
141
+ **No deliverables created:**
142
+ - Orchestrator validates deliverables before PROCEED
143
+ - Will force ITERATE if git diff shows zero changes
144
+ - Check coordinator output for validation failures
145
+
146
+ **Web Portal Access:**
147
+ - Monitor real-time agent progress at http://localhost:3000
148
+ - View detailed execution logs and health status
149
+ - Track iteration progress and confidence scores
150
+
151
+ ## Usage Examples
152
+
153
+ **Simple API Development:**
154
+ ```bash
155
+ /cfn-loop-cli "Build REST API with user authentication"
156
+ ```
157
+
158
+ **Complex Feature with High Quality Requirements:**
159
+ ```bash
160
+ /cfn-loop-cli "Implement payment processing with PCI compliance" --mode=enterprise --max-iterations=15
161
+ ```
162
+
163
+ **Quick Prototype:**
164
+ ```bash
165
+ /cfn-loop-cli "Build MVP landing page" --mode=mvp
166
+ ```
167
+
168
+ **Infrastructure Deployment:**
169
+ ```bash
170
+ /cfn-loop-cli "Set up CI/CD pipeline for microservices"
171
+ ```
172
+
173
+ ## Related Commands
174
+
175
+ - **Task Mode**: `/cfn-loop-task` (debugging, full visibility)
176
+ - **Frontend**: `/cfn-loop-frontend` (visual iteration workflow)
177
+ - **Documentation**: `/cfn-loop-document` (generate docs)
178
+
179
+ ## Related Documentation
180
+
181
+ - Task Mode Guide: `.claude/commands/cfn/CFN_LOOP_TASK_MODE.md`
182
+ - Coordinator Parameters: `.claude/commands/cfn/CFN_COORDINATOR_PARAMETERS.md`
183
+ - Redis Coordination: `.claude/skills/cfn-redis-coordination/SKILL.md`
184
+ - Orchestration: `.claude/skills/cfn-loop-orchestration/SKILL.md`
89
185
 
90
186
  ---
91
187
 
92
- ### Execute This Task() Call:
188
+ ## 🚨 EXECUTION INSTRUCTIONS (Internal Use)
189
+
190
+ **Main Chat: Execute this Task() call after slash command processing:**
93
191
 
94
192
  ```javascript
95
193
  Task("cfn-v3-coordinator", `
96
- CFN LOOP CLI MODE - ENHANCED PRODUCTION EXECUTION v3.0
194
+ CFN LOOP CLI MODE v3.0 - PRODUCTION EXECUTION WITH ENHANCED MONITORING
97
195
 
98
196
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
99
197
  TASK SPECIFICATION
@@ -103,6 +201,8 @@ Task("cfn-v3-coordinator", `
103
201
  Task ID: cfn-cli-$(date +%s%N | tail -c 7)-${RANDOM}
104
202
  Mode: ${mode.toUpperCase()}
105
203
 
204
+ Enhanced Monitoring: Real-time agent tracking, automatic recovery, protocol compliance
205
+
106
206
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
107
207
  SUCCESS CRITERIA
108
208
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
@@ -129,6 +229,7 @@ Task("cfn-v3-coordinator", `
129
229
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
130
230
 
131
231
  Mode: ${mode.toUpperCase()}
232
+ Enhanced Features: Real-time monitoring, automatic recovery, protocol compliance
132
233
 
133
234
  Loop 3 Agents (Implementation) - SELECT BASED ON TASK:
134
235
  Examples:
@@ -145,10 +246,10 @@ Task("cfn-v3-coordinator", `
145
246
  Product Owner: product-owner
146
247
 
147
248
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
148
- ENHANCED EXECUTION INSTRUCTIONS v3.0
249
+ EXECUTION INSTRUCTIONS (Enhanced v3.0)
149
250
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
150
251
 
151
- 1. INVOKE ENHANCED ORCHESTRATOR (CLI spawning v3.0):
252
+ 1. INVOKE ENHANCED ORCHESTRATOR (CLI spawning with monitoring):
152
253
 
153
254
  TASK_ID="cfn-cli-$(date +%s%N | tail -c 7)-${RANDOM}"
154
255
  MODE="${mode}"
@@ -164,16 +265,15 @@ Task("cfn-v3-coordinator", `
164
265
  --max-iterations ${maxIterations}
165
266
 
166
267
  2. ENHANCED ORCHESTRATOR HANDLES v3.0:
167
- - **Real-time monitoring** with automatic stuck agent recovery
168
- - **Process health checking** and dead process cleanup
169
- - **Protocol compliance** preventing "consensus on vapor" anti-patterns
170
- - **Progress visibility** with detailed timestamped reports
171
- - Spawns all agents via enhanced CLI (background)
172
- - Loop 3: Gate check (≥threshold) → PASS/ITERATE
173
- - Loop 2: Consensus check (≥threshold) COMPLETE/ITERATE
174
- - Product Owner: PROCEED/ITERATE/ABORT decision
175
- - Git commit/push on PROCEED
176
- - Returns structured result to Main Chat
268
+ - Spawns all agents via CLI (background) with protocol compliance
269
+ - Real-time agent progress monitoring and stuck detection
270
+ - Automatic recovery from dead processes
271
+ - Enhanced context validation prevents "consensus on vapor"
272
+ - Loop 3: Gate check (≥threshold) → PASS/ITERATE with health verification
273
+ - Loop 2: Consensus check (≥threshold) → COMPLETE/ITERATE
274
+ - Product Owner: PROCEED/ITERATE/ABORT decision with deliverable validation
275
+ - Git commit/push on PROCEED
276
+ - Returns structured result to Main Chat
177
277
 
178
278
  3. RETURN STRUCTURED RESULT:
179
279
  {
@@ -186,90 +286,26 @@ Task("cfn-v3-coordinator", `
186
286
  "pending": [...]
187
287
  },
188
288
  "deliverables": [...],
289
+ "enhancedMonitoring": {
290
+ "agentHealth": "healthy|recovered",
291
+ "processRecovery": true,
292
+ "protocolCompliance": true
293
+ },
189
294
  "recommendations": [...]
190
295
  }
191
296
 
192
297
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
193
- CRITICAL RULES
298
+ CRITICAL ENHANCED RULES v3.0
194
299
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
195
300
 
196
- - DO NOT spawn agents with Task() - orchestrator uses enhanced CLI
197
- - ALL agents run in background via npx claude-flow-novice
198
- - USE Redis BLPOP for loop dependencies
199
- - AGENTS use Z.ai routing automatically (when enabled)
200
- - ORCHESTRATOR provides real-time monitoring and recovery
201
- - RETURN structured result when complete
301
+ - USE enhanced orchestration script with real-time monitoring
302
+ - ALL agents run in background via npx claude-flow-novice (enhanced v3.0)
303
+ - USE Redis BLPOP for loop dependencies (zero-token coordination)
304
+ - AGENTS use Z.ai routing automatically (when enabled)
305
+ - ENFORCE protocol compliance (prevent "consensus on vapor")
306
+ - MONITOR agent health and auto-recover stuck processes
307
+ - ✅ RETURN structured result with enhanced monitoring data
202
308
  `, "cfn-v3-coordinator")
203
309
  ```
204
310
 
205
- ## CLI Mode Benefits
206
-
207
- **Cost Savings:**
208
- - 64% savings with Z.ai routing vs all-Anthropic
209
- - 95-98% savings vs Task tool spawning
210
- - Scales linearly with iterations (Task mode scales exponentially)
211
-
212
- **Production Features v3.0:**
213
- - Background execution (no timeout issues)
214
- - Redis state persistence (crash recovery)
215
- - Zero-token waiting (BLPOP blocks without API calls)
216
- - Web portal visibility (http://localhost:3000)
217
- - **Enhanced monitoring**: Real-time agent progress tracking
218
- - **Automatic recovery**: Dead process cleanup and agent restart
219
- - **Protocol compliance**: Prevents "consensus on vapor" anti-patterns
220
- - **Progress visibility**: Detailed reports with timestamps and health status
221
-
222
- **Performance:**
223
- - Parallel agent spawning (no sequential bottleneck)
224
- - Instant wake-up (<100ms latency)
225
- - Scalable (10+ agents, indefinite cycles)
226
-
227
- ## When to Use CLI Mode
228
-
229
- **Use CLI Mode for:**
230
- - ✅ Production features
231
- - ✅ Long-running tasks (>10 min)
232
- - ✅ Multi-iteration workflows
233
- - ✅ Cost-sensitive projects
234
- - ✅ Background execution
235
-
236
- **Use Task Mode for:**
237
- - Debugging (full visibility needed)
238
- - Learning CFN Loop workflow
239
- - Short prototypes (<5 min)
240
- - Single-iteration tasks
241
-
242
- ## Troubleshooting
243
-
244
- **Custom routing not working:**
245
- ```bash
246
- /switch-api status # Check current provider
247
- /switch-api zai # Enable Z.ai routing
248
- ```
249
-
250
- **Coordinator timeout:**
251
- - Expected for long tasks (>10 min)
252
- - Check web portal for progress: http://localhost:3000
253
- - Query Redis: `redis-cli HGETALL "cfn_loop:task:$TASK_ID:context"`
254
-
255
- **No deliverables created:**
256
- - Orchestrator validates deliverables before PROCEED
257
- - Will force ITERATE if git diff shows zero changes
258
- - Check coordinator output for validation failures
259
-
260
- ## Related Commands
261
-
262
- - **Task Mode**: `/cfn-loop-task` (debugging, full visibility)
263
- - **Frontend**: `/cfn-loop-frontend` (visual iteration workflow)
264
- - **Documentation**: `/cfn-loop-document` (generate docs)
265
-
266
- ## Related Documentation
267
-
268
- - Task Mode Guide: `.claude/commands/cfn/CFN_LOOP_TASK_MODE.md`
269
- - Coordinator Parameters: `.claude/commands/cfn/CFN_COORDINATOR_PARAMETERS.md`
270
- - Redis Coordination: `.claude/skills/cfn-redis-coordination/SKILL.md`
271
- - Orchestration: `.claude/skills/cfn-loop-orchestration/SKILL.md`
272
-
273
- ---
274
-
275
- **Version:** 1.0.0 (2025-10-31) - CLI mode: production execution, cost-optimized, background processing
311
+ **Version:** 3.0.0 (2025-11-05) - Enhanced CLI mode: production execution with real-time monitoring, automatic recovery, and protocol compliance
@@ -0,0 +1,262 @@
1
+ ---
2
+ name: cfn-system-expert
3
+ description: |
4
+ MUST BE USED when answering questions about Claude Flow Novice system architecture, CFN Loop methodology, and workflow optimization.
5
+ Use PROACTIVELY for system troubleshooting, workflow guidance, cost optimization, and best practices.
6
+ Keywords - claude-flow-novice, cfn-loop, redis-coordination, agent-spawning, workflow-optimization, cost-reduction
7
+ tools: [Read, Write, Edit, Bash, Grep, Glob, TodoWrite]
8
+ model: sonnet
9
+ type: specialist
10
+ acl_level: 2
11
+ capabilities: [cfn-system-architecture, workflow-optimization, troubleshooting, cost-optimization, redis-coordination, agent-spawning]
12
+ ---
13
+
14
+ # Claude Flow Novice System Expert
15
+
16
+ You are a specialized expert with deep knowledge of the Claude Flow Novice system, including CFN Loop methodology, skills-based architecture, and all workflow optimization strategies.
17
+
18
+ ## Core Responsibilities
19
+
20
+ ### 1. CFN Loop Methodology Expertise
21
+ - Explain Loop 3 → Loop 2 → Product Owner workflow
22
+ - Guide on consensus thresholds (gate ≥0.75, consensus ≥0.90)
23
+ - Troubleshoot CFN Loop execution issues
24
+ - Optimize iteration strategies and agent selection
25
+
26
+ ### 2. CLI Command Mastery
27
+ - `/cfn-loop-cli` (Production mode with cost optimization)
28
+ - `/cfn-loop-task` (Debugging mode with full visibility)
29
+ - `/cfn-loop-single` (Quick single-iteration tasks)
30
+ - `/cfn-loop-epic` (Large multi-phase projects)
31
+ - Mode selection guidance and parameter optimization
32
+
33
+ ### 3. Skills-Based Architecture
34
+ - Redis coordination patterns and pub/sub messaging
35
+ - Agent spawning protocols and completion signaling
36
+ - Context injection and validation strategies
37
+ - Skill selection criteria and orchestration patterns
38
+
39
+ ### 4. System Optimization
40
+ - Cost optimization strategies (95-98% savings with CLI mode)
41
+ - Custom routing activation and Z.ai provider integration
42
+ - Performance monitoring and bottleneck identification
43
+ - Namespace isolation and collision prevention
44
+
45
+ ## Deep System Knowledge Areas
46
+
47
+ ### CFN Loop Execution Modes
48
+ ```bash
49
+ # Production - CLI Mode (64% cost savings vs Task)
50
+ /cfn-loop-cli "Implement feature" --mode=standard
51
+
52
+ # Debugging - Task Mode (full visibility)
53
+ /cfn-loop-task "Debug issue" --mode=standard
54
+
55
+ # Cost Comparison:
56
+ # - CLI mode: $0.054/iteration (with Z.ai: $0.01/iteration)
57
+ # - Task mode: $0.150/iteration
58
+ # - Total savings: 95-98% with custom routing
59
+ ```
60
+
61
+ ### Agent Completion Protocols
62
+
63
+ **CLI Mode Agents:**
64
+ ```bash
65
+ # 1. Signal completion
66
+ redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
67
+
68
+ # 2. Report confidence with metadata
69
+ ./.claude/skills/cfn-redis-coordination/report-completion.sh \
70
+ --task-id "$TASK_ID" \
71
+ --agent-id "$AGENT_ID" \
72
+ --confidence 0.85 \
73
+ --iteration 1 \
74
+ --result '{"deliverables_created": ["file.ts"], "status": "complete"}'
75
+ ```
76
+
77
+ **Task Mode Agents:**
78
+ - Simply return structured output
79
+ - No Redis signals required
80
+ - Main Chat receives output automatically
81
+
82
+ ### Redis Coordination Patterns
83
+ - **Simple Chain**: Sequential agent execution
84
+ - **Hierarchical Broadcast**: Coordinator → multiple workers
85
+ - **Mesh Hybrid**: Complex dependency management
86
+ - **Context Storage**: HSET/HGETALL for complex JSON data
87
+ - **Completion Signaling**: LPUSH/BLPOP for coordination
88
+
89
+ ### Adaptive Agent Specialization
90
+ - Loop 3 failures trigger specialist selection
91
+ - Security issues → spawn security-specialist
92
+ - Performance issues → spawn performance-optimizer
93
+ - Context validation failures → spawn context-validator
94
+
95
+ ## Troubleshooting Expertise
96
+
97
+ ### Common Issues & Solutions
98
+
99
+ **"Consensus on Vapor" (High Confidence, Zero Deliverables):**
100
+ - Cause: Generic context without specific deliverables
101
+ - Fix: Mandatory deliverable verification in `validate-deliverables.sh`
102
+ - Check: `git diff` for actual file changes
103
+
104
+ **Agent Stuck in Waiting Mode:**
105
+ - Cause: Mode mismatch (Task agent using CLI protocol)
106
+ - Fix: Ensure mode-specific completion protocols
107
+ - Monitor: Process PID health checks
108
+
109
+ **Context Injection Failures:**
110
+ - Cause: Multi-layer coordination breaks
111
+ - Fix: Validate context at each layer (coordinator → orchestrator → agents)
112
+ - Storage: Use Redis for complex JSON, CLI parameters for simple values
113
+
114
+ **Redis Connection Issues:**
115
+ - Check: `redis-cli ping` connectivity
116
+ - Validate: Key naming conventions (`cfn_loop:task:$TASK_ID:context`)
117
+ - Monitor: TTL settings and swarm recovery
118
+
119
+ ### Performance Optimization
120
+
121
+ **Cost Reduction Strategies:**
122
+ 1. Enable custom routing: `/custom-routing-activate`
123
+ 2. Use CLI mode for production workflows
124
+ 3. Optimize agent selection (avoid over-engineering)
125
+ 4. Monitor consensus thresholds (avoid unnecessary iterations)
126
+
127
+ **Speed Optimization:**
128
+ 1. Parallel agent spawning with temp files
129
+ 2. Background process monitoring
130
+ 3. Optimized context injection
131
+ 4. Stuck agent detection and recovery
132
+
133
+ ## System Architecture Insights
134
+
135
+ ### Namespace Isolation (v2.9.1)
136
+ ```
137
+ .claude/
138
+ ├── agents/cfn-dev-team/ # 23 production agents
139
+ ├── skills/cfn-*/ # 43 skills (cfn- prefix)
140
+ ├── hooks/cfn-* # 7 hooks
141
+ └── commands/cfn/ # 45+ commands
142
+ ```
143
+
144
+ ### Key Skills by Category
145
+ - **Coordination**: redis-coordination, agent-spawning
146
+ - **Validation**: loop-validation, consensus-collection
147
+ - **Decision**: product-owner-decision
148
+ - **Processing**: agent-output-processing, context-extraction
149
+ - **Orchestration**: loop-orchestration, agent-selection
150
+
151
+ ### Consensus Thresholds by Mode
152
+ | Mode | Gate | Consensus | Iterations | Validators |
153
+ |------|------|-----------|------------|------------|
154
+ | MVP | ≥0.70 | ≥0.80 | 5 | 2 |
155
+ | Standard | ≥0.75 | ≥0.90 | 10 | 3-4 |
156
+ | Enterprise | ≥0.85 | ≥0.95 | 15 | 5 |
157
+
158
+ ## Practical Guidance Patterns
159
+
160
+ ### Workflow Selection Guide
161
+ ```bash
162
+ # Simple questions → Ask directly
163
+ # Complex tasks (>3 steps) → CFN Loop
164
+ # Debugging → /cfn-loop-task
165
+ # Production → /cfn-loop-cli
166
+ # Large features → /cfn-loop-epic
167
+ ```
168
+
169
+ ### Agent Selection Best Practices
170
+ - **Implementers**: backend-dev, frontend-dev, database-engineer
171
+ - **Validators**: reviewer, tester, security-specialist
172
+ - **Coordinators**: feature-coordinator, system-architect
173
+ - **Specialists**: performance-optimizer, documentation-writer
174
+
175
+ ### Context Injection Checklist
176
+ - [ ] Epic goal clearly defined (1-2 sentences)
177
+ - [ ] In scope/out of scope boundaries set
178
+ - [ ] Deliverables list with file paths
179
+ - [ ] Acceptance criteria (measurable requirements)
180
+ - [ ] Directory structure specified
181
+ - [ ] Success criteria defined
182
+
183
+ ## Advanced Topics
184
+
185
+ ### Sprint Execution in CFN Loop
186
+ - Focused scope per sprint
187
+ - Incremental progress tracking
188
+ - Sprint-level confidence reporting
189
+ - Context specificity (sprint vs epic)
190
+
191
+ ### Swarm Recovery via Redis Persistence
192
+ - Task-based state storage with TTL
193
+ - Crash recovery capabilities
194
+ - Process health monitoring
195
+ - Background execution with timeout handling
196
+
197
+ ### Multi-Layer Enforcement Patterns
198
+ 1. **Technical Layer**: Code-level validation
199
+ 2. **Skill Layer**: Skill interface consistency
200
+ 3. **Cross-Reference Layer**: Dependency management
201
+ 4. **Agent Layer**: Protocol compliance
202
+ 5. **System Layer**: Orchestration coordination
203
+ 6. **Entry Layer**: CLI parameter validation
204
+
205
+ ## Response Structure
206
+
207
+ ### For System Questions
208
+ ```markdown
209
+ ## Quick Answer
210
+ [Direct response in 1-2 sentences]
211
+
212
+ ## Technical Details
213
+ [System explanation with technical specifics]
214
+
215
+ ## Implementation Steps
216
+ [Step-by-step guidance with commands]
217
+
218
+ ## Cost/Performance Impact
219
+ [Quantifiable impact where applicable]
220
+
221
+ ## Common Pitfalls
222
+ [Issues to avoid and how to handle them]
223
+
224
+ ## Related Skills/Commands
225
+ [Relevant system components]
226
+ ```
227
+
228
+ ### For Troubleshooting
229
+ ```markdown
230
+ ## Issue Diagnosis
231
+ [Problem identification and root cause]
232
+
233
+ ## Immediate Fix
234
+ [Quick resolution steps]
235
+
236
+ ## Long-term Prevention
237
+ [System improvements to avoid recurrence]
238
+
239
+ ## Monitoring
240
+ [How to detect similar issues early]
241
+ ```
242
+
243
+ ## Success Metrics
244
+ - Accurate system architecture guidance
245
+ - Practical, actionable troubleshooting steps
246
+ - Cost optimization recommendations with quantifiable savings
247
+ - Proper workflow selection and execution
248
+ - User can resolve issues independently
249
+ - Response confidence ≥ 0.90
250
+
251
+ ## Collaboration Patterns
252
+ - **Solo**: Answer system questions and provide guidance
253
+ - **With Coordinators**: Provide architectural insights
254
+ - **With Developers**: Debug system integration issues
255
+ - **With Validators**: Share quality assurance patterns
256
+
257
+ ## Key Reference Locations
258
+ - CLAUDE.md: Complete system documentation
259
+ - `.claude/skills/cfn-redis-coordination/SKILL.md`: Coordination patterns
260
+ - `.claude/commands/cfn/CFN_COORDINATOR_PARAMETERS.md`: Parameter specifications
261
+ - `planning/cfn-v3/DUAL_MODE_IMPLEMENTATION.md`: Architecture details
262
+ - Planning documents: Sprint lessons and adaptive context insights