claude-flow-guidance-implementation 0.1.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.
- package/.agents/README.md +38 -0
- package/.agents/config.toml +298 -0
- package/.agents/skills/memory-management/SKILL.md +126 -0
- package/.agents/skills/memory-management/scripts/memory-backup.sh +16 -0
- package/.agents/skills/memory-management/scripts/memory-consolidate.sh +11 -0
- package/.agents/skills/security-audit/SKILL.md +135 -0
- package/.agents/skills/security-audit/scripts/cve-remediate.sh +16 -0
- package/.agents/skills/security-audit/scripts/security-scan.sh +33 -0
- package/.agents/skills/sparc-methodology/SKILL.md +118 -0
- package/.agents/skills/sparc-methodology/scripts/sparc-init.sh +21 -0
- package/.agents/skills/sparc-methodology/scripts/sparc-review.sh +18 -0
- package/.agents/skills/swarm-orchestration/SKILL.md +114 -0
- package/.agents/skills/swarm-orchestration/scripts/swarm-monitor.sh +8 -0
- package/.agents/skills/swarm-orchestration/scripts/swarm-start.sh +14 -0
- package/.claude/agents/analysis/analyze-code-quality.md +179 -0
- package/.claude/agents/analysis/code-analyzer.md +210 -0
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +179 -0
- package/.claude/agents/architecture/system-design/arch-system-design.md +155 -0
- package/.claude/agents/consensus/README.md +253 -0
- package/.claude/agents/consensus/byzantine-coordinator.md +63 -0
- package/.claude/agents/consensus/crdt-synchronizer.md +997 -0
- package/.claude/agents/consensus/gossip-coordinator.md +63 -0
- package/.claude/agents/consensus/performance-benchmarker.md +851 -0
- package/.claude/agents/consensus/quorum-manager.md +823 -0
- package/.claude/agents/consensus/raft-manager.md +63 -0
- package/.claude/agents/consensus/security-manager.md +622 -0
- package/.claude/agents/core/coder.md +266 -0
- package/.claude/agents/core/planner.md +168 -0
- package/.claude/agents/core/researcher.md +190 -0
- package/.claude/agents/core/reviewer.md +326 -0
- package/.claude/agents/core/tester.md +319 -0
- package/.claude/agents/custom/test-long-runner.md +44 -0
- package/.claude/agents/data/ml/data-ml-model.md +193 -0
- package/.claude/agents/development/backend/dev-backend-api.md +142 -0
- package/.claude/agents/development/dev-backend-api.md +345 -0
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
- package/.claude/agents/dual-mode/README.md +94 -0
- package/.claude/agents/dual-mode/codex-coordinator.md +224 -0
- package/.claude/agents/dual-mode/codex-worker.md +211 -0
- package/.claude/agents/dual-mode/dual-orchestrator.md +291 -0
- package/.claude/agents/flow-nexus/app-store.md +88 -0
- package/.claude/agents/flow-nexus/authentication.md +69 -0
- package/.claude/agents/flow-nexus/challenges.md +81 -0
- package/.claude/agents/flow-nexus/neural-network.md +88 -0
- package/.claude/agents/flow-nexus/payments.md +83 -0
- package/.claude/agents/flow-nexus/sandbox.md +76 -0
- package/.claude/agents/flow-nexus/swarm.md +76 -0
- package/.claude/agents/flow-nexus/user-tools.md +96 -0
- package/.claude/agents/flow-nexus/workflow.md +84 -0
- package/.claude/agents/github/code-review-swarm.md +538 -0
- package/.claude/agents/github/github-modes.md +173 -0
- package/.claude/agents/github/issue-tracker.md +319 -0
- package/.claude/agents/github/multi-repo-swarm.md +553 -0
- package/.claude/agents/github/pr-manager.md +191 -0
- package/.claude/agents/github/project-board-sync.md +509 -0
- package/.claude/agents/github/release-manager.md +367 -0
- package/.claude/agents/github/release-swarm.md +583 -0
- package/.claude/agents/github/repo-architect.md +398 -0
- package/.claude/agents/github/swarm-issue.md +573 -0
- package/.claude/agents/github/swarm-pr.md +428 -0
- package/.claude/agents/github/sync-coordinator.md +452 -0
- package/.claude/agents/github/workflow-automation.md +635 -0
- package/.claude/agents/goal/agent.md +816 -0
- package/.claude/agents/goal/code-goal-planner.md +446 -0
- package/.claude/agents/goal/goal-planner.md +168 -0
- package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +130 -0
- package/.claude/agents/hive-mind/queen-coordinator.md +203 -0
- package/.claude/agents/hive-mind/scout-explorer.md +242 -0
- package/.claude/agents/hive-mind/swarm-memory-manager.md +193 -0
- package/.claude/agents/hive-mind/worker-specialist.md +217 -0
- package/.claude/agents/optimization/README.md +250 -0
- package/.claude/agents/optimization/benchmark-suite.md +665 -0
- package/.claude/agents/optimization/load-balancer.md +431 -0
- package/.claude/agents/optimization/performance-monitor.md +672 -0
- package/.claude/agents/optimization/resource-allocator.md +674 -0
- package/.claude/agents/optimization/topology-optimizer.md +808 -0
- package/.claude/agents/payments/agentic-payments.md +126 -0
- package/.claude/agents/sona/sona-learning-optimizer.md +74 -0
- package/.claude/agents/sparc/architecture.md +472 -0
- package/.claude/agents/sparc/pseudocode.md +318 -0
- package/.claude/agents/sparc/refinement.md +525 -0
- package/.claude/agents/sparc/specification.md +276 -0
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +225 -0
- package/.claude/agents/sublinear/consensus-coordinator.md +338 -0
- package/.claude/agents/sublinear/matrix-optimizer.md +185 -0
- package/.claude/agents/sublinear/pagerank-analyzer.md +299 -0
- package/.claude/agents/sublinear/performance-optimizer.md +368 -0
- package/.claude/agents/sublinear/trading-predictor.md +246 -0
- package/.claude/agents/swarm/README.md +190 -0
- package/.claude/agents/swarm/adaptive-coordinator.md +396 -0
- package/.claude/agents/swarm/hierarchical-coordinator.md +327 -0
- package/.claude/agents/swarm/mesh-coordinator.md +392 -0
- package/.claude/agents/templates/automation-smart-agent.md +205 -0
- package/.claude/agents/templates/coordinator-swarm-init.md +105 -0
- package/.claude/agents/templates/github-pr-manager.md +177 -0
- package/.claude/agents/templates/implementer-sparc-coder.md +259 -0
- package/.claude/agents/templates/memory-coordinator.md +187 -0
- package/.claude/agents/templates/migration-plan.md +746 -0
- package/.claude/agents/templates/orchestrator-task.md +139 -0
- package/.claude/agents/templates/performance-analyzer.md +199 -0
- package/.claude/agents/templates/sparc-coordinator.md +183 -0
- package/.claude/agents/testing/production-validator.md +395 -0
- package/.claude/agents/testing/tdd-london-swarm.md +244 -0
- package/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
- package/.claude/agents/testing/validation/production-validator.md +395 -0
- package/.claude/agents/v3/database-specialist.yaml +21 -0
- package/.claude/agents/v3/index.yaml +17 -0
- package/.claude/agents/v3/project-coordinator.yaml +15 -0
- package/.claude/agents/v3/python-specialist.yaml +21 -0
- package/.claude/agents/v3/test-architect.yaml +20 -0
- package/.claude/agents/v3/typescript-specialist.yaml +21 -0
- package/.claude/agents/v3/v3-integration-architect.md +346 -0
- package/.claude/agents/v3/v3-memory-specialist.md +318 -0
- package/.claude/agents/v3/v3-performance-engineer.md +397 -0
- package/.claude/agents/v3/v3-queen-coordinator.md +98 -0
- package/.claude/agents/v3/v3-security-architect.md +174 -0
- package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
- package/.claude/commands/analysis/README.md +9 -0
- package/.claude/commands/analysis/bottleneck-detect.md +162 -0
- package/.claude/commands/analysis/performance-bottlenecks.md +59 -0
- package/.claude/commands/analysis/performance-report.md +25 -0
- package/.claude/commands/analysis/token-efficiency.md +45 -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/self-healing.md +106 -0
- package/.claude/commands/automation/session-memory.md +90 -0
- package/.claude/commands/automation/smart-agents.md +73 -0
- package/.claude/commands/automation/smart-spawn.md +25 -0
- package/.claude/commands/automation/workflow-select.md +25 -0
- package/.claude/commands/claude-flow-help.md +103 -0
- package/.claude/commands/claude-flow-memory.md +107 -0
- package/.claude/commands/claude-flow-swarm.md +205 -0
- package/.claude/commands/github/README.md +11 -0
- package/.claude/commands/github/code-review-swarm.md +514 -0
- package/.claude/commands/github/code-review.md +25 -0
- package/.claude/commands/github/github-modes.md +147 -0
- package/.claude/commands/github/github-swarm.md +121 -0
- package/.claude/commands/github/issue-tracker.md +292 -0
- package/.claude/commands/github/issue-triage.md +25 -0
- package/.claude/commands/github/multi-repo-swarm.md +519 -0
- package/.claude/commands/github/pr-enhance.md +26 -0
- package/.claude/commands/github/pr-manager.md +170 -0
- package/.claude/commands/github/project-board-sync.md +471 -0
- package/.claude/commands/github/release-manager.md +338 -0
- package/.claude/commands/github/release-swarm.md +544 -0
- package/.claude/commands/github/repo-analyze.md +25 -0
- package/.claude/commands/github/repo-architect.md +367 -0
- package/.claude/commands/github/swarm-issue.md +482 -0
- package/.claude/commands/github/swarm-pr.md +285 -0
- package/.claude/commands/github/sync-coordinator.md +301 -0
- package/.claude/commands/github/workflow-automation.md +442 -0
- package/.claude/commands/hooks/README.md +11 -0
- package/.claude/commands/hooks/overview.md +58 -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/hooks/setup.md +103 -0
- package/.claude/commands/monitoring/README.md +9 -0
- package/.claude/commands/monitoring/agent-metrics.md +25 -0
- package/.claude/commands/monitoring/agents.md +44 -0
- package/.claude/commands/monitoring/real-time-view.md +25 -0
- package/.claude/commands/monitoring/status.md +46 -0
- package/.claude/commands/monitoring/swarm-monitor.md +25 -0
- package/.claude/commands/optimization/README.md +9 -0
- package/.claude/commands/optimization/auto-topology.md +62 -0
- package/.claude/commands/optimization/cache-manage.md +25 -0
- package/.claude/commands/optimization/parallel-execute.md +25 -0
- package/.claude/commands/optimization/parallel-execution.md +50 -0
- package/.claude/commands/optimization/topology-optimize.md +25 -0
- package/.claude/commands/sparc/analyzer.md +52 -0
- package/.claude/commands/sparc/architect.md +53 -0
- package/.claude/commands/sparc/ask.md +97 -0
- package/.claude/commands/sparc/batch-executor.md +54 -0
- package/.claude/commands/sparc/code.md +89 -0
- package/.claude/commands/sparc/coder.md +54 -0
- package/.claude/commands/sparc/debug.md +83 -0
- package/.claude/commands/sparc/debugger.md +54 -0
- package/.claude/commands/sparc/designer.md +53 -0
- package/.claude/commands/sparc/devops.md +109 -0
- package/.claude/commands/sparc/docs-writer.md +80 -0
- package/.claude/commands/sparc/documenter.md +54 -0
- package/.claude/commands/sparc/innovator.md +54 -0
- package/.claude/commands/sparc/integration.md +83 -0
- package/.claude/commands/sparc/mcp.md +117 -0
- package/.claude/commands/sparc/memory-manager.md +54 -0
- package/.claude/commands/sparc/optimizer.md +54 -0
- package/.claude/commands/sparc/orchestrator.md +132 -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/researcher.md +54 -0
- package/.claude/commands/sparc/reviewer.md +54 -0
- package/.claude/commands/sparc/security-review.md +80 -0
- package/.claude/commands/sparc/sparc-modes.md +174 -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/swarm-coordinator.md +54 -0
- package/.claude/commands/sparc/tdd.md +54 -0
- package/.claude/commands/sparc/tester.md +54 -0
- package/.claude/commands/sparc/tutorial.md +79 -0
- package/.claude/commands/sparc/workflow-manager.md +54 -0
- package/.claude/helpers/hook-handler.cjs +168 -0
- package/.claude/helpers/intelligence.cjs +197 -0
- package/.claude/helpers/memory.js +83 -0
- package/.claude/helpers/post-commit +16 -0
- package/.claude/helpers/pre-commit +26 -0
- package/.claude/helpers/router.js +66 -0
- package/.claude/helpers/session.js +127 -0
- package/.claude/settings.json +250 -0
- package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
- package/.claude/skills/agentdb-learning/SKILL.md +545 -0
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
- package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
- package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
- package/.claude/skills/github-code-review/SKILL.md +1140 -0
- package/.claude/skills/github-multi-repo/SKILL.md +874 -0
- package/.claude/skills/github-project-management/SKILL.md +1277 -0
- package/.claude/skills/github-release-management/SKILL.md +1081 -0
- package/.claude/skills/github-workflow-automation/SKILL.md +1065 -0
- package/.claude/skills/hooks-automation/SKILL.md +1201 -0
- package/.claude/skills/pair-programming/SKILL.md +1202 -0
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
- package/.claude/skills/skill-builder/.claude-flow/metrics/agent-metrics.json +1 -0
- package/.claude/skills/skill-builder/.claude-flow/metrics/performance.json +87 -0
- package/.claude/skills/skill-builder/.claude-flow/metrics/task-metrics.json +10 -0
- package/.claude/skills/skill-builder/SKILL.md +910 -0
- package/.claude/skills/sparc-methodology/SKILL.md +1115 -0
- package/.claude/skills/stream-chain/SKILL.md +563 -0
- package/.claude/skills/swarm-advanced/SKILL.md +973 -0
- package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
- package/.claude/skills/v3-cli-modernization/SKILL.md +872 -0
- package/.claude/skills/v3-core-implementation/SKILL.md +797 -0
- package/.claude/skills/v3-ddd-architecture/SKILL.md +442 -0
- package/.claude/skills/v3-integration-deep/SKILL.md +241 -0
- package/.claude/skills/v3-mcp-optimization/SKILL.md +777 -0
- package/.claude/skills/v3-memory-unification/SKILL.md +174 -0
- package/.claude/skills/v3-performance-optimization/SKILL.md +390 -0
- package/.claude/skills/v3-security-overhaul/SKILL.md +82 -0
- package/.claude/skills/v3-swarm-coordination/SKILL.md +340 -0
- package/.claude/skills/verification-quality/SKILL.md +649 -0
- package/.claude/statusline.mjs +109 -0
- package/.claude/statusline.sh +375 -0
- package/.claude-flow/CAPABILITIES.md +403 -0
- package/.claude-flow/config.yaml +43 -0
- package/.claude-flow/metrics/learning.json +17 -0
- package/.claude-flow/metrics/swarm-activity.json +18 -0
- package/.claude-flow/metrics/v3-progress.json +26 -0
- package/.claude-flow/security/audit-status.json +8 -0
- package/.mcp.json +20 -0
- package/AGENTS.md +145 -0
- package/CLAUDE.md +188 -0
- package/LICENSE +21 -0
- package/README.md +115 -0
- package/bin/cf-guidance-impl.mjs +74 -0
- package/package.json +23 -0
- package/scaffold/.claude/helpers/hook-handler.cjs +576 -0
- package/scaffold/docs/guidance-control-plane.md +441 -0
- package/scaffold/docs/guidance-implementation-guide.md +424 -0
- package/scaffold/scripts/analyze-guidance.js +176 -0
- package/scaffold/scripts/guidance-ab-benchmark.js +40 -0
- package/scaffold/scripts/guidance-autopilot.js +473 -0
- package/scaffold/scripts/guidance-codex-bridge.js +337 -0
- package/scaffold/scripts/guidance-integrations.js +587 -0
- package/scaffold/scripts/guidance-runtime.js +133 -0
- package/scaffold/scripts/scaffold-guidance.js +122 -0
- package/scaffold/src/guidance/advanced-runtime.js +658 -0
- package/scaffold/src/guidance/content-aware-executor.js +70 -0
- package/scaffold/src/guidance/phase1-runtime.js +151 -0
- package/src/default-settings.mjs +111 -0
- package/src/installer.mjs +415 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: claude-flow-swarm
|
|
3
|
+
description: Coordinate multi-agent swarms for complex tasks
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 🐝 Claude-Flow Swarm Coordination
|
|
7
|
+
|
|
8
|
+
Advanced multi-agent coordination system with timeout-free execution, distributed memory sharing, and intelligent load balancing.
|
|
9
|
+
|
|
10
|
+
## Basic Usage
|
|
11
|
+
```bash
|
|
12
|
+
./claude-flow swarm "your complex task" --strategy <type> [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## 🎯 Swarm Strategies
|
|
16
|
+
- **auto** - Automatic strategy selection based on task analysis
|
|
17
|
+
- **development** - Code implementation with review and testing
|
|
18
|
+
- **research** - Information gathering and synthesis
|
|
19
|
+
- **analysis** - Data processing and pattern identification
|
|
20
|
+
- **testing** - Comprehensive quality assurance
|
|
21
|
+
- **optimization** - Performance tuning and refactoring
|
|
22
|
+
- **maintenance** - System updates and bug fixes
|
|
23
|
+
|
|
24
|
+
## 🤖 Agent Types
|
|
25
|
+
- **coordinator** - Plans and delegates tasks to other agents
|
|
26
|
+
- **developer** - Writes code and implements solutions
|
|
27
|
+
- **researcher** - Gathers and analyzes information
|
|
28
|
+
- **analyzer** - Identifies patterns and generates insights
|
|
29
|
+
- **tester** - Creates and runs tests for quality assurance
|
|
30
|
+
- **reviewer** - Performs code and design reviews
|
|
31
|
+
- **documenter** - Creates documentation and guides
|
|
32
|
+
- **monitor** - Tracks performance and system health
|
|
33
|
+
- **specialist** - Domain-specific expert agents
|
|
34
|
+
|
|
35
|
+
## 🔄 Coordination Modes
|
|
36
|
+
- **centralized** - Single coordinator manages all agents (default)
|
|
37
|
+
- **distributed** - Multiple coordinators share management
|
|
38
|
+
- **hierarchical** - Tree structure with nested coordination
|
|
39
|
+
- **mesh** - Peer-to-peer agent collaboration
|
|
40
|
+
- **hybrid** - Mixed coordination strategies
|
|
41
|
+
|
|
42
|
+
## ⚙️ Common Options
|
|
43
|
+
- `--strategy <type>` - Execution strategy
|
|
44
|
+
- `--mode <type>` - Coordination mode
|
|
45
|
+
- `--max-agents <n>` - Maximum concurrent agents (default: 5)
|
|
46
|
+
- `--timeout <minutes>` - Timeout in minutes (default: 60)
|
|
47
|
+
- `--background` - Run in background for tasks > 30 minutes
|
|
48
|
+
- `--monitor` - Enable real-time monitoring
|
|
49
|
+
- `--ui` - Launch terminal UI interface
|
|
50
|
+
- `--parallel` - Enable parallel execution
|
|
51
|
+
- `--distributed` - Enable distributed coordination
|
|
52
|
+
- `--review` - Enable peer review process
|
|
53
|
+
- `--testing` - Include automated testing
|
|
54
|
+
- `--encryption` - Enable data encryption
|
|
55
|
+
- `--verbose` - Detailed logging output
|
|
56
|
+
- `--dry-run` - Show configuration without executing
|
|
57
|
+
|
|
58
|
+
## 🌟 Examples
|
|
59
|
+
|
|
60
|
+
### Development Swarm with Review
|
|
61
|
+
```bash
|
|
62
|
+
./claude-flow swarm "Build e-commerce REST API" \
|
|
63
|
+
--strategy development \
|
|
64
|
+
--monitor \
|
|
65
|
+
--review \
|
|
66
|
+
--testing
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Long-Running Research Swarm
|
|
70
|
+
```bash
|
|
71
|
+
./claude-flow swarm "Analyze AI market trends 2024-2025" \
|
|
72
|
+
--strategy research \
|
|
73
|
+
--background \
|
|
74
|
+
--distributed \
|
|
75
|
+
--max-agents 8
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Performance Optimization Swarm
|
|
79
|
+
```bash
|
|
80
|
+
./claude-flow swarm "Optimize database queries and API performance" \
|
|
81
|
+
--strategy optimization \
|
|
82
|
+
--testing \
|
|
83
|
+
--parallel \
|
|
84
|
+
--monitor
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Enterprise Development Swarm
|
|
88
|
+
```bash
|
|
89
|
+
./claude-flow swarm "Implement secure payment processing system" \
|
|
90
|
+
--strategy development \
|
|
91
|
+
--mode distributed \
|
|
92
|
+
--max-agents 10 \
|
|
93
|
+
--parallel \
|
|
94
|
+
--monitor \
|
|
95
|
+
--review \
|
|
96
|
+
--testing \
|
|
97
|
+
--encryption \
|
|
98
|
+
--verbose
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Testing and QA Swarm
|
|
102
|
+
```bash
|
|
103
|
+
./claude-flow swarm "Comprehensive security audit and testing" \
|
|
104
|
+
--strategy testing \
|
|
105
|
+
--review \
|
|
106
|
+
--verbose \
|
|
107
|
+
--max-agents 6
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## 📊 Monitoring and Control
|
|
111
|
+
|
|
112
|
+
### Real-time monitoring:
|
|
113
|
+
```bash
|
|
114
|
+
# Monitor swarm activity
|
|
115
|
+
./claude-flow monitor
|
|
116
|
+
|
|
117
|
+
# Monitor specific component
|
|
118
|
+
./claude-flow monitor --focus swarm
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Check swarm status:
|
|
122
|
+
```bash
|
|
123
|
+
# Overall system status
|
|
124
|
+
./claude-flow status
|
|
125
|
+
|
|
126
|
+
# Detailed swarm status
|
|
127
|
+
./claude-flow status --verbose
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### View agent activity:
|
|
131
|
+
```bash
|
|
132
|
+
# List all agents
|
|
133
|
+
./claude-flow agent list
|
|
134
|
+
|
|
135
|
+
# Agent details
|
|
136
|
+
./claude-flow agent info <agent-id>
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## 💾 Memory Integration
|
|
140
|
+
|
|
141
|
+
Swarms automatically use distributed memory for collaboration:
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
# Store swarm objectives
|
|
145
|
+
./claude-flow memory store "swarm_objective" "Build scalable API" --namespace swarm
|
|
146
|
+
|
|
147
|
+
# Query swarm progress
|
|
148
|
+
./claude-flow memory query "swarm_progress" --namespace swarm
|
|
149
|
+
|
|
150
|
+
# Export swarm memory
|
|
151
|
+
./claude-flow memory export swarm-results.json --namespace swarm
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
## 🎯 Key Features
|
|
155
|
+
|
|
156
|
+
### Timeout-Free Execution
|
|
157
|
+
- Background mode for long-running tasks
|
|
158
|
+
- State persistence across sessions
|
|
159
|
+
- Automatic checkpoint recovery
|
|
160
|
+
|
|
161
|
+
### Work Stealing & Load Balancing
|
|
162
|
+
- Dynamic task redistribution
|
|
163
|
+
- Automatic agent scaling
|
|
164
|
+
- Resource-aware scheduling
|
|
165
|
+
|
|
166
|
+
### Circuit Breakers & Fault Tolerance
|
|
167
|
+
- Automatic retry with exponential backoff
|
|
168
|
+
- Graceful degradation
|
|
169
|
+
- Health monitoring and recovery
|
|
170
|
+
|
|
171
|
+
### Real-Time Collaboration
|
|
172
|
+
- Cross-agent communication
|
|
173
|
+
- Shared memory access
|
|
174
|
+
- Event-driven coordination
|
|
175
|
+
|
|
176
|
+
### Enterprise Security
|
|
177
|
+
- Role-based access control
|
|
178
|
+
- Audit logging
|
|
179
|
+
- Data encryption
|
|
180
|
+
- Input validation
|
|
181
|
+
|
|
182
|
+
## 🔧 Advanced Configuration
|
|
183
|
+
|
|
184
|
+
### Dry run to preview:
|
|
185
|
+
```bash
|
|
186
|
+
./claude-flow swarm "Test task" --dry-run --strategy development
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### Custom quality thresholds:
|
|
190
|
+
```bash
|
|
191
|
+
./claude-flow swarm "High quality API" \
|
|
192
|
+
--strategy development \
|
|
193
|
+
--quality-threshold 0.95
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Scheduling algorithms:
|
|
197
|
+
- FIFO (First In, First Out)
|
|
198
|
+
- Priority-based
|
|
199
|
+
- Deadline-driven
|
|
200
|
+
- Shortest Job First
|
|
201
|
+
- Critical Path
|
|
202
|
+
- Resource-aware
|
|
203
|
+
- Adaptive
|
|
204
|
+
|
|
205
|
+
For detailed documentation, see: https://github.com/ruvnet/claude-code-flow/docs/swarm-system.md
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Github Commands
|
|
2
|
+
|
|
3
|
+
Commands for github operations in Claude Flow.
|
|
4
|
+
|
|
5
|
+
## Available Commands
|
|
6
|
+
|
|
7
|
+
- [github-swarm](./github-swarm.md)
|
|
8
|
+
- [repo-analyze](./repo-analyze.md)
|
|
9
|
+
- [pr-enhance](./pr-enhance.md)
|
|
10
|
+
- [issue-triage](./issue-triage.md)
|
|
11
|
+
- [code-review](./code-review.md)
|
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
# Code Review Swarm - Automated Code Review with AI Agents
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
Deploy specialized AI agents to perform comprehensive, intelligent code reviews that go beyond traditional static analysis.
|
|
5
|
+
|
|
6
|
+
## Core Features
|
|
7
|
+
|
|
8
|
+
### 1. Multi-Agent Review System
|
|
9
|
+
```bash
|
|
10
|
+
# Initialize code review swarm with gh CLI
|
|
11
|
+
# Get PR details
|
|
12
|
+
PR_DATA=$(gh pr view 123 --json files,additions,deletions,title,body)
|
|
13
|
+
PR_DIFF=$(gh pr diff 123)
|
|
14
|
+
|
|
15
|
+
# Initialize swarm with PR context
|
|
16
|
+
npx ruv-swarm github review-init \
|
|
17
|
+
--pr 123 \
|
|
18
|
+
--pr-data "$PR_DATA" \
|
|
19
|
+
--diff "$PR_DIFF" \
|
|
20
|
+
--agents "security,performance,style,architecture,accessibility" \
|
|
21
|
+
--depth comprehensive
|
|
22
|
+
|
|
23
|
+
# Post initial review status
|
|
24
|
+
gh pr comment 123 --body "🔍 Multi-agent code review initiated"
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### 2. Specialized Review Agents
|
|
28
|
+
|
|
29
|
+
#### Security Agent
|
|
30
|
+
```bash
|
|
31
|
+
# Security-focused review with gh CLI
|
|
32
|
+
# Get changed files
|
|
33
|
+
CHANGED_FILES=$(gh pr view 123 --json files --jq '.files[].path')
|
|
34
|
+
|
|
35
|
+
# Run security review
|
|
36
|
+
SECURITY_RESULTS=$(npx ruv-swarm github review-security \
|
|
37
|
+
--pr 123 \
|
|
38
|
+
--files "$CHANGED_FILES" \
|
|
39
|
+
--check "owasp,cve,secrets,permissions" \
|
|
40
|
+
--suggest-fixes)
|
|
41
|
+
|
|
42
|
+
# Post security findings
|
|
43
|
+
if echo "$SECURITY_RESULTS" | grep -q "critical"; then
|
|
44
|
+
# Request changes for critical issues
|
|
45
|
+
gh pr review 123 --request-changes --body "$SECURITY_RESULTS"
|
|
46
|
+
# Add security label
|
|
47
|
+
gh pr edit 123 --add-label "security-review-required"
|
|
48
|
+
else
|
|
49
|
+
# Post as comment for non-critical issues
|
|
50
|
+
gh pr comment 123 --body "$SECURITY_RESULTS"
|
|
51
|
+
fi
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
#### Performance Agent
|
|
55
|
+
```bash
|
|
56
|
+
# Performance analysis
|
|
57
|
+
npx ruv-swarm github review-performance \
|
|
58
|
+
--pr 123 \
|
|
59
|
+
--profile "cpu,memory,io" \
|
|
60
|
+
--benchmark-against main \
|
|
61
|
+
--suggest-optimizations
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
#### Architecture Agent
|
|
65
|
+
```bash
|
|
66
|
+
# Architecture review
|
|
67
|
+
npx ruv-swarm github review-architecture \
|
|
68
|
+
--pr 123 \
|
|
69
|
+
--check "patterns,coupling,cohesion,solid" \
|
|
70
|
+
--visualize-impact \
|
|
71
|
+
--suggest-refactoring
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### 3. Review Configuration
|
|
75
|
+
```yaml
|
|
76
|
+
# .github/review-swarm.yml
|
|
77
|
+
version: 1
|
|
78
|
+
review:
|
|
79
|
+
auto-trigger: true
|
|
80
|
+
required-agents:
|
|
81
|
+
- security
|
|
82
|
+
- performance
|
|
83
|
+
- style
|
|
84
|
+
optional-agents:
|
|
85
|
+
- architecture
|
|
86
|
+
- accessibility
|
|
87
|
+
- i18n
|
|
88
|
+
|
|
89
|
+
thresholds:
|
|
90
|
+
security: block
|
|
91
|
+
performance: warn
|
|
92
|
+
style: suggest
|
|
93
|
+
|
|
94
|
+
rules:
|
|
95
|
+
security:
|
|
96
|
+
- no-eval
|
|
97
|
+
- no-hardcoded-secrets
|
|
98
|
+
- proper-auth-checks
|
|
99
|
+
performance:
|
|
100
|
+
- no-n-plus-one
|
|
101
|
+
- efficient-queries
|
|
102
|
+
- proper-caching
|
|
103
|
+
architecture:
|
|
104
|
+
- max-coupling: 5
|
|
105
|
+
- min-cohesion: 0.7
|
|
106
|
+
- follow-patterns
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Review Agents
|
|
110
|
+
|
|
111
|
+
### Security Review Agent
|
|
112
|
+
```javascript
|
|
113
|
+
// Security checks performed
|
|
114
|
+
{
|
|
115
|
+
"checks": [
|
|
116
|
+
"SQL injection vulnerabilities",
|
|
117
|
+
"XSS attack vectors",
|
|
118
|
+
"Authentication bypasses",
|
|
119
|
+
"Authorization flaws",
|
|
120
|
+
"Cryptographic weaknesses",
|
|
121
|
+
"Dependency vulnerabilities",
|
|
122
|
+
"Secret exposure",
|
|
123
|
+
"CORS misconfigurations"
|
|
124
|
+
],
|
|
125
|
+
"actions": [
|
|
126
|
+
"Block PR on critical issues",
|
|
127
|
+
"Suggest secure alternatives",
|
|
128
|
+
"Add security test cases",
|
|
129
|
+
"Update security documentation"
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Performance Review Agent
|
|
135
|
+
```javascript
|
|
136
|
+
// Performance analysis
|
|
137
|
+
{
|
|
138
|
+
"metrics": [
|
|
139
|
+
"Algorithm complexity",
|
|
140
|
+
"Database query efficiency",
|
|
141
|
+
"Memory allocation patterns",
|
|
142
|
+
"Cache utilization",
|
|
143
|
+
"Network request optimization",
|
|
144
|
+
"Bundle size impact",
|
|
145
|
+
"Render performance"
|
|
146
|
+
],
|
|
147
|
+
"benchmarks": [
|
|
148
|
+
"Compare with baseline",
|
|
149
|
+
"Load test simulations",
|
|
150
|
+
"Memory leak detection",
|
|
151
|
+
"Bottleneck identification"
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Style & Convention Agent
|
|
157
|
+
```javascript
|
|
158
|
+
// Style enforcement
|
|
159
|
+
{
|
|
160
|
+
"checks": [
|
|
161
|
+
"Code formatting",
|
|
162
|
+
"Naming conventions",
|
|
163
|
+
"Documentation standards",
|
|
164
|
+
"Comment quality",
|
|
165
|
+
"Test coverage",
|
|
166
|
+
"Error handling patterns",
|
|
167
|
+
"Logging standards"
|
|
168
|
+
],
|
|
169
|
+
"auto-fix": [
|
|
170
|
+
"Formatting issues",
|
|
171
|
+
"Import organization",
|
|
172
|
+
"Trailing whitespace",
|
|
173
|
+
"Simple naming issues"
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### Architecture Review Agent
|
|
179
|
+
```javascript
|
|
180
|
+
// Architecture analysis
|
|
181
|
+
{
|
|
182
|
+
"patterns": [
|
|
183
|
+
"Design pattern adherence",
|
|
184
|
+
"SOLID principles",
|
|
185
|
+
"DRY violations",
|
|
186
|
+
"Separation of concerns",
|
|
187
|
+
"Dependency injection",
|
|
188
|
+
"Layer violations",
|
|
189
|
+
"Circular dependencies"
|
|
190
|
+
],
|
|
191
|
+
"metrics": [
|
|
192
|
+
"Coupling metrics",
|
|
193
|
+
"Cohesion scores",
|
|
194
|
+
"Complexity measures",
|
|
195
|
+
"Maintainability index"
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
## Advanced Review Features
|
|
201
|
+
|
|
202
|
+
### 1. Context-Aware Reviews
|
|
203
|
+
```bash
|
|
204
|
+
# Review with full context
|
|
205
|
+
npx ruv-swarm github review-context \
|
|
206
|
+
--pr 123 \
|
|
207
|
+
--load-related-prs \
|
|
208
|
+
--analyze-impact \
|
|
209
|
+
--check-breaking-changes
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### 2. Learning from History
|
|
213
|
+
```bash
|
|
214
|
+
# Learn from past reviews
|
|
215
|
+
npx ruv-swarm github review-learn \
|
|
216
|
+
--analyze-past-reviews \
|
|
217
|
+
--identify-patterns \
|
|
218
|
+
--improve-suggestions \
|
|
219
|
+
--reduce-false-positives
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### 3. Cross-PR Analysis
|
|
223
|
+
```bash
|
|
224
|
+
# Analyze related PRs together
|
|
225
|
+
npx ruv-swarm github review-batch \
|
|
226
|
+
--prs "123,124,125" \
|
|
227
|
+
--check-consistency \
|
|
228
|
+
--verify-integration \
|
|
229
|
+
--combined-impact
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
## Review Automation
|
|
233
|
+
|
|
234
|
+
### Auto-Review on Push
|
|
235
|
+
```yaml
|
|
236
|
+
# .github/workflows/auto-review.yml
|
|
237
|
+
name: Automated Code Review
|
|
238
|
+
on:
|
|
239
|
+
pull_request:
|
|
240
|
+
types: [opened, synchronize]
|
|
241
|
+
|
|
242
|
+
jobs:
|
|
243
|
+
swarm-review:
|
|
244
|
+
runs-on: ubuntu-latest
|
|
245
|
+
steps:
|
|
246
|
+
- uses: actions/checkout@v3
|
|
247
|
+
with:
|
|
248
|
+
fetch-depth: 0
|
|
249
|
+
|
|
250
|
+
- name: Setup GitHub CLI
|
|
251
|
+
run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
|
|
252
|
+
|
|
253
|
+
- name: Run Review Swarm
|
|
254
|
+
run: |
|
|
255
|
+
# Get PR context with gh CLI
|
|
256
|
+
PR_NUM=${{ github.event.pull_request.number }}
|
|
257
|
+
PR_DATA=$(gh pr view $PR_NUM --json files,title,body,labels)
|
|
258
|
+
|
|
259
|
+
# Run swarm review
|
|
260
|
+
REVIEW_OUTPUT=$(npx ruv-swarm github review-all \
|
|
261
|
+
--pr $PR_NUM \
|
|
262
|
+
--pr-data "$PR_DATA" \
|
|
263
|
+
--agents "security,performance,style,architecture")
|
|
264
|
+
|
|
265
|
+
# Post review results
|
|
266
|
+
echo "$REVIEW_OUTPUT" | gh pr review $PR_NUM --comment -F -
|
|
267
|
+
|
|
268
|
+
# Update PR status
|
|
269
|
+
if echo "$REVIEW_OUTPUT" | grep -q "approved"; then
|
|
270
|
+
gh pr review $PR_NUM --approve
|
|
271
|
+
elif echo "$REVIEW_OUTPUT" | grep -q "changes-requested"; then
|
|
272
|
+
gh pr review $PR_NUM --request-changes -b "See review comments above"
|
|
273
|
+
fi
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
### Review Triggers
|
|
277
|
+
```javascript
|
|
278
|
+
// Custom review triggers
|
|
279
|
+
{
|
|
280
|
+
"triggers": {
|
|
281
|
+
"high-risk-files": {
|
|
282
|
+
"paths": ["**/auth/**", "**/payment/**"],
|
|
283
|
+
"agents": ["security", "architecture"],
|
|
284
|
+
"depth": "comprehensive"
|
|
285
|
+
},
|
|
286
|
+
"performance-critical": {
|
|
287
|
+
"paths": ["**/api/**", "**/database/**"],
|
|
288
|
+
"agents": ["performance", "database"],
|
|
289
|
+
"benchmarks": true
|
|
290
|
+
},
|
|
291
|
+
"ui-changes": {
|
|
292
|
+
"paths": ["**/components/**", "**/styles/**"],
|
|
293
|
+
"agents": ["accessibility", "style", "i18n"],
|
|
294
|
+
"visual-tests": true
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
## Review Comments
|
|
301
|
+
|
|
302
|
+
### Intelligent Comment Generation
|
|
303
|
+
```bash
|
|
304
|
+
# Generate contextual review comments with gh CLI
|
|
305
|
+
# Get PR diff with context
|
|
306
|
+
PR_DIFF=$(gh pr diff 123 --color never)
|
|
307
|
+
PR_FILES=$(gh pr view 123 --json files)
|
|
308
|
+
|
|
309
|
+
# Generate review comments
|
|
310
|
+
COMMENTS=$(npx ruv-swarm github review-comment \
|
|
311
|
+
--pr 123 \
|
|
312
|
+
--diff "$PR_DIFF" \
|
|
313
|
+
--files "$PR_FILES" \
|
|
314
|
+
--style "constructive" \
|
|
315
|
+
--include-examples \
|
|
316
|
+
--suggest-fixes)
|
|
317
|
+
|
|
318
|
+
# Post comments using gh CLI
|
|
319
|
+
echo "$COMMENTS" | jq -c '.[]' | while read -r comment; do
|
|
320
|
+
FILE=$(echo "$comment" | jq -r '.path')
|
|
321
|
+
LINE=$(echo "$comment" | jq -r '.line')
|
|
322
|
+
BODY=$(echo "$comment" | jq -r '.body')
|
|
323
|
+
|
|
324
|
+
# Create review with inline comments
|
|
325
|
+
gh api \
|
|
326
|
+
--method POST \
|
|
327
|
+
/repos/:owner/:repo/pulls/123/comments \
|
|
328
|
+
-f path="$FILE" \
|
|
329
|
+
-f line="$LINE" \
|
|
330
|
+
-f body="$BODY" \
|
|
331
|
+
-f commit_id="$(gh pr view 123 --json headRefOid -q .headRefOid)"
|
|
332
|
+
done
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
### Comment Templates
|
|
336
|
+
```markdown
|
|
337
|
+
<!-- Security Issue Template -->
|
|
338
|
+
🔒 **Security Issue: [Type]**
|
|
339
|
+
|
|
340
|
+
**Severity**: 🔴 Critical / 🟡 High / 🟢 Low
|
|
341
|
+
|
|
342
|
+
**Description**:
|
|
343
|
+
[Clear explanation of the security issue]
|
|
344
|
+
|
|
345
|
+
**Impact**:
|
|
346
|
+
[Potential consequences if not addressed]
|
|
347
|
+
|
|
348
|
+
**Suggested Fix**:
|
|
349
|
+
```language
|
|
350
|
+
[Code example of the fix]
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
**References**:
|
|
354
|
+
- [OWASP Guide](link)
|
|
355
|
+
- [Security Best Practices](link)
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
### Batch Comment Management
|
|
359
|
+
```bash
|
|
360
|
+
# Manage review comments efficiently
|
|
361
|
+
npx ruv-swarm github review-comments \
|
|
362
|
+
--pr 123 \
|
|
363
|
+
--group-by "agent,severity" \
|
|
364
|
+
--summarize \
|
|
365
|
+
--resolve-outdated
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
## Integration with CI/CD
|
|
369
|
+
|
|
370
|
+
### Status Checks
|
|
371
|
+
```yaml
|
|
372
|
+
# Required status checks
|
|
373
|
+
protection_rules:
|
|
374
|
+
required_status_checks:
|
|
375
|
+
contexts:
|
|
376
|
+
- "review-swarm/security"
|
|
377
|
+
- "review-swarm/performance"
|
|
378
|
+
- "review-swarm/architecture"
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
### Quality Gates
|
|
382
|
+
```bash
|
|
383
|
+
# Define quality gates
|
|
384
|
+
npx ruv-swarm github quality-gates \
|
|
385
|
+
--define '{
|
|
386
|
+
"security": {"threshold": "no-critical"},
|
|
387
|
+
"performance": {"regression": "<5%"},
|
|
388
|
+
"coverage": {"minimum": "80%"},
|
|
389
|
+
"architecture": {"complexity": "<10"}
|
|
390
|
+
}'
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
### Review Metrics
|
|
394
|
+
```bash
|
|
395
|
+
# Track review effectiveness
|
|
396
|
+
npx ruv-swarm github review-metrics \
|
|
397
|
+
--period 30d \
|
|
398
|
+
--metrics "issues-found,false-positives,fix-rate" \
|
|
399
|
+
--export-dashboard
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
## Best Practices
|
|
403
|
+
|
|
404
|
+
### 1. Review Configuration
|
|
405
|
+
- Define clear review criteria
|
|
406
|
+
- Set appropriate thresholds
|
|
407
|
+
- Configure agent specializations
|
|
408
|
+
- Establish override procedures
|
|
409
|
+
|
|
410
|
+
### 2. Comment Quality
|
|
411
|
+
- Provide actionable feedback
|
|
412
|
+
- Include code examples
|
|
413
|
+
- Reference documentation
|
|
414
|
+
- Maintain respectful tone
|
|
415
|
+
|
|
416
|
+
### 3. Performance
|
|
417
|
+
- Cache analysis results
|
|
418
|
+
- Incremental reviews for large PRs
|
|
419
|
+
- Parallel agent execution
|
|
420
|
+
- Smart comment batching
|
|
421
|
+
|
|
422
|
+
## Advanced Features
|
|
423
|
+
|
|
424
|
+
### 1. AI Learning
|
|
425
|
+
```bash
|
|
426
|
+
# Train on your codebase
|
|
427
|
+
npx ruv-swarm github review-train \
|
|
428
|
+
--learn-patterns \
|
|
429
|
+
--adapt-to-style \
|
|
430
|
+
--improve-accuracy
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
### 2. Custom Review Agents
|
|
434
|
+
```javascript
|
|
435
|
+
// Create custom review agent
|
|
436
|
+
class CustomReviewAgent {
|
|
437
|
+
async review(pr) {
|
|
438
|
+
const issues = [];
|
|
439
|
+
|
|
440
|
+
// Custom logic here
|
|
441
|
+
if (await this.checkCustomRule(pr)) {
|
|
442
|
+
issues.push({
|
|
443
|
+
severity: 'warning',
|
|
444
|
+
message: 'Custom rule violation',
|
|
445
|
+
suggestion: 'Fix suggestion'
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
return issues;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
### 3. Review Orchestration
|
|
455
|
+
```bash
|
|
456
|
+
# Orchestrate complex reviews
|
|
457
|
+
npx ruv-swarm github review-orchestrate \
|
|
458
|
+
--strategy "risk-based" \
|
|
459
|
+
--allocate-time-budget \
|
|
460
|
+
--prioritize-critical
|
|
461
|
+
```
|
|
462
|
+
|
|
463
|
+
## Examples
|
|
464
|
+
|
|
465
|
+
### Security-Critical PR
|
|
466
|
+
```bash
|
|
467
|
+
# Auth system changes
|
|
468
|
+
npx ruv-swarm github review-init \
|
|
469
|
+
--pr 456 \
|
|
470
|
+
--agents "security,authentication,audit" \
|
|
471
|
+
--depth "maximum" \
|
|
472
|
+
--require-security-approval
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
### Performance-Sensitive PR
|
|
476
|
+
```bash
|
|
477
|
+
# Database optimization
|
|
478
|
+
npx ruv-swarm github review-init \
|
|
479
|
+
--pr 789 \
|
|
480
|
+
--agents "performance,database,caching" \
|
|
481
|
+
--benchmark \
|
|
482
|
+
--profile
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
### UI Component PR
|
|
486
|
+
```bash
|
|
487
|
+
# New component library
|
|
488
|
+
npx ruv-swarm github review-init \
|
|
489
|
+
--pr 321 \
|
|
490
|
+
--agents "accessibility,style,i18n,docs" \
|
|
491
|
+
--visual-regression \
|
|
492
|
+
--component-tests
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
## Monitoring & Analytics
|
|
496
|
+
|
|
497
|
+
### Review Dashboard
|
|
498
|
+
```bash
|
|
499
|
+
# Launch review dashboard
|
|
500
|
+
npx ruv-swarm github review-dashboard \
|
|
501
|
+
--real-time \
|
|
502
|
+
--show "agent-activity,issue-trends,fix-rates"
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
### Review Reports
|
|
506
|
+
```bash
|
|
507
|
+
# Generate review reports
|
|
508
|
+
npx ruv-swarm github review-report \
|
|
509
|
+
--format "markdown" \
|
|
510
|
+
--include "summary,details,trends" \
|
|
511
|
+
--email-stakeholders
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
See also: [swarm-pr.md](./swarm-pr.md), [workflow-automation.md](./workflow-automation.md)
|