claude-flow-novice 2.12.0 → 2.13.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.
Files changed (40) hide show
  1. package/.claude/commands/README.md +177 -129
  2. package/claude-assets/commands/cfn/README.md +177 -129
  3. package/claude-assets/commands/cfn/cfn-loop-cli.md +268 -0
  4. package/claude-assets/commands/cfn/cfn-loop-document.md +20 -1
  5. package/claude-assets/commands/cfn/cfn-loop-frontend.md +17 -2
  6. package/claude-assets/commands/cfn/cfn-loop-task.md +442 -0
  7. package/claude-assets/commands/cfn/context-curate.md +27 -38
  8. package/claude-assets/commands/cfn/context-inject.md +14 -25
  9. package/claude-assets/commands/cfn/context-query.md +40 -45
  10. package/claude-assets/commands/cfn/context-reflect.md +40 -38
  11. package/claude-assets/commands/cfn/context-stats.md +13 -38
  12. package/claude-assets/commands/cfn/launch-web-dashboard.md +0 -295
  13. package/claude-assets/commands/cfn/list-agents-rebuild.md +18 -18
  14. package/claude-assets/commands/cfn/write-plan.md +246 -75
  15. package/dist/cli/config-manager.js +109 -91
  16. package/package.json +1 -1
  17. package/claude-assets/commands/cfn/auto-compact.md +0 -80
  18. package/claude-assets/commands/cfn/cfn-loop-epic.md +0 -478
  19. package/claude-assets/commands/cfn/cfn-loop-single.md +0 -256
  20. package/claude-assets/commands/cfn/cfn-loop-sprints.md +0 -396
  21. package/claude-assets/commands/cfn/cfn-loop.md +0 -518
  22. package/claude-assets/commands/cfn/claude-md.md +0 -64
  23. package/claude-assets/commands/cfn/claude-soul.md +0 -22
  24. package/claude-assets/commands/cfn/cost-savings-off.md +0 -35
  25. package/claude-assets/commands/cfn/cost-savings-on.md +0 -35
  26. package/claude-assets/commands/cfn/cost-savings-status.md +0 -34
  27. package/claude-assets/commands/cfn/custom-routing-activate.md +0 -55
  28. package/claude-assets/commands/cfn/custom-routing-deactivate.md +0 -46
  29. package/claude-assets/commands/cfn/dependency-recommendations.md +0 -171
  30. package/claude-assets/commands/cfn/fullstack.md +0 -179
  31. package/claude-assets/commands/cfn/github.md +0 -221
  32. package/claude-assets/commands/cfn/hooks.md +0 -38
  33. package/claude-assets/commands/cfn/metrics-summary.md +0 -58
  34. package/claude-assets/commands/cfn/neural.md +0 -39
  35. package/claude-assets/commands/cfn/parse-epic.md +0 -357
  36. package/claude-assets/commands/cfn/performance.md +0 -41
  37. package/claude-assets/commands/cfn/sparc.md +0 -46
  38. package/claude-assets/commands/cfn/suggest-improvements.md +0 -95
  39. package/claude-assets/commands/cfn/suggest-templates.md +0 -147
  40. package/claude-assets/commands/cfn/swarm.md +0 -24
