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.
- package/.claude/commands/README.md +157 -0
- package/.claude/hooks/cfn-invoke-post-edit.sh +1 -1
- package/.claude/hooks/cfn-invoke-pre-edit.sh +88 -0
- package/.claude/skills/cfn-agent-spawning/spawn-worker.sh +176 -0
- package/.claude/skills/cfn-backlog-management/SKILL.md +199 -0
- package/.claude/skills/cfn-backlog-management/add-backlog-item.sh +210 -0
- package/claude-assets/agents/cfn-dev-team/architecture/base-template-generator.md +7 -21
- package/claude-assets/agents/cfn-dev-team/testing/test-validation-agent.md +312 -0
- package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +480 -115
- package/claude-assets/agents/csuite/cto-agent.md +371 -0
- package/claude-assets/agents/marketing_hybrid/cost_tracker.md +13 -0
- package/claude-assets/agents/marketing_hybrid/docker_deployer.md +13 -0
- package/claude-assets/agents/marketing_hybrid/zai_worker_spawner.md +13 -0
- package/claude-assets/hooks/cfn-invoke-post-edit.sh +1 -1
- package/claude-assets/hooks/cfn-invoke-pre-edit.sh +88 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-worker.sh +176 -0
- package/claude-assets/skills/cfn-backlog-management/SKILL.md +199 -0
- package/claude-assets/skills/cfn-backlog-management/add-backlog-item.sh +210 -0
- package/claude-assets/skills/pre-edit-backup/backup.sh +130 -0
- package/claude-assets/skills/pre-edit-backup/cleanup.sh +155 -0
- package/claude-assets/skills/pre-edit-backup/restore.sh +128 -0
- package/claude-assets/skills/pre-edit-backup/revert-file.sh +168 -0
- package/dist/agents/agent-loader.js +315 -0
- package/dist/agents/agent-loader.js.map +1 -1
- package/package.json +3 -2
- package/scripts/init-project.js +38 -3
- package/scripts/marketing_hybrid_deployment.sh +45 -0
- package/scripts/redis-prometheus-exporter.sh +33 -0
- package/scripts/track-zai-costs.sh +19 -0
- package/claude-assets/commands/agents/README.md +0 -10
- package/claude-assets/commands/agents/agent-capabilities.md +0 -21
- package/claude-assets/commands/agents/agent-coordination.md +0 -28
- package/claude-assets/commands/agents/agent-spawning.md +0 -28
- package/claude-assets/commands/agents/agent-types.md +0 -26
- package/claude-assets/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
- package/claude-assets/commands/analysis/README.md +0 -9
- package/claude-assets/commands/analysis/bottleneck-detect.md +0 -162
- package/claude-assets/commands/analysis/performance-bottlenecks.md +0 -59
- package/claude-assets/commands/analysis/performance-report.md +0 -25
- package/claude-assets/commands/analysis/token-efficiency.md +0 -45
- package/claude-assets/commands/analysis/token-usage.md +0 -25
- package/claude-assets/commands/automation/README.md +0 -9
- package/claude-assets/commands/automation/auto-agent.md +0 -122
- package/claude-assets/commands/automation/self-healing.md +0 -106
- package/claude-assets/commands/automation/session-memory.md +0 -90
- package/claude-assets/commands/automation/smart-agents.md +0 -73
- package/claude-assets/commands/automation/smart-spawn.md +0 -25
- package/claude-assets/commands/automation/workflow-select.md +0 -25
- package/claude-assets/commands/claude-md.js +0 -237
- package/claude-assets/commands/claude-soul.js +0 -28
- package/claude-assets/commands/cli-integration.js +0 -216
- package/claude-assets/commands/coordination/README.md +0 -9
- package/claude-assets/commands/coordination/agent-spawn.md +0 -25
- package/claude-assets/commands/coordination/coordination-system.md +0 -88
- package/claude-assets/commands/coordination/init.md +0 -44
- package/claude-assets/commands/coordination/orchestrate.md +0 -43
- package/claude-assets/commands/coordination/spawn.md +0 -45
- package/claude-assets/commands/coordination/swarm-init.md +0 -85
- package/claude-assets/commands/coordination/task-orchestrate.md +0 -25
- package/claude-assets/commands/github/README.md +0 -11
- package/claude-assets/commands/github/code-review-swarm.md +0 -514
- package/claude-assets/commands/github/code-review.md +0 -25
- package/claude-assets/commands/github/github-modes.md +0 -147
- package/claude-assets/commands/github/github-swarm.md +0 -121
- package/claude-assets/commands/github/issue-tracker.md +0 -292
- package/claude-assets/commands/github/issue-triage.md +0 -25
- package/claude-assets/commands/github/multi-repo-swarm.md +0 -519
- package/claude-assets/commands/github/pr-enhance.md +0 -26
- package/claude-assets/commands/github/pr-manager.md +0 -170
- package/claude-assets/commands/github/project-board-sync.md +0 -471
- package/claude-assets/commands/github/release-manager.md +0 -338
- package/claude-assets/commands/github/release-swarm.md +0 -544
- package/claude-assets/commands/github/repo-analyze.md +0 -25
- package/claude-assets/commands/github/repo-architect.md +0 -367
- package/claude-assets/commands/github/swarm-issue.md +0 -482
- package/claude-assets/commands/github/swarm-pr.md +0 -285
- package/claude-assets/commands/github/sync-coordinator.md +0 -301
- package/claude-assets/commands/github/workflow-automation.md +0 -442
- package/claude-assets/commands/github.js +0 -638
- package/claude-assets/commands/hive-mind/README.md +0 -17
- package/claude-assets/commands/hive-mind/hive-mind-consensus.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-init.md +0 -18
- package/claude-assets/commands/hive-mind/hive-mind-memory.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-metrics.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-resume.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-sessions.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-spawn.md +0 -21
- package/claude-assets/commands/hive-mind/hive-mind-status.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-stop.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind-wizard.md +0 -8
- package/claude-assets/commands/hive-mind/hive-mind.md +0 -27
- package/claude-assets/commands/hooks/README.md +0 -11
- package/claude-assets/commands/hooks/overview.md +0 -58
- package/claude-assets/commands/hooks/post-edit.md +0 -117
- package/claude-assets/commands/hooks/post-task.md +0 -112
- package/claude-assets/commands/hooks/pre-edit.md +0 -113
- package/claude-assets/commands/hooks/pre-task.md +0 -111
- package/claude-assets/commands/hooks/session-end.md +0 -118
- package/claude-assets/commands/hooks/session-start.md +0 -9
- package/claude-assets/commands/hooks/setup.md +0 -103
- package/claude-assets/commands/hooks.js +0 -651
- package/claude-assets/commands/index.js +0 -119
- package/claude-assets/commands/memory/README.md +0 -9
- package/claude-assets/commands/memory/memory-bank.md +0 -58
- package/claude-assets/commands/memory/memory-persist.md +0 -25
- package/claude-assets/commands/memory/memory-search.md +0 -25
- package/claude-assets/commands/memory/memory-usage.md +0 -25
- package/claude-assets/commands/memory/neural.md +0 -47
- package/claude-assets/commands/memory/usage.md +0 -46
- package/claude-assets/commands/monitoring/README.md +0 -9
- package/claude-assets/commands/monitoring/agent-metrics.md +0 -25
- package/claude-assets/commands/monitoring/agents.md +0 -44
- package/claude-assets/commands/monitoring/real-time-view.md +0 -25
- package/claude-assets/commands/monitoring/status.md +0 -46
- package/claude-assets/commands/monitoring/swarm-monitor.md +0 -25
- package/claude-assets/commands/neural.js +0 -572
- package/claude-assets/commands/optimization/README.md +0 -9
- package/claude-assets/commands/optimization/auto-topology.md +0 -62
- package/claude-assets/commands/optimization/cache-manage.md +0 -25
- package/claude-assets/commands/optimization/parallel-execute.md +0 -25
- package/claude-assets/commands/optimization/parallel-execution.md +0 -50
- package/claude-assets/commands/optimization/topology-optimize.md +0 -25
- package/claude-assets/commands/pair/README.md +0 -261
- package/claude-assets/commands/pair/commands.md +0 -546
- package/claude-assets/commands/pair/config.md +0 -510
- package/claude-assets/commands/pair/examples.md +0 -512
- package/claude-assets/commands/pair/modes.md +0 -348
- package/claude-assets/commands/pair/session.md +0 -407
- package/claude-assets/commands/pair/start.md +0 -209
- package/claude-assets/commands/parse-epic.js +0 -180
- package/claude-assets/commands/performance.js +0 -582
- package/claude-assets/commands/register-all-commands.js +0 -320
- package/claude-assets/commands/register-claude-md.js +0 -82
- package/claude-assets/commands/register-claude-soul.js +0 -80
- package/claude-assets/commands/sparc/analyzer.md +0 -52
- package/claude-assets/commands/sparc/architect.md +0 -53
- package/claude-assets/commands/sparc/batch-executor.md +0 -54
- package/claude-assets/commands/sparc/coder.md +0 -54
- package/claude-assets/commands/sparc/debugger.md +0 -54
- package/claude-assets/commands/sparc/designer.md +0 -53
- package/claude-assets/commands/sparc/documenter.md +0 -54
- package/claude-assets/commands/sparc/innovator.md +0 -54
- package/claude-assets/commands/sparc/memory-manager.md +0 -54
- package/claude-assets/commands/sparc/optimizer.md +0 -54
- package/claude-assets/commands/sparc/orchestrator.md +0 -132
- package/claude-assets/commands/sparc/researcher.md +0 -54
- package/claude-assets/commands/sparc/reviewer.md +0 -54
- package/claude-assets/commands/sparc/sparc-modes.md +0 -174
- package/claude-assets/commands/sparc/swarm-coordinator.md +0 -54
- package/claude-assets/commands/sparc/tdd.md +0 -54
- package/claude-assets/commands/sparc/tester.md +0 -54
- package/claude-assets/commands/sparc/workflow-manager.md +0 -54
- package/claude-assets/commands/sparc.js +0 -110
- package/claude-assets/commands/stream-chain/pipeline.md +0 -121
- package/claude-assets/commands/stream-chain/run.md +0 -70
- package/claude-assets/commands/swarm/README.md +0 -15
- package/claude-assets/commands/swarm/analysis.md +0 -95
- package/claude-assets/commands/swarm/development.md +0 -96
- package/claude-assets/commands/swarm/examples.md +0 -168
- package/claude-assets/commands/swarm/maintenance.md +0 -102
- package/claude-assets/commands/swarm/optimization.md +0 -117
- package/claude-assets/commands/swarm/research.md +0 -136
- package/claude-assets/commands/swarm/swarm-analysis.md +0 -8
- package/claude-assets/commands/swarm/swarm-background.md +0 -8
- package/claude-assets/commands/swarm/swarm-init.md +0 -19
- package/claude-assets/commands/swarm/swarm-modes.md +0 -8
- package/claude-assets/commands/swarm/swarm-monitor.md +0 -8
- package/claude-assets/commands/swarm/swarm-spawn.md +0 -19
- package/claude-assets/commands/swarm/swarm-status.md +0 -8
- package/claude-assets/commands/swarm/swarm-strategies.md +0 -8
- package/claude-assets/commands/swarm/swarm.md +0 -27
- package/claude-assets/commands/swarm/testing.md +0 -131
- package/claude-assets/commands/swarm.js +0 -423
- package/claude-assets/commands/testing/playwright-e2e.md +0 -288
- package/claude-assets/commands/training/README.md +0 -9
- package/claude-assets/commands/training/model-update.md +0 -25
- package/claude-assets/commands/training/neural-patterns.md +0 -74
- package/claude-assets/commands/training/neural-train.md +0 -25
- package/claude-assets/commands/training/pattern-learn.md +0 -25
- package/claude-assets/commands/training/specialization.md +0 -63
- package/claude-assets/commands/truth/start.md +0 -143
- package/claude-assets/commands/validate-commands.js +0 -223
- package/claude-assets/commands/verify/check.md +0 -50
- package/claude-assets/commands/verify/start.md +0 -128
- package/claude-assets/commands/workflow.js +0 -606
- package/claude-assets/commands/workflows/README.md +0 -9
- package/claude-assets/commands/workflows/development.md +0 -78
- package/claude-assets/commands/workflows/research.md +0 -63
- package/claude-assets/commands/workflows/workflow-create.md +0 -25
- package/claude-assets/commands/workflows/workflow-execute.md +0 -25
- package/claude-assets/commands/workflows/workflow-export.md +0 -25
- package/claude-assets/hooks/post-edit.config.json +0 -12
- package/claude-assets/skills/team-provider-routing/spawn-worker.sh +0 -91
|
@@ -1,638 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* GitHub Integration Slash Command
|
|
5
|
-
* Usage: /github <action> [options]
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { SlashCommand } from '../core/slash-command.js';
|
|
9
|
-
|
|
10
|
-
export class GitHubCommand extends SlashCommand {
|
|
11
|
-
constructor() {
|
|
12
|
-
super('github', 'Manage GitHub repositories, PRs, issues, and workflows');
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
getUsage() {
|
|
16
|
-
return '/github <action> [options]';
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
getExamples() {
|
|
20
|
-
return [
|
|
21
|
-
'/github analyze owner/repo - Analyze repository code quality',
|
|
22
|
-
'/github pr review 123 - Review pull request #123',
|
|
23
|
-
'/github issue track owner/repo - Track and triage issues',
|
|
24
|
-
'/github release owner/repo v1.0.0 - Coordinate release',
|
|
25
|
-
'/github workflow owner/repo - Setup automation workflows',
|
|
26
|
-
'/github sync repo1,repo2 - Sync multiple repositories',
|
|
27
|
-
'/github metrics owner/repo - Get repository metrics'
|
|
28
|
-
];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
async execute(args, context) {
|
|
32
|
-
const [action, ...params] = args;
|
|
33
|
-
|
|
34
|
-
if (!action) {
|
|
35
|
-
return this.formatResponse({
|
|
36
|
-
success: false,
|
|
37
|
-
error: 'Action required',
|
|
38
|
-
usage: this.getUsage(),
|
|
39
|
-
availableActions: [
|
|
40
|
-
'analyze', 'pr', 'issue', 'release', 'workflow',
|
|
41
|
-
'sync', 'metrics', 'review', 'track', 'coordinate'
|
|
42
|
-
]
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
try {
|
|
47
|
-
let result;
|
|
48
|
-
|
|
49
|
-
switch (action.toLowerCase()) {
|
|
50
|
-
case 'analyze':
|
|
51
|
-
result = await this.analyzeRepository(params);
|
|
52
|
-
break;
|
|
53
|
-
|
|
54
|
-
case 'pr':
|
|
55
|
-
result = await this.managePullRequest(params);
|
|
56
|
-
break;
|
|
57
|
-
|
|
58
|
-
case 'issue':
|
|
59
|
-
result = await this.manageIssues(params);
|
|
60
|
-
break;
|
|
61
|
-
|
|
62
|
-
case 'release':
|
|
63
|
-
result = await this.coordinateRelease(params);
|
|
64
|
-
break;
|
|
65
|
-
|
|
66
|
-
case 'workflow':
|
|
67
|
-
result = await this.manageWorkflows(params);
|
|
68
|
-
break;
|
|
69
|
-
|
|
70
|
-
case 'sync':
|
|
71
|
-
result = await this.syncRepositories(params);
|
|
72
|
-
break;
|
|
73
|
-
|
|
74
|
-
case 'metrics':
|
|
75
|
-
result = await this.getMetrics(params);
|
|
76
|
-
break;
|
|
77
|
-
|
|
78
|
-
case 'review':
|
|
79
|
-
result = await this.codeReview(params);
|
|
80
|
-
break;
|
|
81
|
-
|
|
82
|
-
case 'track':
|
|
83
|
-
result = await this.trackIssues(params);
|
|
84
|
-
break;
|
|
85
|
-
|
|
86
|
-
case 'coordinate':
|
|
87
|
-
result = await this.coordinateProject(params);
|
|
88
|
-
break;
|
|
89
|
-
|
|
90
|
-
default:
|
|
91
|
-
result = {
|
|
92
|
-
success: false,
|
|
93
|
-
error: `Unknown action: ${action}`,
|
|
94
|
-
availableActions: [
|
|
95
|
-
'analyze', 'pr', 'issue', 'release', 'workflow',
|
|
96
|
-
'sync', 'metrics', 'review', 'track', 'coordinate'
|
|
97
|
-
]
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return this.formatResponse(result);
|
|
102
|
-
} catch (error) {
|
|
103
|
-
return this.formatResponse({
|
|
104
|
-
success: false,
|
|
105
|
-
error: error.message,
|
|
106
|
-
action: action
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
async analyzeRepository(params) {
|
|
112
|
-
const [repo, analysisType = 'code_quality'] = params;
|
|
113
|
-
|
|
114
|
-
if (!repo) {
|
|
115
|
-
return {
|
|
116
|
-
success: false,
|
|
117
|
-
error: 'Repository required (format: owner/repo)'
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
const validAnalysisTypes = ['code_quality', 'performance', 'security'];
|
|
122
|
-
if (!validAnalysisTypes.includes(analysisType)) {
|
|
123
|
-
return {
|
|
124
|
-
success: false,
|
|
125
|
-
error: `Invalid analysis type. Valid options: ${validAnalysisTypes.join(', ')}`
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
console.log(`🔍 Analyzing repository ${repo} for ${analysisType}...`);
|
|
130
|
-
|
|
131
|
-
const prompt = `
|
|
132
|
-
🔍 **GITHUB REPOSITORY ANALYSIS**
|
|
133
|
-
|
|
134
|
-
**Repository:** ${repo}
|
|
135
|
-
**Analysis Type:** ${analysisType}
|
|
136
|
-
|
|
137
|
-
**Analyze repository with coordinated agents:**
|
|
138
|
-
|
|
139
|
-
\`\`\`javascript
|
|
140
|
-
// Repository analysis with MCP tools
|
|
141
|
-
mcp__claude-flow__github_repo_analyze({
|
|
142
|
-
repo: "${repo}",
|
|
143
|
-
analysis_type: "${analysisType}"
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
// Spawn specialized analysis agents with Claude Code's Task tool
|
|
147
|
-
Task("Code Analyzer", "Analyze code quality, patterns, and architecture in ${repo}", "code-analyzer")
|
|
148
|
-
Task("Security Auditor", "Perform security analysis on ${repo}", "security-manager")
|
|
149
|
-
Task("Performance Analyst", "Analyze performance bottlenecks in ${repo}", "perf-analyzer")
|
|
150
|
-
Task("Documentation Reviewer", "Review and improve documentation in ${repo}", "api-docs")
|
|
151
|
-
\`\`\`
|
|
152
|
-
|
|
153
|
-
**Analysis Coverage:**
|
|
154
|
-
- 📈 Code quality metrics
|
|
155
|
-
- 🔒 Security vulnerability assessment
|
|
156
|
-
- ⚡ Performance bottleneck identification
|
|
157
|
-
- 📝 Documentation completeness
|
|
158
|
-
- 🎨 Code style consistency
|
|
159
|
-
- 🔄 Architecture analysis
|
|
160
|
-
|
|
161
|
-
**Execute repository analysis now**:
|
|
162
|
-
`;
|
|
163
|
-
|
|
164
|
-
return {
|
|
165
|
-
success: true,
|
|
166
|
-
prompt: prompt,
|
|
167
|
-
repository: repo,
|
|
168
|
-
analysisType: analysisType
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
async managePullRequest(params) {
|
|
173
|
-
const [action, repo, prNumber] = params;
|
|
174
|
-
|
|
175
|
-
if (!action || !repo) {
|
|
176
|
-
return {
|
|
177
|
-
success: false,
|
|
178
|
-
error: 'Action and repository required',
|
|
179
|
-
usage: '/github pr <review|merge|close> <owner/repo> [pr_number]'
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
const validActions = ['review', 'merge', 'close'];
|
|
184
|
-
if (!validActions.includes(action)) {
|
|
185
|
-
return {
|
|
186
|
-
success: false,
|
|
187
|
-
error: `Invalid PR action. Valid options: ${validActions.join(', ')}`
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
console.log(`📝 Managing PR ${prNumber ? `#${prNumber}` : ''} in ${repo}: ${action}`);
|
|
192
|
-
|
|
193
|
-
const prompt = `
|
|
194
|
-
📝 **PULL REQUEST MANAGEMENT**
|
|
195
|
-
|
|
196
|
-
**Repository:** ${repo}
|
|
197
|
-
**Action:** ${action}
|
|
198
|
-
**PR Number:** ${prNumber || 'auto-detect'}
|
|
199
|
-
|
|
200
|
-
**Manage pull request with coordinated review:**
|
|
201
|
-
|
|
202
|
-
\`\`\`javascript
|
|
203
|
-
// PR management with MCP tools
|
|
204
|
-
mcp__claude-flow__github_pr_manage({
|
|
205
|
-
repo: "${repo}",
|
|
206
|
-
action: "${action}",
|
|
207
|
-
${prNumber ? `pr_number: ${prNumber}` : ''}
|
|
208
|
-
});
|
|
209
|
-
|
|
210
|
-
// Spawn PR review agents with Claude Code's Task tool
|
|
211
|
-
Task("Code Reviewer", "Review code changes in PR${prNumber ? ` #${prNumber}` : ''} for ${repo}", "reviewer")
|
|
212
|
-
Task("Test Coordinator", "Ensure comprehensive testing for PR changes", "tester")
|
|
213
|
-
Task("Security Reviewer", "Security review of PR changes", "security-manager")
|
|
214
|
-
Task("Documentation Updater", "Update documentation based on PR changes", "api-docs")
|
|
215
|
-
\`\`\`
|
|
216
|
-
|
|
217
|
-
**PR Review Process:**
|
|
218
|
-
- 📈 Code quality assessment
|
|
219
|
-
- ⚙️ Test coverage validation
|
|
220
|
-
- 🔒 Security impact analysis
|
|
221
|
-
- 📝 Documentation updates
|
|
222
|
-
- 🎨 Style guide compliance
|
|
223
|
-
- 🔄 Integration testing
|
|
224
|
-
|
|
225
|
-
**Execute PR management now**:
|
|
226
|
-
`;
|
|
227
|
-
|
|
228
|
-
return {
|
|
229
|
-
success: true,
|
|
230
|
-
prompt: prompt,
|
|
231
|
-
repository: repo,
|
|
232
|
-
action: action,
|
|
233
|
-
prNumber: prNumber
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
async manageIssues(params) {
|
|
238
|
-
const [action, repo] = params;
|
|
239
|
-
|
|
240
|
-
if (!action || !repo) {
|
|
241
|
-
return {
|
|
242
|
-
success: false,
|
|
243
|
-
error: 'Action and repository required',
|
|
244
|
-
usage: '/github issue <track|triage|assign> <owner/repo>'
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
console.log(`📝 Managing issues in ${repo}: ${action}`);
|
|
249
|
-
|
|
250
|
-
const prompt = `
|
|
251
|
-
📝 **ISSUE MANAGEMENT**
|
|
252
|
-
|
|
253
|
-
**Repository:** ${repo}
|
|
254
|
-
**Action:** ${action}
|
|
255
|
-
|
|
256
|
-
**Manage repository issues with coordination:**
|
|
257
|
-
|
|
258
|
-
\`\`\`javascript
|
|
259
|
-
// Issue tracking & triage
|
|
260
|
-
mcp__claude-flow__github_issue_track({
|
|
261
|
-
repo: "${repo}",
|
|
262
|
-
action: "${action}"
|
|
263
|
-
});
|
|
264
|
-
|
|
265
|
-
// Spawn issue management agents with Claude Code's Task tool
|
|
266
|
-
Task("Issue Triager", "Triage and categorize issues in ${repo}", "analyst")
|
|
267
|
-
Task("Bug Hunter", "Identify and prioritize bugs in ${repo}", "reviewer")
|
|
268
|
-
Task("Feature Planner", "Plan and scope feature requests for ${repo}", "planner")
|
|
269
|
-
Task("Community Manager", "Manage community interactions and responses", "coordinator")
|
|
270
|
-
\`\`\`
|
|
271
|
-
|
|
272
|
-
**Issue Management:**
|
|
273
|
-
- 🏷️ Automatic labeling and categorization
|
|
274
|
-
- 📉 Priority assessment and ranking
|
|
275
|
-
- 👥 Assignment to appropriate developers
|
|
276
|
-
- 📝 Template compliance checking
|
|
277
|
-
- 🔄 Status tracking and updates
|
|
278
|
-
|
|
279
|
-
**Execute issue management now**:
|
|
280
|
-
`;
|
|
281
|
-
|
|
282
|
-
return {
|
|
283
|
-
success: true,
|
|
284
|
-
prompt: prompt,
|
|
285
|
-
repository: repo,
|
|
286
|
-
action: action
|
|
287
|
-
};
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
async coordinateRelease(params) {
|
|
291
|
-
const [repo, version] = params;
|
|
292
|
-
|
|
293
|
-
if (!repo || !version) {
|
|
294
|
-
return {
|
|
295
|
-
success: false,
|
|
296
|
-
error: 'Repository and version required',
|
|
297
|
-
usage: '/github release <owner/repo> <version>'
|
|
298
|
-
};
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
console.log(`🚀 Coordinating release ${version} for ${repo}...`);
|
|
302
|
-
|
|
303
|
-
const prompt = `
|
|
304
|
-
🚀 **RELEASE COORDINATION**
|
|
305
|
-
|
|
306
|
-
**Repository:** ${repo}
|
|
307
|
-
**Version:** ${version}
|
|
308
|
-
|
|
309
|
-
**Coordinate release with automated workflow:**
|
|
310
|
-
|
|
311
|
-
\`\`\`javascript
|
|
312
|
-
// Release coordination
|
|
313
|
-
mcp__claude-flow__github_release_coord({
|
|
314
|
-
repo: "${repo}",
|
|
315
|
-
version: "${version}"
|
|
316
|
-
});
|
|
317
|
-
|
|
318
|
-
// Spawn release coordination agents with Claude Code's Task tool
|
|
319
|
-
Task("Release Manager", "Coordinate release ${version} for ${repo}", "release-manager")
|
|
320
|
-
Task("QA Coordinator", "Ensure quality for release ${version}", "tester")
|
|
321
|
-
Task("Documentation Lead", "Update release documentation", "api-docs")
|
|
322
|
-
Task("Deployment Engineer", "Handle release deployment and rollout", "cicd-engineer")
|
|
323
|
-
\`\`\`
|
|
324
|
-
|
|
325
|
-
**Release Checklist:**
|
|
326
|
-
- ✅ Code freeze and branch creation
|
|
327
|
-
- ✅ Comprehensive testing suite
|
|
328
|
-
- ✅ Documentation updates
|
|
329
|
-
- ✅ Changelog generation
|
|
330
|
-
- ✅ Security audit completion
|
|
331
|
-
- ✅ Performance validation
|
|
332
|
-
- ✅ Deployment preparation
|
|
333
|
-
|
|
334
|
-
**Execute release coordination now**:
|
|
335
|
-
`;
|
|
336
|
-
|
|
337
|
-
return {
|
|
338
|
-
success: true,
|
|
339
|
-
prompt: prompt,
|
|
340
|
-
repository: repo,
|
|
341
|
-
version: version
|
|
342
|
-
};
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
async manageWorkflows(params) {
|
|
346
|
-
const [repo, ...workflowParams] = params;
|
|
347
|
-
|
|
348
|
-
if (!repo) {
|
|
349
|
-
return {
|
|
350
|
-
success: false,
|
|
351
|
-
error: 'Repository required',
|
|
352
|
-
usage: '/github workflow <owner/repo> [workflow_config]'
|
|
353
|
-
};
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
console.log(`⚙️ Managing workflows for ${repo}...`);
|
|
357
|
-
|
|
358
|
-
const prompt = `
|
|
359
|
-
⚙️ **WORKFLOW AUTOMATION**
|
|
360
|
-
|
|
361
|
-
**Repository:** ${repo}
|
|
362
|
-
|
|
363
|
-
**Setup automated workflows:**
|
|
364
|
-
|
|
365
|
-
\`\`\`javascript
|
|
366
|
-
// Workflow automation
|
|
367
|
-
mcp__claude-flow__github_workflow_auto({
|
|
368
|
-
repo: "${repo}",
|
|
369
|
-
workflow: {
|
|
370
|
-
ci: true,
|
|
371
|
-
cd: true,
|
|
372
|
-
codeReview: true,
|
|
373
|
-
security: true
|
|
374
|
-
}
|
|
375
|
-
});
|
|
376
|
-
|
|
377
|
-
// Spawn workflow setup agents with Claude Code's Task tool
|
|
378
|
-
Task("DevOps Engineer", "Setup CI/CD workflows for ${repo}", "cicd-engineer")
|
|
379
|
-
Task("Security Engineer", "Configure security workflows", "security-manager")
|
|
380
|
-
Task("Quality Engineer", "Setup code quality workflows", "reviewer")
|
|
381
|
-
Task("Automation Specialist", "Configure automation rules", "coordinator")
|
|
382
|
-
\`\`\`
|
|
383
|
-
|
|
384
|
-
**Workflow Features:**
|
|
385
|
-
- 🔄 Continuous Integration (CI)
|
|
386
|
-
- 🚀 Continuous Deployment (CD)
|
|
387
|
-
- 📝 Automated code review
|
|
388
|
-
- 🔒 Security scanning
|
|
389
|
-
- 📈 Performance monitoring
|
|
390
|
-
- 🏷️ Automatic labeling
|
|
391
|
-
|
|
392
|
-
**Execute workflow setup now**:
|
|
393
|
-
`;
|
|
394
|
-
|
|
395
|
-
return {
|
|
396
|
-
success: true,
|
|
397
|
-
prompt: prompt,
|
|
398
|
-
repository: repo
|
|
399
|
-
};
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
async syncRepositories(params) {
|
|
403
|
-
const repos = params[0] ? params[0].split(',') : [];
|
|
404
|
-
|
|
405
|
-
if (repos.length === 0) {
|
|
406
|
-
return {
|
|
407
|
-
success: false,
|
|
408
|
-
error: 'Repository list required',
|
|
409
|
-
usage: '/github sync repo1,repo2,repo3'
|
|
410
|
-
};
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
console.log(`🔄 Synchronizing repositories: ${repos.join(', ')}`);
|
|
414
|
-
|
|
415
|
-
const prompt = `
|
|
416
|
-
🔄 **MULTI-REPOSITORY SYNC**
|
|
417
|
-
|
|
418
|
-
**Repositories:** ${repos.join(', ')}
|
|
419
|
-
|
|
420
|
-
**Coordinate multi-repo synchronization:**
|
|
421
|
-
|
|
422
|
-
\`\`\`javascript
|
|
423
|
-
// Multi-repo sync coordination
|
|
424
|
-
mcp__claude-flow__github_sync_coord({
|
|
425
|
-
repos: [${repos.map(r => `"${r}"`).join(', ')}]
|
|
426
|
-
});
|
|
427
|
-
|
|
428
|
-
// Spawn sync coordination agents with Claude Code's Task tool
|
|
429
|
-
Task("Sync Coordinator", "Coordinate synchronization across ${repos.length} repositories", "sync-coordinator")
|
|
430
|
-
Task("Merge Specialist", "Handle merge conflicts and resolution", "reviewer")
|
|
431
|
-
Task("Release Coordinator", "Coordinate synchronized releases", "release-manager")
|
|
432
|
-
Task("Quality Assurance", "Ensure quality across all repositories", "tester")
|
|
433
|
-
\`\`\`
|
|
434
|
-
|
|
435
|
-
**Synchronization Features:**
|
|
436
|
-
- 🔄 Branch synchronization
|
|
437
|
-
- 🏷️ Consistent labeling
|
|
438
|
-
- 📝 Documentation alignment
|
|
439
|
-
- ⚙️ Workflow standardization
|
|
440
|
-
- 🚀 Coordinated releases
|
|
441
|
-
|
|
442
|
-
**Execute repository sync now**:
|
|
443
|
-
`;
|
|
444
|
-
|
|
445
|
-
return {
|
|
446
|
-
success: true,
|
|
447
|
-
prompt: prompt,
|
|
448
|
-
repositories: repos
|
|
449
|
-
};
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
async getMetrics(params) {
|
|
453
|
-
const [repo] = params;
|
|
454
|
-
|
|
455
|
-
if (!repo) {
|
|
456
|
-
return {
|
|
457
|
-
success: false,
|
|
458
|
-
error: 'Repository required',
|
|
459
|
-
usage: '/github metrics <owner/repo>'
|
|
460
|
-
};
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
console.log(`📈 Getting metrics for ${repo}...`);
|
|
464
|
-
|
|
465
|
-
const prompt = `
|
|
466
|
-
📈 **REPOSITORY METRICS**
|
|
467
|
-
|
|
468
|
-
**Repository:** ${repo}
|
|
469
|
-
|
|
470
|
-
**Collect comprehensive repository metrics:**
|
|
471
|
-
|
|
472
|
-
\`\`\`javascript
|
|
473
|
-
// Repository metrics
|
|
474
|
-
mcp__claude-flow__github_metrics({
|
|
475
|
-
repo: "${repo}"
|
|
476
|
-
});
|
|
477
|
-
\`\`\`
|
|
478
|
-
|
|
479
|
-
**Metrics Dashboard:**
|
|
480
|
-
- 📉 Contribution statistics
|
|
481
|
-
- 📝 Issue and PR metrics
|
|
482
|
-
- 📈 Code quality trends
|
|
483
|
-
- ⚡ Performance indicators
|
|
484
|
-
- 👥 Community engagement
|
|
485
|
-
- 🔒 Security status
|
|
486
|
-
|
|
487
|
-
**Execute metrics collection now**:
|
|
488
|
-
`;
|
|
489
|
-
|
|
490
|
-
return {
|
|
491
|
-
success: true,
|
|
492
|
-
prompt: prompt,
|
|
493
|
-
repository: repo
|
|
494
|
-
};
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
async codeReview(params) {
|
|
498
|
-
const [repo, prNumber] = params;
|
|
499
|
-
|
|
500
|
-
if (!repo || !prNumber) {
|
|
501
|
-
return {
|
|
502
|
-
success: false,
|
|
503
|
-
error: 'Repository and PR number required',
|
|
504
|
-
usage: '/github review <owner/repo> <pr_number>'
|
|
505
|
-
};
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
console.log(`📝 Performing automated code review for PR #${prNumber} in ${repo}...`);
|
|
509
|
-
|
|
510
|
-
const prompt = `
|
|
511
|
-
📝 **AUTOMATED CODE REVIEW**
|
|
512
|
-
|
|
513
|
-
**Repository:** ${repo}
|
|
514
|
-
**PR Number:** #${prNumber}
|
|
515
|
-
|
|
516
|
-
**Perform comprehensive code review:**
|
|
517
|
-
|
|
518
|
-
\`\`\`javascript
|
|
519
|
-
// Automated code review
|
|
520
|
-
mcp__claude-flow__github_code_review({
|
|
521
|
-
repo: "${repo}",
|
|
522
|
-
pr: ${prNumber}
|
|
523
|
-
});
|
|
524
|
-
|
|
525
|
-
// Spawn code review agents with Claude Code's Task tool
|
|
526
|
-
Task("Senior Reviewer", "Comprehensive code review for PR #${prNumber}", "reviewer")
|
|
527
|
-
Task("Security Auditor", "Security review of changes", "security-manager")
|
|
528
|
-
Task("Performance Analyst", "Performance impact analysis", "perf-analyzer")
|
|
529
|
-
Task("Style Checker", "Code style and consistency review", "code-analyzer")
|
|
530
|
-
\`\`\`
|
|
531
|
-
|
|
532
|
-
**Review Checklist:**
|
|
533
|
-
- ✅ Code quality and best practices
|
|
534
|
-
- ✅ Security vulnerability assessment
|
|
535
|
-
- ✅ Performance impact analysis
|
|
536
|
-
- ✅ Test coverage validation
|
|
537
|
-
- ✅ Documentation updates
|
|
538
|
-
- ✅ Style guide compliance
|
|
539
|
-
|
|
540
|
-
**Execute automated code review now**:
|
|
541
|
-
`;
|
|
542
|
-
|
|
543
|
-
return {
|
|
544
|
-
success: true,
|
|
545
|
-
prompt: prompt,
|
|
546
|
-
repository: repo,
|
|
547
|
-
prNumber: prNumber
|
|
548
|
-
};
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
async trackIssues(params) {
|
|
552
|
-
const [repo] = params;
|
|
553
|
-
|
|
554
|
-
if (!repo) {
|
|
555
|
-
return {
|
|
556
|
-
success: false,
|
|
557
|
-
error: 'Repository required',
|
|
558
|
-
usage: '/github track <owner/repo>'
|
|
559
|
-
};
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
console.log(`📝 Tracking issues for ${repo}...`);
|
|
563
|
-
|
|
564
|
-
const prompt = `
|
|
565
|
-
📝 **ISSUE TRACKING**
|
|
566
|
-
|
|
567
|
-
**Repository:** ${repo}
|
|
568
|
-
|
|
569
|
-
**Setup comprehensive issue tracking:**
|
|
570
|
-
|
|
571
|
-
\`\`\`javascript
|
|
572
|
-
// Issue tracking & triage
|
|
573
|
-
mcp__claude-flow__github_issue_track({
|
|
574
|
-
repo: "${repo}",
|
|
575
|
-
action: "track"
|
|
576
|
-
});
|
|
577
|
-
|
|
578
|
-
// Spawn issue tracking agents with Claude Code's Task tool
|
|
579
|
-
Task("Issue Tracker", "Track and categorize issues in ${repo}", "swarm-issue")
|
|
580
|
-
Task("Bug Triager", "Triage and prioritize bugs", "analyst")
|
|
581
|
-
Task("Feature Coordinator", "Coordinate feature requests", "planner")
|
|
582
|
-
\`\`\`
|
|
583
|
-
|
|
584
|
-
**Execute issue tracking now**:
|
|
585
|
-
`;
|
|
586
|
-
|
|
587
|
-
return {
|
|
588
|
-
success: true,
|
|
589
|
-
prompt: prompt,
|
|
590
|
-
repository: repo
|
|
591
|
-
};
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
async coordinateProject(params) {
|
|
595
|
-
const [repo] = params;
|
|
596
|
-
|
|
597
|
-
if (!repo) {
|
|
598
|
-
return {
|
|
599
|
-
success: false,
|
|
600
|
-
error: 'Repository required',
|
|
601
|
-
usage: '/github coordinate <owner/repo>'
|
|
602
|
-
};
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
console.log(`🎯 Coordinating project for ${repo}...`);
|
|
606
|
-
|
|
607
|
-
const prompt = `
|
|
608
|
-
🎯 **PROJECT COORDINATION**
|
|
609
|
-
|
|
610
|
-
**Repository:** ${repo}
|
|
611
|
-
|
|
612
|
-
**Setup comprehensive project coordination:**
|
|
613
|
-
|
|
614
|
-
\`\`\`javascript
|
|
615
|
-
// Multi-repo project coordination
|
|
616
|
-
mcp__claude-flow__github_sync_coord({
|
|
617
|
-
repos: ["${repo}"]
|
|
618
|
-
});
|
|
619
|
-
|
|
620
|
-
// Spawn project coordination agents with Claude Code's Task tool
|
|
621
|
-
Task("Project Manager", "Overall project coordination for ${repo}", "coordinator")
|
|
622
|
-
Task("Release Manager", "Coordinate releases and deployments", "release-manager")
|
|
623
|
-
Task("Quality Lead", "Ensure quality across all aspects", "tester")
|
|
624
|
-
Task("Community Manager", "Manage community and contributions", "analyst")
|
|
625
|
-
\`\`\`
|
|
626
|
-
|
|
627
|
-
**Execute project coordination now**:
|
|
628
|
-
`;
|
|
629
|
-
|
|
630
|
-
return {
|
|
631
|
-
success: true,
|
|
632
|
-
prompt: prompt,
|
|
633
|
-
repository: repo
|
|
634
|
-
};
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
export default GitHubCommand;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# Hive-mind Commands
|
|
2
|
-
|
|
3
|
-
Commands for hive-mind operations in Claude Flow.
|
|
4
|
-
|
|
5
|
-
## Available Commands
|
|
6
|
-
|
|
7
|
-
- [hive-mind](./hive-mind.md)
|
|
8
|
-
- [hive-mind-init](./hive-mind-init.md)
|
|
9
|
-
- [hive-mind-spawn](./hive-mind-spawn.md)
|
|
10
|
-
- [hive-mind-status](./hive-mind-status.md)
|
|
11
|
-
- [hive-mind-resume](./hive-mind-resume.md)
|
|
12
|
-
- [hive-mind-stop](./hive-mind-stop.md)
|
|
13
|
-
- [hive-mind-sessions](./hive-mind-sessions.md)
|
|
14
|
-
- [hive-mind-consensus](./hive-mind-consensus.md)
|
|
15
|
-
- [hive-mind-memory](./hive-mind-memory.md)
|
|
16
|
-
- [hive-mind-metrics](./hive-mind-metrics.md)
|
|
17
|
-
- [hive-mind-wizard](./hive-mind-wizard.md)
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# hive-mind-init
|
|
2
|
-
|
|
3
|
-
Initialize the Hive Mind collective intelligence system.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
```bash
|
|
7
|
-
npx claude-flow-novice hive-mind init [options]
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
## Options
|
|
11
|
-
- `--force` - Force reinitialize
|
|
12
|
-
- `--config <file>` - Configuration file
|
|
13
|
-
|
|
14
|
-
## Examples
|
|
15
|
-
```bash
|
|
16
|
-
npx claude-flow-novice hive-mind init
|
|
17
|
-
npx claude-flow-novice hive-mind init --force
|
|
18
|
-
```
|