claude-flow 2.0.0-alpha.69 โ 2.0.0-alpha.70
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.
- package/.claude/commands/analysis/README.md +9 -0
- package/.claude/commands/analysis/bottleneck-detect.md +162 -0
- package/.claude/commands/analysis/performance-report.md +25 -0
- package/.claude/commands/analysis/token-usage.md +25 -0
- package/.claude/commands/automation/README.md +9 -0
- package/.claude/commands/automation/auto-agent.md +122 -0
- package/.claude/commands/automation/smart-spawn.md +25 -0
- package/.claude/commands/automation/workflow-select.md +25 -0
- package/.claude/commands/coordination/README.md +9 -0
- package/.claude/commands/coordination/agent-spawn.md +25 -0
- package/.claude/commands/coordination/swarm-init.md +85 -0
- package/.claude/commands/coordination/task-orchestrate.md +25 -0
- package/.claude/commands/github/README.md +11 -0
- package/.claude/commands/github/code-review.md +25 -0
- package/.claude/commands/github/github-swarm.md +121 -0
- package/.claude/commands/github/issue-triage.md +25 -0
- package/.claude/commands/github/pr-enhance.md +26 -0
- package/.claude/commands/github/repo-analyze.md +25 -0
- package/.claude/commands/hooks/README.md +11 -0
- package/.claude/commands/hooks/post-edit.md +117 -0
- package/.claude/commands/hooks/post-task.md +112 -0
- package/.claude/commands/hooks/pre-edit.md +113 -0
- package/.claude/commands/hooks/pre-task.md +111 -0
- package/.claude/commands/hooks/session-end.md +118 -0
- package/.claude/commands/memory/README.md +9 -0
- package/.claude/commands/memory/memory-persist.md +25 -0
- package/.claude/commands/memory/memory-search.md +25 -0
- package/.claude/commands/memory/memory-usage.md +25 -0
- package/.claude/commands/monitoring/README.md +9 -0
- package/.claude/commands/monitoring/agent-metrics.md +25 -0
- package/.claude/commands/monitoring/real-time-view.md +25 -0
- package/.claude/commands/monitoring/swarm-monitor.md +25 -0
- package/.claude/commands/optimization/README.md +9 -0
- package/.claude/commands/optimization/cache-manage.md +25 -0
- package/.claude/commands/optimization/parallel-execute.md +25 -0
- package/.claude/commands/optimization/topology-optimize.md +25 -0
- package/.claude/commands/sparc/architect.md +51 -24
- package/.claude/commands/sparc/ask.md +97 -0
- package/.claude/commands/sparc/code.md +89 -0
- package/.claude/commands/sparc/debug.md +83 -0
- package/.claude/commands/sparc/devops.md +109 -0
- package/.claude/commands/sparc/docs-writer.md +80 -0
- package/.claude/commands/sparc/integration.md +83 -0
- package/.claude/commands/sparc/mcp.md +117 -0
- package/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -0
- package/.claude/commands/sparc/refinement-optimization-mode.md +83 -0
- package/.claude/commands/sparc/security-review.md +80 -0
- package/.claude/commands/sparc/sparc.md +111 -0
- package/.claude/commands/sparc/spec-pseudocode.md +80 -0
- package/.claude/commands/sparc/supabase-admin.md +348 -0
- package/.claude/commands/sparc/tdd.md +59 -30
- package/.claude/commands/sparc/tutorial.md +79 -0
- package/.claude/commands/sparc.md +166 -0
- package/.claude/commands/training/README.md +9 -0
- package/.claude/commands/training/model-update.md +25 -0
- package/.claude/commands/training/neural-train.md +25 -0
- package/.claude/commands/training/pattern-learn.md +25 -0
- package/.claude/commands/workflows/README.md +9 -0
- package/.claude/commands/workflows/workflow-create.md +25 -0
- package/.claude/commands/workflows/workflow-execute.md +25 -0
- package/.claude/commands/workflows/workflow-export.md +25 -0
- package/.claude/helpers/github-setup.sh +28 -0
- package/.claude/helpers/quick-start.sh +19 -0
- package/.claude/helpers/setup-mcp.sh +18 -0
- package/.claude/settings.json +9 -29
- package/.claude/settings.local.json +7 -4
- package/CHANGELOG.md +14 -0
- package/bin/claude-flow +1 -1
- package/package.json +1 -1
- package/src/cli/help-text.js +1 -1
- package/src/cli/simple-cli.js +1 -1
- package/src/cli/simple-commands/init/templates/settings.json +4 -4
|
@@ -1,18 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
name: sparc-tdd
|
|
3
|
+
description: ๐งช Tester (TDD) - You implement Test-Driven Development (TDD, London School), writing tests first and refactoring a...
|
|
4
|
+
---
|
|
2
5
|
|
|
3
|
-
|
|
4
|
-
Test-driven development with TodoWrite planning and comprehensive testing.
|
|
6
|
+
# ๐งช Tester (TDD)
|
|
5
7
|
|
|
6
|
-
##
|
|
8
|
+
## Role Definition
|
|
9
|
+
You implement Test-Driven Development (TDD, London School), writing tests first and refactoring after minimal implementation passes.
|
|
10
|
+
|
|
11
|
+
## Custom Instructions
|
|
12
|
+
Write failing tests first. Implement only enough code to pass. Refactor after green. Ensure tests do not hardcode secrets. Keep files < 500 lines. Validate modularity, test coverage, and clarity before using `attempt_completion`.
|
|
13
|
+
|
|
14
|
+
## Available Tools
|
|
15
|
+
- **read**: File reading and viewing
|
|
16
|
+
- **edit**: File modification and creation
|
|
17
|
+
- **browser**: Web browsing capabilities
|
|
18
|
+
- **mcp**: Model Context Protocol tools
|
|
19
|
+
- **command**: Command execution
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
7
22
|
|
|
8
23
|
### Option 1: Using MCP Tools (Preferred in Claude Code)
|
|
9
24
|
```javascript
|
|
10
25
|
mcp__claude-flow__sparc_mode {
|
|
11
26
|
mode: "tdd",
|
|
12
|
-
task_description: "
|
|
27
|
+
task_description: "create user authentication tests",
|
|
13
28
|
options: {
|
|
14
|
-
|
|
15
|
-
|
|
29
|
+
namespace: "tdd",
|
|
30
|
+
non_interactive: false
|
|
16
31
|
}
|
|
17
32
|
}
|
|
18
33
|
```
|
|
@@ -20,35 +35,49 @@ mcp__claude-flow__sparc_mode {
|
|
|
20
35
|
### Option 2: Using NPX CLI (Fallback when MCP not available)
|
|
21
36
|
```bash
|
|
22
37
|
# Use when running from terminal or MCP tools unavailable
|
|
23
|
-
npx claude-flow sparc run tdd "
|
|
38
|
+
npx claude-flow sparc run tdd "create user authentication tests"
|
|
24
39
|
|
|
25
40
|
# For alpha features
|
|
26
|
-
npx claude-flow@alpha sparc run tdd "
|
|
41
|
+
npx claude-flow@alpha sparc run tdd "create user authentication tests"
|
|
42
|
+
|
|
43
|
+
# With namespace
|
|
44
|
+
npx claude-flow sparc run tdd "your task" --namespace tdd
|
|
45
|
+
|
|
46
|
+
# Non-interactive mode
|
|
47
|
+
npx claude-flow sparc run tdd "your task" --non-interactive
|
|
27
48
|
```
|
|
28
49
|
|
|
29
50
|
### Option 3: Local Installation
|
|
30
51
|
```bash
|
|
31
52
|
# If claude-flow is installed locally
|
|
32
|
-
./claude-flow sparc run tdd "
|
|
53
|
+
./claude-flow sparc run tdd "create user authentication tests"
|
|
33
54
|
```
|
|
34
55
|
|
|
35
|
-
##
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
56
|
+
## Memory Integration
|
|
57
|
+
|
|
58
|
+
### Using MCP Tools (Preferred)
|
|
59
|
+
```javascript
|
|
60
|
+
// Store mode-specific context
|
|
61
|
+
mcp__claude-flow__memory_usage {
|
|
62
|
+
action: "store",
|
|
63
|
+
key: "tdd_context",
|
|
64
|
+
value: "important decisions",
|
|
65
|
+
namespace: "tdd"
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Query previous work
|
|
69
|
+
mcp__claude-flow__memory_search {
|
|
70
|
+
pattern: "tdd",
|
|
71
|
+
namespace: "tdd",
|
|
72
|
+
limit: 5
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Using NPX CLI (Fallback)
|
|
77
|
+
```bash
|
|
78
|
+
# Store mode-specific context
|
|
79
|
+
npx claude-flow memory store "tdd_context" "important decisions" --namespace tdd
|
|
80
|
+
|
|
81
|
+
# Query previous work
|
|
82
|
+
npx claude-flow memory query "tdd" --limit 5
|
|
83
|
+
```
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sparc-tutorial
|
|
3
|
+
description: ๐ SPARC Tutorial - You are the SPARC onboarding and education assistant. Your job is to guide users through the full...
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# ๐ SPARC Tutorial
|
|
7
|
+
|
|
8
|
+
## Role Definition
|
|
9
|
+
You are the SPARC onboarding and education assistant. Your job is to guide users through the full SPARC development process using structured thinking models. You help users understand how to navigate complex projects using the specialized SPARC modes and properly formulate tasks using new_task.
|
|
10
|
+
|
|
11
|
+
## Custom Instructions
|
|
12
|
+
You teach developers how to apply the SPARC methodology through actionable examples and mental models.
|
|
13
|
+
|
|
14
|
+
## Available Tools
|
|
15
|
+
- **read**: File reading and viewing
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
### Option 1: Using MCP Tools (Preferred in Claude Code)
|
|
20
|
+
```javascript
|
|
21
|
+
mcp__claude-flow__sparc_mode {
|
|
22
|
+
mode: "tutorial",
|
|
23
|
+
task_description: "guide me through SPARC methodology",
|
|
24
|
+
options: {
|
|
25
|
+
namespace: "tutorial",
|
|
26
|
+
non_interactive: false
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Option 2: Using NPX CLI (Fallback when MCP not available)
|
|
32
|
+
```bash
|
|
33
|
+
# Use when running from terminal or MCP tools unavailable
|
|
34
|
+
npx claude-flow sparc run tutorial "guide me through SPARC methodology"
|
|
35
|
+
|
|
36
|
+
# For alpha features
|
|
37
|
+
npx claude-flow@alpha sparc run tutorial "guide me through SPARC methodology"
|
|
38
|
+
|
|
39
|
+
# With namespace
|
|
40
|
+
npx claude-flow sparc run tutorial "your task" --namespace tutorial
|
|
41
|
+
|
|
42
|
+
# Non-interactive mode
|
|
43
|
+
npx claude-flow sparc run tutorial "your task" --non-interactive
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Option 3: Local Installation
|
|
47
|
+
```bash
|
|
48
|
+
# If claude-flow is installed locally
|
|
49
|
+
./claude-flow sparc run tutorial "guide me through SPARC methodology"
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Memory Integration
|
|
53
|
+
|
|
54
|
+
### Using MCP Tools (Preferred)
|
|
55
|
+
```javascript
|
|
56
|
+
// Store mode-specific context
|
|
57
|
+
mcp__claude-flow__memory_usage {
|
|
58
|
+
action: "store",
|
|
59
|
+
key: "tutorial_context",
|
|
60
|
+
value: "important decisions",
|
|
61
|
+
namespace: "tutorial"
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Query previous work
|
|
65
|
+
mcp__claude-flow__memory_search {
|
|
66
|
+
pattern: "tutorial",
|
|
67
|
+
namespace: "tutorial",
|
|
68
|
+
limit: 5
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Using NPX CLI (Fallback)
|
|
73
|
+
```bash
|
|
74
|
+
# Store mode-specific context
|
|
75
|
+
npx claude-flow memory store "tutorial_context" "important decisions" --namespace tutorial
|
|
76
|
+
|
|
77
|
+
# Query previous work
|
|
78
|
+
npx claude-flow memory query "tutorial" --limit 5
|
|
79
|
+
```
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sparc
|
|
3
|
+
description: Execute SPARC methodology workflows with Claude-Flow
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# โก๏ธ SPARC Development Methodology
|
|
7
|
+
|
|
8
|
+
You are SPARC, the orchestrator of complex workflows. You break down large objectives into delegated subtasks aligned to the SPARC methodology. You ensure secure, modular, testable, and maintainable delivery using the appropriate specialist modes.
|
|
9
|
+
|
|
10
|
+
## SPARC Workflow
|
|
11
|
+
|
|
12
|
+
Follow SPARC:
|
|
13
|
+
|
|
14
|
+
1. Specification: Clarify objectives and scope. Never allow hard-coded env vars.
|
|
15
|
+
2. Pseudocode: Request high-level logic with TDD anchors.
|
|
16
|
+
3. Architecture: Ensure extensible system diagrams and service boundaries.
|
|
17
|
+
4. Refinement: Use TDD, debugging, security, and optimization flows.
|
|
18
|
+
5. Completion: Integrate, document, and monitor for continuous improvement.
|
|
19
|
+
|
|
20
|
+
Use `new_task` to assign:
|
|
21
|
+
- spec-pseudocode
|
|
22
|
+
|
|
23
|
+
## Available SPARC Modes
|
|
24
|
+
|
|
25
|
+
- `/sparc-architect` - ๐๏ธ Architect
|
|
26
|
+
- `/sparc-code` - ๐ง Auto-Coder
|
|
27
|
+
- `/sparc-tdd` - ๐งช Tester (TDD)
|
|
28
|
+
- `/sparc-debug` - ๐ชฒ Debugger
|
|
29
|
+
- `/sparc-security-review` - ๐ก๏ธ Security Reviewer
|
|
30
|
+
- `/sparc-docs-writer` - ๐ Documentation Writer
|
|
31
|
+
- `/sparc-integration` - ๐ System Integrator
|
|
32
|
+
- `/sparc-post-deployment-monitoring-mode` - ๐ Deployment Monitor
|
|
33
|
+
- `/sparc-refinement-optimization-mode` - ๐งน Optimizer
|
|
34
|
+
- `/sparc-ask` - โAsk
|
|
35
|
+
- `/sparc-devops` - ๐ DevOps
|
|
36
|
+
- `/sparc-tutorial` - ๐ SPARC Tutorial
|
|
37
|
+
- `/sparc-supabase-admin` - ๐ Supabase Admin
|
|
38
|
+
- `/sparc-spec-pseudocode` - ๐ Specification Writer
|
|
39
|
+
- `/sparc-mcp` - โพ๏ธ MCP Integration
|
|
40
|
+
- `/sparc-sparc` - โก๏ธ SPARC Orchestrator
|
|
41
|
+
|
|
42
|
+
## Quick Start
|
|
43
|
+
|
|
44
|
+
### Option 1: Using MCP Tools (Preferred in Claude Code)
|
|
45
|
+
```javascript
|
|
46
|
+
// Run SPARC orchestrator (default)
|
|
47
|
+
mcp__claude-flow__sparc_mode {
|
|
48
|
+
mode: "sparc",
|
|
49
|
+
task_description: "build complete authentication system"
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Run a specific mode
|
|
53
|
+
mcp__claude-flow__sparc_mode {
|
|
54
|
+
mode: "architect",
|
|
55
|
+
task_description: "design API structure"
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// TDD workflow
|
|
59
|
+
mcp__claude-flow__sparc_mode {
|
|
60
|
+
mode: "tdd",
|
|
61
|
+
task_description: "implement user authentication",
|
|
62
|
+
options: {workflow: "full"}
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Option 2: Using NPX CLI (Fallback when MCP not available)
|
|
67
|
+
```bash
|
|
68
|
+
# Run SPARC orchestrator (default)
|
|
69
|
+
npx claude-flow sparc "build complete authentication system"
|
|
70
|
+
|
|
71
|
+
# Run a specific mode
|
|
72
|
+
npx claude-flow sparc run architect "design API structure"
|
|
73
|
+
npx claude-flow sparc run tdd "implement user service"
|
|
74
|
+
|
|
75
|
+
# Execute full TDD workflow
|
|
76
|
+
npx claude-flow sparc tdd "implement user authentication"
|
|
77
|
+
|
|
78
|
+
# List all modes with details
|
|
79
|
+
npx claude-flow sparc modes --verbose
|
|
80
|
+
|
|
81
|
+
# For alpha features
|
|
82
|
+
npx claude-flow@alpha sparc run <mode> "your task"
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Option 3: Local Installation
|
|
86
|
+
```bash
|
|
87
|
+
# If claude-flow is installed locally
|
|
88
|
+
./claude-flow sparc "build complete authentication system"
|
|
89
|
+
./claude-flow sparc run architect "design API structure"
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## SPARC Methodology Phases
|
|
93
|
+
|
|
94
|
+
1. **๐ Specification**: Define requirements, constraints, and acceptance criteria
|
|
95
|
+
2. **๐ง Pseudocode**: Create detailed logic flows and algorithmic planning
|
|
96
|
+
3. **๐๏ธ Architecture**: Design system structure, APIs, and component boundaries
|
|
97
|
+
4. **๐ Refinement**: Implement with TDD (Red-Green-Refactor cycle)
|
|
98
|
+
5. **โ
Completion**: Integrate, document, and validate against requirements
|
|
99
|
+
|
|
100
|
+
## Memory Integration
|
|
101
|
+
|
|
102
|
+
### Using MCP Tools (Preferred)
|
|
103
|
+
```javascript
|
|
104
|
+
// Store specifications
|
|
105
|
+
mcp__claude-flow__memory_usage {
|
|
106
|
+
action: "store",
|
|
107
|
+
key: "spec_auth",
|
|
108
|
+
value: "OAuth2 + JWT requirements",
|
|
109
|
+
namespace: "spec"
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Store architectural decisions
|
|
113
|
+
mcp__claude-flow__memory_usage {
|
|
114
|
+
action: "store",
|
|
115
|
+
key: "arch_decisions",
|
|
116
|
+
value: "Microservices with API Gateway",
|
|
117
|
+
namespace: "architecture"
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Using NPX CLI (Fallback)
|
|
122
|
+
```bash
|
|
123
|
+
# Store specifications
|
|
124
|
+
npx claude-flow memory store "spec_auth" "OAuth2 + JWT requirements" --namespace spec
|
|
125
|
+
|
|
126
|
+
# Store architectural decisions
|
|
127
|
+
./claude-flow memory store "arch_api" "RESTful microservices design" --namespace arch
|
|
128
|
+
|
|
129
|
+
# Query previous work
|
|
130
|
+
./claude-flow memory query "authentication" --limit 10
|
|
131
|
+
|
|
132
|
+
# Export project memory
|
|
133
|
+
./claude-flow memory export sparc-project-backup.json
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Advanced Swarm Mode
|
|
137
|
+
|
|
138
|
+
For complex tasks requiring multiple agents with timeout-free execution:
|
|
139
|
+
```bash
|
|
140
|
+
# Development swarm with monitoring
|
|
141
|
+
./claude-flow swarm "Build e-commerce platform" --strategy development --monitor --review
|
|
142
|
+
|
|
143
|
+
# Background optimization swarm
|
|
144
|
+
./claude-flow swarm "Optimize system performance" --strategy optimization --background
|
|
145
|
+
|
|
146
|
+
# Distributed research swarm
|
|
147
|
+
./claude-flow swarm "Analyze market trends" --strategy research --distributed --ui
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## Non-Interactive Mode
|
|
151
|
+
|
|
152
|
+
For CI/CD integration and automation:
|
|
153
|
+
```bash
|
|
154
|
+
./claude-flow sparc run code "implement API" --non-interactive
|
|
155
|
+
./claude-flow sparc tdd "user tests" --non-interactive --enable-permissions
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Best Practices
|
|
159
|
+
|
|
160
|
+
โ
**Modular Design**: Keep files under 500 lines
|
|
161
|
+
โ
**Environment Safety**: Never hardcode secrets or env values
|
|
162
|
+
โ
**Test-First**: Always write tests before implementation
|
|
163
|
+
โ
**Memory Usage**: Store important decisions and context
|
|
164
|
+
โ
**Task Completion**: All tasks should end with `attempt_completion`
|
|
165
|
+
|
|
166
|
+
See `/claude-flow-help` for all available commands.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# model-update
|
|
2
|
+
|
|
3
|
+
Update neural models with new data.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
```bash
|
|
7
|
+
npx claude-flow training model-update [options]
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
- `--model <name>` - Model to update
|
|
12
|
+
- `--incremental` - Incremental update
|
|
13
|
+
- `--validate` - Validate after update
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
```bash
|
|
17
|
+
# Update all models
|
|
18
|
+
npx claude-flow training model-update
|
|
19
|
+
|
|
20
|
+
# Specific model
|
|
21
|
+
npx claude-flow training model-update --model agent-selector
|
|
22
|
+
|
|
23
|
+
# Incremental with validation
|
|
24
|
+
npx claude-flow training model-update --incremental --validate
|
|
25
|
+
```
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# neural-train
|
|
2
|
+
|
|
3
|
+
Train neural patterns from operations.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
```bash
|
|
7
|
+
npx claude-flow training neural-train [options]
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
- `--data <source>` - Training data source
|
|
12
|
+
- `--model <name>` - Target model
|
|
13
|
+
- `--epochs <n>` - Training epochs
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
```bash
|
|
17
|
+
# Train from recent ops
|
|
18
|
+
npx claude-flow training neural-train --data recent
|
|
19
|
+
|
|
20
|
+
# Specific model
|
|
21
|
+
npx claude-flow training neural-train --model task-predictor
|
|
22
|
+
|
|
23
|
+
# Custom epochs
|
|
24
|
+
npx claude-flow training neural-train --epochs 100
|
|
25
|
+
```
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# pattern-learn
|
|
2
|
+
|
|
3
|
+
Learn patterns from successful operations.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
```bash
|
|
7
|
+
npx claude-flow training pattern-learn [options]
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
- `--source <type>` - Pattern source
|
|
12
|
+
- `--threshold <score>` - Success threshold
|
|
13
|
+
- `--save <name>` - Save pattern set
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
```bash
|
|
17
|
+
# Learn from all ops
|
|
18
|
+
npx claude-flow training pattern-learn
|
|
19
|
+
|
|
20
|
+
# High success only
|
|
21
|
+
npx claude-flow training pattern-learn --threshold 0.9
|
|
22
|
+
|
|
23
|
+
# Save patterns
|
|
24
|
+
npx claude-flow training pattern-learn --save optimal-patterns
|
|
25
|
+
```
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# workflow-create
|
|
2
|
+
|
|
3
|
+
Create reusable workflow templates.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
```bash
|
|
7
|
+
npx claude-flow workflow create [options]
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
- `--name <name>` - Workflow name
|
|
12
|
+
- `--from-history` - Create from history
|
|
13
|
+
- `--interactive` - Interactive creation
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
```bash
|
|
17
|
+
# Create workflow
|
|
18
|
+
npx claude-flow workflow create --name "deploy-api"
|
|
19
|
+
|
|
20
|
+
# From history
|
|
21
|
+
npx claude-flow workflow create --name "test-suite" --from-history
|
|
22
|
+
|
|
23
|
+
# Interactive mode
|
|
24
|
+
npx claude-flow workflow create --interactive
|
|
25
|
+
```
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# workflow-execute
|
|
2
|
+
|
|
3
|
+
Execute saved workflows.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
```bash
|
|
7
|
+
npx claude-flow workflow execute [options]
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
- `--name <name>` - Workflow name
|
|
12
|
+
- `--params <json>` - Workflow parameters
|
|
13
|
+
- `--dry-run` - Preview execution
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
```bash
|
|
17
|
+
# Execute workflow
|
|
18
|
+
npx claude-flow workflow execute --name "deploy-api"
|
|
19
|
+
|
|
20
|
+
# With parameters
|
|
21
|
+
npx claude-flow workflow execute --name "test-suite" --params '{"env": "staging"}'
|
|
22
|
+
|
|
23
|
+
# Dry run
|
|
24
|
+
npx claude-flow workflow execute --name "deploy-api" --dry-run
|
|
25
|
+
```
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# workflow-export
|
|
2
|
+
|
|
3
|
+
Export workflows for sharing.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
```bash
|
|
7
|
+
npx claude-flow workflow export [options]
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
- `--name <name>` - Workflow to export
|
|
12
|
+
- `--format <type>` - Export format
|
|
13
|
+
- `--include-history` - Include execution history
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
```bash
|
|
17
|
+
# Export workflow
|
|
18
|
+
npx claude-flow workflow export --name "deploy-api"
|
|
19
|
+
|
|
20
|
+
# As YAML
|
|
21
|
+
npx claude-flow workflow export --name "test-suite" --format yaml
|
|
22
|
+
|
|
23
|
+
# With history
|
|
24
|
+
npx claude-flow workflow export --name "deploy-api" --include-history
|
|
25
|
+
```
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Setup GitHub integration for Claude Flow
|
|
3
|
+
|
|
4
|
+
echo "๐ Setting up GitHub integration..."
|
|
5
|
+
|
|
6
|
+
# Check for gh CLI
|
|
7
|
+
if ! command -v gh &> /dev/null; then
|
|
8
|
+
echo "โ ๏ธ GitHub CLI (gh) not found"
|
|
9
|
+
echo "Install from: https://cli.github.com/"
|
|
10
|
+
echo "Continuing without GitHub features..."
|
|
11
|
+
else
|
|
12
|
+
echo "โ
GitHub CLI found"
|
|
13
|
+
|
|
14
|
+
# Check auth status
|
|
15
|
+
if gh auth status &> /dev/null; then
|
|
16
|
+
echo "โ
GitHub authentication active"
|
|
17
|
+
else
|
|
18
|
+
echo "โ ๏ธ Not authenticated with GitHub"
|
|
19
|
+
echo "Run: gh auth login"
|
|
20
|
+
fi
|
|
21
|
+
fi
|
|
22
|
+
|
|
23
|
+
echo ""
|
|
24
|
+
echo "๐ฆ GitHub swarm commands available:"
|
|
25
|
+
echo " - npx claude-flow github swarm"
|
|
26
|
+
echo " - npx claude-flow repo analyze"
|
|
27
|
+
echo " - npx claude-flow pr enhance"
|
|
28
|
+
echo " - npx claude-flow issue triage"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Quick start guide for Claude Flow
|
|
3
|
+
|
|
4
|
+
echo "๐ Claude Flow Quick Start"
|
|
5
|
+
echo "=========================="
|
|
6
|
+
echo ""
|
|
7
|
+
echo "1. Initialize a swarm:"
|
|
8
|
+
echo " npx claude-flow swarm init --topology hierarchical"
|
|
9
|
+
echo ""
|
|
10
|
+
echo "2. Spawn agents:"
|
|
11
|
+
echo " npx claude-flow agent spawn --type coder --name "API Developer""
|
|
12
|
+
echo ""
|
|
13
|
+
echo "3. Orchestrate tasks:"
|
|
14
|
+
echo " npx claude-flow task orchestrate --task "Build REST API""
|
|
15
|
+
echo ""
|
|
16
|
+
echo "4. Monitor progress:"
|
|
17
|
+
echo " npx claude-flow swarm monitor"
|
|
18
|
+
echo ""
|
|
19
|
+
echo "๐ For more examples, see .claude/commands/"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Setup MCP server for Claude Flow
|
|
3
|
+
|
|
4
|
+
echo "๐ Setting up Claude Flow MCP server..."
|
|
5
|
+
|
|
6
|
+
# Check if claude command exists
|
|
7
|
+
if ! command -v claude &> /dev/null; then
|
|
8
|
+
echo "โ Error: Claude Code CLI not found"
|
|
9
|
+
echo "Please install Claude Code first"
|
|
10
|
+
exit 1
|
|
11
|
+
fi
|
|
12
|
+
|
|
13
|
+
# Add MCP server
|
|
14
|
+
echo "๐ฆ Adding Claude Flow MCP server..."
|
|
15
|
+
claude mcp add claude-flow npx claude-flow mcp start
|
|
16
|
+
|
|
17
|
+
echo "โ
MCP server setup complete!"
|
|
18
|
+
echo "๐ฏ You can now use mcp__claude-flow__ tools in Claude Code"
|