claude-flow-novice 2.10.8 → 2.11.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 (193) hide show
  1. package/.claude/commands/README.md +157 -0
  2. package/.claude/hooks/cfn-invoke-post-edit.sh +1 -1
  3. package/.claude/hooks/cfn-invoke-pre-edit.sh +88 -0
  4. package/.claude/skills/cfn-agent-spawning/spawn-worker.sh +176 -0
  5. package/.claude/skills/cfn-backlog-management/SKILL.md +199 -0
  6. package/.claude/skills/cfn-backlog-management/add-backlog-item.sh +210 -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/agents/csuite/cto-agent.md +371 -0
  11. package/claude-assets/agents/marketing_hybrid/cost_tracker.md +13 -0
  12. package/claude-assets/agents/marketing_hybrid/docker_deployer.md +13 -0
  13. package/claude-assets/agents/marketing_hybrid/zai_worker_spawner.md +13 -0
  14. package/claude-assets/hooks/cfn-invoke-post-edit.sh +1 -1
  15. package/claude-assets/hooks/cfn-invoke-pre-edit.sh +88 -0
  16. package/claude-assets/skills/cfn-agent-spawning/spawn-worker.sh +176 -0
  17. package/claude-assets/skills/cfn-backlog-management/SKILL.md +199 -0
  18. package/claude-assets/skills/cfn-backlog-management/add-backlog-item.sh +210 -0
  19. package/claude-assets/skills/pre-edit-backup/backup.sh +130 -0
  20. package/claude-assets/skills/pre-edit-backup/cleanup.sh +155 -0
  21. package/claude-assets/skills/pre-edit-backup/restore.sh +128 -0
  22. package/claude-assets/skills/pre-edit-backup/revert-file.sh +168 -0
  23. package/dist/agents/agent-loader.js +315 -0
  24. package/dist/agents/agent-loader.js.map +1 -1
  25. package/package.json +3 -2
  26. package/scripts/init-project.js +38 -3
  27. package/scripts/marketing_hybrid_deployment.sh +45 -0
  28. package/scripts/redis-prometheus-exporter.sh +33 -0
  29. package/scripts/track-zai-costs.sh +19 -0
  30. package/claude-assets/commands/agents/README.md +0 -10
  31. package/claude-assets/commands/agents/agent-capabilities.md +0 -21
  32. package/claude-assets/commands/agents/agent-coordination.md +0 -28
  33. package/claude-assets/commands/agents/agent-spawning.md +0 -28
  34. package/claude-assets/commands/agents/agent-types.md +0 -26
  35. package/claude-assets/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
  36. package/claude-assets/commands/analysis/README.md +0 -9
  37. package/claude-assets/commands/analysis/bottleneck-detect.md +0 -162
  38. package/claude-assets/commands/analysis/performance-bottlenecks.md +0 -59
  39. package/claude-assets/commands/analysis/performance-report.md +0 -25
  40. package/claude-assets/commands/analysis/token-efficiency.md +0 -45
  41. package/claude-assets/commands/analysis/token-usage.md +0 -25
  42. package/claude-assets/commands/automation/README.md +0 -9
  43. package/claude-assets/commands/automation/auto-agent.md +0 -122
  44. package/claude-assets/commands/automation/self-healing.md +0 -106
  45. package/claude-assets/commands/automation/session-memory.md +0 -90
  46. package/claude-assets/commands/automation/smart-agents.md +0 -73
  47. package/claude-assets/commands/automation/smart-spawn.md +0 -25
  48. package/claude-assets/commands/automation/workflow-select.md +0 -25
  49. package/claude-assets/commands/claude-md.js +0 -237
  50. package/claude-assets/commands/claude-soul.js +0 -28
  51. package/claude-assets/commands/cli-integration.js +0 -216
  52. package/claude-assets/commands/coordination/README.md +0 -9
  53. package/claude-assets/commands/coordination/agent-spawn.md +0 -25
  54. package/claude-assets/commands/coordination/coordination-system.md +0 -88
  55. package/claude-assets/commands/coordination/init.md +0 -44
  56. package/claude-assets/commands/coordination/orchestrate.md +0 -43
  57. package/claude-assets/commands/coordination/spawn.md +0 -45
  58. package/claude-assets/commands/coordination/swarm-init.md +0 -85
  59. package/claude-assets/commands/coordination/task-orchestrate.md +0 -25
  60. package/claude-assets/commands/github/README.md +0 -11
  61. package/claude-assets/commands/github/code-review-swarm.md +0 -514
  62. package/claude-assets/commands/github/code-review.md +0 -25
  63. package/claude-assets/commands/github/github-modes.md +0 -147
  64. package/claude-assets/commands/github/github-swarm.md +0 -121
  65. package/claude-assets/commands/github/issue-tracker.md +0 -292
  66. package/claude-assets/commands/github/issue-triage.md +0 -25
  67. package/claude-assets/commands/github/multi-repo-swarm.md +0 -519
  68. package/claude-assets/commands/github/pr-enhance.md +0 -26
  69. package/claude-assets/commands/github/pr-manager.md +0 -170
  70. package/claude-assets/commands/github/project-board-sync.md +0 -471
  71. package/claude-assets/commands/github/release-manager.md +0 -338
  72. package/claude-assets/commands/github/release-swarm.md +0 -544
  73. package/claude-assets/commands/github/repo-analyze.md +0 -25
  74. package/claude-assets/commands/github/repo-architect.md +0 -367
  75. package/claude-assets/commands/github/swarm-issue.md +0 -482
  76. package/claude-assets/commands/github/swarm-pr.md +0 -285
  77. package/claude-assets/commands/github/sync-coordinator.md +0 -301
  78. package/claude-assets/commands/github/workflow-automation.md +0 -442
  79. package/claude-assets/commands/github.js +0 -638
  80. package/claude-assets/commands/hive-mind/README.md +0 -17
  81. package/claude-assets/commands/hive-mind/hive-mind-consensus.md +0 -8
  82. package/claude-assets/commands/hive-mind/hive-mind-init.md +0 -18
  83. package/claude-assets/commands/hive-mind/hive-mind-memory.md +0 -8
  84. package/claude-assets/commands/hive-mind/hive-mind-metrics.md +0 -8
  85. package/claude-assets/commands/hive-mind/hive-mind-resume.md +0 -8
  86. package/claude-assets/commands/hive-mind/hive-mind-sessions.md +0 -8
  87. package/claude-assets/commands/hive-mind/hive-mind-spawn.md +0 -21
  88. package/claude-assets/commands/hive-mind/hive-mind-status.md +0 -8
  89. package/claude-assets/commands/hive-mind/hive-mind-stop.md +0 -8
  90. package/claude-assets/commands/hive-mind/hive-mind-wizard.md +0 -8
  91. package/claude-assets/commands/hive-mind/hive-mind.md +0 -27
  92. package/claude-assets/commands/hooks/README.md +0 -11
  93. package/claude-assets/commands/hooks/overview.md +0 -58
  94. package/claude-assets/commands/hooks/post-edit.md +0 -117
  95. package/claude-assets/commands/hooks/post-task.md +0 -112
  96. package/claude-assets/commands/hooks/pre-edit.md +0 -113
  97. package/claude-assets/commands/hooks/pre-task.md +0 -111
  98. package/claude-assets/commands/hooks/session-end.md +0 -118
  99. package/claude-assets/commands/hooks/session-start.md +0 -9
  100. package/claude-assets/commands/hooks/setup.md +0 -103
  101. package/claude-assets/commands/hooks.js +0 -651
  102. package/claude-assets/commands/index.js +0 -119
  103. package/claude-assets/commands/memory/README.md +0 -9
  104. package/claude-assets/commands/memory/memory-bank.md +0 -58
  105. package/claude-assets/commands/memory/memory-persist.md +0 -25
  106. package/claude-assets/commands/memory/memory-search.md +0 -25
  107. package/claude-assets/commands/memory/memory-usage.md +0 -25
  108. package/claude-assets/commands/memory/neural.md +0 -47
  109. package/claude-assets/commands/memory/usage.md +0 -46
  110. package/claude-assets/commands/monitoring/README.md +0 -9
  111. package/claude-assets/commands/monitoring/agent-metrics.md +0 -25
  112. package/claude-assets/commands/monitoring/agents.md +0 -44
  113. package/claude-assets/commands/monitoring/real-time-view.md +0 -25
  114. package/claude-assets/commands/monitoring/status.md +0 -46
  115. package/claude-assets/commands/monitoring/swarm-monitor.md +0 -25
  116. package/claude-assets/commands/neural.js +0 -572
  117. package/claude-assets/commands/optimization/README.md +0 -9
  118. package/claude-assets/commands/optimization/auto-topology.md +0 -62
  119. package/claude-assets/commands/optimization/cache-manage.md +0 -25
  120. package/claude-assets/commands/optimization/parallel-execute.md +0 -25
  121. package/claude-assets/commands/optimization/parallel-execution.md +0 -50
  122. package/claude-assets/commands/optimization/topology-optimize.md +0 -25
  123. package/claude-assets/commands/pair/README.md +0 -261
  124. package/claude-assets/commands/pair/commands.md +0 -546
  125. package/claude-assets/commands/pair/config.md +0 -510
  126. package/claude-assets/commands/pair/examples.md +0 -512
  127. package/claude-assets/commands/pair/modes.md +0 -348
  128. package/claude-assets/commands/pair/session.md +0 -407
  129. package/claude-assets/commands/pair/start.md +0 -209
  130. package/claude-assets/commands/parse-epic.js +0 -180
  131. package/claude-assets/commands/performance.js +0 -582
  132. package/claude-assets/commands/register-all-commands.js +0 -320
  133. package/claude-assets/commands/register-claude-md.js +0 -82
  134. package/claude-assets/commands/register-claude-soul.js +0 -80
  135. package/claude-assets/commands/sparc/analyzer.md +0 -52
  136. package/claude-assets/commands/sparc/architect.md +0 -53
  137. package/claude-assets/commands/sparc/batch-executor.md +0 -54
  138. package/claude-assets/commands/sparc/coder.md +0 -54
  139. package/claude-assets/commands/sparc/debugger.md +0 -54
  140. package/claude-assets/commands/sparc/designer.md +0 -53
  141. package/claude-assets/commands/sparc/documenter.md +0 -54
  142. package/claude-assets/commands/sparc/innovator.md +0 -54
  143. package/claude-assets/commands/sparc/memory-manager.md +0 -54
  144. package/claude-assets/commands/sparc/optimizer.md +0 -54
  145. package/claude-assets/commands/sparc/orchestrator.md +0 -132
  146. package/claude-assets/commands/sparc/researcher.md +0 -54
  147. package/claude-assets/commands/sparc/reviewer.md +0 -54
  148. package/claude-assets/commands/sparc/sparc-modes.md +0 -174
  149. package/claude-assets/commands/sparc/swarm-coordinator.md +0 -54
  150. package/claude-assets/commands/sparc/tdd.md +0 -54
  151. package/claude-assets/commands/sparc/tester.md +0 -54
  152. package/claude-assets/commands/sparc/workflow-manager.md +0 -54
  153. package/claude-assets/commands/sparc.js +0 -110
  154. package/claude-assets/commands/stream-chain/pipeline.md +0 -121
  155. package/claude-assets/commands/stream-chain/run.md +0 -70
  156. package/claude-assets/commands/swarm/README.md +0 -15
  157. package/claude-assets/commands/swarm/analysis.md +0 -95
  158. package/claude-assets/commands/swarm/development.md +0 -96
  159. package/claude-assets/commands/swarm/examples.md +0 -168
  160. package/claude-assets/commands/swarm/maintenance.md +0 -102
  161. package/claude-assets/commands/swarm/optimization.md +0 -117
  162. package/claude-assets/commands/swarm/research.md +0 -136
  163. package/claude-assets/commands/swarm/swarm-analysis.md +0 -8
  164. package/claude-assets/commands/swarm/swarm-background.md +0 -8
  165. package/claude-assets/commands/swarm/swarm-init.md +0 -19
  166. package/claude-assets/commands/swarm/swarm-modes.md +0 -8
  167. package/claude-assets/commands/swarm/swarm-monitor.md +0 -8
  168. package/claude-assets/commands/swarm/swarm-spawn.md +0 -19
  169. package/claude-assets/commands/swarm/swarm-status.md +0 -8
  170. package/claude-assets/commands/swarm/swarm-strategies.md +0 -8
  171. package/claude-assets/commands/swarm/swarm.md +0 -27
  172. package/claude-assets/commands/swarm/testing.md +0 -131
  173. package/claude-assets/commands/swarm.js +0 -423
  174. package/claude-assets/commands/testing/playwright-e2e.md +0 -288
  175. package/claude-assets/commands/training/README.md +0 -9
  176. package/claude-assets/commands/training/model-update.md +0 -25
  177. package/claude-assets/commands/training/neural-patterns.md +0 -74
  178. package/claude-assets/commands/training/neural-train.md +0 -25
  179. package/claude-assets/commands/training/pattern-learn.md +0 -25
  180. package/claude-assets/commands/training/specialization.md +0 -63
  181. package/claude-assets/commands/truth/start.md +0 -143
  182. package/claude-assets/commands/validate-commands.js +0 -223
  183. package/claude-assets/commands/verify/check.md +0 -50
  184. package/claude-assets/commands/verify/start.md +0 -128
  185. package/claude-assets/commands/workflow.js +0 -606
  186. package/claude-assets/commands/workflows/README.md +0 -9
  187. package/claude-assets/commands/workflows/development.md +0 -78
  188. package/claude-assets/commands/workflows/research.md +0 -63
  189. package/claude-assets/commands/workflows/workflow-create.md +0 -25
  190. package/claude-assets/commands/workflows/workflow-execute.md +0 -25
  191. package/claude-assets/commands/workflows/workflow-export.md +0 -25
  192. package/claude-assets/hooks/post-edit.config.json +0 -12
  193. package/claude-assets/skills/team-provider-routing/spawn-worker.sh +0 -91
