claude-flow-novice 2.14.13 → 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.
Files changed (74) hide show
  1. package/.claude/commands/CFN_LOOP_TASK_MODE.md +7 -51
  2. package/.claude/commands/cfn-loop-cli.md +50 -125
  3. package/.claude/skills/cfn-agent-selector/SKILL.md +2 -2
  4. package/.claude/skills/cfn-agent-selector/select-agents.sh +0 -45
  5. package/.claude/skills/cfn-loop-orchestration/helpers/context-injection.sh +6 -69
  6. package/.claude/skills/cfn-loop-orchestration/orchestrate.sh +0 -17
  7. package/README.md +2 -2
  8. package/claude-assets/agents/cfn-dev-team/CLAUDE.md +3 -3
  9. package/claude-assets/agents/cfn-dev-team/README.md +1 -1
  10. package/claude-assets/agents/cfn-dev-team/coordinators/cfn-v3-coordinator.md +2 -2
  11. package/claude-assets/agents/cfn-dev-team/developers/README.md +3 -3
  12. package/claude-assets/agents/cfn-dev-team/documentation/agent-type-guidelines.md +1 -1
  13. package/claude-assets/agents/cfn-dev-team/test-agent.md +2 -2
  14. package/claude-assets/commands/CFN_LOOP_TASK_MODE.md +7 -51
  15. package/claude-assets/commands/cfn-loop-cli.md +50 -125
  16. package/claude-assets/skills/cfn-agent-selector/SKILL.md +2 -2
  17. package/claude-assets/skills/cfn-agent-selector/select-agents.sh +0 -45
  18. package/claude-assets/skills/cfn-loop-orchestration/helpers/context-injection.sh +6 -69
  19. package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh +0 -17
  20. package/claude-assets/skills/cfn-multi-coordinator-planning/README.md +256 -0
  21. package/claude-assets/skills/cfn-multi-coordinator-planning/SKILL.md +62 -0
  22. package/claude-assets/skills/cfn-multi-coordinator-planning/map-dependencies-conflicts.sh +376 -0
  23. package/claude-assets/skills/cfn-multi-coordinator-planning/plan-coordinator-resources.sh +258 -0
  24. package/claude-assets/skills/cfn-multi-coordinator-planning/plan-multi-coordinator-work.sh +267 -0
  25. package/claude-assets/skills/cfn-multi-coordinator-planning/plan-risk-rollout.sh +350 -0
  26. package/claude-assets/skills/cfn-multi-coordinator-planning/test-multi-coordinator-planning.sh +338 -0
  27. package/claude-assets/skills/cfn-multi-coordinator-planning/validate-task-planning.sh +189 -0
  28. package/dist/agents/agent-loader.js +165 -146
  29. package/dist/agents/agent-loader.js.map +1 -1
  30. package/package.json +1 -1
  31. package/.claude/skills/cfn-agent-selector/SKILL.md.backup_before_replace +0 -91
  32. package/.claude/skills/cfn-loop-orchestration/helpers/validate-task-context.sh +0 -241
  33. package/.claude/skills/pre-edit-backup/backup.sh +0 -130
  34. package/.claude/skills/pre-edit-backup/cleanup.sh +0 -155
  35. package/.claude/skills/pre-edit-backup/restore.sh +0 -128
  36. package/.claude/skills/pre-edit-backup/revert-file.sh +0 -168
  37. package/claude-assets/agents/cfn-dev-team/CLAUDE.md.backup_before_replace +0 -1086
  38. package/claude-assets/agents/cfn-dev-team/README.md.backup_before_replace +0 -116
  39. package/claude-assets/agents/cfn-dev-team/coordinators/cfn-v3-coordinator.md.backup_before_replace +0 -451
  40. package/claude-assets/agents/cfn-dev-team/developers/README.md.backup_before_replace +0 -69
  41. package/claude-assets/agents/cfn-dev-team/documentation/agent-type-guidelines.md.backup_before_replace +0 -465
  42. package/claude-assets/agents/cfn-dev-team/test-agent.md.backup_before_replace +0 -141
  43. package/claude-assets/skills/CFN-LOOP-VALIDATION.md +0 -202
  44. package/claude-assets/skills/REDIS-COORDINATION.md +0 -187
  45. package/claude-assets/skills/SKILL.md +0 -229
  46. package/claude-assets/skills/agent-discovery/agents-registry.json +0 -484
  47. package/claude-assets/skills/agent-name-validation/README.md +0 -28
  48. package/claude-assets/skills/agent-name-validation/SKILL.md +0 -168
  49. package/claude-assets/skills/agent-name-validation/validate-agent-names.sh +0 -47
  50. package/claude-assets/skills/cfn-agent-selector/SKILL.md.backup_before_replace +0 -91
  51. package/claude-assets/skills/cfn-loop-orchestration/helpers/validate-task-context.sh +0 -241
  52. package/claude-assets/skills/consensus-calculator.js +0 -45
  53. package/claude-assets/skills/evidence-chain.sql +0 -66
  54. package/claude-assets/skills/hook-pipeline/bash-dependency-checker.sh +0 -89
  55. package/claude-assets/skills/hook-pipeline/bash-pipe-safety.sh +0 -69
  56. package/claude-assets/skills/hook-pipeline/enforce-lf.sh +0 -36
  57. package/claude-assets/skills/hook-pipeline/js-promise-safety.sh +0 -110
  58. package/claude-assets/skills/hook-pipeline/python-async-safety.py +0 -124
  59. package/claude-assets/skills/hook-pipeline/python-import-checker.py +0 -114
  60. package/claude-assets/skills/hook-pipeline/python-subprocess-safety.py +0 -77
  61. package/claude-assets/skills/hook-pipeline/rust-command-safety.sh +0 -38
  62. package/claude-assets/skills/hook-pipeline/rust-dependency-checker.sh +0 -50
  63. package/claude-assets/skills/hook-pipeline/rust-future-safety.sh +0 -50
  64. package/claude-assets/skills/pre-edit-backup/backup.sh +0 -130
  65. package/claude-assets/skills/pre-edit-backup/cleanup.sh +0 -155
  66. package/claude-assets/skills/pre-edit-backup/restore.sh +0 -128
  67. package/claude-assets/skills/pre-edit-backup/revert-file.sh +0 -168
  68. package/claude-assets/skills/run-all-skill-tests.sh +0 -124
  69. package/claude-assets/skills/seo-orchestration/SKILL.md +0 -292
  70. package/claude-assets/skills/seo-orchestration/orchestrate-seo.sh +0 -566
  71. package/claude-assets/skills/seo-orchestration/orchestrate-seo.sh.backup +0 -755
  72. package/claude-assets/skills/seo-orchestration/validate-consensus.sh +0 -270
  73. package/claude-assets/skills/team-provider-routing/execute-agent.sh +0 -76
  74. package/claude-assets/skills/test-execution-coordinator-pattern.md +0 -228
