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
@@ -1,606 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * Workflow Automation Slash Command
5
- * Usage: /workflow <action> [options]
6
- */
7
-
8
- import { SlashCommand } from '../core/slash-command.js';
9
-
10
- export class WorkflowCommand extends SlashCommand {
11
- constructor() {
12
- super('workflow', 'Create and manage automated workflows and CI/CD pipelines');
13
- }
14
-
15
- getUsage() {
16
- return '/workflow <action> [options]';
17
- }
18
-
19
- getExamples() {
20
- return [
21
- '/workflow create "Build and Test" - Create new workflow',
22
- '/workflow execute build-workflow - Execute existing workflow',
23
- '/workflow pipeline nodejs - Create CI/CD pipeline',
24
- '/workflow automate tests - Setup test automation',
25
- '/workflow schedule daily - Setup scheduled workflows',
26
- '/workflow template list - List available templates',
27
- '/workflow trigger push - Setup event triggers'
28
- ];
29
- }
30
-
31
- async execute(args, context) {
32
- const [action, ...params] = args;
33
-
34
- if (!action) {
35
- return this.formatResponse({
36
- success: false,
37
- error: 'Action required',
38
- usage: this.getUsage(),
39
- availableActions: [
40
- 'create', 'execute', 'pipeline', 'automate', 'schedule',
41
- 'template', 'trigger', 'export', 'batch', 'parallel'
42
- ]
43
- });
44
- }
45
-
46
- try {
47
- let result;
48
-
49
- switch (action.toLowerCase()) {
50
- case 'create':
51
- result = await this.createWorkflow(params);
52
- break;
53
-
54
- case 'execute':
55
- result = await this.executeWorkflow(params);
56
- break;
57
-
58
- case 'pipeline':
59
- result = await this.createPipeline(params);
60
- break;
61
-
62
- case 'automate':
63
- result = await this.setupAutomation(params);
64
- break;
65
-
66
- case 'schedule':
67
- result = await this.setupScheduler(params);
68
- break;
69
-
70
- case 'template':
71
- result = await this.manageTemplates(params);
72
- break;
73
-
74
- case 'trigger':
75
- result = await this.setupTriggers(params);
76
- break;
77
-
78
- case 'export':
79
- result = await this.exportWorkflow(params);
80
- break;
81
-
82
- case 'batch':
83
- result = await this.batchProcess(params);
84
- break;
85
-
86
- case 'parallel':
87
- result = await this.parallelExecute(params);
88
- break;
89
-
90
- default:
91
- result = {
92
- success: false,
93
- error: `Unknown action: ${action}`,
94
- availableActions: [
95
- 'create', 'execute', 'pipeline', 'automate', 'schedule',
96
- 'template', 'trigger', 'export', 'batch', 'parallel'
97
- ]
98
- };
99
- }
100
-
101
- return this.formatResponse(result);
102
- } catch (error) {
103
- return this.formatResponse({
104
- success: false,
105
- error: error.message,
106
- action: action
107
- });
108
- }
109
- }
110
-
111
- async createWorkflow(params) {
112
- const name = params.join(' ');
113
-
114
- if (!name) {
115
- return {
116
- success: false,
117
- error: 'Workflow name required'
118
- };
119
- }
120
-
121
- console.log(`⚙️ Creating workflow: ${name}`);
122
-
123
- const prompt = `
124
- ⚙️ **CREATE WORKFLOW**
125
-
126
- **Workflow Name:** ${name}
127
-
128
- **Create custom workflow with MCP coordination:**
129
-
130
- \`\`\`javascript
131
- // Create custom workflow
132
- mcp__claude-flow__workflow_create({
133
- name: "${name}",
134
- steps: [
135
- { name: "initialize", type: "setup" },
136
- { name: "execute", type: "main" },
137
- { name: "validate", type: "test" },
138
- { name: "finalize", type: "cleanup" }
139
- ],
140
- triggers: ["manual", "scheduled", "event"]
141
- });
142
-
143
- // Spawn workflow coordination agents with Claude Code's Task tool
144
- Task("Workflow Designer", "Design and structure workflow: ${name}", "architect")
145
- Task("Automation Engineer", "Implement workflow automation", "cicd-engineer")
146
- Task("Quality Assurance", "Validate workflow steps and outcomes", "tester")
147
- Task("Documentation Lead", "Document workflow process and usage", "api-docs")
148
- \`\`\`
149
-
150
- **Workflow Features:**
151
- - 🔄 Event-driven execution
152
- - ⚡ Parallel step processing
153
- - 📊 Real-time monitoring
154
- - 🚫 Error handling and recovery
155
- - 💾 State persistence
156
- - 📝 Comprehensive logging
157
-
158
- **Execute workflow creation now**:
159
- `;
160
-
161
- return {
162
- success: true,
163
- prompt: prompt,
164
- workflowName: name,
165
- workflowId: `workflow-${Date.now()}`
166
- };
167
- }
168
-
169
- async executeWorkflow(params) {
170
- const [workflowId, ...paramList] = params;
171
-
172
- if (!workflowId) {
173
- return {
174
- success: false,
175
- error: 'Workflow ID required'
176
- };
177
- }
178
-
179
- console.log(`🚀 Executing workflow: ${workflowId}`);
180
-
181
- const prompt = `
182
- 🚀 **EXECUTE WORKFLOW**
183
-
184
- **Workflow ID:** ${workflowId}
185
- **Parameters:** ${paramList.join(', ') || 'default'}
186
-
187
- **Execute predefined workflow:**
188
-
189
- \`\`\`javascript
190
- // Execute predefined workflow
191
- mcp__claude-flow__workflow_execute({
192
- workflowId: "${workflowId}",
193
- params: {
194
- ${paramList.map((p, i) => `param${i + 1}: "${p}"`).join(',\n ')}
195
- }
196
- });
197
-
198
- // Monitor workflow execution
199
- mcp__claude-flow__task_status({ taskId: "${workflowId}" });
200
- \`\`\`
201
-
202
- **Execution Monitoring:**
203
- - 📉 Real-time progress tracking
204
- - ⚡ Performance metrics
205
- - 🚫 Error detection and handling
206
- - 💾 State checkpoints
207
- - 📝 Execution logs
208
-
209
- **Execute workflow now**:
210
- `;
211
-
212
- return {
213
- success: true,
214
- prompt: prompt,
215
- workflowId: workflowId,
216
- parameters: paramList
217
- };
218
- }
219
-
220
- async createPipeline(params) {
221
- const [projectType = 'nodejs', ...features] = params;
222
-
223
- console.log(`🚀 Creating CI/CD pipeline for ${projectType}...`);
224
-
225
- const prompt = `
226
- 🚀 **CREATE CI/CD PIPELINE**
227
-
228
- **Project Type:** ${projectType}
229
- **Features:** ${features.length > 0 ? features.join(', ') : 'standard'}
230
-
231
- **Create comprehensive CI/CD pipeline:**
232
-
233
- \`\`\`javascript
234
- // Create CI/CD pipeline
235
- mcp__claude-flow__pipeline_create({
236
- config: {
237
- projectType: "${projectType}",
238
- features: [${features.length > 0 ? features.map(f => `"${f}"`).join(', ') : '"build", "test", "deploy"'}],
239
- stages: ["lint", "test", "build", "security", "deploy"]
240
- }
241
- });
242
-
243
- // Spawn pipeline setup agents with Claude Code's Task tool
244
- Task("DevOps Engineer", "Setup CI/CD pipeline for ${projectType}", "cicd-engineer")
245
- Task("Security Engineer", "Configure security scanning in pipeline", "security-manager")
246
- Task("Test Engineer", "Setup automated testing pipeline", "tester")
247
- Task("Deployment Specialist", "Configure deployment automation", "coordinator")
248
- \`\`\`
249
-
250
- **Pipeline Stages:**
251
- - 📝 Code quality checks (linting, formatting)
252
- - ⚙️ Automated testing (unit, integration, e2e)
253
- - 🛠️ Build and compilation
254
- - 🔒 Security scanning and vulnerability assessment
255
- - 🚀 Automated deployment
256
- - 📈 Performance monitoring
257
-
258
- **Execute pipeline creation now**:
259
- `;
260
-
261
- return {
262
- success: true,
263
- prompt: prompt,
264
- projectType: projectType,
265
- features: features
266
- };
267
- }
268
-
269
- async setupAutomation(params) {
270
- const rules = params.join(' ');
271
-
272
- if (!rules) {
273
- return {
274
- success: false,
275
- error: 'Automation rules required'
276
- };
277
- }
278
-
279
- console.log(`🤖 Setting up automation: ${rules}`);
280
-
281
- const prompt = `
282
- 🤖 **SETUP AUTOMATION**
283
-
284
- **Rules:** ${rules}
285
-
286
- **Configure automation rules:**
287
-
288
- \`\`\`javascript
289
- // Setup automation rules
290
- mcp__claude-flow__automation_setup({
291
- rules: [
292
- { trigger: "file-change", action: "auto-test" },
293
- { trigger: "pr-opened", action: "code-review" },
294
- { trigger: "issue-created", action: "triage" },
295
- { trigger: "${rules}", action: "auto-execute" }
296
- ]
297
- });
298
-
299
- // Spawn automation agents with Claude Code's Task tool
300
- Task("Automation Specialist", "Configure automation for: ${rules}", "coordinator")
301
- Task("Rule Engine", "Implement automation rules and triggers", "architect")
302
- Task("Monitor Agent", "Monitor automation execution", "performance-benchmarker")
303
- \`\`\`
304
-
305
- **Automation Capabilities:**
306
- - 🔄 Event-driven triggers
307
- - ⚡ Real-time response
308
- - 📊 Performance monitoring
309
- - 🚫 Error handling and recovery
310
- - 📝 Audit logging
311
- - 💾 State management
312
-
313
- **Execute automation setup now**:
314
- `;
315
-
316
- return {
317
- success: true,
318
- prompt: prompt,
319
- rules: rules
320
- };
321
- }
322
-
323
- async setupScheduler(params) {
324
- const [frequency, ...taskParams] = params;
325
- const task = taskParams.join(' ');
326
-
327
- if (!frequency) {
328
- return {
329
- success: false,
330
- error: 'Schedule frequency required',
331
- examples: ['daily', 'weekly', 'hourly', 'cron:0 9 * * *']
332
- };
333
- }
334
-
335
- console.log(`🕰️ Setting up ${frequency} scheduler${task ? ` for: ${task}` : ''}`);
336
-
337
- const prompt = `
338
- 🕰️ **SETUP SCHEDULER**
339
-
340
- **Frequency:** ${frequency}
341
- **Task:** ${task || 'default maintenance'}
342
-
343
- **Configure scheduled workflows:**
344
-
345
- \`\`\`javascript
346
- // Manage task scheduling
347
- mcp__claude-flow__scheduler_manage({
348
- action: "create",
349
- schedule: {
350
- frequency: "${frequency}",
351
- task: "${task || 'maintenance'}",
352
- enabled: true,
353
- timezone: "UTC"
354
- }
355
- });
356
-
357
- // Spawn scheduler agents with Claude Code's Task tool
358
- Task("Scheduler", "Configure ${frequency} scheduling for: ${task || 'maintenance'}", "coordinator")
359
- Task("Task Manager", "Manage scheduled task execution", "task-orchestrator")
360
- Task("Monitor", "Monitor scheduled task performance", "performance-benchmarker")
361
- \`\`\`
362
-
363
- **Scheduler Features:**
364
- - 🕰️ Flexible scheduling (cron, interval, event-based)
365
- - 🌐 Timezone awareness
366
- - 📈 Execution monitoring
367
- - 🚫 Failure recovery
368
- - 📝 Comprehensive logging
369
-
370
- **Execute scheduler setup now**:
371
- `;
372
-
373
- return {
374
- success: true,
375
- prompt: prompt,
376
- frequency: frequency,
377
- task: task
378
- };
379
- }
380
-
381
- async manageTemplates(params) {
382
- const [action = 'list', ...templateParams] = params;
383
-
384
- console.log(`📝 Managing workflow templates: ${action}`);
385
-
386
- const prompt = `
387
- 📝 **WORKFLOW TEMPLATES**
388
-
389
- **Action:** ${action}
390
-
391
- **Manage workflow templates:**
392
-
393
- \`\`\`javascript
394
- // Manage workflow templates
395
- mcp__claude-flow__workflow_template({
396
- action: "${action}",
397
- ${templateParams.length > 0 ? `template: { ${templateParams.map(p => `"${p}"`).join(', ')} }` : ''}
398
- });
399
- \`\`\`
400
-
401
- **Available Templates:**
402
- - 🚀 CI/CD Pipeline Templates
403
- - 🤖 Automation Workflow Templates
404
- - 📈 Monitoring and Analytics Templates
405
- - 🔒 Security Audit Templates
406
- - 📝 Documentation Generation Templates
407
- - ⚙️ Custom Integration Templates
408
-
409
- **Execute template management now**:
410
- `;
411
-
412
- return {
413
- success: true,
414
- prompt: prompt,
415
- action: action,
416
- templates: templateParams
417
- };
418
- }
419
-
420
- async setupTriggers(params) {
421
- const [eventType, ...actions] = params;
422
-
423
- if (!eventType) {
424
- return {
425
- success: false,
426
- error: 'Event type required',
427
- examples: ['push', 'pr', 'issue', 'schedule', 'webhook']
428
- };
429
- }
430
-
431
- console.log(`⚡ Setting up ${eventType} triggers...`);
432
-
433
- const prompt = `
434
- ⚡ **SETUP EVENT TRIGGERS**
435
-
436
- **Event Type:** ${eventType}
437
- **Actions:** ${actions.length > 0 ? actions.join(', ') : 'default'}
438
-
439
- **Configure event-driven triggers:**
440
-
441
- \`\`\`javascript
442
- // Setup event triggers
443
- mcp__claude-flow__trigger_setup({
444
- events: ["${eventType}"],
445
- actions: [${actions.length > 0 ? actions.map(a => `"${a}"`).join(', ') : '"auto-test", "notify"'}]
446
- });
447
-
448
- // Spawn trigger management agents with Claude Code's Task tool
449
- Task("Event Handler", "Handle ${eventType} events and trigger actions", "coordinator")
450
- Task("Action Executor", "Execute triggered actions", "task-orchestrator")
451
- Task("Monitor", "Monitor trigger performance and reliability", "performance-benchmarker")
452
- \`\`\`
453
-
454
- **Trigger Events:**
455
- - 📝 Git push/commit events
456
- - 📝 Pull request events
457
- - 📝 Issue creation/updates
458
- - 🕰️ Scheduled events
459
- - 🌐 Webhook events
460
- - 📊 Performance thresholds
461
-
462
- **Execute trigger setup now**:
463
- `;
464
-
465
- return {
466
- success: true,
467
- prompt: prompt,
468
- eventType: eventType,
469
- actions: actions
470
- };
471
- }
472
-
473
- async exportWorkflow(params) {
474
- const [workflowId, format = 'yaml'] = params;
475
-
476
- if (!workflowId) {
477
- return {
478
- success: false,
479
- error: 'Workflow ID required'
480
- };
481
- }
482
-
483
- const validFormats = ['yaml', 'json', 'xml'];
484
- if (!validFormats.includes(format)) {
485
- return {
486
- success: false,
487
- error: `Invalid format. Valid options: ${validFormats.join(', ')}`
488
- };
489
- }
490
-
491
- console.log(`💾 Exporting workflow ${workflowId} as ${format}...`);
492
-
493
- const prompt = `
494
- 💾 **EXPORT WORKFLOW**
495
-
496
- **Workflow ID:** ${workflowId}
497
- **Format:** ${format}
498
-
499
- **Export workflow definition:**
500
-
501
- \`\`\`javascript
502
- // Export workflow definition
503
- mcp__claude-flow__workflow_export({
504
- workflowId: "${workflowId}",
505
- format: "${format}"
506
- });
507
- \`\`\`
508
-
509
- **Execute workflow export now**:
510
- `;
511
-
512
- return {
513
- success: true,
514
- prompt: prompt,
515
- workflowId: workflowId,
516
- format: format
517
- };
518
- }
519
-
520
- async batchProcess(params) {
521
- const [operation, ...items] = params;
522
-
523
- if (!operation) {
524
- return {
525
- success: false,
526
- error: 'Operation required for batch processing'
527
- };
528
- }
529
-
530
- console.log(`📦 Batch processing: ${operation}`);
531
-
532
- const prompt = `
533
- 📦 **BATCH PROCESSING**
534
-
535
- **Operation:** ${operation}
536
- **Items:** ${items.length > 0 ? items.join(', ') : 'auto-detect'}
537
-
538
- **Execute batch processing:**
539
-
540
- \`\`\`javascript
541
- // Batch processing
542
- mcp__claude-flow__batch_process({
543
- operation: "${operation}",
544
- items: [${items.length > 0 ? items.map(i => `"${i}"`).join(', ') : '"item1", "item2", "item3"'}]
545
- });
546
- \`\`\`
547
-
548
- **Execute batch processing now**:
549
- `;
550
-
551
- return {
552
- success: true,
553
- prompt: prompt,
554
- operation: operation,
555
- items: items
556
- };
557
- }
558
-
559
- async parallelExecute(params) {
560
- const tasks = params.join(' ').split(',').map(t => t.trim());
561
-
562
- if (tasks.length === 0 || tasks[0] === '') {
563
- return {
564
- success: false,
565
- error: 'Task list required (comma-separated)'
566
- };
567
- }
568
-
569
- console.log(`⚡ Executing tasks in parallel: ${tasks.join(', ')}`);
570
-
571
- const prompt = `
572
- ⚡ **PARALLEL EXECUTION**
573
-
574
- **Tasks:** ${tasks.join(', ')}
575
-
576
- **Execute tasks in parallel:**
577
-
578
- \`\`\`javascript
579
- // Execute tasks in parallel
580
- mcp__claude-flow__parallel_execute({
581
- tasks: [${tasks.map(t => `"${t}"`).join(', ')}]
582
- });
583
-
584
- // Spawn parallel execution agents with Claude Code's Task tool
585
- ${tasks.map((task, i) => `Task("Parallel Worker ${i + 1}", "Execute: ${task}", "task-orchestrator")`).join('\n')}
586
- \`\`\`
587
-
588
- **Parallel Execution Benefits:**
589
- - ⚡ 2.8-4.4x speed improvement
590
- - 📊 Optimal resource utilization
591
- - 🔄 Automatic load balancing
592
- - 🚫 Error isolation
593
- - 📈 Real-time progress tracking
594
-
595
- **Execute parallel tasks now**:
596
- `;
597
-
598
- return {
599
- success: true,
600
- prompt: prompt,
601
- tasks: tasks
602
- };
603
- }
604
- }
605
-
606
- export default WorkflowCommand;
@@ -1,9 +0,0 @@
1
- # Workflows Commands
2
-
3
- Commands for workflows operations in Claude Flow.
4
-
5
- ## Available Commands
6
-
7
- - [workflow-create](./workflow-create.md)
8
- - [workflow-execute](./workflow-execute.md)
9
- - [workflow-export](./workflow-export.md)
@@ -1,78 +0,0 @@
1
- # Development Workflow Coordination
2
-
3
- ## Purpose
4
- Structure Claude Code's approach to complex development tasks for maximum efficiency.
5
-
6
- ## Step-by-Step Coordination
7
-
8
- ### 1. Initialize Development Framework
9
- ```
10
- Tool: mcp__claude-flow__swarm_init
11
- Parameters: {"topology": "hierarchical", "maxAgents": 8, "strategy": "specialized"}
12
- ```
13
- Creates hierarchical structure for organized, top-down development.
14
-
15
- ### 2. Define Development Perspectives
16
- ```
17
- Tool: mcp__claude-flow__agent_spawn
18
- Parameters: {
19
- "type": "architect",
20
- "name": "System Design",
21
- "capabilities": ["api-design", "database-schema"]
22
- }
23
- ```
24
- ```
25
- Tool: mcp__claude-flow__agent_spawn
26
- Parameters: {
27
- "type": "coder",
28
- "name": "Implementation Focus",
29
- "capabilities": ["nodejs", "typescript", "express"]
30
- }
31
- ```
32
- ```
33
- Tool: mcp__claude-flow__agent_spawn
34
- Parameters: {
35
- "type": "tester",
36
- "name": "Quality Assurance",
37
- "capabilities": ["unit-testing", "integration-testing"]
38
- }
39
- ```
40
- Sets up architectural and implementation thinking patterns.
41
-
42
- ### 3. Coordinate Implementation
43
- ```
44
- Tool: mcp__claude-flow__task_orchestrate
45
- Parameters: {
46
- "task": "Build REST API with authentication",
47
- "strategy": "parallel",
48
- "priority": "high",
49
- "dependencies": ["database setup", "auth system"]
50
- }
51
- ```
52
-
53
- ### 4. Monitor Progress
54
- ```
55
- Tool: mcp__claude-flow__task_status
56
- Parameters: {"taskId": "api-build-task-123"}
57
- ```
58
-
59
- ## What Claude Code Actually Does
60
- 1. Uses **Write** tool to create new files
61
- 2. Uses **Edit/MultiEdit** tools for code modifications
62
- 3. Uses **Bash** tool for testing and building
63
- 4. Uses **TodoWrite** tool for task tracking
64
- 5. Follows coordination patterns for systematic implementation
65
-
66
- Remember: All code is written by Claude Code using its native tools!
67
-
68
- ## CLI Usage
69
- ```bash
70
- # Start development workflow via CLI
71
- npx claude-flow-novice workflow dev "REST API with auth"
72
-
73
- # Create custom workflow
74
- npx claude-flow-novice workflow create --name "api-dev" --steps "design,implement,test,deploy"
75
-
76
- # Execute saved workflow
77
- npx claude-flow-novice workflow execute api-dev
78
- ```