@@ -1,174 +0,0 @@
1
- # SPARC Modes Overview
2
-
3
- SPARC (Specification, Planning, Architecture, Review, Code) is a comprehensive development methodology with 17 specialized modes, all integrated with MCP tools for enhanced coordination and execution.
4
-
5
- ## Available Modes
6
-
7
- ### Core Orchestration Modes
8
- - **orchestrator**: Multi-agent task orchestration
9
- - **swarm-coordinator**: Specialized swarm management
10
- - **workflow-manager**: Process automation
11
- - **batch-executor**: Parallel task execution
12
-
13
- ### Development Modes
14
- - **coder**: Autonomous code generation
15
- - **architect**: System design
16
- - **reviewer**: Code review
17
- - **tdd**: Test-driven development
18
-
19
- ### Analysis and Research Modes
20
- - **researcher**: Deep research capabilities
21
- - **analyzer**: Code and data analysis
22
- - **optimizer**: Performance optimization
23
-
24
- ### Creative and Support Modes
25
- - **designer**: UI/UX design
26
- - **innovator**: Creative problem solving
27
- - **documenter**: Documentation generation
28
- - **debugger**: Systematic debugging
29
- - **tester**: Comprehensive testing
30
- - **memory-manager**: Knowledge management
31
-
32
- ## Usage
33
-
34
- ### Option 1: Using MCP Tools (Preferred in Claude Code)
35
- ```javascript
36
- // Execute SPARC mode directly
37
- mcp__claude-flow__sparc_mode {
38
- mode: "<mode>",
39
- task_description: "<task>",
40
- options: {
41
- // mode-specific options
42
- }
43
- }
44
-
45
- // Initialize swarm for advanced coordination
46
- mcp__claude-flow__swarm_init {
47
- topology: "hierarchical",
48
- strategy: "auto",
49
- maxAgents: 8
50
- }
51
-
52
- // Spawn specialized agents
53
- mcp__claude-flow__agent_spawn {
54
- type: "<agent-type>",
55
- capabilities: ["<capability1>", "<capability2>"]
56
- }
57
-
58
- // Monitor execution
59
- mcp__claude-flow__swarm_monitor {
60
- swarmId: "current",
61
- interval: 5000
62
- }
63
- ```
64
-
65
- ### Option 2: Using NPX CLI (Fallback when MCP not available)
66
- ```bash
67
- # Use when running from terminal or MCP tools unavailable
68
- npx claude-flow-novice sparc run <mode> "task description"
69
-
70
- # For alpha features
71
- npx claude-flow@alpha sparc run <mode> "task description"
72
-
73
- # List all modes
74
- npx claude-flow-novice sparc modes
75
-
76
- # Get help for a mode
77
- npx claude-flow-novice sparc help <mode>
78
-
79
- # Run with options
80
- npx claude-flow-novice sparc run <mode> "task" --parallel --monitor
81
- ```
82
-
83
- ### Option 3: Local Installation
84
- ```bash
85
- # If claude-flow-novice is installed locally
86
- ./claude-flow-novice sparc run <mode> "task description"
87
- ```
88
-
89
- ## Common Workflows
90
-
91
- ### Full Development Cycle
92
-
93
- #### Using MCP Tools (Preferred)
94
- ```javascript
95
- // 1. Initialize development swarm
96
- mcp__claude-flow__swarm_init {
97
- topology: "hierarchical",
98
- maxAgents: 12
99
- }
100
-
101
- // 2. Architecture design
102
- mcp__claude-flow__sparc_mode {
103
- mode: "architect",
104
- task_description: "design microservices"
105
- }
106
-
107
- // 3. Implementation
108
- mcp__claude-flow__sparc_mode {
109
- mode: "coder",
110
- task_description: "implement services"
111
- }
112
-
113
- // 4. Testing
114
- mcp__claude-flow__sparc_mode {
115
- mode: "tdd",
116
- task_description: "test all services"
117
- }
118
-
119
- // 5. Review
120
- mcp__claude-flow__sparc_mode {
121
- mode: "reviewer",
122
- task_description: "review implementation"
123
- }
124
- ```
125
-
126
- #### Using NPX CLI (Fallback)
127
- ```bash
128
- # 1. Architecture design
129
- npx claude-flow-novice sparc run architect "design microservices"
130
-
131
- # 2. Implementation
132
- npx claude-flow-novice sparc run coder "implement services"
133
-
134
- # 3. Testing
135
- npx claude-flow-novice sparc run tdd "test all services"
136
-
137
- # 4. Review
138
- npx claude-flow-novice sparc run reviewer "review implementation"
139
- ```
140
-
141
- ### Research and Innovation
142
-
143
- #### Using MCP Tools (Preferred)
144
- ```javascript
145
- // 1. Research phase
146
- mcp__claude-flow__sparc_mode {
147
- mode: "researcher",
148
- task_description: "research best practices"
149
- }
150
-
151
- // 2. Innovation
152
- mcp__claude-flow__sparc_mode {
153
- mode: "innovator",
154
- task_description: "propose novel solutions"
155
- }
156
-
157
- // 3. Documentation
158
- mcp__claude-flow__sparc_mode {
159
- mode: "documenter",
160
- task_description: "document findings"
161
- }
162
- ```
163
-
164
- #### Using NPX CLI (Fallback)
165
- ```bash
166
- # 1. Research phase
167
- npx claude-flow-novice sparc run researcher "research best practices"
168
-
169
- # 2. Innovation
170
- npx claude-flow-novice sparc run innovator "propose novel solutions"
171
-
172
- # 3. Documentation
173
- npx claude-flow-novice sparc run documenter "document findings"
174
- ```
@@ -1,54 +0,0 @@
1
- # SPARC Swarm Coordinator Mode
2
-
3
- ## Purpose
4
- Specialized swarm management with batch coordination capabilities.
5
-
6
- ## Activation
7
-
8
- ### Option 1: Using MCP Tools (Preferred in Claude Code)
9
- ```javascript
10
- mcp__claude-flow__sparc_mode {
11
- mode: "swarm-coordinator",
12
- task_description: "manage development swarm",
13
- options: {
14
- topology: "hierarchical",
15
- max_agents: 10
16
- }
17
- }
18
- ```
19
-
20
- ### Option 2: Using NPX CLI (Fallback when MCP not available)
21
- ```bash
22
- # Use when running from terminal or MCP tools unavailable
23
- npx claude-flow-novice sparc run swarm-coordinator "manage development swarm"
24
-
25
- # For alpha features
26
- npx claude-flow@alpha sparc run swarm-coordinator "manage development swarm"
27
- ```
28
-
29
- ### Option 3: Local Installation
30
- ```bash
31
- # If claude-flow-novice is installed locally
32
- ./claude-flow-novice sparc run swarm-coordinator "manage development swarm"
33
- ```
34
-
35
- ## Core Capabilities
36
- - Swarm initialization
37
- - Agent management
38
- - Task distribution
39
- - Load balancing
40
- - Result collection
41
-
42
- ## Coordination Modes
43
- - Hierarchical swarms
44
- - Mesh networks
45
- - Pipeline coordination
46
- - Adaptive strategies
47
- - Hybrid approaches
48
-
49
- ## Management Features
50
- - Dynamic scaling
51
- - Resource optimization
52
- - Failure recovery
53
- - Performance monitoring
54
- - Quality assurance
@@ -1,54 +0,0 @@
1
- # SPARC TDD Mode
2
-
3
- ## Purpose
4
- Test-driven development with TodoWrite planning and comprehensive testing.
5
-
6
- ## Activation
7
-
8
- ### Option 1: Using MCP Tools (Preferred in Claude Code)
9
- ```javascript
10
- mcp__claude-flow__sparc_mode {
11
- mode: "tdd",
12
- task_description: "shopping cart feature",
13
- options: {
14
- coverage_target: 90,
15
- test_framework: "jest"
16
- }
17
- }
18
- ```
19
-
20
- ### Option 2: Using NPX CLI (Fallback when MCP not available)
21
- ```bash
22
- # Use when running from terminal or MCP tools unavailable
23
- npx claude-flow-novice sparc run tdd "shopping cart feature"
24
-
25
- # For alpha features
26
- npx claude-flow@alpha sparc run tdd "shopping cart feature"
27
- ```
28
-
29
- ### Option 3: Local Installation
30
- ```bash
31
- # If claude-flow-novice is installed locally
32
- ./claude-flow-novice sparc run tdd "shopping cart feature"
33
- ```
34
-
35
- ## Core Capabilities
36
- - Test-first development
37
- - Red-green-refactor cycle
38
- - Test suite design
39
- - Coverage optimization
40
- - Continuous testing
41
-
42
- ## TDD Workflow
43
- 1. Write failing tests
44
- 2. Implement minimum code
45
- 3. Make tests pass
46
- 4. Refactor code
47
- 5. Repeat cycle
48
-
49
- ## Testing Strategies
50
- - Unit testing
51
- - Integration testing
52
- - End-to-end testing
53
- - Performance testing
54
- - Security testing
@@ -1,54 +0,0 @@
1
- # SPARC Tester Mode
2
-
3
- ## Purpose
4
- Comprehensive testing with parallel execution capabilities.
5
-
6
- ## Activation
7
-
8
- ### Option 1: Using MCP Tools (Preferred in Claude Code)
9
- ```javascript
10
- mcp__claude-flow__sparc_mode {
11
- mode: "tester",
12
- task_description: "full regression suite",
13
- options: {
14
- parallel: true,
15
- coverage: true
16
- }
17
- }
18
- ```
19
-
20
- ### Option 2: Using NPX CLI (Fallback when MCP not available)
21
- ```bash
22
- # Use when running from terminal or MCP tools unavailable
23
- npx claude-flow-novice sparc run tester "full regression suite"
24
-
25
- # For alpha features
26
- npx claude-flow@alpha sparc run tester "full regression suite"
27
- ```
28
-
29
- ### Option 3: Local Installation
30
- ```bash
31
- # If claude-flow-novice is installed locally
32
- ./claude-flow-novice sparc run tester "full regression suite"
33
- ```
34
-
35
- ## Core Capabilities
36
- - Test planning
37
- - Test execution
38
- - Bug detection
39
- - Coverage analysis
40
- - Report generation
41
-
42
- ## Test Types
43
- - Unit tests
44
- - Integration tests
45
- - E2E tests
46
- - Performance tests
47
- - Security tests
48
-
49
- ## Parallel Features
50
- - Concurrent test runs
51
- - Distributed testing
52
- - Load testing
53
- - Cross-browser testing
54
- - Multi-environment validation
@@ -1,54 +0,0 @@
1
- # SPARC Workflow Manager Mode
2
-
3
- ## Purpose
4
- Process automation with TodoWrite planning and Task execution.
5
-
6
- ## Activation
7
-
8
- ### Option 1: Using MCP Tools (Preferred in Claude Code)
9
- ```javascript
10
- mcp__claude-flow__sparc_mode {
11
- mode: "workflow-manager",
12
- task_description: "automate deployment",
13
- options: {
14
- pipeline: "ci-cd",
15
- rollback_enabled: true
16
- }
17
- }
18
- ```
19
-
20
- ### Option 2: Using NPX CLI (Fallback when MCP not available)
21
- ```bash
22
- # Use when running from terminal or MCP tools unavailable
23
- npx claude-flow-novice sparc run workflow-manager "automate deployment"
24
-
25
- # For alpha features
26
- npx claude-flow@alpha sparc run workflow-manager "automate deployment"
27
- ```
28
-
29
- ### Option 3: Local Installation
30
- ```bash
31
- # If claude-flow-novice is installed locally
32
- ./claude-flow-novice sparc run workflow-manager "automate deployment"
33
- ```
34
-
35
- ## Core Capabilities
36
- - Workflow design
37
- - Process automation
38
- - Pipeline creation
39
- - Event handling
40
- - State management
41
-
42
- ## Workflow Patterns
43
- - Sequential flows
44
- - Parallel branches
45
- - Conditional logic
46
- - Loop iterations
47
- - Error handling
48
-
49
- ## Automation Features
50
- - Trigger management
51
- - Task scheduling
52
- - Progress tracking
53
- - Result validation
54
- - Rollback capability
@@ -1,110 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * SPARC Methodology Slash Command
5
- * Usage: /sparc <mode> <task>
6
- */
7
-
8
- import { SlashCommand } from '../core/slash-command.js';
9
-
10
- export class SparcCommand extends SlashCommand {
11
- constructor() {
12
- super('sparc', 'Execute SPARC methodology phases');
13
- }
14
-
15
- async execute(args, context) {
16
- const [mode, ...taskArgs] = args;
17
- const task = taskArgs.join(' ');
18
-
19
- const modes = {
20
- 'spec': 'Specification - Requirements analysis and user story definition',
21
- 'pseudo': 'Pseudocode - Algorithm design and logic flow',
22
- 'arch': 'Architecture - System design and component structure',
23
- 'refine': 'Refinement - Iterative improvement and optimization',
24
- 'complete': 'Completion - Final implementation and testing'
25
- };
26
-
27
- if (!mode || !modes[mode]) {
28
- return {
29
- success: false,
30
- error: `Invalid mode. Available modes: ${Object.keys(modes).join(', ')}`,
31
- usage: '/sparc <mode> <task_description>'
32
- };
33
- }
34
-
35
- if (!task) {
36
- return {
37
- success: false,
38
- error: 'Task description required',
39
- usage: `/sparc ${mode} <task_description>`
40
- };
41
- }
42
-
43
- console.log(`🎯 SPARC ${mode.toUpperCase()}: ${task}`);
44
-
45
- const sparcPrompt = `
46
- 🎯 **SPARC Methodology - ${modes[mode]}**
47
-
48
- **Task**: ${task}
49
-
50
- **Phase**: ${mode.toUpperCase()}
51
- **Description**: ${modes[mode]}
52
-
53
- **Instructions for ${mode.toUpperCase()} phase**:
54
- ${this.getPhaseInstructions(mode)}
55
-
56
- **Execute this SPARC phase now**:
57
- `;
58
-
59
- return {
60
- success: true,
61
- prompt: sparcPrompt,
62
- mode: `sparc-${mode}`,
63
- task: task,
64
- timestamp: new Date().toISOString()
65
- };
66
- }
67
-
68
- getPhaseInstructions(mode) {
69
- const instructions = {
70
- 'spec': `
71
- - Define clear requirements and acceptance criteria
72
- - Create user stories and use cases
73
- - Identify constraints and assumptions
74
- - Specify input/output requirements
75
- - Document functional and non-functional requirements`,
76
-
77
- 'pseudo': `
78
- - Break down the problem into logical steps
79
- - Write high-level algorithm pseudocode
80
- - Define data structures and flow
81
- - Identify key functions and modules
82
- - Plan error handling and edge cases`,
83
-
84
- 'arch': `
85
- - Design system architecture and components
86
- - Define interfaces and APIs
87
- - Choose appropriate patterns and technologies
88
- - Plan data flow and storage
89
- - Consider scalability and maintainability`,
90
-
91
- 'refine': `
92
- - Review and improve the design
93
- - Optimize algorithms and data structures
94
- - Refactor for clarity and efficiency
95
- - Add comprehensive error handling
96
- - Enhance documentation and comments`,
97
-
98
- 'complete': `
99
- - Implement the final solution
100
- - Write comprehensive tests
101
- - Perform integration testing
102
- - Document usage and deployment
103
- - Prepare for production deployment`
104
- };
105
-
106
- return instructions[mode] || 'Execute the specified SPARC phase';
107
- }
108
- }
109
-
110
- export default SparcCommand;
@@ -1,121 +0,0 @@
1
- # stream-chain pipeline
2
-
3
- Execute predefined pipelines for common development workflows.
4
-
5
- ## Usage
6
-
7
- ```bash
8
- claude-flow-novice stream-chain pipeline <type> [options]
9
- ```
10
-
11
- ## Available Pipelines
12
-
13
- ### analysis
14
- Code analysis and improvement pipeline.
15
-
16
- ```bash
17
- claude-flow-novice stream-chain pipeline analysis
18
- ```
19
-
20
- **Steps:**
21
- 1. Analyze current directory structure and identify main components
22
- 2. Based on analysis, identify potential improvements and issues
23
- 3. Generate detailed report with actionable recommendations
24
-
25
- ### refactor
26
- Automated refactoring workflow.
27
-
28
- ```bash
29
- claude-flow-novice stream-chain pipeline refactor
30
- ```
31
-
32
- **Steps:**
33
- 1. Identify code that could benefit from refactoring
34
- 2. Create prioritized refactoring plan with specific changes
35
- 3. Provide refactored code examples for top 3 priorities
36
-
37
- ### test
38
- Comprehensive test generation.
39
-
40
- ```bash
41
- claude-flow-novice stream-chain pipeline test
42
- ```
43
-
44
- **Steps:**
45
- 1. Analyze codebase and identify areas lacking test coverage
46
- 2. Design comprehensive test cases for critical functions
47
- 3. Generate unit test implementations with assertions
48
-
49
- ### optimize
50
- Performance optimization pipeline.
51
-
52
- ```bash
53
- claude-flow-novice stream-chain pipeline optimize
54
- ```
55
-
56
- **Steps:**
57
- 1. Profile codebase and identify performance bottlenecks
58
- 2. Analyze bottlenecks and suggest optimization strategies
59
- 3. Provide optimized implementations for main issues
60
-
61
- ## Options
62
-
63
- - `--verbose` - Show detailed execution
64
- - `--timeout <seconds>` - Timeout per step (default: 30)
65
- - `--debug` - Enable debug mode
66
-
67
- ## Examples
68
-
69
- ### Run Analysis Pipeline
70
- ```bash
71
- claude-flow-novice stream-chain pipeline analysis
72
- ```
73
-
74
- ### Refactor with Extended Timeout
75
- ```bash
76
- claude-flow-novice stream-chain pipeline refactor --timeout 60
77
- ```
78
-
79
- ### Verbose Test Generation
80
- ```bash
81
- claude-flow-novice stream-chain pipeline test --verbose
82
- ```
83
-
84
- ### Performance Optimization
85
- ```bash
86
- claude-flow-novice stream-chain pipeline optimize --debug
87
- ```
88
-
89
- ## Output
90
-
91
- Each pipeline generates:
92
- - Step-by-step execution progress
93
- - Success/failure status per step
94
- - Total execution time
95
- - Summary of results
96
-
97
- ## Custom Pipelines
98
-
99
- Define custom pipelines in `.claude-flow/config.json`:
100
-
101
- ```json
102
- {
103
- "streamChain": {
104
- "pipelines": {
105
- "security": {
106
- "name": "Security Audit Pipeline",
107
- "prompts": [
108
- "Scan for security vulnerabilities",
109
- "Prioritize by severity",
110
- "Generate fixes"
111
- ]
112
- }
113
- }
114
- }
115
- }
116
- ```
117
-
118
- Then run:
119
- ```bash
120
- claude-flow-novice stream-chain pipeline security
121
- ```
@@ -1,70 +0,0 @@
1
- # stream-chain run
2
-
3
- Execute a custom stream chain with your own prompts.
4
-
5
- ## Usage
6
-
7
- ```bash
8
- claude-flow-novice stream-chain run <prompt1> <prompt2> [...] [options]
9
- ```
10
-
11
- Minimum 2 prompts required for chaining.
12
-
13
- ## Options
14
-
15
- - `--verbose` - Show detailed execution information
16
- - `--timeout <seconds>` - Timeout per step (default: 30)
17
- - `--debug` - Enable debug mode
18
-
19
- ## How It Works
20
-
21
- Each prompt in the chain receives the complete output from the previous step as context, enabling complex multi-step workflows.
22
-
23
- ## Examples
24
-
25
- ### Basic Chain
26
- ```bash
27
- claude-flow-novice stream-chain run \
28
- "Write a function" \
29
- "Add tests for it"
30
- ```
31
-
32
- ### Complex Workflow
33
- ```bash
34
- claude-flow-novice stream-chain run \
35
- "Analyze the authentication system" \
36
- "Identify security vulnerabilities" \
37
- "Propose fixes with priority levels" \
38
- "Implement the critical fixes" \
39
- "Generate tests for the fixes"
40
- ```
41
-
42
- ### With Options
43
- ```bash
44
- claude-flow-novice stream-chain run \
45
- "Complex analysis task" \
46
- "Detailed implementation" \
47
- --timeout 60 \
48
- --verbose
49
- ```
50
-
51
- ## Context Preservation
52
-
53
- The output from each step is injected into the next prompt:
54
-
55
- ```
56
- Step 1: "Write a sorting function"
57
- Output: [function code]
58
-
59
- Step 2 receives: "Previous step output:
60
- [function code]
61
-
62
- Next step: Optimize for performance"
63
- ```
64
-
65
- ## Best Practices
66
-
67
- 1. **Clear Instructions**: Make each prompt specific
68
- 2. **Logical Flow**: Order prompts in logical sequence
69
- 3. **Appropriate Timeouts**: Increase for complex tasks
70
- 4. **Verification**: Add verification steps in chain
@@ -1,15 +0,0 @@
1
- # Swarm Commands
2
-
3
- Commands for swarm operations in Claude Flow.
4
-
5
- ## Available Commands
6
-
7
- - [swarm](./swarm.md)
8
- - [swarm-init](./swarm-init.md)
9
- - [swarm-spawn](./swarm-spawn.md)
10
- - [swarm-status](./swarm-status.md)
11
- - [swarm-monitor](./swarm-monitor.md)
12
- - [swarm-strategies](./swarm-strategies.md)
13
- - [swarm-modes](./swarm-modes.md)
14
- - [swarm-background](./swarm-background.md)
15
- - [swarm-analysis](./swarm-analysis.md)