claude-flow-novice 2.13.0 → 2.14.1

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 (88) hide show
  1. package/.claude/commands/cfn/README.md +177 -129
  2. package/.claude/commands/cfn/cfn-loop-cli.md +279 -0
  3. package/.claude/commands/cfn/cfn-loop-document.md +20 -1
  4. package/.claude/commands/cfn/cfn-loop-frontend.md +17 -2
  5. package/.claude/commands/cfn/cfn-loop-task.md +460 -0
  6. package/.claude/commands/cfn/context-curate.md +27 -38
  7. package/.claude/commands/cfn/context-inject.md +14 -25
  8. package/.claude/commands/cfn/context-query.md +40 -45
  9. package/.claude/commands/cfn/context-reflect.md +40 -38
  10. package/.claude/commands/cfn/context-stats.md +13 -38
  11. package/.claude/commands/cfn/launch-web-dashboard.md +0 -295
  12. package/.claude/commands/cfn/list-agents-rebuild.md +18 -18
  13. package/.claude/commands/cfn/write-plan.md +246 -75
  14. package/.claude/root-claude-distribute/CFN-CLAUDE.md +126 -233
  15. package/.claude/skills/cfn-backlog-management/add-backlog-item.sh +25 -27
  16. package/.claude/skills/cfn-changelog-management/add-changelog-entry.sh +21 -19
  17. package/.claude/skills/cfn-changelog-management/bulk-import.sh +268 -0
  18. package/.claude/skills/cfn-changelog-management/lib/README.md +212 -0
  19. package/.claude/skills/cfn-changelog-management/lib/validation.sh +72 -0
  20. package/.claude/skills/cfn-product-owner-decision/execute-decision.sh +36 -11
  21. package/claude-assets/agents/cfn-dev-team/analysts/root-cause-analyst.md +259 -0
  22. package/claude-assets/agents/cfn-dev-team/reviewers/reviewer.md +45 -6
  23. package/claude-assets/agents/cfn-dev-team/testers/tester.md +59 -0
  24. package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +4 -4
  25. package/claude-assets/commands/cfn/auto-compact.md +80 -0
  26. package/claude-assets/commands/cfn/cfn-loop-cli.md +13 -2
  27. package/claude-assets/commands/cfn/cfn-loop-epic.md +478 -0
  28. package/claude-assets/commands/cfn/cfn-loop-single.md +256 -0
  29. package/claude-assets/commands/cfn/cfn-loop-sprints.md +396 -0
  30. package/claude-assets/commands/cfn/cfn-loop-task.md +27 -9
  31. package/claude-assets/commands/cfn/cfn-loop.md +518 -0
  32. package/claude-assets/commands/cfn/claude-md.md +64 -0
  33. package/claude-assets/commands/cfn/claude-soul.md +22 -0
  34. package/claude-assets/commands/cfn/cost-savings-off.md +35 -0
  35. package/claude-assets/commands/cfn/cost-savings-on.md +35 -0
  36. package/claude-assets/commands/cfn/cost-savings-status.md +34 -0
  37. package/claude-assets/commands/cfn/custom-routing-activate.md +55 -0
  38. package/claude-assets/commands/cfn/custom-routing-deactivate.md +46 -0
  39. package/claude-assets/commands/cfn/dependency-recommendations.md +171 -0
  40. package/claude-assets/commands/cfn/fullstack.md +179 -0
  41. package/claude-assets/commands/cfn/github.md +221 -0
  42. package/claude-assets/commands/cfn/hooks.md +38 -0
  43. package/claude-assets/commands/cfn/metrics-summary.md +58 -0
  44. package/claude-assets/commands/cfn/neural.md +39 -0
  45. package/claude-assets/commands/cfn/parse-epic.md +357 -0
  46. package/claude-assets/commands/cfn/performance.md +41 -0
  47. package/claude-assets/commands/cfn/sparc.md +46 -0
  48. package/claude-assets/commands/cfn/suggest-improvements.md +95 -0
  49. package/claude-assets/commands/cfn/suggest-templates.md +147 -0
  50. package/claude-assets/commands/cfn/swarm.md +24 -0
  51. package/claude-assets/root-claude-distribute/CFN-CLAUDE.md +126 -233
  52. package/claude-assets/skills/cfn-backlog-management/add-backlog-item.sh +25 -27
  53. package/claude-assets/skills/cfn-changelog-management/add-changelog-entry.sh +21 -19
  54. package/claude-assets/skills/cfn-changelog-management/bulk-import.sh +268 -0
  55. package/claude-assets/skills/cfn-changelog-management/lib/README.md +212 -0
  56. package/claude-assets/skills/cfn-changelog-management/lib/validation.sh +72 -0
  57. package/claude-assets/skills/cfn-product-owner-decision/execute-decision.sh +36 -11
  58. package/claude-assets/skills/cfn-task-config-init/SKILL.md +204 -0
  59. package/claude-assets/skills/cfn-task-config-init/initialize-config.sh +264 -0
  60. package/dist/agents/agent-loader.js +165 -146
  61. package/dist/agents/agent-loader.js.map +1 -1
  62. package/package.json +2 -2
  63. package/.claude/commands/README.md +0 -205
  64. package/.claude/skills/cfn-loop-orchestration/orchestrate.sh.backup +0 -840
  65. package/.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh.backup-p7 +0 -423
  66. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup +0 -38
  67. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-1761167675 +0 -1672
  68. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-p5 +0 -1604
  69. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase1 +0 -1550
  70. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase2 +0 -1621
  71. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase3 +0 -1621
  72. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.broken +0 -1627
  73. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.corrupted +0 -80
  74. package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.deprecated +0 -1864
  75. package/.claude/skills/cfn-redis-coordination/tests/test_coordination_primitives.sh.deprecated +0 -20
  76. package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh.backup +0 -840
  77. package/claude-assets/skills/cfn-loop2-output-processing/execute-and-extract.sh.backup +0 -36
  78. package/claude-assets/skills/cfn-redis-coordination/invoke-waiting-mode.sh.backup-p7 +0 -423
  79. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup +0 -38
  80. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-1761167675 +0 -1672
  81. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-p5 +0 -1604
  82. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase1 +0 -1550
  83. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase2 +0 -1621
  84. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase3 +0 -1621
  85. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.broken +0 -1627
  86. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.corrupted +0 -80
  87. package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.deprecated +0 -1864
  88. package/claude-assets/skills/cfn-redis-coordination/tests/test_coordination_primitives.sh.deprecated +0 -20
