claude-flow-novice 2.14.14 β 2.14.15
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.
- package/.claude/commands/cfn-loop-cli.md +45 -122
- package/claude-assets/commands/cfn-loop-cli.md +45 -122
- package/claude-assets/skills/cfn-multi-coordinator-planning/map-dependencies-conflicts.sh +375 -375
- package/claude-assets/skills/cfn-multi-coordinator-planning/plan-coordinator-resources.sh +257 -257
- package/claude-assets/skills/cfn-multi-coordinator-planning/plan-multi-coordinator-work.sh +266 -266
- package/claude-assets/skills/cfn-multi-coordinator-planning/plan-risk-rollout.sh +349 -349
- package/claude-assets/skills/cfn-multi-coordinator-planning/test-multi-coordinator-planning.sh +337 -337
- package/claude-assets/skills/cfn-multi-coordinator-planning/validate-task-planning.sh +188 -188
- package/package.json +1 -1
|
@@ -79,138 +79,57 @@ Savings: 64% with custom routing, 95-98% vs all-Task
|
|
|
79
79
|
|
|
80
80
|
## π¨ CRITICAL EXECUTION INSTRUCTIONS
|
|
81
81
|
|
|
82
|
-
**
|
|
82
|
+
**THIS IS A SLASH COMMAND - MAIN CHAT EXECUTES THIS DIRECTLY**
|
|
83
83
|
|
|
84
|
+
**DO NOT manually spawn Task() agents for CFN Loop workflows**
|
|
85
|
+
**DO NOT spawn cfn-v3-coordinator manually**
|
|
84
86
|
**DO NOT spawn Loop 3 agents (backend-dev, researcher, etc.)**
|
|
85
87
|
**DO NOT spawn Loop 2 agents (reviewer, tester, etc.)**
|
|
86
88
|
**DO NOT spawn product-owner**
|
|
87
|
-
**DO NOT ask user which agents to use**
|
|
88
89
|
|
|
89
|
-
|
|
90
|
+
**Main Chat simply executes the slash command - everything else is automatic**
|
|
90
91
|
|
|
91
92
|
---
|
|
92
93
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
Acceptance Criteria:
|
|
112
|
-
- [ ] Core functionality implemented
|
|
113
|
-
- [ ] All tests pass with >80% coverage
|
|
114
|
-
- [ ] Security review completed
|
|
115
|
-
- [ ] Documentation updated
|
|
116
|
-
- [ ] No regression in existing features
|
|
117
|
-
|
|
118
|
-
Quality Gates (${mode.toUpperCase()} MODE):
|
|
119
|
-
- Loop 3 Gate Threshold: ${mode === 'enterprise' ? 0.85 : mode === 'standard' ? 0.75 : 0.70}
|
|
120
|
-
- Loop 2 Consensus Threshold: ${mode === 'enterprise' ? 0.95 : mode === 'standard' ? 0.90 : 0.80}
|
|
121
|
-
- Max Iterations: ${maxIterations}
|
|
122
|
-
|
|
123
|
-
Definition of Done:
|
|
124
|
-
- Consensus β₯ threshold achieved
|
|
125
|
-
- All acceptance criteria met
|
|
126
|
-
- Product Owner approval received
|
|
127
|
-
|
|
128
|
-
ββββββββββββββββββββββββββββββββββββββββββββββ
|
|
129
|
-
ORCHESTRATION CONFIGURATION
|
|
130
|
-
ββββββββββββββββββββββββββββββββββββββββββββββ
|
|
131
|
-
|
|
132
|
-
Mode: ${mode.toUpperCase()}
|
|
133
|
-
|
|
134
|
-
Loop 3 Agents (Implementation) - SELECT BASED ON TASK:
|
|
135
|
-
Examples:
|
|
136
|
-
- Backend API: backend-dev, researcher, devops
|
|
137
|
-
- Full-Stack: backend-dev, react-frontend-engineer, devops
|
|
138
|
-
- Infrastructure: devops, rust-developer, researcher
|
|
139
|
-
- Security: security-specialist, backend-dev, researcher
|
|
140
|
-
|
|
141
|
-
Loop 2 Agents (Validation) - SCALE BY COMPLEXITY:
|
|
142
|
-
Simple (1-2 files): reviewer, tester
|
|
143
|
-
Standard (3-5 files): reviewer, tester, architect, security-specialist
|
|
144
|
-
Complex (>5 files): +code-analyzer, +performance-benchmarker
|
|
145
|
-
|
|
146
|
-
Product Owner: product-owner
|
|
147
|
-
|
|
148
|
-
ββββββββββββββββββββββββββββββββββββββββββββββ
|
|
149
|
-
EXECUTION INSTRUCTIONS
|
|
150
|
-
ββββββββββββββββββββββββββββββββββββββββββββββ
|
|
151
|
-
|
|
152
|
-
1. INVOKE ORCHESTRATOR (CLI spawning):
|
|
153
|
-
|
|
154
|
-
TASK_ID="cfn-cli-$(date +%s)"
|
|
155
|
-
MODE="${mode}"
|
|
156
|
-
LOOP3_AGENTS="backend-dev,researcher,devops" # Customize for task
|
|
157
|
-
LOOP2_AGENTS="reviewer,tester,architect,security-specialist" # Scale by complexity
|
|
158
|
-
|
|
159
|
-
./.claude/skills/cfn-loop-orchestration/orchestrate.sh \\
|
|
160
|
-
--task-id "$TASK_ID" \\
|
|
161
|
-
--mode "$MODE" \\
|
|
162
|
-
--loop3-agents "$LOOP3_AGENTS" \\
|
|
163
|
-
--loop2-agents "$LOOP2_AGENTS" \\
|
|
164
|
-
--product-owner "product-owner" \\
|
|
165
|
-
--max-iterations ${maxIterations}
|
|
166
|
-
|
|
167
|
-
2. ORCHESTRATOR HANDLES:
|
|
168
|
-
- Spawns all agents via CLI (background)
|
|
169
|
-
- Loop 3: Gate check (β₯threshold) β PASS/ITERATE
|
|
170
|
-
- Loop 2: Consensus check (β₯threshold) β COMPLETE/ITERATE
|
|
171
|
-
- Product Owner: PROCEED/ITERATE/ABORT decision
|
|
172
|
-
- Git commit/push on PROCEED
|
|
173
|
-
- Returns structured result to Main Chat
|
|
174
|
-
|
|
175
|
-
3. RETURN STRUCTURED RESULT:
|
|
176
|
-
{
|
|
177
|
-
"taskId": "cfn-cli-XXXXX",
|
|
178
|
-
"status": "complete|failed",
|
|
179
|
-
"iterations": {"loop3": N, "loop2": M},
|
|
180
|
-
"finalConsensus": 0.XX,
|
|
181
|
-
"acceptanceCriteria": {
|
|
182
|
-
"met": [...],
|
|
183
|
-
"pending": [...]
|
|
184
|
-
},
|
|
185
|
-
"deliverables": [...],
|
|
186
|
-
"recommendations": [...]
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
ββββββββββββββββββββββββββββββββββββββββββββββ
|
|
190
|
-
CRITICAL RULES
|
|
191
|
-
ββββββββββββββββββββββββββββββββββββββββββββββ
|
|
192
|
-
|
|
193
|
-
- DO NOT spawn agents with Task() - orchestrator uses CLI
|
|
194
|
-
- ALL agents run in background via npx claude-flow-novice
|
|
195
|
-
- USE Redis BLPOP for loop dependencies
|
|
196
|
-
- AGENTS use Z.ai routing automatically (when enabled)
|
|
197
|
-
- RETURN structured result when complete
|
|
198
|
-
`, "cfn-v3-coordinator")
|
|
199
|
-
```
|
|
94
|
+
## How This Command Works:
|
|
95
|
+
|
|
96
|
+
When Main Chat executes `/cfn-loop-cli "task description"`, this slash command:
|
|
97
|
+
|
|
98
|
+
1. **Automatically spawns cfn-v3-coordinator** with proper parameters
|
|
99
|
+
2. **Coordinator invokes enhanced orchestrator** with monitoring v3.0
|
|
100
|
+
3. **Orchestrator spawns all agents via CLI** (background execution)
|
|
101
|
+
4. **Handles complete CFN Loop workflow** with real-time monitoring
|
|
102
|
+
5. **Returns structured result** to Main Chat when complete
|
|
103
|
+
|
|
104
|
+
## Enhanced Features v3.0:
|
|
105
|
+
|
|
106
|
+
- β
**Real-time monitoring** with automatic stuck agent recovery
|
|
107
|
+
- β
**Process health checking** and dead process cleanup
|
|
108
|
+
- β
**Protocol compliance** preventing "consensus on vapor" anti-patterns
|
|
109
|
+
- β
**Progress visibility** with detailed timestamped reports
|
|
110
|
+
- β
**95-98% cost savings** with Z.ai routing optimization
|
|
111
|
+
- β
**Background execution** with Redis persistence
|
|
200
112
|
|
|
201
|
-
##
|
|
113
|
+
## Main Chat Execution Rules
|
|
114
|
+
|
|
115
|
+
**THIS SLASH COMMAND HANDLES EVERYTHING AUTOMATICALLY**
|
|
116
|
+
|
|
117
|
+
**Main Chat simply executes:**
|
|
118
|
+
```bash
|
|
119
|
+
/cfn-loop-cli "Task description" --mode=standard
|
|
120
|
+
```
|
|
202
121
|
|
|
203
|
-
**
|
|
204
|
-
-
|
|
205
|
-
-
|
|
206
|
-
-
|
|
207
|
-
-
|
|
122
|
+
**The slash command automatically:**
|
|
123
|
+
- β
Spawns coordinator with proper parameters
|
|
124
|
+
- β
Handles all agent spawning via CLI
|
|
125
|
+
- β
Manages complete CFN Loop workflow
|
|
126
|
+
- β
Returns structured result when complete
|
|
208
127
|
|
|
209
|
-
**
|
|
210
|
-
-
|
|
211
|
-
-
|
|
212
|
-
-
|
|
213
|
-
-
|
|
128
|
+
**Main Chat should NOT:**
|
|
129
|
+
- β Manually spawn any Task() agents for CFN Loop
|
|
130
|
+
- β Ask about retry/iteration decisions (handled automatically)
|
|
131
|
+
- β Monitor agent progress (slash command handles this)
|
|
132
|
+
- β Coordinate between agents (built-in coordination)
|
|
214
133
|
|
|
215
134
|
## CLI Mode Benefits
|
|
216
135
|
|
|
@@ -219,11 +138,15 @@ Task("cfn-v3-coordinator", `
|
|
|
219
138
|
- 95-98% savings vs Task tool spawning
|
|
220
139
|
- Scales linearly with iterations (Task mode scales exponentially)
|
|
221
140
|
|
|
222
|
-
**Production Features:**
|
|
141
|
+
**Production Features v3.0:**
|
|
223
142
|
- Background execution (no timeout issues)
|
|
224
143
|
- Redis state persistence (crash recovery)
|
|
225
144
|
- Zero-token waiting (BLPOP blocks without API calls)
|
|
226
145
|
- Web portal visibility (http://localhost:3000)
|
|
146
|
+
- **Enhanced monitoring**: Real-time agent progress tracking
|
|
147
|
+
- **Automatic recovery**: Dead process cleanup and agent restart
|
|
148
|
+
- **Protocol compliance**: Prevents "consensus on vapor" anti-patterns
|
|
149
|
+
- **Progress visibility**: Detailed reports with timestamps and health status
|
|
227
150
|
|
|
228
151
|
**Performance:**
|
|
229
152
|
- Parallel agent spawning (no sequential bottleneck)
|
|
@@ -79,138 +79,57 @@ Savings: 64% with custom routing, 95-98% vs all-Task
|
|
|
79
79
|
|
|
80
80
|
## π¨ CRITICAL EXECUTION INSTRUCTIONS
|
|
81
81
|
|
|
82
|
-
**
|
|
82
|
+
**THIS IS A SLASH COMMAND - MAIN CHAT EXECUTES THIS DIRECTLY**
|
|
83
83
|
|
|
84
|
+
**DO NOT manually spawn Task() agents for CFN Loop workflows**
|
|
85
|
+
**DO NOT spawn cfn-v3-coordinator manually**
|
|
84
86
|
**DO NOT spawn Loop 3 agents (backend-dev, researcher, etc.)**
|
|
85
87
|
**DO NOT spawn Loop 2 agents (reviewer, tester, etc.)**
|
|
86
88
|
**DO NOT spawn product-owner**
|
|
87
|
-
**DO NOT ask user which agents to use**
|
|
88
89
|
|
|
89
|
-
|
|
90
|
+
**Main Chat simply executes the slash command - everything else is automatic**
|
|
90
91
|
|
|
91
92
|
---
|
|
92
93
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
Acceptance Criteria:
|
|
112
|
-
- [ ] Core functionality implemented
|
|
113
|
-
- [ ] All tests pass with >80% coverage
|
|
114
|
-
- [ ] Security review completed
|
|
115
|
-
- [ ] Documentation updated
|
|
116
|
-
- [ ] No regression in existing features
|
|
117
|
-
|
|
118
|
-
Quality Gates (${mode.toUpperCase()} MODE):
|
|
119
|
-
- Loop 3 Gate Threshold: ${mode === 'enterprise' ? 0.85 : mode === 'standard' ? 0.75 : 0.70}
|
|
120
|
-
- Loop 2 Consensus Threshold: ${mode === 'enterprise' ? 0.95 : mode === 'standard' ? 0.90 : 0.80}
|
|
121
|
-
- Max Iterations: ${maxIterations}
|
|
122
|
-
|
|
123
|
-
Definition of Done:
|
|
124
|
-
- Consensus β₯ threshold achieved
|
|
125
|
-
- All acceptance criteria met
|
|
126
|
-
- Product Owner approval received
|
|
127
|
-
|
|
128
|
-
ββββββββββββββββββββββββββββββββββββββββββββββ
|
|
129
|
-
ORCHESTRATION CONFIGURATION
|
|
130
|
-
ββββββββββββββββββββββββββββββββββββββββββββββ
|
|
131
|
-
|
|
132
|
-
Mode: ${mode.toUpperCase()}
|
|
133
|
-
|
|
134
|
-
Loop 3 Agents (Implementation) - SELECT BASED ON TASK:
|
|
135
|
-
Examples:
|
|
136
|
-
- Backend API: backend-dev, researcher, devops
|
|
137
|
-
- Full-Stack: backend-dev, react-frontend-engineer, devops
|
|
138
|
-
- Infrastructure: devops, rust-developer, researcher
|
|
139
|
-
- Security: security-specialist, backend-dev, researcher
|
|
140
|
-
|
|
141
|
-
Loop 2 Agents (Validation) - SCALE BY COMPLEXITY:
|
|
142
|
-
Simple (1-2 files): reviewer, tester
|
|
143
|
-
Standard (3-5 files): reviewer, tester, architect, security-specialist
|
|
144
|
-
Complex (>5 files): +code-analyzer, +performance-benchmarker
|
|
145
|
-
|
|
146
|
-
Product Owner: product-owner
|
|
147
|
-
|
|
148
|
-
ββββββββββββββββββββββββββββββββββββββββββββββ
|
|
149
|
-
EXECUTION INSTRUCTIONS
|
|
150
|
-
ββββββββββββββββββββββββββββββββββββββββββββββ
|
|
151
|
-
|
|
152
|
-
1. INVOKE ORCHESTRATOR (CLI spawning):
|
|
153
|
-
|
|
154
|
-
TASK_ID="cfn-cli-$(date +%s)"
|
|
155
|
-
MODE="${mode}"
|
|
156
|
-
LOOP3_AGENTS="backend-dev,researcher,devops" # Customize for task
|
|
157
|
-
LOOP2_AGENTS="reviewer,tester,architect,security-specialist" # Scale by complexity
|
|
158
|
-
|
|
159
|
-
./.claude/skills/cfn-loop-orchestration/orchestrate.sh \\
|
|
160
|
-
--task-id "$TASK_ID" \\
|
|
161
|
-
--mode "$MODE" \\
|
|
162
|
-
--loop3-agents "$LOOP3_AGENTS" \\
|
|
163
|
-
--loop2-agents "$LOOP2_AGENTS" \\
|
|
164
|
-
--product-owner "product-owner" \\
|
|
165
|
-
--max-iterations ${maxIterations}
|
|
166
|
-
|
|
167
|
-
2. ORCHESTRATOR HANDLES:
|
|
168
|
-
- Spawns all agents via CLI (background)
|
|
169
|
-
- Loop 3: Gate check (β₯threshold) β PASS/ITERATE
|
|
170
|
-
- Loop 2: Consensus check (β₯threshold) β COMPLETE/ITERATE
|
|
171
|
-
- Product Owner: PROCEED/ITERATE/ABORT decision
|
|
172
|
-
- Git commit/push on PROCEED
|
|
173
|
-
- Returns structured result to Main Chat
|
|
174
|
-
|
|
175
|
-
3. RETURN STRUCTURED RESULT:
|
|
176
|
-
{
|
|
177
|
-
"taskId": "cfn-cli-XXXXX",
|
|
178
|
-
"status": "complete|failed",
|
|
179
|
-
"iterations": {"loop3": N, "loop2": M},
|
|
180
|
-
"finalConsensus": 0.XX,
|
|
181
|
-
"acceptanceCriteria": {
|
|
182
|
-
"met": [...],
|
|
183
|
-
"pending": [...]
|
|
184
|
-
},
|
|
185
|
-
"deliverables": [...],
|
|
186
|
-
"recommendations": [...]
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
ββββββββββββββββββββββββββββββββββββββββββββββ
|
|
190
|
-
CRITICAL RULES
|
|
191
|
-
ββββββββββββββββββββββββββββββββββββββββββββββ
|
|
192
|
-
|
|
193
|
-
- DO NOT spawn agents with Task() - orchestrator uses CLI
|
|
194
|
-
- ALL agents run in background via npx claude-flow-novice
|
|
195
|
-
- USE Redis BLPOP for loop dependencies
|
|
196
|
-
- AGENTS use Z.ai routing automatically (when enabled)
|
|
197
|
-
- RETURN structured result when complete
|
|
198
|
-
`, "cfn-v3-coordinator")
|
|
199
|
-
```
|
|
94
|
+
## How This Command Works:
|
|
95
|
+
|
|
96
|
+
When Main Chat executes `/cfn-loop-cli "task description"`, this slash command:
|
|
97
|
+
|
|
98
|
+
1. **Automatically spawns cfn-v3-coordinator** with proper parameters
|
|
99
|
+
2. **Coordinator invokes enhanced orchestrator** with monitoring v3.0
|
|
100
|
+
3. **Orchestrator spawns all agents via CLI** (background execution)
|
|
101
|
+
4. **Handles complete CFN Loop workflow** with real-time monitoring
|
|
102
|
+
5. **Returns structured result** to Main Chat when complete
|
|
103
|
+
|
|
104
|
+
## Enhanced Features v3.0:
|
|
105
|
+
|
|
106
|
+
- β
**Real-time monitoring** with automatic stuck agent recovery
|
|
107
|
+
- β
**Process health checking** and dead process cleanup
|
|
108
|
+
- β
**Protocol compliance** preventing "consensus on vapor" anti-patterns
|
|
109
|
+
- β
**Progress visibility** with detailed timestamped reports
|
|
110
|
+
- β
**95-98% cost savings** with Z.ai routing optimization
|
|
111
|
+
- β
**Background execution** with Redis persistence
|
|
200
112
|
|
|
201
|
-
##
|
|
113
|
+
## Main Chat Execution Rules
|
|
114
|
+
|
|
115
|
+
**THIS SLASH COMMAND HANDLES EVERYTHING AUTOMATICALLY**
|
|
116
|
+
|
|
117
|
+
**Main Chat simply executes:**
|
|
118
|
+
```bash
|
|
119
|
+
/cfn-loop-cli "Task description" --mode=standard
|
|
120
|
+
```
|
|
202
121
|
|
|
203
|
-
**
|
|
204
|
-
-
|
|
205
|
-
-
|
|
206
|
-
-
|
|
207
|
-
-
|
|
122
|
+
**The slash command automatically:**
|
|
123
|
+
- β
Spawns coordinator with proper parameters
|
|
124
|
+
- β
Handles all agent spawning via CLI
|
|
125
|
+
- β
Manages complete CFN Loop workflow
|
|
126
|
+
- β
Returns structured result when complete
|
|
208
127
|
|
|
209
|
-
**
|
|
210
|
-
-
|
|
211
|
-
-
|
|
212
|
-
-
|
|
213
|
-
-
|
|
128
|
+
**Main Chat should NOT:**
|
|
129
|
+
- β Manually spawn any Task() agents for CFN Loop
|
|
130
|
+
- β Ask about retry/iteration decisions (handled automatically)
|
|
131
|
+
- β Monitor agent progress (slash command handles this)
|
|
132
|
+
- β Coordinate between agents (built-in coordination)
|
|
214
133
|
|
|
215
134
|
## CLI Mode Benefits
|
|
216
135
|
|
|
@@ -219,11 +138,15 @@ Task("cfn-v3-coordinator", `
|
|
|
219
138
|
- 95-98% savings vs Task tool spawning
|
|
220
139
|
- Scales linearly with iterations (Task mode scales exponentially)
|
|
221
140
|
|
|
222
|
-
**Production Features:**
|
|
141
|
+
**Production Features v3.0:**
|
|
223
142
|
- Background execution (no timeout issues)
|
|
224
143
|
- Redis state persistence (crash recovery)
|
|
225
144
|
- Zero-token waiting (BLPOP blocks without API calls)
|
|
226
145
|
- Web portal visibility (http://localhost:3000)
|
|
146
|
+
- **Enhanced monitoring**: Real-time agent progress tracking
|
|
147
|
+
- **Automatic recovery**: Dead process cleanup and agent restart
|
|
148
|
+
- **Protocol compliance**: Prevents "consensus on vapor" anti-patterns
|
|
149
|
+
- **Progress visibility**: Detailed reports with timestamps and health status
|
|
227
150
|
|
|
228
151
|
**Performance:**
|
|
229
152
|
- Parallel agent spawning (no sequential bottleneck)
|