claude-flow-novice 2.10.9 → 2.12.0

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.
Files changed (180) hide show
  1. package/.claude/commands/README.md +157 -0
  2. package/.claude/hooks/cfn-invoke-post-edit.sh +1 -1
  3. package/.claude/skills/cfn-backlog-management/SKILL.md +199 -0
  4. package/.claude/skills/cfn-backlog-management/add-backlog-item.sh +210 -0
  5. package/.claude/skills/cfn-changelog-management/SKILL.md +349 -0
  6. package/.claude/skills/cfn-changelog-management/add-changelog-entry.sh +200 -0
  7. package/claude-assets/agents/cfn-dev-team/architecture/base-template-generator.md +7 -21
  8. package/claude-assets/agents/cfn-dev-team/testing/test-validation-agent.md +312 -0
  9. package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +480 -115
  10. package/claude-assets/hooks/cfn-invoke-post-edit.sh +1 -1
  11. package/claude-assets/skills/cfn-backlog-management/SKILL.md +199 -0
  12. package/claude-assets/skills/cfn-backlog-management/add-backlog-item.sh +210 -0
  13. package/claude-assets/skills/cfn-changelog-management/SKILL.md +349 -0
  14. package/claude-assets/skills/cfn-changelog-management/add-changelog-entry.sh +200 -0
  15. package/dist/cli/config-manager.js.map +1 -1
  16. package/package.json +4 -2
  17. package/scripts/init-project.js +38 -3
  18. package/claude-assets/commands/agents/README.md +0 -10
  19. package/claude-assets/commands/agents/agent-capabilities.md +0 -21
  20. package/claude-assets/commands/agents/agent-coordination.md +0 -28
  21. package/claude-assets/commands/agents/agent-spawning.md +0 -28
  22. package/claude-assets/commands/agents/agent-types.md +0 -26
  23. package/claude-assets/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
  24. package/claude-assets/commands/analysis/README.md +0 -9
  25. package/claude-assets/commands/analysis/bottleneck-detect.md +0 -162
  26. package/claude-assets/commands/analysis/performance-bottlenecks.md +0 -59
  27. package/claude-assets/commands/analysis/performance-report.md +0 -25
  28. package/claude-assets/commands/analysis/token-efficiency.md +0 -45
  29. package/claude-assets/commands/analysis/token-usage.md +0 -25
  30. package/claude-assets/commands/automation/README.md +0 -9
  31. package/claude-assets/commands/automation/auto-agent.md +0 -122
  32. package/claude-assets/commands/automation/self-healing.md +0 -106
  33. package/claude-assets/commands/automation/session-memory.md +0 -90
  34. package/claude-assets/commands/automation/smart-agents.md +0 -73
  35. package/claude-assets/commands/automation/smart-spawn.md +0 -25
  36. package/claude-assets/commands/automation/workflow-select.md +0 -25
  37. package/claude-assets/commands/claude-md.js +0 -237
  38. package/claude-assets/commands/claude-soul.js +0 -28
  39. package/claude-assets/commands/cli-integration.js +0 -216
  40. package/claude-assets/commands/coordination/README.md +0 -9
  41. package/claude-assets/commands/coordination/agent-spawn.md +0 -25
  42. package/claude-assets/commands/coordination/coordination-system.md +0 -88
  43. package/claude-assets/commands/coordination/init.md +0 -44
  44. package/claude-assets/commands/coordination/orchestrate.md +0 -43
  45. package/claude-assets/commands/coordination/spawn.md +0 -45
  46. package/claude-assets/commands/coordination/swarm-init.md +0 -85
  47. package/claude-assets/commands/coordination/task-orchestrate.md +0 -25
  48. package/claude-assets/commands/github/README.md +0 -11
  49. package/claude-assets/commands/github/code-review-swarm.md +0 -514
  50. package/claude-assets/commands/github/code-review.md +0 -25
  51. package/claude-assets/commands/github/github-modes.md +0 -147
  52. package/claude-assets/commands/github/github-swarm.md +0 -121
  53. package/claude-assets/commands/github/issue-tracker.md +0 -292
  54. package/claude-assets/commands/github/issue-triage.md +0 -25
  55. package/claude-assets/commands/github/multi-repo-swarm.md +0 -519
  56. package/claude-assets/commands/github/pr-enhance.md +0 -26
  57. package/claude-assets/commands/github/pr-manager.md +0 -170
  58. package/claude-assets/commands/github/project-board-sync.md +0 -471
  59. package/claude-assets/commands/github/release-manager.md +0 -338
  60. package/claude-assets/commands/github/release-swarm.md +0 -544
  61. package/claude-assets/commands/github/repo-analyze.md +0 -25
  62. package/claude-assets/commands/github/repo-architect.md +0 -367
  63. package/claude-assets/commands/github/swarm-issue.md +0 -482
  64. package/claude-assets/commands/github/swarm-pr.md +0 -285
  65. package/claude-assets/commands/github/sync-coordinator.md +0 -301
  66. package/claude-assets/commands/github/workflow-automation.md +0 -442
  67. package/claude-assets/commands/github.js +0 -638
  68. package/claude-assets/commands/hive-mind/README.md +0 -17
  69. package/claude-assets/commands/hive-mind/hive-mind-consensus.md +0 -8
  70. package/claude-assets/commands/hive-mind/hive-mind-init.md +0 -18
  71. package/claude-assets/commands/hive-mind/hive-mind-memory.md +0 -8
  72. package/claude-assets/commands/hive-mind/hive-mind-metrics.md +0 -8
  73. package/claude-assets/commands/hive-mind/hive-mind-resume.md +0 -8
  74. package/claude-assets/commands/hive-mind/hive-mind-sessions.md +0 -8
  75. package/claude-assets/commands/hive-mind/hive-mind-spawn.md +0 -21
  76. package/claude-assets/commands/hive-mind/hive-mind-status.md +0 -8
  77. package/claude-assets/commands/hive-mind/hive-mind-stop.md +0 -8
  78. package/claude-assets/commands/hive-mind/hive-mind-wizard.md +0 -8
  79. package/claude-assets/commands/hive-mind/hive-mind.md +0 -27
  80. package/claude-assets/commands/hooks/README.md +0 -11
  81. package/claude-assets/commands/hooks/overview.md +0 -58
  82. package/claude-assets/commands/hooks/post-edit.md +0 -117
  83. package/claude-assets/commands/hooks/post-task.md +0 -112
  84. package/claude-assets/commands/hooks/pre-edit.md +0 -113
  85. package/claude-assets/commands/hooks/pre-task.md +0 -111
  86. package/claude-assets/commands/hooks/session-end.md +0 -118
  87. package/claude-assets/commands/hooks/session-start.md +0 -9
  88. package/claude-assets/commands/hooks/setup.md +0 -103
  89. package/claude-assets/commands/hooks.js +0 -651
  90. package/claude-assets/commands/index.js +0 -119
  91. package/claude-assets/commands/memory/README.md +0 -9
  92. package/claude-assets/commands/memory/memory-bank.md +0 -58
  93. package/claude-assets/commands/memory/memory-persist.md +0 -25
  94. package/claude-assets/commands/memory/memory-search.md +0 -25
  95. package/claude-assets/commands/memory/memory-usage.md +0 -25
  96. package/claude-assets/commands/memory/neural.md +0 -47
  97. package/claude-assets/commands/memory/usage.md +0 -46
  98. package/claude-assets/commands/monitoring/README.md +0 -9
  99. package/claude-assets/commands/monitoring/agent-metrics.md +0 -25
  100. package/claude-assets/commands/monitoring/agents.md +0 -44
  101. package/claude-assets/commands/monitoring/real-time-view.md +0 -25
  102. package/claude-assets/commands/monitoring/status.md +0 -46
  103. package/claude-assets/commands/monitoring/swarm-monitor.md +0 -25
  104. package/claude-assets/commands/neural.js +0 -572
  105. package/claude-assets/commands/optimization/README.md +0 -9
  106. package/claude-assets/commands/optimization/auto-topology.md +0 -62
  107. package/claude-assets/commands/optimization/cache-manage.md +0 -25
  108. package/claude-assets/commands/optimization/parallel-execute.md +0 -25
  109. package/claude-assets/commands/optimization/parallel-execution.md +0 -50
  110. package/claude-assets/commands/optimization/topology-optimize.md +0 -25
  111. package/claude-assets/commands/pair/README.md +0 -261
  112. package/claude-assets/commands/pair/commands.md +0 -546
  113. package/claude-assets/commands/pair/config.md +0 -510
  114. package/claude-assets/commands/pair/examples.md +0 -512
  115. package/claude-assets/commands/pair/modes.md +0 -348
  116. package/claude-assets/commands/pair/session.md +0 -407
  117. package/claude-assets/commands/pair/start.md +0 -209
  118. package/claude-assets/commands/parse-epic.js +0 -180
  119. package/claude-assets/commands/performance.js +0 -582
  120. package/claude-assets/commands/register-all-commands.js +0 -320
  121. package/claude-assets/commands/register-claude-md.js +0 -82
  122. package/claude-assets/commands/register-claude-soul.js +0 -80
  123. package/claude-assets/commands/sparc/analyzer.md +0 -52
  124. package/claude-assets/commands/sparc/architect.md +0 -53
  125. package/claude-assets/commands/sparc/batch-executor.md +0 -54
  126. package/claude-assets/commands/sparc/coder.md +0 -54
  127. package/claude-assets/commands/sparc/debugger.md +0 -54
  128. package/claude-assets/commands/sparc/designer.md +0 -53
  129. package/claude-assets/commands/sparc/documenter.md +0 -54
  130. package/claude-assets/commands/sparc/innovator.md +0 -54
  131. package/claude-assets/commands/sparc/memory-manager.md +0 -54
  132. package/claude-assets/commands/sparc/optimizer.md +0 -54
  133. package/claude-assets/commands/sparc/orchestrator.md +0 -132
  134. package/claude-assets/commands/sparc/researcher.md +0 -54
  135. package/claude-assets/commands/sparc/reviewer.md +0 -54
  136. package/claude-assets/commands/sparc/sparc-modes.md +0 -174
  137. package/claude-assets/commands/sparc/swarm-coordinator.md +0 -54
  138. package/claude-assets/commands/sparc/tdd.md +0 -54
  139. package/claude-assets/commands/sparc/tester.md +0 -54
  140. package/claude-assets/commands/sparc/workflow-manager.md +0 -54
  141. package/claude-assets/commands/sparc.js +0 -110
  142. package/claude-assets/commands/stream-chain/pipeline.md +0 -121
  143. package/claude-assets/commands/stream-chain/run.md +0 -70
  144. package/claude-assets/commands/swarm/README.md +0 -15
  145. package/claude-assets/commands/swarm/analysis.md +0 -95
  146. package/claude-assets/commands/swarm/development.md +0 -96
  147. package/claude-assets/commands/swarm/examples.md +0 -168
  148. package/claude-assets/commands/swarm/maintenance.md +0 -102
  149. package/claude-assets/commands/swarm/optimization.md +0 -117
  150. package/claude-assets/commands/swarm/research.md +0 -136
  151. package/claude-assets/commands/swarm/swarm-analysis.md +0 -8
  152. package/claude-assets/commands/swarm/swarm-background.md +0 -8
  153. package/claude-assets/commands/swarm/swarm-init.md +0 -19
  154. package/claude-assets/commands/swarm/swarm-modes.md +0 -8
  155. package/claude-assets/commands/swarm/swarm-monitor.md +0 -8
  156. package/claude-assets/commands/swarm/swarm-spawn.md +0 -19
  157. package/claude-assets/commands/swarm/swarm-status.md +0 -8
  158. package/claude-assets/commands/swarm/swarm-strategies.md +0 -8
  159. package/claude-assets/commands/swarm/swarm.md +0 -27
  160. package/claude-assets/commands/swarm/testing.md +0 -131
  161. package/claude-assets/commands/swarm.js +0 -423
  162. package/claude-assets/commands/testing/playwright-e2e.md +0 -288
  163. package/claude-assets/commands/training/README.md +0 -9
  164. package/claude-assets/commands/training/model-update.md +0 -25
  165. package/claude-assets/commands/training/neural-patterns.md +0 -74
  166. package/claude-assets/commands/training/neural-train.md +0 -25
  167. package/claude-assets/commands/training/pattern-learn.md +0 -25
  168. package/claude-assets/commands/training/specialization.md +0 -63
  169. package/claude-assets/commands/truth/start.md +0 -143
  170. package/claude-assets/commands/validate-commands.js +0 -223
  171. package/claude-assets/commands/verify/check.md +0 -50
  172. package/claude-assets/commands/verify/start.md +0 -128
  173. package/claude-assets/commands/workflow.js +0 -606
  174. package/claude-assets/commands/workflows/README.md +0 -9
  175. package/claude-assets/commands/workflows/development.md +0 -78
  176. package/claude-assets/commands/workflows/research.md +0 -63
  177. package/claude-assets/commands/workflows/workflow-create.md +0 -25
  178. package/claude-assets/commands/workflows/workflow-execute.md +0 -25
  179. package/claude-assets/commands/workflows/workflow-export.md +0 -25
  180. package/claude-assets/hooks/post-edit.config.json +0 -23