@@ -1,104 +1,275 @@
1
- # Write Plan Command
1
+ ---
2
+ description: "CFN Loop pre-planning: Generate structured implementation plans with TDD approach"
3
+ argument-hint: "<task description> [--mode=mvp|standard|enterprise]"
4
+ allowed-tools: ["Task", "TodoWrite", "Read", "Write", "Bash"]
5
+ ---
2
6
 
3
- ## Overview
4
- The `write-plan` command helps create structured, test-driven implementation plans for claude-flow-novice projects, leveraging our CFN Loop workflow and adaptive context strategies.
7
+ # Write Plan - CFN Loop Pre-Planning
5
8
 
6
- ## Core Principles
9
+ Generate structured implementation plan BEFORE executing CFN Loop. Outputs plan document for review.
7
10
 
8
- ### 1. Test-Driven Development (TDD)
9
- - Always start with failure scenarios (Red phase)
10
- - Implement minimal code to pass tests (Green phase)
11
- - Refactor for quality and maintainability (Refactor phase)
11
+ 🎯 **Use this BEFORE /cfn-loop-cli or /cfn-loop-task**
12
12
 
13
- ### 2. CFN Loop Integration
14
- Utilize the CFN Loop workflow for complex implementations:
15
- - **Loop 3 (Implementation)**: Create detailed implementation plan
16
- - **Loop 2 (Validation)**: Comprehensive test and review
17
- - **Product Owner Decision**: Strategic go/no-go checkpoint
13
+ **Task**: $ARGUMENTS
18
14
 
19
- ## Plan Structure Template
15
+ ## What This Does
20
16
 
