claude-flow-novice 2.14.28 → 2.14.29
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_TASK_MODE.md +119 -0
- package/.claude/skills/cfn-agent-spawning/spawn-agent.sh +12 -0
- package/.claude/skills/cfn-agent-spawning/spawn-agent.sh.backup +273 -0
- package/.claude/skills/cfn-hybrid-routing/README.md +1 -1
- package/.claude/skills/cfn-loop-orchestration/orchestrate.sh +95 -15
- package/.claude/skills/cfn-loop-orchestration/orchestrate.sh.backup +76 -11
- package/.claude/skills/cfn-loop-orchestration/orchestrate.sh.backup2 +959 -0
- package/.claude/skills/cfn-loop-orchestration/orchestrate.sh.clean +949 -0
- package/.claude/skills/cfn-product-owner-decision/execute-decision.sh +82 -10
- package/claude-assets/agents/cfn-dev-team/architecture/base-template-generator.md +7 -33
- package/claude-assets/agents/cfn-dev-team/architecture/planner.md +7 -47
- package/claude-assets/agents/cfn-dev-team/architecture/system-architect.md +7 -33
- package/claude-assets/agents/cfn-dev-team/coordinators/cfn-frontend-coordinator.md +88 -23
- package/claude-assets/agents/cfn-dev-team/coordinators/cfn-v3-coordinator.md +59 -23
- package/claude-assets/agents/cfn-dev-team/coordinators/consensus-builder.md +43 -39
- package/claude-assets/agents/cfn-dev-team/coordinators/epic-creator.md +69 -0
- package/claude-assets/agents/cfn-dev-team/coordinators/multi-sprint-coordinator.md +65 -1
- package/claude-assets/agents/cfn-dev-team/developers/frontend/mobile-dev.md +7 -47
- package/claude-assets/agents/cfn-dev-team/developers/frontend/typescript-specialist.md +7 -26
- package/claude-assets/agents/cfn-dev-team/developers/rust-developer.md +7 -47
- package/claude-assets/agents/cfn-dev-team/product-owners/cto-agent.md +7 -19
- package/claude-assets/agents/cfn-dev-team/product-owners/power-user-persona.md +9 -49
- package/claude-assets/agents/cfn-dev-team/product-owners/product-owner.md +407 -22
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/code-quality-validator.md +7 -66
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/perf-analyzer.md +7 -76
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/performance-benchmarker.md +8 -2
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/security-specialist.md +7 -66
- package/claude-assets/agents/cfn-dev-team/reviewers/reviewer.md +7 -78
- package/claude-assets/agents/cfn-dev-team/testers/e2e/playwright-tester.md +7 -18
- package/claude-assets/agents/cfn-dev-team/testers/interaction-tester.md +7 -18
- package/claude-assets/agents/cfn-dev-team/testers/tester.md +7 -77
- package/claude-assets/agents/cfn-dev-team/testers/unit/tdd-london-unit-swarm.md +7 -18
- package/claude-assets/agents/cfn-dev-team/testers/validation/validation-production-validator.md +7 -19
- package/claude-assets/agents/cfn-dev-team/testing/test-validation-agent.md +7 -44
- package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +35 -111
- package/claude-assets/agents/cfn-dev-team/utility/analyst.md +7 -47
- package/claude-assets/agents/cfn-dev-team/utility/code-booster.md +7 -40
- package/claude-assets/agents/cfn-dev-team/utility/context-curator.md +7 -47
- package/claude-assets/commands/CFN_LOOP_TASK_MODE.md +119 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-agent.sh +12 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-agent.sh.backup +273 -0
- package/claude-assets/skills/cfn-environment-sanitization/SKILL.md +200 -0
- package/claude-assets/skills/cfn-environment-sanitization/sanitize-environment.sh +244 -0
- package/claude-assets/skills/cfn-hybrid-routing/README.md +1 -1
- package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh +95 -15
- package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh.backup +76 -11
- package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh.backup2 +959 -0
- package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh.clean +949 -0
- package/claude-assets/skills/cfn-node-heap-sizer/task-mode-heap-limiter.sh +326 -0
- package/claude-assets/skills/cfn-process-instrumentation/SKILL.md +279 -0
- package/claude-assets/skills/cfn-process-instrumentation/instrument-process.sh +323 -0
- package/claude-assets/skills/cfn-product-owner-decision/execute-decision.sh +82 -10
- package/claude-assets/skills/cfn-task-audit/get-audit-data.sh +376 -0
- package/claude-assets/skills/cfn-task-audit/store-task-audit.sh +184 -0
- package/claude-assets/skills/cfn-task-mode-safety/cli-coordination.sh +519 -0
- package/claude-assets/skills/cfn-task-mode-safety/mode-detection.sh +326 -0
- package/claude-assets/skills/cfn-task-mode-sanitize/task-mode-env-sanitizer.sh +224 -0
- package/claude-assets/skills/cfn-telemetry/collect-metrics.sh +249 -0
- package/claude-assets/skills/cfn-telemetry/start-telemetry.sh +111 -0
- package/claude-assets/skills/cfn-validation-runner-instrumentation/wrapped-executor.sh +327 -0
- package/dist/cli/config-manager.js +109 -91
- package/dist/cli/config-manager.js.map +1 -1
- package/package.json +1 -1
- package/scripts/mode-detection.sh +321 -0
- package/scripts/spawn-worker.sh +8 -0
- package/scripts/track-zai-costs-simple.sh +8 -0
|
@@ -129,74 +129,15 @@ await redis.publish('swarm:security:critical', {
|
|
|
129
129
|
- Security code review
|
|
130
130
|
- Penetration testing scenarios
|
|
131
131
|
|
|
132
|
-
##
|
|
132
|
+
## Completion Protocol
|
|
133
133
|
|
|
134
|
-
|
|
134
|
+
Complete your work and provide a structured response with:
|
|
135
|
+
- Confidence score (0.0-1.0) based on security audit quality
|
|
136
|
+
- Summary of security analysis completed
|
|
137
|
+
- List of findings and vulnerabilities identified
|
|
138
|
+
- Risk assessment and remediation recommendations
|
|
135
139
|
|
|
136
|
-
**
|
|
137
|
-
- Simply complete your security audit and return structured JSON output
|
|
138
|
-
- **❌ DO NOT:** Use Redis commands, execute bash scripts, signal completion via CLI tools
|
|
139
|
-
- Main Chat receives your output automatically
|
|
140
|
-
|
|
141
|
-
**CLI Mode (5%):** You were spawned via `npx claude-flow-novice agent-spawn ...` command
|
|
142
|
-
- Use Redis signals and completion scripts as outlined below
|
|
143
|
-
|
|
144
|
-
### Task Mode (Spawned via Task() tool in Main Chat)
|
|
145
|
-
|
|
146
|
-
**Simply complete your work and return structured output.**
|
|
147
|
-
|
|
148
|
-
```json
|
|
149
|
-
{
|
|
150
|
-
"confidence": 0.85,
|
|
151
|
-
"status": "COMPLETE|NEEDS_WORK",
|
|
152
|
-
"summary": "Security audit completed with X findings",
|
|
153
|
-
"deliverables": ["security-report.md", "vulnerability-scan.json"],
|
|
154
|
-
"findings": {
|
|
155
|
-
"critical": 0,
|
|
156
|
-
"high": 2,
|
|
157
|
-
"medium": 5,
|
|
158
|
-
"low": 3
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
**❌ FORBIDDEN in Task Mode:**
|
|
164
|
-
- **DO NOT** run `redis-cli` commands
|
|
165
|
-
- **DO NOT** execute `invoke-waiting-mode.sh` scripts
|
|
166
|
-
- **DO NOT** use bash completion scripts
|
|
167
|
-
- **DO NOT** signal completion via CLI tools
|
|
168
|
-
- **Main Chat receives your output automatically - no coordination needed**
|
|
169
|
-
|
|
170
|
-
### CLI Mode (Spawned via `npx claude-flow-novice agent-spawn`)
|
|
171
|
-
|
|
172
|
-
**Step 1: Complete Work**
|
|
173
|
-
Execute assigned security audit (vulnerability assessment, threat modeling, etc.)
|
|
174
|
-
|
|
175
|
-
**Step 2: Signal Completion**
|
|
176
|
-
```bash
|
|
177
|
-
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
**Step 3: Report Confidence Score and Exit**
|
|
181
|
-
```bash
|
|
182
|
-
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
183
|
-
--task-id "$TASK_ID" \
|
|
184
|
-
--agent-id "$AGENT_ID" \
|
|
185
|
-
--confidence [0.0-1.0] \
|
|
186
|
-
--iteration 1
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
**Why This Matters:**
|
|
190
|
-
- **ANTI-023 MEMORY LEAK:** Task Mode agents attempting CLI commands hang indefinitely
|
|
191
|
-
- Task Mode uses direct JSON output, CLI Mode uses Redis coordination
|
|
192
|
-
- Mixing protocols causes memory leaks and process hanging
|
|
193
|
-
- **Check your spawn method FIRST before using any completion protocol**
|
|
194
|
-
|
|
195
|
-
### How to Tell Which Mode You're In
|
|
196
|
-
|
|
197
|
-
- **Task Mode**: You see a direct task assignment in Main Chat context
|
|
198
|
-
- **CLI Mode**: You have TASK_ID and AGENT_ID environment variables
|
|
199
|
-
- **When in doubt, assume Task Mode and return structured JSON output**
|
|
140
|
+
**Note:** Coordination instructions are provided when spawned via CLI.
|
|
200
141
|
|
|
201
142
|
## Success Metrics
|
|
202
143
|
|
|
@@ -197,84 +197,13 @@ After completing review, generate structured feedback using this format:
|
|
|
197
197
|
- Include a summary of total issues
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
##
|
|
200
|
+
## Completion Protocol
|
|
201
201
|
|
|
202
|
-
|
|
202
|
+
Complete your work and provide a structured response with:
|
|
203
|
+
- Confidence score (0.0-1.0) based on work quality
|
|
204
|
+
- Summary of analysis/review completed
|
|
205
|
+
- List of findings or deliverables
|
|
206
|
+
- Any recommendations made
|
|
203
207
|
|
|
204
|
-
**
|
|
205
|
-
|
|
206
|
-
✅ **Your responsibilities:**
|
|
207
|
-
- Review code and deliverables
|
|
208
|
-
- Assess quality, security, performance
|
|
209
|
-
- Provide structured feedback
|
|
210
|
-
- Report confidence score
|
|
211
|
-
|
|
212
|
-
❌ **DO NOT:**
|
|
213
|
-
- Spawn nested CFN Loops (`/cfn-loop-cli`, `/cfn-loop-task`)
|
|
214
|
-
- Use SlashCommand tool (Main Chat only)
|
|
215
|
-
- Coordinate other agents
|
|
216
|
-
- Attempt complex orchestration
|
|
217
|
-
|
|
218
|
-
**If you need deep analysis beyond validation, note it in feedback for Main Chat.**
|
|
219
|
-
|
|
220
|
-
### ⚠️ CRITICAL: How to Complete Your Validation
|
|
221
|
-
|
|
222
|
-
**First, determine how you were spawned:**
|
|
223
|
-
|
|
224
|
-
- **Task Mode**: You were called via `Task("reviewer", "...")` in Main Chat
|
|
225
|
-
- **CLI Mode**: You were spawned via `npx claude-flow-novice agent-spawn ...` command
|
|
226
|
-
|
|
227
|
-
---
|
|
228
|
-
|
|
229
|
-
### If You Are in Task Mode (95% of cases)
|
|
230
|
-
|
|
231
|
-
**🎯 YOUR INSTRUCTIONS: Simply return structured JSON output**
|
|
232
|
-
|
|
233
|
-
```json
|
|
234
|
-
{
|
|
235
|
-
"confidence": 0.85,
|
|
236
|
-
"status": "APPROVED|NEEDS_WORK",
|
|
237
|
-
"feedback": [
|
|
238
|
-
{"severity": "CRITICAL", "issue": "...", "suggestion": "..."}
|
|
239
|
-
],
|
|
240
|
-
"summary": {
|
|
241
|
-
"critical_count": 0,
|
|
242
|
-
"warning_count": 2,
|
|
243
|
-
"suggestion_count": 3,
|
|
244
|
-
"files_reviewed": ["src/auth.ts", "tests/auth.test.ts"]
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
**❌ DO NOT:**
|
|
250
|
-
- Use any Redis commands (redis-cli)
|
|
251
|
-
- Execute bash scripts for completion
|
|
252
|
-
- Run invoke-waiting-mode.sh
|
|
253
|
-
- Use slash commands (/cfn-loop-cli)
|
|
254
|
-
- **Main Chat receives your JSON output automatically - that's all you need!**
|
|
255
|
-
|
|
256
|
-
---
|
|
257
|
-
|
|
258
|
-
### If You Are in CLI Mode (Rare cases)
|
|
259
|
-
|
|
260
|
-
**Only use these instructions if spawned via CLI command:**
|
|
261
|
-
|
|
262
|
-
**Step 1: Complete Work**
|
|
263
|
-
Execute assigned validation task
|
|
264
|
-
|
|
265
|
-
**Step 2: Signal Completion**
|
|
266
|
-
```bash
|
|
267
|
-
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
268
|
-
```
|
|
269
|
-
|
|
270
|
-
**Step 3: Report Confidence Score**
|
|
271
|
-
```bash
|
|
272
|
-
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
273
|
-
--task-id "$TASK_ID" \
|
|
274
|
-
--agent-id "$AGENT_ID" \
|
|
275
|
-
--confidence [0.0-1.0] \
|
|
276
|
-
--iteration 1
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
**🚨 MEMORY LEAK WARNING**: If you try CLI commands in Task Mode, you will hang and cause memory leaks!
|
|
208
|
+
**Note:** Coordination instructions are provided when spawned via CLI.
|
|
280
209
|
|
|
@@ -118,24 +118,13 @@ await sqlite.memoryAdapter.set(
|
|
|
118
118
|
|
|
119
119
|
**Coordination**: Integrated with Claude Flow swarm ecosystem, following hook protocols and memory sharing for optimal test execution.
|
|
120
120
|
|
|
121
|
-
##
|
|
121
|
+
## Completion Protocol
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
Complete your work and provide a structured response with:
|
|
124
|
+
- Confidence score (0.0-1.0) based on test coverage and quality
|
|
125
|
+
- Summary of E2E testing completed
|
|
126
|
+
- List of test cases executed and results
|
|
127
|
+
- Performance metrics and any issues identified
|
|
124
128
|
|
|
125
|
-
|
|
126
|
-
Execute assigned task (implementation, review, testing, etc.)
|
|
127
|
-
|
|
128
|
-
### Step 2: Signal Completion
|
|
129
|
-
```bash
|
|
130
|
-
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
### Step 3: Report Confidence Score
|
|
134
|
-
```bash
|
|
135
|
-
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
136
|
-
--task-id "$TASK_ID" \
|
|
137
|
-
--agent-id "$AGENT_ID" \
|
|
138
|
-
--confidence [0.0-1.0] \
|
|
139
|
-
--iteration 1
|
|
140
|
-
```
|
|
129
|
+
**Note:** Coordination instructions are provided when spawned via CLI.
|
|
141
130
|
|
|
@@ -153,24 +153,13 @@ await sqlite.memoryAdapter.set(
|
|
|
153
153
|
|
|
154
154
|
Remember: Testing validates system behavior, catches regressions, and ensures quality across user interactions.
|
|
155
155
|
|
|
156
|
-
##
|
|
156
|
+
## Completion Protocol
|
|
157
157
|
|
|
158
|
-
|
|
158
|
+
Complete your work and provide a structured response with:
|
|
159
|
+
- Confidence score (0.0-1.0) based on test coverage and quality
|
|
160
|
+
- Summary of interaction testing completed
|
|
161
|
+
- List of test cases executed and results
|
|
162
|
+
- Accessibility compliance and user flow validation results
|
|
159
163
|
|
|
160
|
-
|
|
161
|
-
Execute assigned task (implementation, review, testing, etc.)
|
|
162
|
-
|
|
163
|
-
### Step 2: Signal Completion
|
|
164
|
-
```bash
|
|
165
|
-
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
### Step 3: Report Confidence Score
|
|
169
|
-
```bash
|
|
170
|
-
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
171
|
-
--task-id "$TASK_ID" \
|
|
172
|
-
--agent-id "$AGENT_ID" \
|
|
173
|
-
--confidence [0.0-1.0] \
|
|
174
|
-
--iteration 1
|
|
175
|
-
```
|
|
164
|
+
**Note:** Coordination instructions are provided when spawned via CLI.
|
|
176
165
|
|
|
@@ -154,83 +154,13 @@ lifecycle:
|
|
|
154
154
|
- Use containerization for test isolation
|
|
155
155
|
- Implement automated test setup and teardown
|
|
156
156
|
|
|
157
|
-
##
|
|
157
|
+
## Completion Protocol
|
|
158
158
|
|
|
159
|
-
|
|
159
|
+
Complete your work and provide a structured response with:
|
|
160
|
+
- Confidence score (0.0-1.0) based on work quality
|
|
161
|
+
- Summary of analysis/review completed
|
|
162
|
+
- List of findings or deliverables
|
|
163
|
+
- Any recommendations made
|
|
160
164
|
|
|
161
|
-
**
|
|
162
|
-
|
|
163
|
-
✅ **Your responsibilities:**
|
|
164
|
-
- Execute test cases and validation
|
|
165
|
-
- Report test results with confidence scores
|
|
166
|
-
- Identify bugs and quality issues
|
|
167
|
-
- Provide structured feedback
|
|
168
|
-
|
|
169
|
-
❌ **DO NOT:**
|
|
170
|
-
- Spawn nested CFN Loops (`/cfn-loop-cli`, `/cfn-loop-task`)
|
|
171
|
-
- Use SlashCommand tool (Main Chat only)
|
|
172
|
-
- Coordinate other agents
|
|
173
|
-
- Attempt complex orchestration
|
|
174
|
-
|
|
175
|
-
**If you need deep testing beyond validation, note it in feedback for Main Chat.**
|
|
176
|
-
|
|
177
|
-
### ⚠️ CRITICAL: How to Complete Your Testing
|
|
178
|
-
|
|
179
|
-
**First, determine how you were spawned:**
|
|
180
|
-
|
|
181
|
-
- **Task Mode**: You were called via `Task("tester", "...")` in Main Chat
|
|
182
|
-
- **CLI Mode**: You were spawned via `npx claude-flow-novice agent-spawn ...` command
|
|
183
|
-
|
|
184
|
-
---
|
|
185
|
-
|
|
186
|
-
### If You Are in Task Mode (95% of cases)
|
|
187
|
-
|
|
188
|
-
**🎯 YOUR INSTRUCTIONS: Simply return structured test report**
|
|
189
|
-
|
|
190
|
-
```markdown
|
|
191
|
-
## Test Execution Report
|
|
192
|
-
- **Total Test Cases**: N
|
|
193
|
-
- **Passed**: X
|
|
194
|
-
- **Failed**: Y
|
|
195
|
-
- **Confidence Score**: 0.85
|
|
196
|
-
- **Status**: PASS|FAIL
|
|
197
|
-
- **Critical Issues**: [List]
|
|
198
|
-
- **Warnings**: [List]
|
|
199
|
-
- **Files Tested**: [file1.ts, file2.test.ts]
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
**❌ DO NOT:**
|
|
203
|
-
- Use any Redis commands (redis-cli)
|
|
204
|
-
- Execute bash scripts for completion
|
|
205
|
-
- Run invoke-waiting-mode.sh
|
|
206
|
-
- Use slash commands (/cfn-loop-cli)
|
|
207
|
-
- **Main Chat receives your test report automatically - that's all you need!**
|
|
208
|
-
|
|
209
|
-
---
|
|
210
|
-
|
|
211
|
-
### If You Are in CLI Mode (Rare cases)
|
|
212
|
-
|
|
213
|
-
**Only use these instructions if spawned via CLI command:**
|
|
214
|
-
|
|
215
|
-
**Step 1: Complete Testing**
|
|
216
|
-
Execute all test cases and validation
|
|
217
|
-
|
|
218
|
-
**Step 2: Signal Completion**
|
|
219
|
-
```bash
|
|
220
|
-
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
**Step 3: Report Confidence Score**
|
|
224
|
-
```bash
|
|
225
|
-
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
226
|
-
--task-id "$TASK_ID" \
|
|
227
|
-
--agent-id "$AGENT_ID" \
|
|
228
|
-
--confidence [0.0-1.0] \
|
|
229
|
-
--iteration 1
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
**🚨 MEMORY LEAK WARNING**: If you try CLI commands in Task Mode, you will hang and cause memory leaks!
|
|
233
|
-
|
|
234
|
-
**Step 4: Exit Cleanly**
|
|
235
|
-
Agent exits after reporting (no waiting mode)
|
|
165
|
+
**Note:** Coordination instructions are provided when spawned via CLI.
|
|
236
166
|
|
|
@@ -23,23 +23,12 @@ lifecycle:
|
|
|
23
23
|
---
|
|
24
24
|
**Key Insight**: The London School emphasizes object collaboration over internal state. Focus on interactions, define clear contracts, and verify behavior through precise mock expectations.
|
|
25
25
|
|
|
26
|
-
##
|
|
26
|
+
## Completion Protocol
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Complete your work and provide a structured response with:
|
|
29
|
+
- Confidence score (0.0-1.0) based on unit test quality and coverage
|
|
30
|
+
- Summary of TDD London School implementation completed
|
|
31
|
+
- List of unit tests created with interaction focus
|
|
32
|
+
- Mock verification and behavior contracts validated
|
|
29
33
|
|
|
30
|
-
|
|
31
|
-
Execute assigned task (unit test implementation, test suite development, interaction verification)
|
|
32
|
-
|
|
33
|
-
### Step 2: Signal Completion
|
|
34
|
-
```bash
|
|
35
|
-
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Step 3: Report Confidence Score
|
|
39
|
-
```bash
|
|
40
|
-
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
41
|
-
--task-id "$TASK_ID" \
|
|
42
|
-
--agent-id "$AGENT_ID" \
|
|
43
|
-
--confidence [0.0-1.0] \
|
|
44
|
-
--iteration 1
|
|
45
|
-
```
|
|
34
|
+
**Note:** Coordination instructions are provided when spawned via CLI.
|
package/claude-assets/agents/cfn-dev-team/testers/validation/validation-production-validator.md
CHANGED
|
@@ -8,24 +8,12 @@ model: claude-sonnet-4
|
|
|
8
8
|
|
|
9
9
|
Remember: Production validation ensures system reliability, user safety, and organizational compliance.
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Completion Protocol
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### Step 2: Signal Completion
|
|
19
|
-
```bash
|
|
20
|
-
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
### Step 3: Report Confidence Score
|
|
24
|
-
```bash
|
|
25
|
-
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
26
|
-
--task-id "$TASK_ID" \
|
|
27
|
-
--agent-id "$AGENT_ID" \
|
|
28
|
-
--confidence [0.0-1.0] \
|
|
29
|
-
--iteration 1
|
|
30
|
-
```
|
|
13
|
+
Complete your work and provide a structured response with:
|
|
14
|
+
- Confidence score (0.0-1.0) based on work quality
|
|
15
|
+
- Summary of analysis/review completed
|
|
16
|
+
- List of findings or deliverables
|
|
17
|
+
- Any recommendations made
|
|
31
18
|
|
|
19
|
+
**Note:** Coordination instructions are provided when spawned via CLI.
|
|
@@ -40,52 +40,15 @@ Specialized reviewer agent focused on validating test results, analyzing coverag
|
|
|
40
40
|
- Validate mock/stub correctness
|
|
41
41
|
- Check for race conditions in async tests
|
|
42
42
|
|
|
43
|
-
##
|
|
43
|
+
## Completion Protocol
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
Complete your work and provide a structured response with:
|
|
46
|
+
- Confidence score (0.0-1.0) based on work quality
|
|
47
|
+
- Summary of analysis/review completed
|
|
48
|
+
- List of findings or deliverables
|
|
49
|
+
- Any recommendations made
|
|
46
50
|
|
|
47
|
-
|
|
48
|
-
Execute test validation analysis:
|
|
49
|
-
- Read test output files
|
|
50
|
-
- Parse coverage reports
|
|
51
|
-
- Analyze test quality metrics
|
|
52
|
-
- Document findings in structured format
|
|
53
|
-
|
|
54
|
-
### Step 2: Signal Completion
|
|
55
|
-
```bash
|
|
56
|
-
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### Step 3: Report Confidence Score and Exit
|
|
60
|
-
```bash
|
|
61
|
-
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
62
|
-
--task-id "$TASK_ID" \
|
|
63
|
-
--agent-id "$AGENT_ID" \
|
|
64
|
-
--confidence [0.0-1.0] \
|
|
65
|
-
--iteration 1
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
**After reporting, exit cleanly. Do NOT enter waiting mode.**
|
|
69
|
-
|
|
70
|
-
**Why This Matters:**
|
|
71
|
-
- Orchestrator collects confidence/consensus scores from Redis
|
|
72
|
-
- Enables adaptive agent specialization for next iteration
|
|
73
|
-
- Prevents orchestrator blocking on wait $PID
|
|
74
|
-
- Coordinator spawns appropriate specialist based on feedback type
|
|
75
|
-
|
|
76
|
-
**Context Variables:**
|
|
77
|
-
- `TASK_ID`: Provided by orchestrator/coordinator
|
|
78
|
-
- `AGENT_ID`: Your unique agent identifier (e.g., "test-validation-agent-1")
|
|
79
|
-
- Confidence: Self-assessment score (0.0-1.0) based on validation completeness
|
|
80
|
-
|
|
81
|
-
**Confidence Scoring Criteria:**
|
|
82
|
-
- 0.95-1.0: All tests pass, coverage meets criteria, no quality issues
|
|
83
|
-
- 0.85-0.94: Minor issues detected, coverage adequate, tests reliable
|
|
84
|
-
- 0.75-0.84: Moderate issues, coverage gaps exist, some test improvements needed
|
|
85
|
-
- 0.60-0.74: Significant issues, coverage below threshold, quality concerns
|
|
86
|
-
- Below 0.60: Critical failures, inadequate coverage, major quality problems
|
|
87
|
-
|
|
88
|
-
See: `.claude/skills/cfn-redis-coordination/SKILL.md` for full protocol details
|
|
51
|
+
**Note:** Coordination instructions are provided when spawned via CLI.
|
|
89
52
|
|
|
90
53
|
## Validation Workflow
|
|
91
54
|
|
|
@@ -95,46 +95,20 @@ description: MUST BE USED when specific use case. Keywords - relevant, terms
|
|
|
95
95
|
description: MUST BE USED when [primary use case]. Use PROACTIVELY for [secondary scenarios]. Keywords - [searchable, terms, for, discovery]
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
##
|
|
98
|
+
## Agent Completion Protocol
|
|
99
99
|
|
|
100
|
-
When creating agent templates,
|
|
100
|
+
When creating agent templates, include this standardized completion section:
|
|
101
101
|
|
|
102
102
|
```markdown
|
|
103
|
-
##
|
|
103
|
+
## Completion Protocol
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
Complete your work and provide a structured response with:
|
|
106
|
+
- Confidence score (0.0-1.0) based on work quality
|
|
107
|
+
- Summary of analysis/review completed
|
|
108
|
+
- List of findings or deliverables
|
|
109
|
+
- Any recommendations made
|
|
106
110
|
|
|
107
|
-
|
|
108
|
-
Execute assigned task (describe agent's specific task type here)
|
|
109
|
-
|
|
110
|
-
### Step 2: Signal Completion
|
|
111
|
-
\```bash
|
|
112
|
-
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
113
|
-
\```
|
|
114
|
-
|
|
115
|
-
### Step 3: Report Confidence Score and Exit
|
|
116
|
-
\```bash
|
|
117
|
-
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
118
|
-
--task-id "$TASK_ID" \
|
|
119
|
-
--agent-id "$AGENT_ID" \
|
|
120
|
-
--confidence [0.0-1.0] \
|
|
121
|
-
--iteration 1
|
|
122
|
-
\```
|
|
123
|
-
|
|
124
|
-
**After reporting, exit cleanly. Do NOT enter waiting mode.**
|
|
125
|
-
|
|
126
|
-
**Why This Matters:**
|
|
127
|
-
- Orchestrator collects confidence/consensus scores from Redis
|
|
128
|
-
- Enables adaptive agent specialization for next iteration
|
|
129
|
-
- Prevents orchestrator blocking on wait $PID
|
|
130
|
-
- Coordinator spawns appropriate specialist based on feedback type
|
|
131
|
-
|
|
132
|
-
**Context Variables:**
|
|
133
|
-
- \`TASK_ID\`: Provided by orchestrator/coordinator
|
|
134
|
-
- \`AGENT_ID\`: Your unique agent identifier (e.g., "agent-name-1")
|
|
135
|
-
- Confidence: Self-assessment score (0.0-1.0) - explain agent-specific criteria
|
|
136
|
-
|
|
137
|
-
See: \`.claude/skills/cfn-redis-coordination/SKILL.md\` for full protocol details
|
|
111
|
+
**Note:** Coordination instructions are provided when spawned via CLI.
|
|
138
112
|
```
|
|
139
113
|
|
|
140
114
|
---
|
|
@@ -231,28 +205,15 @@ You implement REST API endpoints following best practices and OpenAPI specificat
|
|
|
231
205
|
- Update OpenAPI spec
|
|
232
206
|
- Generate API docs
|
|
233
207
|
|
|
234
|
-
##
|
|
208
|
+
## Completion Protocol
|
|
235
209
|
|
|
236
|
-
|
|
210
|
+
Complete your work and provide a structured response with:
|
|
211
|
+
- Confidence score (0.0-1.0) based on work quality
|
|
212
|
+
- Summary of analysis/review completed
|
|
213
|
+
- List of findings or deliverables
|
|
214
|
+
- Any recommendations made
|
|
237
215
|
|
|
238
|
-
|
|
239
|
-
Implement API endpoints with tests and documentation
|
|
240
|
-
|
|
241
|
-
### Step 2: Signal Completion
|
|
242
|
-
\```bash
|
|
243
|
-
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
244
|
-
\```
|
|
245
|
-
|
|
246
|
-
### Step 3: Report Confidence Score and Exit
|
|
247
|
-
\```bash
|
|
248
|
-
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
249
|
-
--task-id "$TASK_ID" \
|
|
250
|
-
--agent-id "$AGENT_ID" \
|
|
251
|
-
--confidence [0.0-1.0] \
|
|
252
|
-
--iteration 1
|
|
253
|
-
\```
|
|
254
|
-
|
|
255
|
-
**After reporting, exit cleanly. Do NOT enter waiting mode.**
|
|
216
|
+
**Note:** Coordination instructions are provided when spawned via CLI.
|
|
256
217
|
|
|
257
218
|
## Success Metrics
|
|
258
219
|
- All endpoints tested
|
|
@@ -325,28 +286,15 @@ You review code for security vulnerabilities and compliance issues.
|
|
|
325
286
|
- [Suggestion]
|
|
326
287
|
- Benefit: [security improvement]
|
|
327
288
|
|
|
328
|
-
##
|
|
329
|
-
|
|
330
|
-
When participating in CFN Loop workflows, agents MUST follow this protocol:
|
|
331
|
-
|
|
332
|
-
### Step 1: Complete Work
|
|
333
|
-
Perform security review and generate findings
|
|
289
|
+
## Completion Protocol
|
|
334
290
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
291
|
+
Complete your work and provide a structured response with:
|
|
292
|
+
- Confidence score (0.0-1.0) based on work quality
|
|
293
|
+
- Summary of analysis/review completed
|
|
294
|
+
- List of findings or deliverables
|
|
295
|
+
- Any recommendations made
|
|
339
296
|
|
|
340
|
-
|
|
341
|
-
\```bash
|
|
342
|
-
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
343
|
-
--task-id "$TASK_ID" \
|
|
344
|
-
--agent-id "$AGENT_ID" \
|
|
345
|
-
--confidence [0.0-1.0] \
|
|
346
|
-
--iteration 1
|
|
347
|
-
\```
|
|
348
|
-
|
|
349
|
-
**After reporting, exit cleanly. Do NOT enter waiting mode.**
|
|
297
|
+
**Note:** Coordination instructions are provided when spawned via CLI.
|
|
350
298
|
|
|
351
299
|
## Success Metrics
|
|
352
300
|
- Zero critical vulnerabilities
|
|
@@ -402,49 +350,25 @@ You coordinate multiple agents to implement complex features.
|
|
|
402
350
|
|
|
403
351
|
## Agent Spawning Pattern
|
|
404
352
|
|
|
405
|
-
|
|
353
|
+
Use CLI spawning commands and let the coordination system handle the workflow:
|
|
354
|
+
|
|
355
|
+
```bash
|
|
406
356
|
# Spawn implementers
|
|
407
357
|
npx claude-flow-novice agent-spawn backend-dev --task-id "$TASK_ID"
|
|
408
358
|
npx claude-flow-novice agent-spawn frontend-dev --task-id "$TASK_ID"
|
|
359
|
+
```
|
|
409
360
|
|
|
410
|
-
|
|
411
|
-
redis-cli blpop "swarm:$TASK_ID:backend-dev-1:done" 0
|
|
412
|
-
redis-cli blpop "swarm:$TASK_ID:frontend-dev-1:done" 0
|
|
413
|
-
|
|
414
|
-
# Collect confidence scores
|
|
415
|
-
CONSENSUS=$(./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh collect \
|
|
416
|
-
--task-id "$TASK_ID" \
|
|
417
|
-
--agent-ids "backend-dev-1,frontend-dev-1")
|
|
418
|
-
|
|
419
|
-
# Check gate threshold
|
|
420
|
-
if (( $(echo "$CONSENSUS >= 0.75" | bc -l) )); then
|
|
421
|
-
echo "✅ Gate passed, proceeding to validation"
|
|
422
|
-
# Spawn validators...
|
|
423
|
-
fi
|
|
424
|
-
\```
|
|
425
|
-
|
|
426
|
-
## CFN Loop Redis Completion Protocol
|
|
427
|
-
|
|
428
|
-
When participating in CFN Loop workflows, agents MUST follow this protocol:
|
|
429
|
-
|
|
430
|
-
### Step 1: Complete Work
|
|
431
|
-
Orchestrate all agents through CFN Loop workflow
|
|
361
|
+
**Note:** The coordination system handles agent completion, confidence collection, and workflow progression automatically.
|
|
432
362
|
|
|
433
|
-
|
|
434
|
-
\```bash
|
|
435
|
-
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
436
|
-
\```
|
|
363
|
+
## Completion Protocol
|
|
437
364
|
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
--confidence [0.0-1.0] \
|
|
444
|
-
--iteration 1
|
|
445
|
-
\```
|
|
365
|
+
Complete your work and provide a structured response with:
|
|
366
|
+
- Confidence score (0.0-1.0) based on work quality
|
|
367
|
+
- Summary of analysis/review completed
|
|
368
|
+
- List of findings or deliverables
|
|
369
|
+
- Any recommendations made
|
|
446
370
|
|
|
447
|
-
**
|
|
371
|
+
**Note:** Coordination instructions are provided when spawned via CLI.
|
|
448
372
|
|
|
449
373
|
## Success Metrics
|
|
450
374
|
- Feature fully implemented
|