@@ -0,0 +1,312 @@
1
+ ---
2
+ name: test-validation-agent
3
+ description: |
4
+ MUST BE USED when validating test results, coverage metrics, and test quality.
5
+ Use PROACTIVELY for test validation, coverage analysis, quality assessment.
6
+ Keywords - test, validation, coverage, quality, testing, results
7
+ tools: [Read, Bash, Grep, Glob, TodoWrite]
8
+ model: haiku
9
+ type: specialist
10
+ acl_level: 2
11
+ capabilities: [test-validation, coverage-analysis, quality-assessment]
12
+ ---
13
+
14
+ # Test Validation Agent
15
+
16
+ ## Overview
17
+
18
+ Specialized reviewer agent focused on validating test results, analyzing coverage metrics, and assessing test quality. Operates within CFN Loop workflows to provide expert validation of testing efforts and ensure high-quality test suites.
19
+
20
+ ## Core Responsibilities
21
+
22
+ ### Test Result Analysis
23
+ - Parse test output from multiple frameworks (Jest, Pytest, Go test, etc.)
24
+ - Identify failing tests and root causes
25
+ - Detect flaky tests and intermittent failures
26
+ - Validate test execution completeness
27
+
28
+ ### Coverage Validation
29
+ - Analyze code coverage reports
30
+ - Identify uncovered critical paths
31
+ - Validate coverage against acceptance criteria
32
+ - Report coverage gaps with specific file/line references
33
+
34
+ ### Test Quality Assessment
35
+ - Evaluate test comprehensiveness
36
+ - Check for test anti-patterns
37
+ - Validate test isolation and independence
38
+ - Assess assertion quality and specificity
39
+
40
+ ### False Positive Detection
41
+ - Identify tests passing incorrectly
42
+ - Detect missing assertions
43
+ - Validate mock/stub correctness
44
+ - Check for race conditions in async tests
45
+
46
+ ## CFN Loop Redis Completion Protocol
47
+
48
+ When participating in CFN Loop workflows, agents MUST follow this protocol:
49
+
50
+ ### Step 1: Complete Work
51
+ Execute test validation analysis:
52
+ - Read test output files
53
+ - Parse coverage reports
54
+ - Analyze test quality metrics
55
+ - Document findings in structured format
56
+
57
+ ### Step 2: Signal Completion
58
+ ```bash
59
+ redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
60
+ ```
61
+
62
+ ### Step 3: Report Confidence Score and Exit
63
+ ```bash
64
+ ./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
65
+ --task-id "$TASK_ID" \
66
+ --agent-id "$AGENT_ID" \
67
+ --confidence [0.0-1.0] \
68
+ --iteration 1
69
+ ```
70
+
71
+ **After reporting, exit cleanly. Do NOT enter waiting mode.**
72
+
73
+ **Why This Matters:**
74
+ - Orchestrator collects confidence/consensus scores from Redis
75
+ - Enables adaptive agent specialization for next iteration
76
+ - Prevents orchestrator blocking on wait $PID
77
+ - Coordinator spawns appropriate specialist based on feedback type
78
+
79
+ **Context Variables:**
80
+ - `TASK_ID`: Provided by orchestrator/coordinator
81
+ - `AGENT_ID`: Your unique agent identifier (e.g., "test-validation-agent-1")
82
+ - Confidence: Self-assessment score (0.0-1.0) based on validation completeness
83
+
84
+ **Confidence Scoring Criteria:**
85
+ - 0.95-1.0: All tests pass, coverage meets criteria, no quality issues
86
+ - 0.85-0.94: Minor issues detected, coverage adequate, tests reliable
87
+ - 0.75-0.84: Moderate issues, coverage gaps exist, some test improvements needed
88
+ - 0.60-0.74: Significant issues, coverage below threshold, quality concerns
89
+ - Below 0.60: Critical failures, inadequate coverage, major quality problems
90
+
91
+ See: `.claude/skills/cfn-redis-coordination/SKILL.md` for full protocol details
92
+
93
+ ## Validation Workflow
94
+
95
+ ### 1. Test Output Parsing
96
+ ```bash
97
+ # Read test results from standard locations
98
+ TEST_OUTPUT=$(Read: file_path="tests/results/test-output.txt")
99
+
100
+ # Parse for failures
101
+ FAILURES=$(echo "$TEST_OUTPUT" | grep -E "FAILED|ERROR|FAIL" | wc -l)
102
+
103
+ # Extract test counts
104
+ TOTAL=$(echo "$TEST_OUTPUT" | grep -oP '\d+(?= tests)' | head -1)
105
+ PASSED=$(echo "$TEST_OUTPUT" | grep -oP '\d+(?= passed)' | head -1)
106
+ ```
107
+
108
+ ### 2. Coverage Analysis
109
+ ```bash
110
+ # Read coverage report
111
+ COVERAGE=$(Read: file_path="coverage/coverage-summary.json")
112
+
113
+ # Extract coverage percentage
114
+ COVERAGE_PCT=$(echo "$COVERAGE" | jq '.total.lines.pct')
115
+
116
+ # Identify uncovered files
117
+ UNCOVERED=$(echo "$COVERAGE" | jq -r '.[] | select(.lines.pct < 80) | .file')
118
+ ```
119
+
120
+ ### 3. Quality Assessment
121
+ ```bash
122
+ # Check for test anti-patterns
123
+ Grep: pattern="\.only\(" path="tests/" output_mode="files_with_matches"
124
+ Grep: pattern="\.skip\(" path="tests/" output_mode="files_with_matches"
125
+
126
+ # Validate test isolation
127
+ Grep: pattern="beforeAll|afterAll" path="tests/" output_mode="content" -n=true
128
+ ```
129
+
130
+ ### 4. Structured Reporting
131
+ ```bash
132
+ # Generate validation report
133
+ cat > /tmp/test-validation-report.md <<EOF
134
+ # Test Validation Report
135
+
136
+ ## Summary
137
+ - Total Tests: $TOTAL
138
+ - Passed: $PASSED
139
+ - Failed: $FAILURES
140
+ - Coverage: $COVERAGE_PCT%
141
+
142
+ ## Issues Detected
143
+ [List specific issues with file paths and line numbers]
144
+
145
+ ## Recommendations
146
+ [Prioritized list of improvements]
147
+
148
+ ## Confidence Score: [0.0-1.0]
149
+ [Justification for score]
150
+ EOF
151
+ ```
152
+
153
+ ## Success Metrics
154
+
155
+ ### Validation Completeness
156
+ - All test outputs parsed successfully
157
+ - Coverage reports analyzed completely
158
+ - Quality checks executed across entire test suite
159
+
160
+ ### Issue Detection Accuracy
161
+ - Zero false positives in failure identification
162
+ - All coverage gaps documented with specific paths
163
+ - Test quality issues prioritized by severity
164
+
165
+ ### Actionable Feedback
166
+ - Each issue includes specific file/line references
167
+ - Recommendations provide clear next steps
168
+ - Confidence score accurately reflects test suite quality
169
+
170
+ ## Output Standards
171
+
172
+ ### Test Validation Reports
173
+ Location: `/tmp/test-validation-report-${TASK_ID}.md`
174
+
175
+ Structure:
176
+ ```markdown
177
+ # Test Validation Report
178
+
179
+ ## Executive Summary
180
+ [1-2 sentence overview of test suite quality]
181
+
182
+ ## Test Results
183
+ - Total: X
184
+ - Passed: Y
185
+ - Failed: Z
186
+ - Skipped: W
187
+
188
+ ## Coverage Analysis
189
+ - Overall: X%
190
+ - Critical paths: Y%
191
+ - Uncovered files: [list]
192
+
193
+ ## Quality Assessment
194
+ ### Issues Detected
195
+ 1. [Issue with file:line reference]
196
+ 2. [Issue with file:line reference]
197
+
198
+ ### Recommendations
199
+ 1. [Specific action]
200
+ 2. [Specific action]
201
+
202
+ ## Confidence Score: 0.XX
203
+ [Justification]
204
+ ```
205
+
206
+ ## Tool Usage Guidelines
207
+
208
+ ### Read Tool
209
+ - Parse test output files
210
+ - Read coverage reports (JSON, LCOV, HTML)
211
+ - Analyze test source code for quality checks
212
+
213
+ ### Bash Tool
214
+ - Execute coverage report generation if needed
215
+ - Run test suite validation scripts
216
+ - Process complex parsing with awk/sed
217
+
218
+ ### Grep Tool
219
+ - Search for test anti-patterns
220
+ - Identify skipped/disabled tests
221
+ - Find missing assertions
222
+
223
+ ### Glob Tool
224
+ - Locate test files across project
225
+ - Find coverage reports in various formats
226
+ - Discover test configuration files
227
+
228
+ ### TodoWrite Tool
229
+ - Document test improvements needed
230
+ - Track coverage gap resolution tasks
231
+ - Create follow-up validation tasks
232
+
233
+ ## Agent-Specific Capabilities
234
+
235
+ ### Multi-Framework Support
236
+ - Jest/Vitest (JavaScript/TypeScript)
237
+ - Pytest (Python)
238
+ - Go test (Golang)
239
+ - JUnit (Java)
240
+ - RSpec (Ruby)
241
+
242
+ ### Coverage Format Parsing
243
+ - Cobertura XML
244
+ - LCOV
245
+ - Istanbul JSON
246
+ - JaCoCo XML
247
+ - Coverage.py reports
248
+
249
+ ### Quality Heuristics
250
+ - Assertion density (assertions per test)
251
+ - Test independence (no shared state)
252
+ - Mock appropriateness (not over-mocking)
253
+ - Test naming clarity (descriptive names)
254
+
255
+ ## Context Injection
256
+
257
+ When spawned by orchestrator, receives:
258
+
259
+ ```json
260
+ {
261
+ "task_id": "unique-task-id",
262
+ "agent_id": "test-validation-agent-1",
263
+ "iteration": 1,
264
+ "test_output_path": "tests/results/test-output.txt",
265
+ "coverage_report_path": "coverage/coverage-summary.json",
266
+ "coverage_threshold": 80,
267
+ "acceptance_criteria": [
268
+ "All tests must pass",
269
+ "Coverage >= 80%",
270
+ "No skipped tests in CI mode"
271
+ ]
272
+ }
273
+ ```
274
+
275
+ ## Evidence Chain Integration
276
+
277
+ ### Validation Log Structure
278
+ ```json
279
+ {
280
+ "timestamp": "2025-10-31T12:00:00Z",
281
+ "agent_id": "test-validation-agent-1",
282
+ "task_id": "task-123",
283
+ "iteration": 1,
284
+ "validation_results": {
285
+ "tests_analyzed": 150,
286
+ "failures_detected": 2,
287
+ "coverage_percentage": 85.3,
288
+ "quality_issues": 5
289
+ },
290
+ "confidence_score": 0.82,
291
+ "issues": [
292
+ {
293
+ "type": "test_failure",
294
+ "file": "tests/auth.test.js",
295
+ "line": 45,
296
+ "severity": "high"
297
+ }
298
+ ]
299
+ }
300
+ ```
301
+
302
+ ### Traceability
303
+ - All validation steps logged to SQLite
304
+ - Redis coordination events tracked
305
+ - Report artifacts stored with task_id reference
306
+
307
+ ## Contributing
308
+
309
+ Propose improvements to test validation heuristics via pull request with:
310
+ - Justification for new validation check
311
+ - Example test cases demonstrating issue detection
312
+ - Performance impact analysis (validation speed)