17
+ **Pre-planning phase for CFN Loop:**
18
+ 1. Analyzes task complexity
19
+ 2. Selects appropriate agents
20
+ 3. Defines test cases and success criteria
21
+ 4. Creates implementation roadmap
22
+ 5. Outputs plan document for approval
23
+
24
+ **Then run:**
25
+ ```bash
26
+ # After reviewing plan
27
+ /cfn-loop-cli "Implement JWT authentication" --mode=standard
28
+ # OR
29
+ /cfn-loop-task "Implement JWT authentication" --mode=standard
30
+ ```
31
+
32
+ ## Command Options
33
+
34
+ ```bash
35
+ # Standard planning
36
+ /write-plan "Implement JWT authentication"
37
+
38
+ # MVP planning (faster, simpler)
39
+ /write-plan "Build prototype feature" --mode=mvp
40
+
41
+ # Enterprise planning (comprehensive)
42
+ /write-plan "Production security system" --mode=enterprise
43
+ ```
44
+
45
+ **Options:**
46
+ - `--mode=<mvp|standard|enterprise>`: Planning depth (default: standard)
47
+
48
+ ## Execution Pattern
49
+
50
+ ### Step 1: Analyze Task
51
+
52
+ ```javascript
53
+ Task("planner", `
54
+ ANALYZE TASK FOR CFN LOOP PLANNING
55
+
56
+ Task: $ARGUMENTS
57
+ Mode: ${mode}
58
+
59
+ ANALYSIS REQUIRED:
60
+ 1. Complexity Assessment:
61
+ - Estimated files: 1-2 (simple) | 3-5 (standard) | >5 (complex)
62
+ - Estimated LOC: <200 (simple) | 200-500 (standard) | >500 (complex)
63
+ - Keywords: security, performance, frontend, mobile, etc.
64
+
65
+ 2. Agent Selection:
66
+ - Loop 3 (Implementation): Based on task type
67
+ * Backend: backend-dev, researcher, devops
68
+ * Full-stack: backend-dev, react-frontend-engineer, devops
69
+ * Mobile: mobile-dev, backend-dev
70
+ * Security: security-specialist, backend-dev
71
+ - Loop 2 (Validation): Scale by complexity
72
+ * Simple: reviewer, tester
73
+ * Standard: +architect, +security-specialist
74
+ * Complex: +code-analyzer, +performance-benchmarker
75
+
76
+ 3. Test Cases (TDD Approach):
77
+ - Red Phase: Failure scenarios
78
+ - Green Phase: Minimal passing implementation
79
+ - Refactor Phase: Quality improvements
80
+
81
+ 4. Success Criteria:
82
+ - Test coverage target (≥80%)
83
+ - Performance benchmarks (if applicable)
84
+ - Security requirements (if applicable)
85
+ - Deliverables list
86
+
87
+ OUTPUT: planning/PLAN_${sanitize($ARGUMENTS)}.md
88
+ `)
89
+ ```
90
+
91
+ ### Step 2: Generate Plan Document
92
+
93
+ **Plan Structure:**
21
94
  ```markdown
22
- # [Feature/Task Name]
95
+ # Implementation Plan: [Task Name]
23
96
 
24
- ## Objectives
25
- - Clear, measurable implementation goals
26
- - Specific deliverables
97
+ ## Task Analysis
98
+ - **Complexity**: Simple | Standard | Complex
99
+ - **Estimated Files**: N
100
+ - **Estimated LOC**: N
101
+ - **Mode**: ${mode}
27
102
 
28
- ## Context Injection
29
- - Epic Context
30
- - Sprint Context
31
- - Specific Deliverables
103
+ ## Agent Configuration
32
104
 
33
- ## Coordination Strategy
34
- - Coordinator: `cost-savings-cfn-loop-coordinator`
35
- - Agents: Specify roles (backend-dev, researcher, etc.)
36
- - Iteration Strategy
105
+ ### Loop 3 (Implementation)
106
+ - agent-1 (role)
107
+ - agent-2 (role)
108
+ - agent-3 (role)
37
109
 
38
- ## Phase 1: Test and Specification
39
- ### Deliverables
40
- - [ ] Test script (tests/test-[feature].sh)
41
- - [ ] Specification document
110
+ ### Loop 2 (Validation)
111
+ - reviewer (code review)
112
+ - tester (quality assurance)
113
+ [+ architect, security-specialist for standard/enterprise]
42
114
 
43
- ### Test Cases
44
- - Failure scenarios
45
- - Edge cases
46
- - Performance expectations
115
+ ### Product Owner
116
+ - product-owner (PROCEED/ITERATE/ABORT decision)
47
117
 
48
- ## Phase 2: Minimal Implementation
49
- ### Deliverables
118
+ ## Test-Driven Development Plan
119
+
120
+ ### Phase 1: Red (Failure Scenarios)
121
+ **Deliverables:**
122
+ - [ ] Test script: tests/test-[feature].sh
123
+ - [ ] Failure test cases defined
124
+
125
+ **Test Cases:**
126
+ 1. [Test case 1 - expected failure]
127
+ 2. [Test case 2 - edge case]
128
+ 3. [Test case 3 - performance requirement]
129
+
130
+ ### Phase 2: Green (Minimal Implementation)
131
+ **Deliverables:**
50
132
  - [ ] Minimal working implementation
51
- - [ ] Initial test coverage
133
+ - [ ] All test cases passing
52
134
 
53
- ## Phase 3: Refactoring and Optimization
54
- ### Deliverables
55
- - [ ] Improved code quality
56
- - [ ] Enhanced test coverage
57
- - [ ] Performance optimization
135
+ **Implementation Steps:**
136
+ 1. [Core functionality]
137
+ 2. [Basic validation]
138
+ 3. [Minimal error handling]
139
+
140
+ ### Phase 3: Refactor (Quality Improvement)
141
+ **Deliverables:**
142
+ - [ ] Code quality improvements
143
+ - [ ] Enhanced test coverage (≥80%)
144
+ - [ ] Documentation
58
145
 
59
- ## Redis Coordination Checkpoints
60
- - Entry point validation
61
- - Iteration confidence reporting
62
- - Context extraction verification
146
+ **Refactoring Goals:**
147
+ 1. [Code organization]
148
+ 2. [Performance optimization]
149
+ 3. [Security hardening]
63
150
 
64
151
  ## Success Criteria
65
- - Test coverage ≥ 90%
66
- - Complexity score < 15
67
- - Meets architectural guidelines
152
+
153
+ ### Quality Gates
154
+ - Loop 3 Gate: ≥${mode === 'enterprise' ? 0.85 : mode === 'standard' ? 0.75 : 0.70}
155
+ - Loop 2 Consensus: ≥${mode === 'enterprise' ? 0.95 : mode === 'standard' ? 0.90 : 0.80}
156
+
157
+ ### Deliverables
158
+ - [ ] All test cases passing
159
+ - [ ] Test coverage ≥80%
160
+ - [ ] Code complexity <15 per function
161
+ - [ ] Security review complete
162
+ - [ ] Documentation updated
163
+
164
+ ### Performance Benchmarks (if applicable)
165
+ - [Benchmark 1]
166
+ - [Benchmark 2]
68
167
 
69
168
  ## Potential Blockers
70
- - Identify potential implementation challenges
71
- - Pre-emptive mitigation strategies
169
+
170
+ **Technical:**
171
+ - [Potential blocker 1]
172
+ - [Mitigation strategy]
173
+
174
+ **Dependencies:**
175
+ - [External dependency 1]
176
+ - [Fallback plan]
72
177
 
73
178
  ## Iteration Strategy
74
- - Maximum iterations: 10
75
- - Confidence threshold: 0.90
76
- - Adaptive agent spawning based on feedback
179
+ - Max iterations: ${mode === 'enterprise' ? 15 : mode === 'standard' ? 10 : 5}
180
+ - Confidence threshold: ${mode === 'enterprise' ? 0.95 : mode === 'standard' ? 0.90 : 0.80}
181
+ - Adaptive agent spawning: YES
182
+
183
+ ## Next Steps
184
+
185
+ 1. Review this plan
186
+ 2. Execute CFN Loop:
187
+ \`\`\`bash
188
+ /cfn-loop-cli "$ARGUMENTS" --mode=${mode}
189
+ # OR for debugging:
190
+ /cfn-loop-task "$ARGUMENTS" --mode=${mode}
191
+ \`\`\`
77
192
  ```
