@claude-flow/cli 3.0.0-alpha.35 → 3.0.0-alpha.37
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/agents/core/coder.md +67 -30
- package/.claude/agents/core/planner.md +72 -34
- package/.claude/agents/core/researcher.md +68 -30
- package/.claude/agents/core/reviewer.md +70 -33
- package/.claude/agents/core/tester.md +64 -28
- package/.claude/agents/github/code-review-swarm.md +2 -2
- package/.claude/agents/github/multi-repo-swarm.md +23 -23
- package/.claude/agents/github/project-board-sync.md +28 -28
- package/.claude/agents/github/release-swarm.md +32 -32
- package/.claude/agents/github/repo-architect.md +7 -7
- package/.claude/agents/github/swarm-issue.md +26 -26
- package/.claude/agents/github/swarm-pr.md +18 -18
- package/.claude/agents/github/workflow-automation.md +26 -26
- package/.claude/agents/sona/sona-learning-optimizer.md +153 -395
- package/.claude/agents/v3/adr-architect.md +184 -0
- package/.claude/agents/v3/claims-authorizer.md +208 -0
- package/.claude/agents/v3/collective-intelligence-coordinator.md +993 -0
- package/.claude/agents/v3/ddd-domain-expert.md +220 -0
- package/.claude/agents/v3/memory-specialist.md +995 -0
- package/.claude/agents/v3/performance-engineer.md +1233 -0
- package/.claude/agents/v3/reasoningbank-learner.md +213 -0
- package/.claude/agents/v3/security-architect.md +867 -0
- package/.claude/agents/v3/security-auditor.md +771 -0
- package/.claude/agents/v3/sparc-orchestrator.md +182 -0
- package/.claude/agents/v3/swarm-memory-manager.md +157 -0
- package/.claude/agents/v3/v3-integration-architect.md +205 -0
- package/dist/src/init/executor.d.ts.map +1 -1
- package/dist/src/init/executor.js +25 -0
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/settings-generator.d.ts.map +1 -1
- package/dist/src/init/settings-generator.js +9 -7
- package/dist/src/init/settings-generator.js.map +1 -1
- package/dist/src/init/types.d.ts +6 -0
- package/dist/src/init/types.d.ts.map +1 -1
- package/dist/src/init/types.js +8 -2
- package/dist/src/init/types.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -44,14 +44,14 @@ Transform GitHub Issues into intelligent swarm tasks, enabling automatic task de
|
|
|
44
44
|
ISSUE_DATA=$(gh issue view 456 --json title,body,labels,assignees,comments)
|
|
45
45
|
|
|
46
46
|
# Create swarm from issue
|
|
47
|
-
npx
|
|
47
|
+
npx claude-flow@v3alpha github issue-to-swarm 456 \
|
|
48
48
|
--issue-data "$ISSUE_DATA" \
|
|
49
49
|
--auto-decompose \
|
|
50
50
|
--assign-agents
|
|
51
51
|
|
|
52
52
|
# Batch process multiple issues
|
|
53
53
|
ISSUES=$(gh issue list --label "swarm-ready" --json number,title,body,labels)
|
|
54
|
-
npx
|
|
54
|
+
npx claude-flow@v3alpha github issues-batch \
|
|
55
55
|
--issues "$ISSUES" \
|
|
56
56
|
--parallel
|
|
57
57
|
|
|
@@ -132,7 +132,7 @@ body:
|
|
|
132
132
|
### Dynamic Agent Assignment
|
|
133
133
|
```bash
|
|
134
134
|
# Assign agents based on issue content
|
|
135
|
-
npx
|
|
135
|
+
npx claude-flow@v3alpha github issue-analyze 456 \
|
|
136
136
|
--suggest-agents \
|
|
137
137
|
--estimate-complexity \
|
|
138
138
|
--create-subtasks
|
|
@@ -155,7 +155,7 @@ REFERENCES=$(gh issue view 456 --json body --jq '.body' | \
|
|
|
155
155
|
done | jq -s '.')
|
|
156
156
|
|
|
157
157
|
# Initialize swarm
|
|
158
|
-
npx
|
|
158
|
+
npx claude-flow@v3alpha github issue-init 456 \
|
|
159
159
|
--issue-data "$ISSUE" \
|
|
160
160
|
--references "$REFERENCES" \
|
|
161
161
|
--load-comments \
|
|
@@ -173,7 +173,7 @@ gh issue comment 456 --body "🐝 Swarm initialized for this issue"
|
|
|
173
173
|
ISSUE_BODY=$(gh issue view 456 --json body --jq '.body')
|
|
174
174
|
|
|
175
175
|
# Decompose into subtasks
|
|
176
|
-
SUBTASKS=$(npx
|
|
176
|
+
SUBTASKS=$(npx claude-flow@v3alpha github issue-decompose 456 \
|
|
177
177
|
--body "$ISSUE_BODY" \
|
|
178
178
|
--max-subtasks 10 \
|
|
179
179
|
--assign-priorities)
|
|
@@ -208,11 +208,11 @@ done
|
|
|
208
208
|
CURRENT=$(gh issue view 456 --json body,labels)
|
|
209
209
|
|
|
210
210
|
# Get swarm progress
|
|
211
|
-
PROGRESS=$(npx
|
|
211
|
+
PROGRESS=$(npx claude-flow@v3alpha github issue-progress 456)
|
|
212
212
|
|
|
213
213
|
# Update checklist in issue body
|
|
214
214
|
UPDATED_BODY=$(echo "$CURRENT" | jq -r '.body' | \
|
|
215
|
-
npx
|
|
215
|
+
npx claude-flow@v3alpha github update-checklist --progress "$PROGRESS")
|
|
216
216
|
|
|
217
217
|
# Edit issue with updated body
|
|
218
218
|
gh issue edit 456 --body "$UPDATED_BODY"
|
|
@@ -249,7 +249,7 @@ fi
|
|
|
249
249
|
### 1. Issue Dependencies
|
|
250
250
|
```bash
|
|
251
251
|
# Handle issue dependencies
|
|
252
|
-
npx
|
|
252
|
+
npx claude-flow@v3alpha github issue-deps 456 \
|
|
253
253
|
--resolve-order \
|
|
254
254
|
--parallel-safe \
|
|
255
255
|
--update-blocking
|
|
@@ -258,7 +258,7 @@ npx ruv-swarm github issue-deps 456 \
|
|
|
258
258
|
### 2. Epic Management
|
|
259
259
|
```bash
|
|
260
260
|
# Coordinate epic-level swarms
|
|
261
|
-
npx
|
|
261
|
+
npx claude-flow@v3alpha github epic-swarm \
|
|
262
262
|
--epic 123 \
|
|
263
263
|
--child-issues "456,457,458" \
|
|
264
264
|
--orchestrate
|
|
@@ -267,7 +267,7 @@ npx ruv-swarm github epic-swarm \
|
|
|
267
267
|
### 3. Issue Templates
|
|
268
268
|
```bash
|
|
269
269
|
# Generate issue from swarm analysis
|
|
270
|
-
npx
|
|
270
|
+
npx claude-flow@v3alpha github create-issues \
|
|
271
271
|
--from-analysis \
|
|
272
272
|
--template "bug-report" \
|
|
273
273
|
--auto-assign
|
|
@@ -292,14 +292,14 @@ jobs:
|
|
|
292
292
|
with:
|
|
293
293
|
command: |
|
|
294
294
|
if [[ "${{ github.event.label.name }}" == "swarm-ready" ]]; then
|
|
295
|
-
npx
|
|
295
|
+
npx claude-flow@v3alpha github issue-init ${{ github.event.issue.number }}
|
|
296
296
|
fi
|
|
297
297
|
```
|
|
298
298
|
|
|
299
299
|
### Issue Board Integration
|
|
300
300
|
```bash
|
|
301
301
|
# Sync with project board
|
|
302
|
-
npx
|
|
302
|
+
npx claude-flow@v3alpha github issue-board-sync \
|
|
303
303
|
--project "Development" \
|
|
304
304
|
--column-mapping '{
|
|
305
305
|
"To Do": "pending",
|
|
@@ -313,7 +313,7 @@ npx ruv-swarm github issue-board-sync \
|
|
|
313
313
|
### Bug Reports
|
|
314
314
|
```bash
|
|
315
315
|
# Specialized bug handling
|
|
316
|
-
npx
|
|
316
|
+
npx claude-flow@v3alpha github bug-swarm 456 \
|
|
317
317
|
--reproduce \
|
|
318
318
|
--isolate \
|
|
319
319
|
--fix \
|
|
@@ -323,7 +323,7 @@ npx ruv-swarm github bug-swarm 456 \
|
|
|
323
323
|
### Feature Requests
|
|
324
324
|
```bash
|
|
325
325
|
# Feature implementation swarm
|
|
326
|
-
npx
|
|
326
|
+
npx claude-flow@v3alpha github feature-swarm 456 \
|
|
327
327
|
--design \
|
|
328
328
|
--implement \
|
|
329
329
|
--document \
|
|
@@ -333,7 +333,7 @@ npx ruv-swarm github feature-swarm 456 \
|
|
|
333
333
|
### Technical Debt
|
|
334
334
|
```bash
|
|
335
335
|
# Refactoring swarm
|
|
336
|
-
npx
|
|
336
|
+
npx claude-flow@v3alpha github debt-swarm 456 \
|
|
337
337
|
--analyze-impact \
|
|
338
338
|
--plan-migration \
|
|
339
339
|
--execute \
|
|
@@ -356,7 +356,7 @@ echo "$STALE_ISSUES" | jq -r '.number' | while read -r num; do
|
|
|
356
356
|
ISSUE=$(gh issue view $num --json title,body,comments,labels)
|
|
357
357
|
|
|
358
358
|
# Analyze with swarm
|
|
359
|
-
ACTION=$(npx
|
|
359
|
+
ACTION=$(npx claude-flow@v3alpha github analyze-stale \
|
|
360
360
|
--issue "$ISSUE" \
|
|
361
361
|
--suggest-action)
|
|
362
362
|
|
|
@@ -389,7 +389,7 @@ gh issue list --label stale --state open --json number,updatedAt \
|
|
|
389
389
|
### Issue Triage
|
|
390
390
|
```bash
|
|
391
391
|
# Automated triage system
|
|
392
|
-
npx
|
|
392
|
+
npx claude-flow@v3alpha github triage \
|
|
393
393
|
--unlabeled \
|
|
394
394
|
--analyze-content \
|
|
395
395
|
--suggest-labels \
|
|
@@ -399,7 +399,7 @@ npx ruv-swarm github triage \
|
|
|
399
399
|
### Duplicate Detection
|
|
400
400
|
```bash
|
|
401
401
|
# Find duplicate issues
|
|
402
|
-
npx
|
|
402
|
+
npx claude-flow@v3alpha github find-duplicates \
|
|
403
403
|
--threshold 0.8 \
|
|
404
404
|
--link-related \
|
|
405
405
|
--close-duplicates
|
|
@@ -410,7 +410,7 @@ npx ruv-swarm github find-duplicates \
|
|
|
410
410
|
### 1. Issue-PR Linking
|
|
411
411
|
```bash
|
|
412
412
|
# Link issues to PRs automatically
|
|
413
|
-
npx
|
|
413
|
+
npx claude-flow@v3alpha github link-pr \
|
|
414
414
|
--issue 456 \
|
|
415
415
|
--pr 789 \
|
|
416
416
|
--update-both
|
|
@@ -419,7 +419,7 @@ npx ruv-swarm github link-pr \
|
|
|
419
419
|
### 2. Milestone Coordination
|
|
420
420
|
```bash
|
|
421
421
|
# Coordinate milestone swarms
|
|
422
|
-
npx
|
|
422
|
+
npx claude-flow@v3alpha github milestone-swarm \
|
|
423
423
|
--milestone "v2.0" \
|
|
424
424
|
--parallel-issues \
|
|
425
425
|
--track-progress
|
|
@@ -428,7 +428,7 @@ npx ruv-swarm github milestone-swarm \
|
|
|
428
428
|
### 3. Cross-Repo Issues
|
|
429
429
|
```bash
|
|
430
430
|
# Handle issues across repositories
|
|
431
|
-
npx
|
|
431
|
+
npx claude-flow@v3alpha github cross-repo \
|
|
432
432
|
--issue "org/repo#456" \
|
|
433
433
|
--related "org/other-repo#123" \
|
|
434
434
|
--coordinate
|
|
@@ -439,7 +439,7 @@ npx ruv-swarm github cross-repo \
|
|
|
439
439
|
### Issue Resolution Time
|
|
440
440
|
```bash
|
|
441
441
|
# Analyze swarm performance
|
|
442
|
-
npx
|
|
442
|
+
npx claude-flow@v3alpha github issue-metrics \
|
|
443
443
|
--issue 456 \
|
|
444
444
|
--metrics "time-to-close,agent-efficiency,subtask-completion"
|
|
445
445
|
```
|
|
@@ -447,7 +447,7 @@ npx ruv-swarm github issue-metrics \
|
|
|
447
447
|
### Swarm Effectiveness
|
|
448
448
|
```bash
|
|
449
449
|
# Generate effectiveness report
|
|
450
|
-
npx
|
|
450
|
+
npx claude-flow@v3alpha github effectiveness \
|
|
451
451
|
--issues "closed:>2024-01-01" \
|
|
452
452
|
--compare "with-swarm,without-swarm"
|
|
453
453
|
```
|
|
@@ -484,7 +484,7 @@ npx ruv-swarm github effectiveness \
|
|
|
484
484
|
### Complex Bug Investigation
|
|
485
485
|
```bash
|
|
486
486
|
# Issue #789: Memory leak in production
|
|
487
|
-
npx
|
|
487
|
+
npx claude-flow@v3alpha github issue-init 789 \
|
|
488
488
|
--topology hierarchical \
|
|
489
489
|
--agents "debugger,analyst,tester,monitor" \
|
|
490
490
|
--priority critical \
|
|
@@ -494,7 +494,7 @@ npx ruv-swarm github issue-init 789 \
|
|
|
494
494
|
### Feature Implementation
|
|
495
495
|
```bash
|
|
496
496
|
# Issue #234: Add OAuth integration
|
|
497
|
-
npx
|
|
497
|
+
npx claude-flow@v3alpha github issue-init 234 \
|
|
498
498
|
--topology mesh \
|
|
499
499
|
--agents "architect,coder,security,tester" \
|
|
500
500
|
--create-design-doc \
|
|
@@ -504,7 +504,7 @@ npx ruv-swarm github issue-init 234 \
|
|
|
504
504
|
### Documentation Update
|
|
505
505
|
```bash
|
|
506
506
|
# Issue #567: Update API documentation
|
|
507
|
-
npx
|
|
507
|
+
npx claude-flow@v3alpha github issue-init 567 \
|
|
508
508
|
--topology ring \
|
|
509
509
|
--agents "researcher,writer,reviewer" \
|
|
510
510
|
--check-links \
|
|
@@ -44,14 +44,14 @@ Create and manage AI swarms directly from GitHub Pull Requests, enabling seamles
|
|
|
44
44
|
### 1. PR-Based Swarm Creation
|
|
45
45
|
```bash
|
|
46
46
|
# Create swarm from PR description using gh CLI
|
|
47
|
-
gh pr view 123 --json body,title,labels,files | npx
|
|
47
|
+
gh pr view 123 --json body,title,labels,files | npx claude-flow@v3alpha swarm create-from-pr
|
|
48
48
|
|
|
49
49
|
# Auto-spawn agents based on PR labels
|
|
50
|
-
gh pr view 123 --json labels | npx
|
|
50
|
+
gh pr view 123 --json labels | npx claude-flow@v3alpha swarm auto-spawn
|
|
51
51
|
|
|
52
52
|
# Create swarm with PR context
|
|
53
53
|
gh pr view 123 --json body,labels,author,assignees | \
|
|
54
|
-
npx
|
|
54
|
+
npx claude-flow@v3alpha swarm init --from-pr-data
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
### 2. PR Comment Commands
|
|
@@ -84,7 +84,7 @@ jobs:
|
|
|
84
84
|
- name: Handle Swarm Command
|
|
85
85
|
run: |
|
|
86
86
|
if [[ "${{ github.event.comment.body }}" == /swarm* ]]; then
|
|
87
|
-
npx
|
|
87
|
+
npx claude-flow@v3alpha github handle-comment \
|
|
88
88
|
--pr ${{ github.event.pull_request.number }} \
|
|
89
89
|
--comment "${{ github.event.comment.body }}"
|
|
90
90
|
fi
|
|
@@ -112,7 +112,7 @@ Map PR labels to agent types:
|
|
|
112
112
|
# Small PR (< 100 lines): ring topology
|
|
113
113
|
# Medium PR (100-500 lines): mesh topology
|
|
114
114
|
# Large PR (> 500 lines): hierarchical topology
|
|
115
|
-
npx
|
|
115
|
+
npx claude-flow@v3alpha github pr-topology --pr 123
|
|
116
116
|
```
|
|
117
117
|
|
|
118
118
|
## PR Swarm Commands
|
|
@@ -123,7 +123,7 @@ npx ruv-swarm github pr-topology --pr 123
|
|
|
123
123
|
PR_DIFF=$(gh pr diff 123)
|
|
124
124
|
PR_INFO=$(gh pr view 123 --json title,body,labels,files,reviews)
|
|
125
125
|
|
|
126
|
-
npx
|
|
126
|
+
npx claude-flow@v3alpha github pr-init 123 \
|
|
127
127
|
--auto-agents \
|
|
128
128
|
--pr-data "$PR_INFO" \
|
|
129
129
|
--diff "$PR_DIFF" \
|
|
@@ -133,7 +133,7 @@ npx ruv-swarm github pr-init 123 \
|
|
|
133
133
|
### Progress Updates
|
|
134
134
|
```bash
|
|
135
135
|
# Post swarm progress to PR using gh CLI
|
|
136
|
-
PROGRESS=$(npx
|
|
136
|
+
PROGRESS=$(npx claude-flow@v3alpha github pr-progress 123 --format markdown)
|
|
137
137
|
|
|
138
138
|
gh pr comment 123 --body "$PROGRESS"
|
|
139
139
|
|
|
@@ -149,7 +149,7 @@ fi
|
|
|
149
149
|
PR_FILES=$(gh pr view 123 --json files --jq '.files[].path')
|
|
150
150
|
|
|
151
151
|
# Run swarm review
|
|
152
|
-
REVIEW_RESULTS=$(npx
|
|
152
|
+
REVIEW_RESULTS=$(npx claude-flow@v3alpha github pr-review 123 \
|
|
153
153
|
--agents "security,performance,style" \
|
|
154
154
|
--files "$PR_FILES")
|
|
155
155
|
|
|
@@ -168,7 +168,7 @@ done
|
|
|
168
168
|
### 1. Multi-PR Swarm Coordination
|
|
169
169
|
```bash
|
|
170
170
|
# Coordinate swarms across related PRs
|
|
171
|
-
npx
|
|
171
|
+
npx claude-flow@v3alpha github multi-pr \
|
|
172
172
|
--prs "123,124,125" \
|
|
173
173
|
--strategy "parallel" \
|
|
174
174
|
--share-memory
|
|
@@ -177,7 +177,7 @@ npx ruv-swarm github multi-pr \
|
|
|
177
177
|
### 2. PR Dependency Analysis
|
|
178
178
|
```bash
|
|
179
179
|
# Analyze PR dependencies
|
|
180
|
-
npx
|
|
180
|
+
npx claude-flow@v3alpha github pr-deps 123 \
|
|
181
181
|
--spawn-agents \
|
|
182
182
|
--resolve-conflicts
|
|
183
183
|
```
|
|
@@ -185,7 +185,7 @@ npx ruv-swarm github pr-deps 123 \
|
|
|
185
185
|
### 3. Automated PR Fixes
|
|
186
186
|
```bash
|
|
187
187
|
# Auto-fix PR issues
|
|
188
|
-
npx
|
|
188
|
+
npx claude-flow@v3alpha github pr-fix 123 \
|
|
189
189
|
--issues "lint,test-failures" \
|
|
190
190
|
--commit-fixes
|
|
191
191
|
```
|
|
@@ -220,7 +220,7 @@ required_status_checks:
|
|
|
220
220
|
```bash
|
|
221
221
|
# Auto-merge when swarm completes using gh CLI
|
|
222
222
|
# Check swarm completion status
|
|
223
|
-
SWARM_STATUS=$(npx
|
|
223
|
+
SWARM_STATUS=$(npx claude-flow@v3alpha github pr-status 123)
|
|
224
224
|
|
|
225
225
|
if [[ "$SWARM_STATUS" == "complete" ]]; then
|
|
226
226
|
# Check review requirements
|
|
@@ -246,7 +246,7 @@ createServer((req, res) => {
|
|
|
246
246
|
const event = JSON.parse(body);
|
|
247
247
|
|
|
248
248
|
if (event.action === 'opened' && event.pull_request) {
|
|
249
|
-
execSync(`npx
|
|
249
|
+
execSync(`npx claude-flow@v3alpha github pr-init ${event.pull_request.number}`);
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
res.writeHead(200);
|
|
@@ -260,7 +260,7 @@ createServer((req, res) => {
|
|
|
260
260
|
### Feature Development PR
|
|
261
261
|
```bash
|
|
262
262
|
# PR #456: Add user authentication
|
|
263
|
-
npx
|
|
263
|
+
npx claude-flow@v3alpha github pr-init 456 \
|
|
264
264
|
--topology hierarchical \
|
|
265
265
|
--agents "architect,coder,tester,security" \
|
|
266
266
|
--auto-assign-tasks
|
|
@@ -269,7 +269,7 @@ npx ruv-swarm github pr-init 456 \
|
|
|
269
269
|
### Bug Fix PR
|
|
270
270
|
```bash
|
|
271
271
|
# PR #789: Fix memory leak
|
|
272
|
-
npx
|
|
272
|
+
npx claude-flow@v3alpha github pr-init 789 \
|
|
273
273
|
--topology mesh \
|
|
274
274
|
--agents "debugger,analyst,tester" \
|
|
275
275
|
--priority high
|
|
@@ -278,7 +278,7 @@ npx ruv-swarm github pr-init 789 \
|
|
|
278
278
|
### Documentation PR
|
|
279
279
|
```bash
|
|
280
280
|
# PR #321: Update API docs
|
|
281
|
-
npx
|
|
281
|
+
npx claude-flow@v3alpha github pr-init 321 \
|
|
282
282
|
--topology ring \
|
|
283
283
|
--agents "researcher,writer,reviewer" \
|
|
284
284
|
--validate-links
|
|
@@ -289,7 +289,7 @@ npx ruv-swarm github pr-init 321 \
|
|
|
289
289
|
### PR Swarm Analytics
|
|
290
290
|
```bash
|
|
291
291
|
# Generate PR swarm report
|
|
292
|
-
npx
|
|
292
|
+
npx claude-flow@v3alpha github pr-report 123 \
|
|
293
293
|
--metrics "completion-time,agent-efficiency,token-usage" \
|
|
294
294
|
--format markdown
|
|
295
295
|
```
|
|
@@ -297,7 +297,7 @@ npx ruv-swarm github pr-report 123 \
|
|
|
297
297
|
### Dashboard Integration
|
|
298
298
|
```bash
|
|
299
299
|
# Export to GitHub Insights
|
|
300
|
-
npx
|
|
300
|
+
npx claude-flow@v3alpha github export-metrics \
|
|
301
301
|
--pr 123 \
|
|
302
302
|
--to-insights
|
|
303
303
|
```
|
|
@@ -330,7 +330,7 @@ jobs:
|
|
|
330
330
|
|
|
331
331
|
- name: Analyze Changes
|
|
332
332
|
run: |
|
|
333
|
-
npx
|
|
333
|
+
npx claude-flow@v3alpha actions analyze \
|
|
334
334
|
--commit ${{ github.sha }} \
|
|
335
335
|
--suggest-tests \
|
|
336
336
|
--optimize-pipeline
|
|
@@ -339,7 +339,7 @@ jobs:
|
|
|
339
339
|
### 2. Dynamic Workflow Generation
|
|
340
340
|
```bash
|
|
341
341
|
# Generate workflows based on code analysis
|
|
342
|
-
npx
|
|
342
|
+
npx claude-flow@v3alpha actions generate-workflow \
|
|
343
343
|
--analyze-codebase \
|
|
344
344
|
--detect-languages \
|
|
345
345
|
--create-optimal-pipeline
|
|
@@ -350,7 +350,7 @@ npx ruv-swarm actions generate-workflow \
|
|
|
350
350
|
# Smart test runner
|
|
351
351
|
- name: Swarm Test Selection
|
|
352
352
|
run: |
|
|
353
|
-
npx
|
|
353
|
+
npx claude-flow@v3alpha actions smart-test \
|
|
354
354
|
--changed-files ${{ steps.files.outputs.all }} \
|
|
355
355
|
--impact-analysis \
|
|
356
356
|
--parallel-safe
|
|
@@ -373,12 +373,12 @@ jobs:
|
|
|
373
373
|
- name: Detect Languages
|
|
374
374
|
id: detect
|
|
375
375
|
run: |
|
|
376
|
-
npx
|
|
376
|
+
npx claude-flow@v3alpha actions detect-stack \
|
|
377
377
|
--output json > stack.json
|
|
378
378
|
|
|
379
379
|
- name: Dynamic Build Matrix
|
|
380
380
|
run: |
|
|
381
|
-
npx
|
|
381
|
+
npx claude-flow@v3alpha actions create-matrix \
|
|
382
382
|
--from stack.json \
|
|
383
383
|
--parallel-builds
|
|
384
384
|
```
|
|
@@ -399,7 +399,7 @@ jobs:
|
|
|
399
399
|
- name: Security Analysis Swarm
|
|
400
400
|
run: |
|
|
401
401
|
# Use gh CLI for issue creation
|
|
402
|
-
SECURITY_ISSUES=$(npx
|
|
402
|
+
SECURITY_ISSUES=$(npx claude-flow@v3alpha actions security \
|
|
403
403
|
--deep-scan \
|
|
404
404
|
--format json)
|
|
405
405
|
|
|
@@ -420,7 +420,7 @@ jobs:
|
|
|
420
420
|
### Pipeline Optimization
|
|
421
421
|
```bash
|
|
422
422
|
# Optimize existing workflows
|
|
423
|
-
npx
|
|
423
|
+
npx claude-flow@v3alpha actions optimize \
|
|
424
424
|
--workflow ".github/workflows/ci.yml" \
|
|
425
425
|
--suggest-parallelization \
|
|
426
426
|
--reduce-redundancy \
|
|
@@ -431,7 +431,7 @@ npx ruv-swarm actions optimize \
|
|
|
431
431
|
```bash
|
|
432
432
|
# Analyze failed runs using gh CLI
|
|
433
433
|
gh run view ${{ github.run_id }} --json jobs,conclusion | \
|
|
434
|
-
npx
|
|
434
|
+
npx claude-flow@v3alpha actions analyze-failure \
|
|
435
435
|
--suggest-fixes \
|
|
436
436
|
--auto-retry-flaky
|
|
437
437
|
|
|
@@ -447,7 +447,7 @@ fi
|
|
|
447
447
|
### Resource Management
|
|
448
448
|
```bash
|
|
449
449
|
# Optimize resource usage
|
|
450
|
-
npx
|
|
450
|
+
npx claude-flow@v3alpha actions resources \
|
|
451
451
|
--analyze-usage \
|
|
452
452
|
--suggest-runners \
|
|
453
453
|
--cost-optimize
|
|
@@ -468,7 +468,7 @@ jobs:
|
|
|
468
468
|
steps:
|
|
469
469
|
- name: Diagnose and Fix
|
|
470
470
|
run: |
|
|
471
|
-
npx
|
|
471
|
+
npx claude-flow@v3alpha actions self-heal \
|
|
472
472
|
--run-id ${{ github.event.workflow_run.id }} \
|
|
473
473
|
--auto-fix-common \
|
|
474
474
|
--create-pr-complex
|
|
@@ -489,13 +489,13 @@ jobs:
|
|
|
489
489
|
- name: Analyze Risk
|
|
490
490
|
id: risk
|
|
491
491
|
run: |
|
|
492
|
-
npx
|
|
492
|
+
npx claude-flow@v3alpha actions deploy-risk \
|
|
493
493
|
--changes ${{ github.sha }} \
|
|
494
494
|
--history 30d
|
|
495
495
|
|
|
496
496
|
- name: Choose Strategy
|
|
497
497
|
run: |
|
|
498
|
-
npx
|
|
498
|
+
npx claude-flow@v3alpha actions deploy-strategy \
|
|
499
499
|
--risk ${{ steps.risk.outputs.level }} \
|
|
500
500
|
--auto-execute
|
|
501
501
|
```
|
|
@@ -512,7 +512,7 @@ jobs:
|
|
|
512
512
|
steps:
|
|
513
513
|
- name: Performance Analysis
|
|
514
514
|
run: |
|
|
515
|
-
npx
|
|
515
|
+
npx claude-flow@v3alpha actions perf-test \
|
|
516
516
|
--baseline main \
|
|
517
517
|
--threshold 10% \
|
|
518
518
|
--auto-profile-regression
|
|
@@ -558,7 +558,7 @@ jobs:
|
|
|
558
558
|
steps:
|
|
559
559
|
- id: set-matrix
|
|
560
560
|
run: |
|
|
561
|
-
MATRIX=$(npx
|
|
561
|
+
MATRIX=$(npx claude-flow@v3alpha actions test-matrix \
|
|
562
562
|
--detect-frameworks \
|
|
563
563
|
--optimize-coverage)
|
|
564
564
|
echo "matrix=${MATRIX}" >> $GITHUB_OUTPUT
|
|
@@ -572,7 +572,7 @@ jobs:
|
|
|
572
572
|
### Intelligent Parallelization
|
|
573
573
|
```bash
|
|
574
574
|
# Determine optimal parallelization
|
|
575
|
-
npx
|
|
575
|
+
npx claude-flow@v3alpha actions parallel-strategy \
|
|
576
576
|
--analyze-dependencies \
|
|
577
577
|
--time-estimates \
|
|
578
578
|
--cost-aware
|
|
@@ -583,7 +583,7 @@ npx ruv-swarm actions parallel-strategy \
|
|
|
583
583
|
### Workflow Analytics
|
|
584
584
|
```bash
|
|
585
585
|
# Analyze workflow performance
|
|
586
|
-
npx
|
|
586
|
+
npx claude-flow@v3alpha actions analytics \
|
|
587
587
|
--workflow "ci.yml" \
|
|
588
588
|
--period 30d \
|
|
589
589
|
--identify-bottlenecks \
|
|
@@ -593,7 +593,7 @@ npx ruv-swarm actions analytics \
|
|
|
593
593
|
### Cost Optimization
|
|
594
594
|
```bash
|
|
595
595
|
# Optimize GitHub Actions costs
|
|
596
|
-
npx
|
|
596
|
+
npx claude-flow@v3alpha actions cost-optimize \
|
|
597
597
|
--analyze-usage \
|
|
598
598
|
--suggest-caching \
|
|
599
599
|
--recommend-self-hosted
|
|
@@ -602,7 +602,7 @@ npx ruv-swarm actions cost-optimize \
|
|
|
602
602
|
### Failure Patterns
|
|
603
603
|
```bash
|
|
604
604
|
# Identify failure patterns
|
|
605
|
-
npx
|
|
605
|
+
npx claude-flow@v3alpha actions failure-patterns \
|
|
606
606
|
--period 90d \
|
|
607
607
|
--classify-failures \
|
|
608
608
|
--suggest-preventions
|
|
@@ -625,7 +625,7 @@ jobs:
|
|
|
625
625
|
PR_DATA=$(gh pr view ${{ github.event.pull_request.number }} --json files,labels)
|
|
626
626
|
|
|
627
627
|
# Run validation with swarm
|
|
628
|
-
RESULTS=$(npx
|
|
628
|
+
RESULTS=$(npx claude-flow@v3alpha actions pr-validate \
|
|
629
629
|
--spawn-agents "linter,tester,security,docs" \
|
|
630
630
|
--parallel \
|
|
631
631
|
--pr-data "$PR_DATA")
|
|
@@ -648,7 +648,7 @@ jobs:
|
|
|
648
648
|
steps:
|
|
649
649
|
- name: Release Swarm
|
|
650
650
|
run: |
|
|
651
|
-
npx
|
|
651
|
+
npx claude-flow@v3alpha actions release \
|
|
652
652
|
--analyze-changes \
|
|
653
653
|
--generate-notes \
|
|
654
654
|
--create-artifacts \
|
|
@@ -668,7 +668,7 @@ jobs:
|
|
|
668
668
|
steps:
|
|
669
669
|
- name: Documentation Swarm
|
|
670
670
|
run: |
|
|
671
|
-
npx
|
|
671
|
+
npx claude-flow@v3alpha actions update-docs \
|
|
672
672
|
--analyze-changes \
|
|
673
673
|
--update-api-docs \
|
|
674
674
|
--check-examples
|
|
@@ -699,7 +699,7 @@ jobs:
|
|
|
699
699
|
### Predictive Failures
|
|
700
700
|
```bash
|
|
701
701
|
# Predict potential failures
|
|
702
|
-
npx
|
|
702
|
+
npx claude-flow@v3alpha actions predict \
|
|
703
703
|
--analyze-history \
|
|
704
704
|
--identify-risks \
|
|
705
705
|
--suggest-preventive
|
|
@@ -708,7 +708,7 @@ npx ruv-swarm actions predict \
|
|
|
708
708
|
### Workflow Recommendations
|
|
709
709
|
```bash
|
|
710
710
|
# Get workflow recommendations
|
|
711
|
-
npx
|
|
711
|
+
npx claude-flow@v3alpha actions recommend \
|
|
712
712
|
--analyze-repo \
|
|
713
713
|
--suggest-workflows \
|
|
714
714
|
--industry-best-practices
|
|
@@ -717,7 +717,7 @@ npx ruv-swarm actions recommend \
|
|
|
717
717
|
### Automated Optimization
|
|
718
718
|
```bash
|
|
719
719
|
# Continuously optimize workflows
|
|
720
|
-
npx
|
|
720
|
+
npx claude-flow@v3alpha actions auto-optimize \
|
|
721
721
|
--monitor-performance \
|
|
722
722
|
--apply-improvements \
|
|
723
723
|
--track-savings
|
|
@@ -729,7 +729,7 @@ npx ruv-swarm actions auto-optimize \
|
|
|
729
729
|
```yaml
|
|
730
730
|
- name: Debug Swarm
|
|
731
731
|
run: |
|
|
732
|
-
npx
|
|
732
|
+
npx claude-flow@v3alpha actions debug \
|
|
733
733
|
--verbose \
|
|
734
734
|
--trace-agents \
|
|
735
735
|
--export-logs
|
|
@@ -738,7 +738,7 @@ npx ruv-swarm actions auto-optimize \
|
|
|
738
738
|
### Performance Profiling
|
|
739
739
|
```bash
|
|
740
740
|
# Profile workflow performance
|
|
741
|
-
npx
|
|
741
|
+
npx claude-flow@v3alpha actions profile \
|
|
742
742
|
--workflow "ci.yml" \
|
|
743
743
|
--identify-slow-steps \
|
|
744
744
|
--suggest-optimizations
|