@@ -1,34 +0,0 @@
1
- ---
2
- description: Show current cost-savings mode status and configuration
3
- tags: [config, status, coordination]
4
- ---
5
-
6
- Display current cost-savings mode status and coordinator configuration.
7
-
8
- **Usage:**
9
- - `/cost-savings-status` - Show mode status and details
10
-
11
- **What this shows:**
12
- - Current mode: CLI (cost-savings ON) or Task-tool (cost-savings OFF)
13
- - Active coordinator type sections in CLAUDE.md
14
- - Spawning method (spawn-workers.js vs Task tool)
15
- - Provider configuration for workers
16
- - Estimated cost savings percentage
17
-
18
- **Mode Indicators:**
19
- - **CLI Mode Active**: spawn-workers.js coordination, ~97% savings
20
- - **Task-tool Mode Active**: Task() coordination, full Claude quality
21
-
22
- **Execute status check:**
23
-
24
- ```bash
25
- npx claude-flow-cost-savings status
26
- ```
27
-
28
- **Output includes:**
29
- - Mode: CLI | Task-tool
30
- - CLAUDE.md sections: Active coordinator profiles
31
- - Spawning pattern: spawn-workers.js | Task()
32
- - Provider: z.ai | Claude Max
33
- - Cost savings: 0% | ~97%
34
- - Last toggled: timestamp
@@ -1,55 +0,0 @@
1
- ---
2
- description: DEPRECATED - Use /switch-api zai instead
3
- tags: [deprecated, routing]
4
- ---
5
-
6
- # ⚠️ DEPRECATED Command
7
-
8
- **This command is deprecated and no longer needed.**
9
-
10
- ## Use Instead
11
-
12
- ```bash
13
- /switch-api zai
14
- ```
15
-
16
- ## What Changed
17
-
18
- **Old system (custom-routing):**
19
- - Designed for per-agent profile routing
20
- - Required `tieredRouting` flag in settings.json
21
- - Never fully implemented
22
-
23
- **New system (switch-api):**
24
- - ✅ Simple env var configuration
25
- - ✅ Works with Main Chat + Task tool
26
- - ✅ CLI agents use separate routing (.env)
27
- - ✅ Fully operational
28
-
29
- ## Migration
30
-
31
- **If you were using `/custom-routing-activate`:**
32
- ```bash
33
- # Just run this instead:
34
- /switch-api zai
35
- ```
36
-
37
- **Effect:**
38
- - Main Chat + Task() agents use Z.ai ($0.50/1M)
39
- - CLI agents use Z.ai (from .env)
40
- - Combined 97% cost savings
41
-
42
- ## Why Deprecated
43
-
44
- The custom-routing system was designed but never fully implemented. The new switch-api provides:
45
-
46
- 1. **Simpler configuration** - Just env vars
47
- 2. **Actually works** - Complete implementation
48
- 3. **Clear separation** - Main Chat vs CLI routing
49
- 4. **Better documentation** - See `/switch-api` help
50
-
51
- ## See Also
52
-
53
- - `/switch-api` - Current routing system
54
- - `/switch-api zai` - Enable Z.ai for Main Chat
55
- - `/switch-api max` - Use Anthropic for Main Chat
@@ -1,46 +0,0 @@
1
- ---
2
- description: DEPRECATED - Use /switch-api max instead
3
- tags: [deprecated, routing]
4
- ---
5
-
6
- # ⚠️ DEPRECATED Command
7
-
8
- **This command is deprecated and no longer needed.**
9
-
10
- ## Use Instead
11
-
12
- ```bash
13
- /switch-api max
14
- ```
15
-
16
- ## What This Does
17
-
18
- Switches Main Chat + Task tool back to Anthropic (default provider).
19
-
20
- **Note:** Requires running `claude login` after switching.
21
-
22
- ## Migration
23
-
24
- **If you were using `/custom-routing-deactivate`:**
25
- ```bash
26
- # Just run this instead:
27
- /switch-api max
28
-
29
- # Then re-authenticate:
30
- claude login
31
- ```
32
-
33
- ## Why Deprecated
34
-
35
- The custom-routing system was designed but never fully implemented. The new switch-api provides the same functionality with:
36
-
37
- 1. **Simpler commands** - `/switch-api zai` or `/switch-api max`
38
- 2. **Actually works** - Complete implementation
39
- 3. **Clear behavior** - Explicit env var management
40
- 4. **Better docs** - See `/switch-api` help
41
-
42
- ## See Also
43
-
44
- - `/switch-api` - Current routing system
45
- - `/switch-api max` - Use Anthropic for Main Chat
46
- - `/switch-api zai` - Use Z.ai for cost savings
@@ -1,171 +0,0 @@
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.
@@ -1,179 +0,0 @@
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.