claude-flow-novice 2.14.4 → 2.14.6

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 (37) hide show
  1. package/.claude/commands/seo/SEO_TASK_MODE.md +892 -0
  2. package/.claude/commands/seo/seo-blog.md +428 -0
  3. package/.claude/commands/seo/seo-landing.md +91 -0
  4. package/.claude/commands/seo/seo-product.md +104 -0
  5. package/claude-assets/agents/cfn-dev-team/coordinators/epic-creator.md +120 -0
  6. package/claude-assets/agents/cfn-dev-team/test-agent.md +0 -0
  7. package/claude-assets/agents/cfn-seo-team/AGENT_CREATION_REPORT.md +481 -0
  8. package/claude-assets/agents/cfn-seo-team/DELEGATION_MATRIX.md +371 -0
  9. package/claude-assets/agents/cfn-seo-team/HUMANIZER_PROMPTS.md +536 -0
  10. package/claude-assets/agents/cfn-seo-team/INTEGRATION_REQUIREMENTS.md +642 -0
  11. package/claude-assets/agents/cfn-seo-team/cfn-seo-coordinator.md +414 -0
  12. package/claude-assets/agents/cfn-seo-team/competitive-seo-analyst.md +423 -0
  13. package/claude-assets/agents/cfn-seo-team/content-atomization-specialist.md +580 -0
  14. package/claude-assets/agents/cfn-seo-team/content-seo-strategist.md +245 -0
  15. package/claude-assets/agents/cfn-seo-team/eeat-content-auditor.md +389 -0
  16. package/claude-assets/agents/cfn-seo-team/geo-optimization-expert.md +269 -0
  17. package/claude-assets/agents/cfn-seo-team/link-building-specialist.md +291 -0
  18. package/claude-assets/agents/cfn-seo-team/local-seo-optimizer.md +333 -0
  19. package/claude-assets/agents/cfn-seo-team/programmatic-seo-engineer.md +244 -0
  20. package/claude-assets/agents/cfn-seo-team/schema-markup-engineer.md +430 -0
  21. package/claude-assets/agents/cfn-seo-team/seo-analytics-specialist.md +376 -0
  22. package/claude-assets/agents/cfn-seo-team/seo-validators/accessibility-validator.md +565 -0
  23. package/claude-assets/agents/cfn-seo-team/seo-validators/audience-validator.md +484 -0
  24. package/claude-assets/agents/cfn-seo-team/seo-validators/branding-validator.md +452 -0
  25. package/claude-assets/agents/cfn-seo-team/seo-validators/humanizer-validator.md +333 -0
  26. package/claude-assets/agents/cfn-seo-team/technical-seo-specialist.md +228 -0
  27. package/claude-assets/commands/seo/SEO_TASK_MODE.md +892 -0
  28. package/claude-assets/commands/seo/seo-blog.md +428 -0
  29. package/claude-assets/commands/seo/seo-landing.md +91 -0
  30. package/claude-assets/commands/seo/seo-product.md +104 -0
  31. package/claude-assets/skills/seo-orchestration/SKILL.md +292 -0
  32. package/claude-assets/skills/seo-orchestration/orchestrate-seo.sh +566 -0
  33. package/claude-assets/skills/seo-orchestration/orchestrate-seo.sh.backup +755 -0
  34. package/claude-assets/skills/seo-orchestration/validate-consensus.sh +270 -0
  35. package/dist/cli/config-manager.js.map +1 -1
  36. package/package.json +1 -1
  37. package/scripts/init-project.js +10 -0
@@ -0,0 +1,292 @@
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)