78
193
 
79
- ## Usage Guidelines
194
+ ### Step 3: Output Plan
195
+
196
+ ```javascript
197
+ const planPath = `planning/PLAN_${sanitize($ARGUMENTS)}.md`;
198
+ Write(planPath, planContent);
199
+
200
+ console.log(`✅ Implementation plan generated: ${planPath}`);
201
+ console.log('');
202
+ console.log('📋 Plan Summary:');
203
+ console.log(`- Complexity: ${complexity}`);
204
+ console.log(`- Loop 3 Agents: ${loop3Agents.length}`);
205
+ console.log(`- Loop 2 Validators: ${loop2Agents.length}`);
206
+ console.log(`- Test Cases: ${testCases.length}`);
207
+ console.log(`- Success Criteria: ${successCriteria.length}`);
208
+ console.log('');
209
+ console.log('Next: Review plan, then execute CFN Loop');
210
+ console.log(`/cfn-loop-cli "$ARGUMENTS" --mode=${mode}`);
211
+ ```
212
+
213
+ ## Integration with CFN Loop
214
+
215
+ **Workflow:**
216
+ ```
217
+ 1. /write-plan "Task description" --mode=standard
218
+ ↓ Generates planning/PLAN_task.md
219
+
220
+ 2. Human reviews plan (optional)
221
+ ↓ Approve or request changes
222
+
223
+ 3. /cfn-loop-cli "Task description" --mode=standard
224
+ ↓ Executes implementation following plan
225
+
226
+ 4. CFN Loop autonomously implements following TDD phases
227
+ ```
228
+
229
+ ## Mode Comparison
230
+
231
+ | Mode | Complexity | Agents | Test Coverage | Use Case |
232
+ |------|------------|--------|---------------|----------|
233
+ | MVP | Low | 3-4 total | ≥70% | Prototypes, proof-of-concept |
234
+ | Standard | Medium | 5-7 total | ≥80% | Production features |
235
+ | Enterprise | High | 8-10 total | ≥90% | Critical systems, compliance |
236
+
237
+ ## Example Output
80
238
 
