claude-flow-novice 2.14.0 → 2.14.2
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/{cfn/CFN_LOOP_TASK_MODE.md → CFN_LOOP_TASK_MODE.md} +50 -3
- package/.claude/root-claude-distribute/CFN-CLAUDE.md +126 -233
- package/.claude/skills/cfn-backlog-management/add-backlog-item.sh +25 -27
- package/.claude/skills/cfn-changelog-management/add-changelog-entry.sh +21 -19
- package/.claude/skills/cfn-changelog-management/bulk-import.sh +268 -0
- package/.claude/skills/cfn-changelog-management/lib/README.md +212 -0
- package/.claude/skills/cfn-changelog-management/lib/validation.sh +72 -0
- package/.claude/skills/cfn-product-owner-decision/execute-decision.sh +36 -11
- package/claude-assets/agents/cfn-dev-team/analysts/root-cause-analyst.md +259 -0
- package/claude-assets/agents/cfn-dev-team/reviewers/reviewer.md +45 -6
- package/claude-assets/agents/cfn-dev-team/testers/tester.md +59 -0
- package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +4 -4
- package/claude-assets/commands/{cfn/CFN_LOOP_TASK_MODE.md → CFN_LOOP_TASK_MODE.md} +50 -3
- package/claude-assets/commands/auto-compact.md +80 -0
- package/claude-assets/commands/cfn-loop-cli.md +279 -0
- package/{.claude/commands/cfn → claude-assets/commands}/cfn-loop-document.md +20 -1
- package/claude-assets/commands/cfn-loop-epic.md +478 -0
- package/{.claude/commands/cfn → claude-assets/commands}/cfn-loop-frontend.md +17 -2
- package/claude-assets/commands/cfn-loop-single.md +256 -0
- package/claude-assets/commands/cfn-loop-sprints.md +396 -0
- package/claude-assets/commands/cfn-loop-task.md +460 -0
- package/claude-assets/commands/cfn-loop.md +518 -0
- package/claude-assets/commands/claude-md.md +64 -0
- package/claude-assets/commands/claude-soul.md +22 -0
- package/{.claude/commands/cfn → claude-assets/commands}/context-curate.md +27 -38
- package/{.claude/commands/cfn → claude-assets/commands}/context-inject.md +14 -25
- package/{.claude/commands/cfn → claude-assets/commands}/context-query.md +40 -45
- package/{.claude/commands/cfn → claude-assets/commands}/context-reflect.md +40 -38
- package/{.claude/commands/cfn → claude-assets/commands}/context-stats.md +13 -38
- package/claude-assets/commands/cost-savings-off.md +35 -0
- package/claude-assets/commands/cost-savings-on.md +35 -0
- package/claude-assets/commands/cost-savings-status.md +34 -0
- package/claude-assets/commands/custom-routing-activate.md +55 -0
- package/claude-assets/commands/custom-routing-deactivate.md +46 -0
- package/claude-assets/commands/dependency-recommendations.md +171 -0
- package/claude-assets/commands/fullstack.md +179 -0
- package/claude-assets/commands/github.md +221 -0
- package/claude-assets/commands/hooks.md +38 -0
- package/claude-assets/commands/launch-web-dashboard.md +0 -0
- package/{.claude/commands/cfn → claude-assets/commands}/list-agents-rebuild.md +18 -18
- package/claude-assets/commands/metrics-summary.md +58 -0
- package/claude-assets/commands/neural.md +39 -0
- package/claude-assets/commands/parse-epic.md +357 -0
- package/claude-assets/commands/performance.md +41 -0
- package/claude-assets/commands/sparc.md +46 -0
- package/claude-assets/commands/suggest-improvements.md +95 -0
- package/claude-assets/commands/suggest-templates.md +147 -0
- package/claude-assets/commands/swarm.md +24 -0
- package/claude-assets/commands/write-plan.md +275 -0
- package/claude-assets/root-claude-distribute/CFN-CLAUDE.md +126 -233
- package/claude-assets/skills/cfn-backlog-management/add-backlog-item.sh +25 -27
- package/claude-assets/skills/cfn-changelog-management/add-changelog-entry.sh +21 -19
- package/claude-assets/skills/cfn-changelog-management/bulk-import.sh +268 -0
- package/claude-assets/skills/cfn-changelog-management/lib/README.md +212 -0
- package/claude-assets/skills/cfn-changelog-management/lib/validation.sh +72 -0
- package/claude-assets/skills/cfn-product-owner-decision/execute-decision.sh +36 -11
- package/claude-assets/skills/cfn-task-config-init/SKILL.md +204 -0
- package/claude-assets/skills/cfn-task-config-init/initialize-config.sh +264 -0
- package/dist/cli/config-manager.js +109 -91
- package/dist/cli/config-manager.js.map +1 -1
- package/package.json +3 -3
- package/.claude/commands/cfn/README.md +0 -157
- package/.claude/commands/cfn/launch-web-dashboard.md +0 -295
- package/.claude/commands/cfn/write-plan.md +0 -104
- package/.claude/skills/cfn-loop-orchestration/orchestrate.sh.backup +0 -840
- package/.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh.backup-p7 +0 -423
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup +0 -38
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-1761167675 +0 -1672
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-p5 +0 -1604
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase1 +0 -1550
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase2 +0 -1621
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase3 +0 -1621
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.broken +0 -1627
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.corrupted +0 -80
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.deprecated +0 -1864
- package/.claude/skills/cfn-redis-coordination/tests/test_coordination_primitives.sh.deprecated +0 -20
- package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh.backup +0 -840
- package/claude-assets/skills/cfn-loop2-output-processing/execute-and-extract.sh.backup +0 -36
- package/claude-assets/skills/cfn-redis-coordination/invoke-waiting-mode.sh.backup-p7 +0 -423
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup +0 -38
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-1761167675 +0 -1672
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-p5 +0 -1604
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase1 +0 -1550
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase2 +0 -1621
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase3 +0 -1621
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.broken +0 -1627
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.corrupted +0 -80
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.deprecated +0 -1864
- package/claude-assets/skills/cfn-redis-coordination/tests/test_coordination_primitives.sh.deprecated +0 -20
- /package/.claude/commands/{cfn/CFN_COORDINATOR_PARAMETERS.md → CFN_COORDINATOR_PARAMETERS.md} +0 -0
- /package/.claude/commands/{cfn/CFN_LOOP_FRONTEND.md → CFN_LOOP_FRONTEND.md} +0 -0
- /package/.claude/commands/{cfn/auto-compact.md → auto-compact.md} +0 -0
- /package/.claude/commands/{cfn/cfn-claude-sync.md → cfn-claude-sync.md} +0 -0
- /package/{claude-assets/commands/cfn → .claude/commands}/cfn-loop-cli.md +0 -0
- /package/{claude-assets/commands/cfn → .claude/commands}/cfn-loop-document.md +0 -0
- /package/.claude/commands/{cfn/cfn-loop-epic.md → cfn-loop-epic.md} +0 -0
- /package/{claude-assets/commands/cfn → .claude/commands}/cfn-loop-frontend.md +0 -0
- /package/.claude/commands/{cfn/cfn-loop-single.md → cfn-loop-single.md} +0 -0
- /package/.claude/commands/{cfn/cfn-loop-sprints.md → cfn-loop-sprints.md} +0 -0
- /package/{claude-assets/commands/cfn → .claude/commands}/cfn-loop-task.md +0 -0
- /package/.claude/commands/{cfn/cfn-loop.md → cfn-loop.md} +0 -0
- /package/.claude/commands/{cfn/cfn-mode.md → cfn-mode.md} +0 -0
- /package/.claude/commands/{cfn/cfn-optimize-agents.md → cfn-optimize-agents.md} +0 -0
- /package/.claude/commands/{cfn/claude-md.md → claude-md.md} +0 -0
- /package/.claude/commands/{cfn/claude-soul.md → claude-soul.md} +0 -0
- /package/{claude-assets/commands/cfn → .claude/commands}/context-curate.md +0 -0
- /package/{claude-assets/commands/cfn → .claude/commands}/context-inject.md +0 -0
- /package/{claude-assets/commands/cfn → .claude/commands}/context-query.md +0 -0
- /package/{claude-assets/commands/cfn → .claude/commands}/context-reflect.md +0 -0
- /package/{claude-assets/commands/cfn → .claude/commands}/context-stats.md +0 -0
- /package/.claude/commands/{cfn/cost-savings-off.md → cost-savings-off.md} +0 -0
- /package/.claude/commands/{cfn/cost-savings-on.md → cost-savings-on.md} +0 -0
- /package/.claude/commands/{cfn/cost-savings-status.md → cost-savings-status.md} +0 -0
- /package/.claude/commands/{cfn/custom-routing-activate.md → custom-routing-activate.md} +0 -0
- /package/.claude/commands/{cfn/custom-routing-deactivate.md → custom-routing-deactivate.md} +0 -0
- /package/.claude/commands/{cfn/dependency-recommendations.md → dependency-recommendations.md} +0 -0
- /package/.claude/commands/{cfn/fullstack.md → fullstack.md} +0 -0
- /package/.claude/commands/{cfn/github-commit.md → github-commit.md} +0 -0
- /package/.claude/commands/{cfn/github.md → github.md} +0 -0
- /package/.claude/commands/{cfn/hello-world-tests.md → hello-world-tests.md} +0 -0
- /package/.claude/commands/{cfn/hooks.md → hooks.md} +0 -0
- /package/{claude-assets/commands/cfn → .claude/commands}/launch-web-dashboard.md +0 -0
- /package/{claude-assets/commands/cfn → .claude/commands}/list-agents-rebuild.md +0 -0
- /package/.claude/commands/{cfn/metrics-summary.md → metrics-summary.md} +0 -0
- /package/.claude/commands/{cfn/neural.md → neural.md} +0 -0
- /package/.claude/commands/{cfn/parse-epic.md → parse-epic.md} +0 -0
- /package/.claude/commands/{cfn/performance.md → performance.md} +0 -0
- /package/.claude/commands/{cfn/sparc.md → sparc.md} +0 -0
- /package/.claude/commands/{cfn/suggest-improvements.md → suggest-improvements.md} +0 -0
- /package/.claude/commands/{cfn/suggest-templates.md → suggest-templates.md} +0 -0
- /package/.claude/commands/{cfn/swarm.md → swarm.md} +0 -0
- /package/.claude/commands/{cfn/switch-api.md → switch-api.md} +0 -0
- /package/.claude/commands/{cfn/workflow.md → workflow.md} +0 -0
- /package/{claude-assets/commands/cfn → .claude/commands}/write-plan.md +0 -0
- /package/claude-assets/commands/{cfn/CFN_COORDINATOR_PARAMETERS.md → CFN_COORDINATOR_PARAMETERS.md} +0 -0
- /package/claude-assets/commands/{cfn/CFN_LOOP_FRONTEND.md → CFN_LOOP_FRONTEND.md} +0 -0
- /package/claude-assets/commands/{cfn/README.md → README.md} +0 -0
- /package/claude-assets/commands/{cfn/cfn-claude-sync.md → cfn-claude-sync.md} +0 -0
- /package/claude-assets/commands/{cfn/cfn-mode.md → cfn-mode.md} +0 -0
- /package/claude-assets/commands/{cfn/cfn-optimize-agents.md → cfn-optimize-agents.md} +0 -0
- /package/claude-assets/commands/{cfn/github-commit.md → github-commit.md} +0 -0
- /package/claude-assets/commands/{cfn/hello-world-tests.md → hello-world-tests.md} +0 -0
- /package/claude-assets/commands/{cfn/switch-api.md → switch-api.md} +0 -0
- /package/claude-assets/commands/{cfn/workflow.md → workflow.md} +0 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Smart dependency analysis with security scanning and performance-focused updates"
|
|
3
|
+
argument-hint: "[--security|--performance|--outdated|--audit|--interactive]"
|
|
4
|
+
allowed-tools: ["Bash", "Read", "Grep", "mcp__claude-flow__dependency_analyze", "mcp__claude-flow__language_detect", "mcp__claude-flow__framework_detect", "mcp__claude-flow__memory_usage"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Smart Dependency Recommendations
|
|
8
|
+
|
|
9
|
+
Analyze your project dependencies and provide intelligent recommendations for updates, security fixes, and performance improvements.
|
|
10
|
+
|
|
11
|
+
**Analysis Type**: $ARGUMENTS
|
|
12
|
+
|
|
13
|
+
## Analysis Options
|
|
14
|
+
|
|
15
|
+
- `--security` - Focus on security vulnerabilities and CVE scanning
|
|
16
|
+
- `--performance` - Analyze bundle size and performance impact
|
|
17
|
+
- `--outdated` - Show outdated packages with safe update paths
|
|
18
|
+
- `--audit` - Comprehensive security audit with risk assessment
|
|
19
|
+
- `--interactive` - Interactive update wizard with explanations
|
|
20
|
+
|
|
21
|
+
## What This Command Does
|
|
22
|
+
|
|
23
|
+
### 🔍 Intelligent Dependency Analysis
|
|
24
|
+
- **Multi-Language Support**: npm, Cargo, pip, composer, bundler
|
|
25
|
+
- **Security Scanning**: CVE database integration and vulnerability detection
|
|
26
|
+
- **Performance Impact**: Bundle size analysis and optimization opportunities
|
|
27
|
+
- **Breaking Change Detection**: Semantic version analysis and migration guides
|
|
28
|
+
- **License Compliance**: License compatibility and legal risk assessment
|
|
29
|
+
|
|
30
|
+
### 🛡️ Security Analysis
|
|
31
|
+
|
|
32
|
+
#### Vulnerability Scanning
|
|
33
|
+
- **CVE Database**: Real-time vulnerability scanning
|
|
34
|
+
- **Severity Assessment**: Critical, High, Medium, Low risk classification
|
|
35
|
+
- **Exploit Availability**: Known exploits and proof-of-concept detection
|
|
36
|
+
- **Patch Availability**: Available fixes and update recommendations
|
|
37
|
+
|
|
38
|
+
#### Security Best Practices
|
|
39
|
+
- **Minimal Dependencies**: Suggest lighter alternatives
|
|
40
|
+
- **Trusted Sources**: Verify package maintainer reputation
|
|
41
|
+
- **License Scanning**: Identify problematic licenses
|
|
42
|
+
- **Supply Chain**: Analyze dependency chains for risks
|
|
43
|
+
|
|
44
|
+
### 🚀 Performance Optimization
|
|
45
|
+
|
|
46
|
+
#### Bundle Analysis
|
|
47
|
+
- **Size Impact**: Before/after size comparison
|
|
48
|
+
- **Tree Shaking**: Dead code elimination opportunities
|
|
49
|
+
- **Alternative Packages**: Lighter alternatives with same functionality
|
|
50
|
+
- **Lazy Loading**: Code splitting recommendations
|
|
51
|
+
|
|
52
|
+
#### Runtime Performance
|
|
53
|
+
- **Startup Time**: Dependency impact on application startup
|
|
54
|
+
- **Memory Usage**: Memory footprint analysis
|
|
55
|
+
- **CPU Impact**: Performance benchmarks and comparisons
|
|
56
|
+
|
|
57
|
+
## Language-Specific Features
|
|
58
|
+
|
|
59
|
+
### JavaScript/Node.js (npm/yarn/pnpm)
|
|
60
|
+
```bash
|
|
61
|
+
# Security audit with fix suggestions
|
|
62
|
+
/dependency-recommendations --security
|
|
63
|
+
# Output: npm audit fix, specific CVE details, manual update guides
|
|
64
|
+
|
|
65
|
+
# Performance analysis
|
|
66
|
+
/dependency-recommendations --performance
|
|
67
|
+
# Output: Bundle analyzer results, tree-shaking opportunities
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Rust (Cargo)
|
|
71
|
+
```bash
|
|
72
|
+
# Cargo audit with vulnerability scanning
|
|
73
|
+
/dependency-recommendations --audit
|
|
74
|
+
# Output: cargo audit, rustsec advisory database
|
|
75
|
+
|
|
76
|
+
# Outdated crates analysis
|
|
77
|
+
/dependency-recommendations --outdated
|
|
78
|
+
# Output: cargo outdated, semver compatibility, feature changes
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Python (pip/poetry/pipenv)
|
|
82
|
+
```bash
|
|
83
|
+
# Security scanning with safety
|
|
84
|
+
/dependency-recommendations --security
|
|
85
|
+
# Output: safety check, known vulnerabilities, update commands
|
|
86
|
+
|
|
87
|
+
# Performance and compatibility
|
|
88
|
+
/dependency-recommendations --performance
|
|
89
|
+
# Output: Wheel vs source installs, Python version compatibility
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Sample Recommendation Output
|
|
93
|
+
|
|
94
|
+
```markdown
|
|
95
|
+
## 🚨 Critical Security Issues (2)
|
|
96
|
+
|
|
97
|
+
### 1. lodash@4.17.15 → 4.17.21
|
|
98
|
+
- **CVE-2021-23337**: Prototype pollution vulnerability
|
|
99
|
+
- **Risk**: High - Remote code execution possible
|
|
100
|
+
- **Fix**: `npm update lodash@^4.17.21`
|
|
101
|
+
- **Breaking Changes**: None
|
|
102
|
+
- **Affected Files**: src/utils/helpers.js, src/components/
|
|
103
|
+
|
|
104
|
+
### 2. express@4.17.1 → 4.18.2
|
|
105
|
+
- **Multiple CVEs**: Security vulnerabilities in older versions
|
|
106
|
+
- **Risk**: Medium - Information disclosure
|
|
107
|
+
- **Fix**: `npm install express@^4.18.2`
|
|
108
|
+
- **Migration Guide**: Check middleware compatibility
|
|
109
|
+
|
|
110
|
+
## 🚀 Performance Opportunities (3)
|
|
111
|
+
|
|
112
|
+
### 1. moment.js → date-fns
|
|
113
|
+
- **Bundle Size**: 67KB → 13KB (80% reduction)
|
|
114
|
+
- **Tree Shaking**: Full support vs none
|
|
115
|
+
- **Migration**: Auto-migration available
|
|
116
|
+
- **Effort**: Medium (2-3 hours)
|
|
117
|
+
|
|
118
|
+
### 2. lodash → Native ES6+ / lodash-es
|
|
119
|
+
- **Bundle Size**: 71KB → 15KB (selective imports)
|
|
120
|
+
- **Performance**: 15% faster with native methods
|
|
121
|
+
- **Migration**: Gradual replacement possible
|
|
122
|
+
|
|
123
|
+
## 🔄 Recommended Updates (5)
|
|
124
|
+
|
|
125
|
+
### Safe Updates (No Breaking Changes)
|
|
126
|
+
- react@18.2.0 → 18.2.45 (patch updates)
|
|
127
|
+
- typescript@4.9.4 → 4.9.5 (bug fixes)
|
|
128
|
+
- jest@29.3.1 → 29.5.0 (new features)
|
|
129
|
+
|
|
130
|
+
### Major Version Updates (Review Required)
|
|
131
|
+
- webpack@4.46.0 → 5.88.2
|
|
132
|
+
- **Breaking Changes**: Module federation, asset modules
|
|
133
|
+
- **Migration Guide**: https://webpack.js.org/migrate/5/
|
|
134
|
+
- **Estimated Effort**: 1-2 days
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Interactive Update Wizard
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
/dependency-recommendations --interactive
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Provides step-by-step guidance:
|
|
144
|
+
1. **Prioritization**: Security first, then performance, then features
|
|
145
|
+
2. **Impact Assessment**: Explains what each update affects
|
|
146
|
+
3. **Testing Strategy**: Suggests test scenarios after updates
|
|
147
|
+
4. **Rollback Plan**: Provides rollback commands if issues occur
|
|
148
|
+
5. **Documentation**: Updates package.json comments and documentation
|
|
149
|
+
|
|
150
|
+
## Educational Features
|
|
151
|
+
|
|
152
|
+
### Why Updates Matter
|
|
153
|
+
- **Security**: Explains specific vulnerabilities and their impact
|
|
154
|
+
- **Performance**: Shows measurable improvements with benchmarks
|
|
155
|
+
- **Maintenance**: Discusses long-term maintenance benefits
|
|
156
|
+
- **Ecosystem**: Explains how updates affect the broader ecosystem
|
|
157
|
+
|
|
158
|
+
### Best Practices
|
|
159
|
+
- **Update Strategy**: Guidance on when and how to update
|
|
160
|
+
- **Testing**: Recommendations for testing after updates
|
|
161
|
+
- **Monitoring**: Tools for tracking dependency health
|
|
162
|
+
- **Documentation**: Keeping dependency decisions documented
|
|
163
|
+
|
|
164
|
+
## Integration Features
|
|
165
|
+
|
|
166
|
+
- **CI/CD Integration**: Generate update PRs with full analysis
|
|
167
|
+
- **Team Notifications**: Share recommendations with team members
|
|
168
|
+
- **Scheduled Analysis**: Regular dependency health checks
|
|
169
|
+
- **Custom Policies**: Configure update policies and approval workflows
|
|
170
|
+
|
|
171
|
+
Get intelligent, actionable dependency recommendations that balance security, performance, and stability.
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Launch autonomous self-correcting full-stack development team with CFN Loop"
|
|
3
|
+
argument-hint: "<goal description>"
|
|
4
|
+
allowed-tools: ["Task", "TodoWrite", "Read", "Write", "Edit", "Bash", "Glob", "Grep"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Autonomous Full-Stack Development Team (CFN Loop)
|
|
8
|
+
|
|
9
|
+
Launch an autonomous self-correcting full-stack development team using the CFN Loop methodology.
|
|
10
|
+
|
|
11
|
+
🚨 **AUTONOMOUS SELF-LOOPING PROCESS**
|
|
12
|
+
|
|
13
|
+
**Goal**: $ARGUMENTS
|
|
14
|
+
|
|
15
|
+
## Team Composition
|
|
16
|
+
|
|
17
|
+
The fullstack team includes:
|
|
18
|
+
- **Researcher**: Requirements analysis, pattern detection, architectural planning
|
|
19
|
+
- **Coder**: Implementation of backend and frontend features
|
|
20
|
+
- **Tester**: Comprehensive testing including unit, integration, and E2E tests
|
|
21
|
+
- **Reviewer**: Code quality analysis, security review, performance optimization
|
|
22
|
+
- **Architect** (for complex tasks): System design and architectural decisions
|
|
23
|
+
|
|
24
|
+
## Autonomous CFN Loop Execution Pattern
|
|
25
|
+
|
|
26
|
+
🚨 **CRITICAL: This is an AUTONOMOUS self-looping process**
|
|
27
|
+
- Loop failures → IMMEDIATE retry with feedback (NO approval needed)
|
|
28
|
+
- Consensus failures → IMMEDIATE Loop 3 relaunch (NO approval needed)
|
|
29
|
+
- Phase completion → IMMEDIATE next phase transition (NO approval needed)
|
|
30
|
+
- ONLY stop for: max iterations reached OR critical error
|
|
31
|
+
|
|
32
|
+
### Loop 3: Primary Swarm (Execute)
|
|
33
|
+
1. **Initialize Swarm** (MANDATORY)
|
|
34
|
+
- Use swarm_init with appropriate topology
|
|
35
|
+
- Configure for 3-8 agents based on complexity
|
|
36
|
+
|
|
37
|
+
2. **Launch Primary Swarm** (3-8 agents in parallel using Claude Code's Task tool)
|
|
38
|
+
- All agents execute concurrently in a single message
|
|
39
|
+
- Each agent receives full context and specific responsibilities
|
|
40
|
+
- Agents produce deliverables with confidence scores
|
|
41
|
+
- Run post-edit hooks after EVERY file modification
|
|
42
|
+
|
|
43
|
+
3. **Self-Assessment Gate**
|
|
44
|
+
- Collect confidence scores from all agents
|
|
45
|
+
- If confidence ≥75% → IMMEDIATELY proceed to Loop 2
|
|
46
|
+
- If confidence <75% → IMMEDIATELY relaunch Loop 3 with feedback (autonomous retry)
|
|
47
|
+
- Max iterations: 10
|
|
48
|
+
|
|
49
|
+
### Loop 2: Consensus Swarm (Verify)
|
|
50
|
+
1. **Launch Consensus Validators** (2-4 validators in parallel)
|
|
51
|
+
- Independent verification with Byzantine fault tolerance
|
|
52
|
+
- Comprehensive validation: tests, security, performance, architecture
|
|
53
|
+
- Voting mechanism with critical criteria checks
|
|
54
|
+
|
|
55
|
+
2. **Byzantine Consensus Voting**
|
|
56
|
+
- Collect validator votes (approve/reject)
|
|
57
|
+
- Calculate approval rate and confidence
|
|
58
|
+
|
|
59
|
+
3. **Decision Gate**
|
|
60
|
+
- **PASS Criteria** (≥90% agreement + all critical checks):
|
|
61
|
+
- All tests passing (100% for critical paths, ≥80% coverage overall)
|
|
62
|
+
- No security vulnerabilities
|
|
63
|
+
- Performance within acceptable thresholds
|
|
64
|
+
- Architecture review approved
|
|
65
|
+
- **FAIL Criteria**:
|
|
66
|
+
- <90% validator agreement OR critical criteria failed
|
|
67
|
+
- IMMEDIATELY inject feedback and return to Loop 3 (autonomous retry)
|
|
68
|
+
- Max iterations: 5
|
|
69
|
+
|
|
70
|
+
### Loop 1: Phase Completion (Action)
|
|
71
|
+
- **PASS**: Store results → Update documentation → Report completion
|
|
72
|
+
- **FAIL (max iterations)**: Escalate to human with full history + recommendations
|
|
73
|
+
|
|
74
|
+
**AUTONOMOUS RETRY BEHAVIOR:**
|
|
75
|
+
- Loop 3 failures → IMMEDIATELY relaunch with feedback
|
|
76
|
+
- Loop 2 failures → IMMEDIATELY return to Loop 3
|
|
77
|
+
- NO approval needed for retries
|
|
78
|
+
- Self-correcting process continues until success or max iterations
|
|
79
|
+
|
|
80
|
+
## Consensus Validation Requirements
|
|
81
|
+
|
|
82
|
+
**Validator Team** (4 agents for Byzantine fault tolerance):
|
|
83
|
+
1. **Validator 1** - Test Coverage & Quality
|
|
84
|
+
2. **Validator 2** - Security & Compliance
|
|
85
|
+
3. **Validator 3** - Performance & Optimization
|
|
86
|
+
4. **Validator 4** - Architecture & Design
|
|
87
|
+
|
|
88
|
+
**Scoring System**:
|
|
89
|
+
- Overall Score: 0-100 (weighted average)
|
|
90
|
+
- Pass Threshold: ≥90/100 with unanimous approval
|
|
91
|
+
- Tier 2: 85-94 (production-ready with minor issues)
|
|
92
|
+
- Tier 3: 75-84 (needs improvements)
|
|
93
|
+
- Fail: <75 (significant issues)
|
|
94
|
+
|
|
95
|
+
**Critical Criteria** (all must pass):
|
|
96
|
+
- Tests executing and passing
|
|
97
|
+
- No critical security vulnerabilities
|
|
98
|
+
- Code compiles/builds successfully
|
|
99
|
+
- Core functionality working
|
|
100
|
+
|
|
101
|
+
## Usage Examples
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# Simple feature
|
|
105
|
+
/fullstack Add user authentication with JWT tokens and password hashing
|
|
106
|
+
|
|
107
|
+
# Complex feature with multiple components
|
|
108
|
+
/fullstack Build a real-time chat system with user presence, typing indicators, message history, and file sharing
|
|
109
|
+
|
|
110
|
+
# Backend API
|
|
111
|
+
/fullstack Create REST API for product catalog with CRUD operations, search, filtering, and pagination
|
|
112
|
+
|
|
113
|
+
# Frontend feature
|
|
114
|
+
/fullstack Implement responsive dashboard with data visualization, real-time updates, and mobile support
|
|
115
|
+
|
|
116
|
+
# Full-stack integration
|
|
117
|
+
/fullstack Develop e-commerce checkout flow with payment processing, order management, and email notifications
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Execution Instructions
|
|
121
|
+
|
|
122
|
+
When this command is invoked:
|
|
123
|
+
|
|
124
|
+
🚨 **AUTONOMOUS EXECUTION - NO APPROVAL NEEDED FOR RETRIES**
|
|
125
|
+
|
|
126
|
+
1. **Parse the goal** from $ARGUMENTS
|
|
127
|
+
|
|
128
|
+
2. **Initialize Swarm** (MANDATORY for multi-agent tasks):
|
|
129
|
+
```javascript
|
|
130
|
+
mcp__claude-flow-novice__swarm_init({
|
|
131
|
+
topology: "mesh",
|
|
132
|
+
maxAgents: 8,
|
|
133
|
+
strategy: "balanced"
|
|
134
|
+
})
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
3. **Launch Loop 3: Primary Swarm** in a SINGLE message:
|
|
138
|
+
```
|
|
139
|
+
Task("Research and analyze requirements", "Analyze goal: [goal]. Research patterns, identify requirements, create detailed specifications...", "researcher")
|
|
140
|
+
Task("Implement core features", "Implement goal: [goal]. Write production code following best practices...", "coder")
|
|
141
|
+
Task("Create comprehensive tests", "Test goal: [goal]. Write unit, integration, and E2E tests...", "tester")
|
|
142
|
+
Task("Review and optimize", "Review implementation of goal: [goal]. Check security, performance, architecture...", "reviewer")
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
4. **Self-assess** and collect confidence scores
|
|
146
|
+
- If ≥75% → IMMEDIATELY proceed to Loop 2 (consensus)
|
|
147
|
+
- If <75% → IMMEDIATELY relaunch Loop 3 with feedback (NO approval needed)
|
|
148
|
+
|
|
149
|
+
5. **Launch Loop 2: Consensus Swarm** in a SINGLE message:
|
|
150
|
+
```
|
|
151
|
+
Task("Quality Validator", "Comprehensive quality review", "reviewer")
|
|
152
|
+
Task("Security Validator", "Security and performance audit", "security-specialist")
|
|
153
|
+
Task("Architecture Validator", "Architecture validation", "system-architect")
|
|
154
|
+
Task("Testing Validator", "Integration testing validation", "tester")
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
6. **Process Byzantine consensus voting**
|
|
158
|
+
- If ≥90% approval → Complete (Loop 1)
|
|
159
|
+
- If <90% approval → IMMEDIATELY return to Loop 3 with feedback (NO approval needed)
|
|
160
|
+
|
|
161
|
+
7. **Autonomous iteration** until:
|
|
162
|
+
- Success achieved (consensus passes)
|
|
163
|
+
- Max iterations reached (escalate to human)
|
|
164
|
+
- Critical error encountered
|
|
165
|
+
|
|
166
|
+
## Important Notes
|
|
167
|
+
|
|
168
|
+
🚨 **AUTONOMOUS SELF-LOOPING PROCESS**
|
|
169
|
+
|
|
170
|
+
- **Initialize swarm FIRST** - MANDATORY before spawning agents
|
|
171
|
+
- **Always use Task tool in parallel** - spawn all agents in ONE message
|
|
172
|
+
- **Run post-edit hooks** after EVERY file modification
|
|
173
|
+
- **Store results in appropriate directories** - never save to root
|
|
174
|
+
- **Follow file organization** - use /src, /tests, /docs structure
|
|
175
|
+
- **NO approval needed for retries** - autonomous self-correction
|
|
176
|
+
- **IMMEDIATE retry on failures** - continue until success or max iterations
|
|
177
|
+
- **Enable consensus validation** - for production-ready code quality
|
|
178
|
+
|
|
179
|
+
Execute the autonomous self-correcting fullstack development workflow NOW.
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "GitHub integration for repository management, PR automation, and collaboration"
|
|
3
|
+
argument-hint: "<action> [repository] [options]"
|
|
4
|
+
allowed-tools: ["Bash", "Read", "Write", "Grep", "mcp__claude-flow__github_repo_analyze", "mcp__claude-flow__github_pr_manage", "mcp__claude-flow__github_release_coord", "mcp__claude-flow__github_issue_track", "mcp__claude-flow__github_workflow_auto", "mcp__claude-flow__github_metrics", "mcp__claude-flow__agent_spawn", "mcp__claude-flow__memory_usage"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# GitHub Integration & Automation
|
|
8
|
+
|
|
9
|
+
Comprehensive GitHub integration for repository management, automated workflows, and team collaboration.
|
|
10
|
+
|
|
11
|
+
**Action**: $ARGUMENTS
|
|
12
|
+
|
|
13
|
+
## Available Actions
|
|
14
|
+
|
|
15
|
+
### Repository Management
|
|
16
|
+
- `analyze <repo>` - Comprehensive repository analysis
|
|
17
|
+
- `metrics <repo>` - Repository health and activity metrics
|
|
18
|
+
- `security-scan <repo>` - Security vulnerability scanning
|
|
19
|
+
- `performance-audit <repo>` - Performance and quality assessment
|
|
20
|
+
|
|
21
|
+
### Pull Request Management
|
|
22
|
+
- `pr create <title>` - Create PR with AI-generated description
|
|
23
|
+
- `pr review <number>` - Automated code review with suggestions
|
|
24
|
+
- `pr merge <number>` - Smart merge with conflict resolution
|
|
25
|
+
- `pr status` - Show all open PRs with analysis
|
|
26
|
+
|
|
27
|
+
### Issue Management
|
|
28
|
+
- `issue create <title>` - Create issue with templates
|
|
29
|
+
- `issue triage` - AI-powered issue triage and labeling
|
|
30
|
+
- `issue assign` - Smart assignment based on expertise
|
|
31
|
+
- `issue close <number>` - Close issue with summary
|
|
32
|
+
|
|
33
|
+
### Release Management
|
|
34
|
+
- `release create <version>` - Create release with changelog
|
|
35
|
+
- `release notes <version>` - Generate release notes
|
|
36
|
+
- `release deploy <version>` - Coordinate deployment
|
|
37
|
+
|
|
38
|
+
### Workflow Automation
|
|
39
|
+
- `workflow setup` - Configure GitHub Actions workflows
|
|
40
|
+
- `workflow status` - Monitor workflow runs
|
|
41
|
+
- `workflow optimize` - Optimize CI/CD performance
|
|
42
|
+
|
|
43
|
+
## Key Features
|
|
44
|
+
|
|
45
|
+
### 🔍 AI-Powered Repository Analysis
|
|
46
|
+
|
|
47
|
+
#### Code Quality Assessment
|
|
48
|
+
- **Architecture Analysis**: Design patterns, SOLID principles compliance
|
|
49
|
+
- **Code Complexity**: Cyclomatic complexity, maintainability index
|
|
50
|
+
- **Technical Debt**: Identification and prioritization
|
|
51
|
+
- **Documentation Quality**: README, API docs, inline comments
|
|
52
|
+
|
|
53
|
+
#### Security Analysis
|
|
54
|
+
- **Vulnerability Scanning**: Dependencies, code patterns, configurations
|
|
55
|
+
- **Secret Detection**: API keys, passwords, certificates
|
|
56
|
+
- **Access Control**: Repository permissions and branch protection
|
|
57
|
+
- **Supply Chain**: Dependency risk assessment
|
|
58
|
+
|
|
59
|
+
#### Performance Metrics
|
|
60
|
+
- **Build Performance**: CI/CD execution times, bottlenecks
|
|
61
|
+
- **Code Performance**: Static analysis, performance patterns
|
|
62
|
+
- **Repository Health**: Commit frequency, contributor activity
|
|
63
|
+
- **Issue Resolution**: Response times, resolution rates
|
|
64
|
+
|
|
65
|
+
### 🤖 Automated Code Review
|
|
66
|
+
|
|
67
|
+
#### Intelligent PR Analysis
|
|
68
|
+
- **Change Impact**: Affected components and systems
|
|
69
|
+
- **Risk Assessment**: Breaking changes, security implications
|
|
70
|
+
- **Test Coverage**: Missing tests, coverage impact
|
|
71
|
+
- **Documentation**: Required documentation updates
|
|
72
|
+
|
|
73
|
+
#### Review Automation
|
|
74
|
+
- **Style Compliance**: Code formatting, naming conventions
|
|
75
|
+
- **Best Practices**: Language-specific recommendations
|
|
76
|
+
- **Performance Impact**: Bundle size, runtime performance
|
|
77
|
+
- **Security Review**: Vulnerability patterns, secure coding
|
|
78
|
+
|
|
79
|
+
### 📈 Advanced Metrics & Insights
|
|
80
|
+
|
|
81
|
+
#### Team Productivity
|
|
82
|
+
- **Contributor Analysis**: Activity patterns, expertise areas
|
|
83
|
+
- **Collaboration Metrics**: PR review patterns, response times
|
|
84
|
+
- **Knowledge Sharing**: Documentation contributions, mentoring
|
|
85
|
+
- **Burnout Detection**: Workload analysis, health indicators
|
|
86
|
+
|
|
87
|
+
#### Project Health
|
|
88
|
+
- **Velocity Tracking**: Feature delivery, sprint performance
|
|
89
|
+
- **Quality Trends**: Bug rates, test coverage over time
|
|
90
|
+
- **Maintenance Load**: Technical debt, refactoring needs
|
|
91
|
+
- **Community Growth**: Star/fork growth, issue engagement
|
|
92
|
+
|
|
93
|
+
## Usage Examples
|
|
94
|
+
|
|
95
|
+
### Repository Analysis
|
|
96
|
+
```bash
|
|
97
|
+
# Comprehensive repository analysis
|
|
98
|
+
/github analyze myorg/myrepo
|
|
99
|
+
|
|
100
|
+
# Output includes:
|
|
101
|
+
# - Code quality score (1-10)
|
|
102
|
+
# - Security vulnerability count
|
|
103
|
+
# - Performance bottlenecks
|
|
104
|
+
# - Improvement recommendations
|
|
105
|
+
# - Contributor activity analysis
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### PR Management
|
|
109
|
+
```bash
|
|
110
|
+
# Create PR with AI description
|
|
111
|
+
/github pr create "Add user authentication"
|
|
112
|
+
|
|
113
|
+
# Automated code review
|
|
114
|
+
/github pr review 123
|
|
115
|
+
|
|
116
|
+
# Output:
|
|
117
|
+
# - Code quality assessment
|
|
118
|
+
# - Security review
|
|
119
|
+
# - Performance impact
|
|
120
|
+
# - Test coverage analysis
|
|
121
|
+
# - Suggested improvements
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Issue Triage
|
|
125
|
+
```bash
|
|
126
|
+
# AI-powered issue triage
|
|
127
|
+
/github issue triage
|
|
128
|
+
|
|
129
|
+
# Automatically:
|
|
130
|
+
# - Labels issues by type/priority
|
|
131
|
+
# - Assigns to appropriate team members
|
|
132
|
+
# - Estimates effort/complexity
|
|
133
|
+
# - Suggests related issues
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Release Management
|
|
137
|
+
```bash
|
|
138
|
+
# Create release with changelog
|
|
139
|
+
/github release create v2.1.0
|
|
140
|
+
|
|
141
|
+
# Automatically:
|
|
142
|
+
# - Generates changelog from commits
|
|
143
|
+
# - Identifies breaking changes
|
|
144
|
+
# - Creates release notes
|
|
145
|
+
# - Tags version and triggers deployment
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## Sample Analysis Output
|
|
149
|
+
|
|
150
|
+
```markdown
|
|
151
|
+
# Repository Analysis: myorg/awesome-project
|
|
152
|
+
|
|
153
|
+
## 🏆 Overall Health Score: 8.7/10
|
|
154
|
+
|
|
155
|
+
### 🔍 Code Quality (9.2/10)
|
|
156
|
+
- **Architecture**: Well-structured, follows SOLID principles
|
|
157
|
+
- **Complexity**: Low average complexity (2.3/10)
|
|
158
|
+
- **Documentation**: Comprehensive README, 85% API coverage
|
|
159
|
+
- **Testing**: 94% code coverage, good test quality
|
|
160
|
+
|
|
161
|
+
### 🛡️ Security (7.8/10)
|
|
162
|
+
- **Vulnerabilities**: 2 medium-risk dependencies
|
|
163
|
+
- **Secrets**: No exposed secrets detected
|
|
164
|
+
- **Permissions**: Appropriate branch protection rules
|
|
165
|
+
- **Recommendations**: Update lodash to v4.17.21
|
|
166
|
+
|
|
167
|
+
### 🚀 Performance (8.5/10)
|
|
168
|
+
- **Build Time**: 3.2 minutes (good)
|
|
169
|
+
- **Bundle Size**: 245KB (acceptable)
|
|
170
|
+
- **CI Efficiency**: 95% success rate
|
|
171
|
+
- **Bottlenecks**: Database tests could be optimized
|
|
172
|
+
|
|
173
|
+
### 📈 Team Metrics
|
|
174
|
+
- **Active Contributors**: 12 (last 30 days)
|
|
175
|
+
- **PR Response Time**: 4.2 hours average
|
|
176
|
+
- **Issue Resolution**: 89% within SLA
|
|
177
|
+
- **Knowledge Distribution**: Good (no single points of failure)
|
|
178
|
+
|
|
179
|
+
## 📝 Recommendations
|
|
180
|
+
1. **Security**: Update 2 vulnerable dependencies
|
|
181
|
+
2. **Performance**: Optimize database test suite
|
|
182
|
+
3. **Process**: Consider automated dependency updates
|
|
183
|
+
4. **Documentation**: Add contribution guidelines
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## Workflow Automation
|
|
187
|
+
|
|
188
|
+
### CI/CD Optimization
|
|
189
|
+
- **Pipeline Analysis**: Identify bottlenecks and optimization opportunities
|
|
190
|
+
- **Parallel Execution**: Suggest parallelization strategies
|
|
191
|
+
- **Caching**: Optimize build caches and artifact storage
|
|
192
|
+
- **Resource Usage**: Monitor and optimize runner usage
|
|
193
|
+
|
|
194
|
+
### Quality Gates
|
|
195
|
+
- **Automated Testing**: Ensure comprehensive test coverage
|
|
196
|
+
- **Security Scanning**: Integrate security checks into pipelines
|
|
197
|
+
- **Performance Testing**: Monitor performance regressions
|
|
198
|
+
- **Documentation**: Ensure documentation stays up-to-date
|
|
199
|
+
|
|
200
|
+
## Multi-Repository Management
|
|
201
|
+
|
|
202
|
+
### Organization Overview
|
|
203
|
+
- **Repository Health Dashboard**: Cross-repo metrics and trends
|
|
204
|
+
- **Dependency Management**: Shared dependency updates
|
|
205
|
+
- **Security Compliance**: Organization-wide security policies
|
|
206
|
+
- **Knowledge Sharing**: Cross-team learning and best practices
|
|
207
|
+
|
|
208
|
+
### Release Coordination
|
|
209
|
+
- **Multi-Repo Releases**: Coordinate releases across services
|
|
210
|
+
- **Dependency Tracking**: Monitor inter-service dependencies
|
|
211
|
+
- **Rollback Management**: Coordinate rollbacks across systems
|
|
212
|
+
- **Communication**: Automated stakeholder notifications
|
|
213
|
+
|
|
214
|
+
## Integration with Claude Flow
|
|
215
|
+
|
|
216
|
+
- **Agent Coordination**: Deploy specialized GitHub agents
|
|
217
|
+
- **Memory Persistence**: Remember repository context across sessions
|
|
218
|
+
- **Learning**: Improve recommendations based on team patterns
|
|
219
|
+
- **Automation**: Custom workflows based on team preferences
|
|
220
|
+
|
|
221
|
+
Streamline your GitHub workflow with AI-powered automation and insights.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Automation hooks management"
|
|
3
|
+
argument-hint: "<action> [parameters]"
|
|
4
|
+
allowed-tools: ["Bash", "mcp__claude-flow-novice__memory_usage"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Automation Hooks Management
|
|
8
|
+
|
|
9
|
+
Manage automation hooks for pre/post operations and session coordination.
|
|
10
|
+
|
|
11
|
+
**Action**: $ARGUMENTS
|
|
12
|
+
|
|
13
|
+
**Available Hook Actions**:
|
|
14
|
+
- `enable` - Enable all automation hooks
|
|
15
|
+
- `disable` - Disable automation hooks
|
|
16
|
+
- `pre-task "<description>"` - Execute pre-task hook
|
|
17
|
+
- `post-task "<task-id>"` - Execute post-task hook
|
|
18
|
+
- `session-start` - Start coordination session
|
|
19
|
+
- `session-end` - End session with summary
|
|
20
|
+
- `notify "<message>"` - Send notification to swarm
|
|
21
|
+
|
|
22
|
+
**Hook Types**:
|
|
23
|
+
|
|
24
|
+
## Pre-Operation Hooks
|
|
25
|
+
- **Pre-Command**: Validate commands for safety
|
|
26
|
+
- **Pre-Edit**: Auto-assign agents by file type
|
|
27
|
+
- **Pre-Task**: Prepare resources and context
|
|
28
|
+
|
|
29
|
+
## Post-Operation Hooks
|
|
30
|
+
- **Post-Command**: Track metrics and results
|
|
31
|
+
- **Post-Edit**: Auto-format code and update memory
|
|
32
|
+
- **Post-Task**: Store completion data
|
|
33
|
+
|
|
34
|
+
## Session Hooks
|
|
35
|
+
- **Session Start**: Initialize coordination context
|
|
36
|
+
- **Session End**: Generate summaries and persist state
|
|
37
|
+
|
|
38
|
+
Execute the specified hook action and coordinate with the claude-flow-novice system for automation.
|
|
File without changes
|