@@ -1,124 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Master test runner for all skill implementations
4
- # Runs tests for the 7 skill enforcement implementations
5
-
6
- set -e
7
-
8
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
9
- TOTAL_PASSED=0
10
- TOTAL_FAILED=0
11
- FAILED_TESTS=()
12
-
13
- # Colors
14
- GREEN='\033[0;32m'
15
- RED='\033[0;31m'
16
- YELLOW='\033[1;33m'
17
- BLUE='\033[0;34m'
18
- NC='\033[0m'
19
-
20
- echo "========================================"
21
- echo "Skill Enforcement Test Suite"
22
- echo "========================================"
23
- echo ""
24
-
25
- # Test 1: Loop 3 Output Processing
26
- echo -e "${BLUE}[1/6] Loop 3 Output Processing Tests${NC}"
27
- if cd "$SCRIPT_DIR/loop3-output-processing" && bash ./test-loop3-processing.sh 2>&1 | tee /tmp/loop3-test.log; then
28
- echo -e "${GREEN}✓ Loop 3 tests passed${NC}"
29
- ((TOTAL_PASSED++))
30
- else
31
- echo -e "${RED}✗ Loop 3 tests failed${NC}"
32
- FAILED_TESTS+=("Loop 3 Output Processing")
33
- ((TOTAL_FAILED++))
34
- fi
35
- echo ""
36
- cd "$SCRIPT_DIR"
37
-
38
- # Test 2: Loop 2 Feedback Extraction
39
- echo -e "${BLUE}[2/6] Loop 2 Feedback Extraction Tests${NC}"
40
- if cd "$SCRIPT_DIR/loop2-output-processing" && bash ./test-loop2-processing.sh 2>&1 | tee /tmp/loop2-test.log; then
41
- echo -e "${GREEN}✓ Loop 2 tests passed${NC}"
42
- ((TOTAL_PASSED++))
43
- else
44
- echo -e "${RED}✗ Loop 2 tests failed${NC}"
45
- FAILED_TESTS+=("Loop 2 Feedback Extraction")
46
- ((TOTAL_FAILED++))
47
- fi
48
- echo ""
49
- cd "$SCRIPT_DIR"
50
-
51
- # Test 3: Orchestrator Tests (includes deliverable verification)
52
- echo -e "${BLUE}[3/6] Orchestrator Deliverable Verification Tests${NC}"
53
- if cd "$SCRIPT_DIR/redis-coordination" && bash ./test-orchestrator.sh 2>&1 | tee /tmp/orchestrator-test.log; then
54
- echo -e "${GREEN}✓ Orchestrator tests passed${NC}"
55
- ((TOTAL_PASSED++))
56
- else
57
- echo -e "${RED}✗ Orchestrator tests failed${NC}"
58
- FAILED_TESTS+=("Orchestrator Deliverable Verification")
59
- ((TOTAL_FAILED++))
60
- fi
61
- echo ""
62
- cd "$SCRIPT_DIR"
63
-
64
- # Test 4: Agent Timeout/Completion Protocol
65
- echo -e "${BLUE}[4/6] Agent Completion Protocol Tests${NC}"
66
- if cd "$SCRIPT_DIR/loop3-output-processing" && bash ./test-agent-timeout.sh 2>&1 | tee /tmp/timeout-test.log; then
67
- echo -e "${GREEN}✓ Agent timeout tests passed${NC}"
68
- ((TOTAL_PASSED++))
69
- else
70
- echo -e "${RED}✗ Agent timeout tests failed${NC}"
71
- FAILED_TESTS+=("Agent Completion Protocol")
72
- ((TOTAL_FAILED++))
73
- fi
74
- echo ""
75
- cd "$SCRIPT_DIR"
76
-
77
- # Test 5: Memory Persistence
78
- echo -e "${BLUE}[5/6] Automatic Memory Persistence Tests${NC}"
79
- if cd "$SCRIPT_DIR/automatic-memory-persistence" && bash ./test-memory-persistence.sh 2>&1 | tee /tmp/memory-test.log; then
80
- echo -e "${GREEN}✓ Memory persistence tests passed${NC}"
81
- ((TOTAL_PASSED++))
82
- else
83
- echo -e "${RED}✗ Memory persistence tests failed${NC}"
84
- FAILED_TESTS+=("Automatic Memory Persistence")
85
- ((TOTAL_FAILED++))
86
- fi
87
- echo ""
88
- cd "$SCRIPT_DIR"
89
-
90
- # Test 6: Error Handling
91
- echo -e "${BLUE}[6/6] Standardized Error Handling Tests${NC}"
92
- if cd "$SCRIPT_DIR/standardized-error-handling" && bash ./test-error-handling.sh 2>&1 | tee /tmp/error-test.log; then
93
- echo -e "${GREEN}✓ Error handling tests passed${NC}"
94
- ((TOTAL_PASSED++))
95
- else
96
- echo -e "${RED}✗ Error handling tests failed${NC}"
97
- FAILED_TESTS+=("Standardized Error Handling")
98
- ((TOTAL_FAILED++))
99
- fi
100
- echo ""
101
- cd "$SCRIPT_DIR"
102
-
103
- # Summary
104
- echo "========================================"
105
- echo "Test Suite Summary"
106
- echo "========================================"
107
- echo -e "${GREEN}Passed: $TOTAL_PASSED/6${NC}"
108
- echo -e "${RED}Failed: $TOTAL_FAILED/6${NC}"
109
- echo ""
110
-
111
- if [ $TOTAL_FAILED -gt 0 ]; then
112
- echo -e "${RED}Failed test suites:${NC}"
113
- for test in "${FAILED_TESTS[@]}"; do
114
- echo " - $test"
115
- done
116
- echo ""
117
- echo "Check logs in /tmp/*-test.log for details"
118
- exit 1
119
- else
120
- echo -e "${GREEN}✓ All skill tests passed!${NC}"
121
- echo ""
122
- echo "Skill Enforcement Implementation: VALIDATED ✅"
123
- exit 0
124
- fi
@@ -1,292 +0,0 @@
1
- # SEO Orchestration Skill
2
-
3
- ## Metadata
4
- - **Skill ID:** seo-orchestration
5
- - **Version:** 1.0.0
6
- - **Category:** SEO Workflow Orchestration
7
- - **Dependencies:** redis-coordination, agent-output-processing
8
- - **Maturity:** Production
9
- - **Last Updated:** 2025-10-25
10
-
11
- ## Purpose
12
- Orchestrates SEO optimization workflows through multi-agent coordination:
13
- - SEO Strategy & Analysis
14
- - Content Implementation
15
- - Technical SEO Validation
16
- - Performance Consensus Building
17
-
18
- ## Responsibilities
19
- 1. Coordinate multi-agent SEO workflow execution
20
- 2. Manage SEO-specific validation checkpoints
21
- 3. Handle iteration cycles with SEO feedback injection
22
- 4. Interface with Redis Coordination for agent synchronization
23
- 5. Execute SEO consensus validation for quality assurance
24
- 6. Enforce SEO workflow dependencies (analysis → implementation → validation)
25
-
26
- ## Interface
27
-
28
- ### Main Entry Point
29
- ```bash
30
- ./.claude/skills/seo-orchestration/orchestrate-seo.sh \
31
- --task-id <unique-id> \
32
- --mode <mvp|standard|enterprise> \
33
- --seo-agents <agent1,agent2,...> \
34
- --validator-agents <agent1,agent2,...> \
35
- [--max-iterations <n>] \
36
- [--min-quorum-seo <n|n%|0.n>] \
37
- [--min-consensus <0.0-1.0>] \
38
- [--seo-context <json>] \
39
- [--target-pages <urls>] \
40
- [--success-criteria <json>] \
41
- [--expected-deliverables <file1,file2,...>]
42
- ```
43
-
44
- ### Parameters
45
- - `task-id`: Unique identifier for this SEO orchestration
46
- - `mode`: Workflow mode (mvp, standard, enterprise) - determines thresholds
47
- - `seo-agents`: Comma-separated list of SEO specialist agent IDs
48
- - `validator-agents`: Comma-separated list of SEO validator agent IDs
49
- - `max-iterations`: Maximum iteration cycles (default: 10)
50
- - `min-quorum-seo`: Minimum SEO agents required (default: 0.66)
51
- - `min-consensus`: Minimum consensus threshold (default: 0.80)
52
- - `seo-context`: JSON string with SEO analysis context (keywords, competition, etc.)
53
- - `target-pages`: Comma-separated list of target URLs for optimization
54
- - `success-criteria`: JSON string with SEO success metrics
55
- - `expected-deliverables`: Comma-separated list of expected SEO deliverable files
56
-
57
- ### Return Values
58
- - Exit Code 0: SEO orchestration completed successfully
59
- - Exit Code 1: SEO orchestration failed (max iterations or consensus failure)
60
- - Exit Code 130: User interrupt (graceful shutdown)
61
-
62
- ### Output Format (JSON)
63
- ```json
64
- {
65
- "status": "success|failed|aborted",
66
- "iterations_completed": 2,
67
- "final_consensus": 0.92,
68
- "seo_confidence": 0.94,
69
- "deliverables_verified": true,
70
- "pages_optimized": 5,
71
- "seo_improvements": ["meta-optimization", "content-enhancement", "technical-fixes"],
72
- "execution_time_seconds": 1847
73
- }
74
- ```
75
-
76
- ## Helper Scripts
77
-
78
- ### 1. validate-consensus.sh
79
- Validates SEO consensus against thresholds.
80
-
81
- **Usage:**
82
- ```bash
83
- ./.claude/skills/seo-orchestration/validate-consensus.sh \
84
- --task-id <id> \
85
- --agents <agent1,agent2,...> \
86
- --threshold <0.0-1.0> \
87
- --min-quorum <n|n%|0.n>
88
- ```
89
-
90
- **Returns:**
91
- - Exit 0: Consensus validated successfully
92
- - Exit 1: Consensus validation failed
93
-
94
- ### 2. calculate-consensus.sh
95
- Calculates consensus scores from SEO agent feedback.
96
-
97
- **Usage:**
98
- ```bash
99
- ./.claude/skills/seo-orchestration/calculate-consensus.sh \
100
- --task-id <id> \
101
- --agents <agent1,agent2,...> \
102
- [--weights <agent1:weight1,agent2:weight2,...>]
103
- ```
104
-
105
- **Returns:**
106
- - Exit 0: Consensus calculated successfully
107
- - STDOUT: JSON with consensus score and breakdown
108
-
109
- ### 3. aggregate-feedback.sh
110
- Aggregates and processes SEO agent feedback.
111
-
112
- **Usage:**
113
- ```bash
114
- ./.claude/skills/seo-orchestration/aggregate-feedback.sh \
115
- --task-id <id> \
116
- --agents <agent1,agent2,...> \
117
- --output-format <json|summary>
118
- ```
119
-
120
- **Returns:**
121
- - Exit 0: Feedback aggregated successfully
122
- - STDOUT: Aggregated feedback in specified format
123
-
124
- ## SEO Orchestration Flow
125
-
126
- ```
127
- 1. Initialize SEO Context (Redis)
128
-
129
- 2. Spawn SEO Specialist Agents (CLI)
130
-
131
- 3. SEO Agents Analyze & Implement
132
-
133
- 4. Collect SEO Agent Confidence Scores
134
-
135
- 5. Validate SEO Consensus (validate-consensus.sh)
136
- ├─ PASS → Signal successful completion
137
- └─ FAIL → Inject feedback, iterate SEO agents (goto step 2)
138
-
139
- 6. SEO Validator Agents Review Results
140
-
141
- 7. Collect Validator Consensus (calculate-consensus.sh)
142
-
143
- 8. Aggregate SEO Feedback (aggregate-feedback.sh)
144
-
145
- 9. Final SEO Quality Check
146
- ├─ PASS → Exit success
147
- └─ FAIL → Wake all agents (goto step 2)
148
- ```
149
-
150
- ## Redis Coordination Interface
151
-
152
- This skill consumes the following Redis Coordination primitives:
153
-
154
- ### Context Storage
155
- ```bash
156
- ./.claude/skills/redis-coordination/invoke-waiting-mode.sh report \
157
- --task-id "$TASK_ID" \
158
- --agent-id "$AGENT_ID" \
159
- --confidence <0.0-1.0> \
160
- --iteration <n>
161
- ```
162
-
163
- ### Agent Waiting/Waking
164
- ```bash
165
- ./.claude/skills/redis-coordination/invoke-waiting-mode.sh wake \
166
- --task-id "$TASK_ID" \
167
- --agent-id "$AGENT_ID" \
168
- --reason <seo-feedback|iteration> \
169
- --iteration <n> \
170
- --feedback <seo-feedback-string>
171
- ```
172
-
173
- ### Result Collection
174
- ```bash
175
- ./.claude/skills/redis-coordination/invoke-waiting-mode.sh collect \
176
- --task-id "$TASK_ID" \
177
- --agent-ids <comma-separated>
178
- ```
179
-
180
- ## Mode-Specific Thresholds
181
-
182
- | Mode | SEO Confidence Threshold | Consensus Threshold | Max Iterations | SEO Specialists |
183
- |------|-------------------------|---------------------|----------------|-----------------|
184
- | MVP | 0.70 | 0.75 | 5 | 2 |
185
- | Standard | 0.75 | 0.80 | 10 | 3-4 |
186
- | Enterprise | 0.80 | 0.85 | 15 | 5+ |
187
-
188
- ## SEO Context Structure
189
-
190
- ### Input Context Example
191
- ```json
192
- {
193
- "keywords": ["rust development", "systems programming", "memory safety"],
194
- "target_audience": "developers and technical teams",
195
- "competition_level": "high",
196
- "pages_to_optimize": [
197
- "https://example.com/rust-services",
198
- "https://example.com/performance"
199
- ],
200
- "current_seo_score": 65,
201
- "target_seo_score": 85,
202
- "technical_requirements": {
203
- "page_speed": "< 2s",
204
- "mobile_friendly": true,
205
- "schema_markup": "required"
206
- }
207
- }
208
- ```
209
-
210
- ### Success Criteria Example
211
- ```json
212
- {
213
- "seo_metrics": {
214
- "meta_optimization": "complete",
215
- "content_quality": "enhanced",
216
- "technical_seo": "validated",
217
- "performance_improvement": "measured"
218
- },
219
- "quality_gates": {
220
- "min_seo_score": 80,
221
- "page_speed_improvement": "20%",
222
- "mobile_compliance": "100%"
223
- }
224
- }
225
- ```
226
-
227
- ## Error Handling
228
-
229
- ### Critical Failures
230
- - Redis unavailable: Exit immediately with error
231
- - SEO agent spawn failure: Retry with exponential backoff
232
- - SEO validation timeout: Log state, attempt graceful shutdown
233
-
234
- ### Recoverable Failures
235
- - SEO consensus failure: Iterate SEO agents with enhanced feedback
236
- - Missing SEO deliverables: Force iteration with explicit requirements
237
- - Performance threshold failure: Iterate with optimization focus
238
-
239
- ## Configuration
240
-
241
- ### Environment Variables
242
- - `REDIS_HOST`: Redis server host (default: localhost)
243
- - `REDIS_PORT`: Redis server port (default: 6379)
244
- - `SEO_DEBUG`: Enable debug logging (default: 0)
245
- - `SEO_TIMEOUT`: SEO operation timeout in seconds (default: 3600)
246
-
247
- ### Redis Keys Used
248
- - `swarm:{task-id}:seo-context`: SEO analysis context
249
- - `swarm:{task-id}:success-criteria`: SEO success criteria
250
- - `swarm:{task-id}:agent:{agent-id}:confidence`: Agent confidence score
251
- - `swarm:{task-id}:agent:{agent-id}:seo-feedback`: Agent-specific SEO feedback
252
- - `swarm:{task-id}:seo-consensus`: SEO consensus score
253
- - `swarm:{task-id}:{agent-id}:done`: Agent completion signal
254
-
255
- ## Testing
256
-
257
- Run comprehensive test suite:
258
- ```bash
259
- ./.claude/skills/seo-orchestration/test-seo-orchestration.sh
260
- ```
261
-
262
- Test scenarios:
263
- 1. SEO analysis → Implementation → Validation → Success
264
- 2. SEO consensus failure → Iteration with feedback
265
- 3. Missing SEO deliverables → Forced iteration
266
- 4. Performance threshold failure → Optimization iteration
267
- 5. Max iterations → Graceful failure
268
- 6. User interrupt → Graceful shutdown
269
-
270
- ## Performance Characteristics
271
-
272
- - Average execution time: 30-90 minutes (project complexity dependent)
273
- - Zero-token waiting between iterations (Redis BLPOP)
274
- - SEO agent spawn time: 10-30 seconds per agent
275
- - Context storage/retrieval: <100ms per operation
276
- - SEO validation time: 2-10 minutes per page
277
-
278
- ## Success Criteria
279
-
280
- This skill is considered successful when:
281
- 1. All SEO workflow agents complete their specialized tasks
282
- 2. SEO consensus meets or exceeds threshold requirements
283
- 3. SEO deliverables are created and validated
284
- 4. Performance metrics meet defined success criteria
285
- 5. Test suite achieves 100% pass rate
286
-
287
- ## Confidence Score: 0.91
288
-
289
- - Architecture: 0.95 (clear SEO workflow separation)
290
- - Implementation Risk: 0.85 (SEO validation complexity)
291
- - Testing Coverage: 0.92 (comprehensive SEO scenarios)
292
- - Agent Coordination: 0.92 (proven Redis patterns)