81
- ### Spawning Plan Creation
82
- ```bash
83
- /write-plan "Implement JWT Authentication" \
84
- --epic-context '{"goal":"Secure API access"}' \
85
- --sprint-context '{"sprint":"Authentication MVP"}' \
86
- --agents "backend-dev,security-specialist"
87
239
  ```
240
+ Analyzing task...
88
241
 
89
- ### Example Workflow
90
- 1. Generate initial plan
91
- 2. Review with team via Redis pub/sub
92
- 3. Refine plan based on feedback
93
- 4. Execute using `cost-savings-cfn-loop-coordinator`
242
+ Implementation plan generated: planning/PLAN_jwt_authentication.md
243
+
244
+ 📋 Plan Summary:
245
+ - Complexity: Standard
246
+ - Loop 3 Agents: 3 (backend-dev, researcher, devops)
247
+ - Loop 2 Validators: 4 (reviewer, tester, architect, security-specialist)
248
+ - Test Cases: 8
249
+ - Success Criteria: 6
250
+
251
+ Next: Review plan, then execute CFN Loop
252
+ /cfn-loop-cli "Implement JWT authentication" --mode=standard
253
+ ```
94
254
 
95
255
  ## Best Practices
96
- - Keep tasks small and focused
97
- - Prioritize testability
98
- - Leverage adaptive context injection
99
- - Use explicit deliverable tracking
100
-
101
- ## Notes
102
- - This is a living document
103
- - Continuously update based on team feedback
104
- - Align with claude-flow-novice adaptive context strategies
256
+
257
+ **When to Use:**
258
+ - Complex tasks (>3 steps)
259
+ - Security-critical features
260
+ - ✅ Team collaboration (plan review needed)
261
+ - ✅ Learning CFN Loop workflow
262
+
263
+ **When to Skip:**
264
+ - Simple bug fixes (go straight to /cfn-loop-cli)
265
+ - Urgent hotfixes (no time for planning)
266
+ - Well-understood patterns (agent knows what to do)
267
+
268
+ ## Related Commands
269
+
270
+ - **Execute Plan**: `/cfn-loop-cli` (production) or `/cfn-loop-task` (debugging)
271
+ - **Document Results**: `/cfn-loop-document` (after completion)
272
+
273
+ ---
274
+
275
+ **Version:** 2.0.0 (2025-10-31) - Integrated with CFN Loop v3 architecture