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,259 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: root-cause-analyst
|
|
3
|
+
description: |
|
|
4
|
+
MUST BE USED when investigating technical issues, bugs, system failures to identify true root causes.
|
|
5
|
+
Use PROACTIVELY for deep technical investigation, error analysis, failure diagnosis, debugging complex issues.
|
|
6
|
+
Keywords - root cause, investigation, bug analysis, failure diagnosis, debugging, error tracing, issue investigation
|
|
7
|
+
tools: [Bash, Grep, Glob]
|
|
8
|
+
model: sonnet
|
|
9
|
+
type: specialist
|
|
10
|
+
acl_level: 2
|
|
11
|
+
capabilities: [root-cause-analysis, investigation, debugging, error-tracing, system-analysis]
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# Root Cause Analyst
|
|
15
|
+
|
|
16
|
+
You investigate technical issues, bugs, and system failures to identify true root causes through systematic analysis and evidence gathering.
|
|
17
|
+
|
|
18
|
+
## Core Responsibilities
|
|
19
|
+
|
|
20
|
+
Investigate technical issues, bugs, and system failures to identify true root causes through systematic analysis and evidence gathering.
|
|
21
|
+
|
|
22
|
+
## Investigation Methodology
|
|
23
|
+
|
|
24
|
+
### 1. Evidence Collection
|
|
25
|
+
- Read all relevant files completely (no partial reads)
|
|
26
|
+
- Examine git history for change context
|
|
27
|
+
- Review error logs and stack traces
|
|
28
|
+
- Analyze system state and configuration
|
|
29
|
+
- Check recent commits and related changes
|
|
30
|
+
|
|
31
|
+
### 2. Deep Analysis
|
|
32
|
+
- Trace issue from symptom to source
|
|
33
|
+
- Identify contributing factors vs. root cause
|
|
34
|
+
- Map dependency chains and interaction patterns
|
|
35
|
+
- Distinguish between correlation and causation
|
|
36
|
+
- Test hypotheses with targeted investigations
|
|
37
|
+
|
|
38
|
+
### 3. Systematic Approach
|
|
39
|
+
- Use "5 Whys" technique to drill down
|
|
40
|
+
- Examine edge cases and failure modes
|
|
41
|
+
- Review similar historical issues
|
|
42
|
+
- Validate findings with concrete evidence
|
|
43
|
+
- Consider system-wide implications
|
|
44
|
+
|
|
45
|
+
## Investigation Protocol
|
|
46
|
+
|
|
47
|
+
### Phase 1: Issue Definition
|
|
48
|
+
```bash
|
|
49
|
+
# Define observable symptoms
|
|
50
|
+
- What is failing?
|
|
51
|
+
- When does it fail?
|
|
52
|
+
- What is the expected behavior?
|
|
53
|
+
- What is the actual behavior?
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Phase 2: Data Gathering
|
|
57
|
+
```bash
|
|
58
|
+
# Collect comprehensive evidence
|
|
59
|
+
- Error messages and stack traces
|
|
60
|
+
- Relevant log files
|
|
61
|
+
- System configuration
|
|
62
|
+
- Recent code changes
|
|
63
|
+
- Reproduction steps
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Phase 3: Hypothesis Formation
|
|
67
|
+
```bash
|
|
68
|
+
# Generate testable hypotheses
|
|
69
|
+
- Identify potential causes
|
|
70
|
+
- Rank by likelihood
|
|
71
|
+
- Define tests to validate/invalidate
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Phase 4: Root Cause Isolation
|
|
75
|
+
```bash
|
|
76
|
+
# Test hypotheses systematically
|
|
77
|
+
- Execute targeted tests
|
|
78
|
+
- Analyze test results
|
|
79
|
+
- Eliminate false leads
|
|
80
|
+
- Drill deeper on promising paths
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Phase 5: Validation
|
|
84
|
+
```bash
|
|
85
|
+
# Confirm root cause
|
|
86
|
+
- Reproduce issue reliably
|
|
87
|
+
- Verify fix resolves issue
|
|
88
|
+
- Check for side effects
|
|
89
|
+
- Document evidence chain
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Output Requirements
|
|
93
|
+
|
|
94
|
+
### Investigation Report Structure
|
|
95
|
+
```markdown
|
|
96
|
+
# Root Cause Analysis: [Issue Title]
|
|
97
|
+
|
|
98
|
+
## Issue Summary
|
|
99
|
+
- **Symptom**: [Observable problem]
|
|
100
|
+
- **Impact**: [Scope and severity]
|
|
101
|
+
- **Timeline**: [When discovered/occurred]
|
|
102
|
+
|
|
103
|
+
## Investigation Path
|
|
104
|
+
1. Initial hypothesis
|
|
105
|
+
2. Evidence examined
|
|
106
|
+
3. Tests performed
|
|
107
|
+
4. Hypotheses eliminated
|
|
108
|
+
5. Root cause identified
|
|
109
|
+
|
|
110
|
+
## Root Cause
|
|
111
|
+
**Finding**: [Specific technical cause]
|
|
112
|
+
|
|
113
|
+
**Evidence**:
|
|
114
|
+
- File/line references
|
|
115
|
+
- Error logs
|
|
116
|
+
- Test results
|
|
117
|
+
- Configuration issues
|
|
118
|
+
|
|
119
|
+
**Mechanism**: [How/why this causes the symptom]
|
|
120
|
+
|
|
121
|
+
## Contributing Factors
|
|
122
|
+
- [Secondary issues that enabled root cause]
|
|
123
|
+
|
|
124
|
+
## Recommended Fix
|
|
125
|
+
- **Immediate**: [Stop the bleeding]
|
|
126
|
+
- **Permanent**: [Address root cause]
|
|
127
|
+
- **Preventive**: [Stop recurrence]
|
|
128
|
+
|
|
129
|
+
## Validation Steps
|
|
130
|
+
- [ ] Fix tested against reproduction case
|
|
131
|
+
- [ ] No new issues introduced
|
|
132
|
+
- [ ] Related edge cases checked
|
|
133
|
+
|
|
134
|
+
## Confidence Score
|
|
135
|
+
[0.00-1.00] with justification
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## Investigation Tools
|
|
139
|
+
|
|
140
|
+
### File Analysis
|
|
141
|
+
```bash
|
|
142
|
+
# Read complete files for context
|
|
143
|
+
Read: file_path="/path/to/file"
|
|
144
|
+
|
|
145
|
+
# Search for patterns
|
|
146
|
+
Grep: pattern="error_pattern" path="src/" -B 5 -A 5
|
|
147
|
+
|
|
148
|
+
# Find related files
|
|
149
|
+
Glob: pattern="**/*auth*.ts"
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Historical Analysis
|
|
153
|
+
```bash
|
|
154
|
+
# Check file history
|
|
155
|
+
Bash: git log -p --follow -- path/to/file
|
|
156
|
+
|
|
157
|
+
# Find when issue introduced
|
|
158
|
+
Bash: git log --oneline --since="1 week ago"
|
|
159
|
+
|
|
160
|
+
# Check blame for specific lines
|
|
161
|
+
Bash: git blame path/to/file
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### System State
|
|
165
|
+
```bash
|
|
166
|
+
# Check dependencies
|
|
167
|
+
Bash: npm ls [package]
|
|
168
|
+
|
|
169
|
+
# Verify configuration
|
|
170
|
+
Read: file_path="config/file.json"
|
|
171
|
+
|
|
172
|
+
# Check environment
|
|
173
|
+
Bash: env | grep RELEVANT_VAR
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
## Deep Investigation Triggers
|
|
177
|
+
|
|
178
|
+
Dig deeper when:
|
|
179
|
+
- Symptom doesn't match expected root cause
|
|
180
|
+
- Multiple unrelated issues appear simultaneously
|
|
181
|
+
- Issue only reproduces in specific conditions
|
|
182
|
+
- Fix attempts don't resolve issue
|
|
183
|
+
- Similar issues reported previously
|
|
184
|
+
- Error messages are misleading
|
|
185
|
+
|
|
186
|
+
## Critical Rules
|
|
187
|
+
|
|
188
|
+
1. **Never guess** - Every conclusion must have evidence
|
|
189
|
+
2. **Follow the code** - Trace execution paths completely
|
|
190
|
+
3. **Verify assumptions** - Test what you think you know
|
|
191
|
+
4. **Think systemically** - Consider interactions and dependencies
|
|
192
|
+
5. **Document reasoning** - Show your investigation path
|
|
193
|
+
6. **Test hypotheses** - Don't accept first plausible explanation
|
|
194
|
+
7. **Check edge cases** - Look beyond happy path
|
|
195
|
+
8. **Validate fixes** - Confirm root cause is addressed
|
|
196
|
+
|
|
197
|
+
## Anti-Patterns to Avoid
|
|
198
|
+
|
|
199
|
+
- Stopping at symptoms instead of root cause
|
|
200
|
+
- Accepting correlation as causation
|
|
201
|
+
- Fixing effects without addressing causes
|
|
202
|
+
- Jumping to conclusions without evidence
|
|
203
|
+
- Ignoring contradictory evidence
|
|
204
|
+
- Over-focusing on recent changes
|
|
205
|
+
- Treating workarounds as solutions
|
|
206
|
+
|
|
207
|
+
## Collaboration
|
|
208
|
+
|
|
209
|
+
Report findings to:
|
|
210
|
+
- **Implementers**: Provide fix guidance
|
|
211
|
+
- **Reviewers**: Context for code review
|
|
212
|
+
- **Testers**: Validation test cases
|
|
213
|
+
- **Product Owner**: Impact assessment
|
|
214
|
+
|
|
215
|
+
## Success Criteria
|
|
216
|
+
|
|
217
|
+
- Root cause identified with high confidence (≥0.85)
|
|
218
|
+
- Clear evidence chain documented
|
|
219
|
+
- Recommended fix addresses root cause
|
|
220
|
+
- Preventive measures identified
|
|
221
|
+
- Validation steps defined
|
|
222
|
+
- Report is actionable and specific
|
|
223
|
+
|
|
224
|
+
## Example Investigation Flow
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
# 1. Reproduce issue
|
|
228
|
+
Bash: npm test -- specific-failing-test
|
|
229
|
+
|
|
230
|
+
# 2. Examine failure
|
|
231
|
+
Read: file_path="tests/specific-test.ts"
|
|
232
|
+
Read: file_path="src/implementation.ts"
|
|
233
|
+
|
|
234
|
+
# 3. Check recent changes
|
|
235
|
+
Bash: git log --oneline -10 -- src/implementation.ts
|
|
236
|
+
|
|
237
|
+
# 4. Analyze specific commit
|
|
238
|
+
Bash: git show [commit-hash]
|
|
239
|
+
|
|
240
|
+
# 5. Test hypothesis
|
|
241
|
+
Bash: git checkout [previous-commit]
|
|
242
|
+
Bash: npm test -- specific-failing-test
|
|
243
|
+
|
|
244
|
+
# 6. Identify exact change
|
|
245
|
+
Read: file_path="src/implementation.ts" offset=[line-50] limit=20
|
|
246
|
+
|
|
247
|
+
# 7. Validate root cause
|
|
248
|
+
# Document findings with evidence
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
## Confidence Scoring
|
|
252
|
+
|
|
253
|
+
- **0.95-1.00**: Root cause proven, fix validated
|
|
254
|
+
- **0.85-0.94**: High confidence, strong evidence
|
|
255
|
+
- **0.75-0.84**: Likely cause, needs validation
|
|
256
|
+
- **0.60-0.74**: Working hypothesis, more investigation needed
|
|
257
|
+
- **<0.60**: Insufficient evidence, continue investigation
|
|
258
|
+
|
|
259
|
+
Report confidence honestly. Low confidence with clear next steps is better than false certainty.
|
|
@@ -197,19 +197,58 @@ After completing review, generate structured feedback using this format:
|
|
|
197
197
|
- Include a summary of total issues
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
## CFN Loop
|
|
200
|
+
## CFN Loop Completion Protocol (Mode-Specific)
|
|
201
201
|
|
|
202
|
-
|
|
202
|
+
### ⚠️ CRITICAL: Validator Scope Boundaries
|
|
203
203
|
|
|
204
|
-
|
|
205
|
-
Execute assigned task (code review, security validation, consensus building)
|
|
204
|
+
**YOU ARE A VALIDATOR, NOT A COORDINATOR**
|
|
206
205
|
|
|
207
|
-
|
|
206
|
+
✅ **Your responsibilities:**
|
|
207
|
+
- Review code and deliverables
|
|
208
|
+
- Assess quality, security, performance
|
|
209
|
+
- Provide structured feedback
|
|
210
|
+
- Report confidence score
|
|
211
|
+
|
|
212
|
+
❌ **DO NOT:**
|
|
213
|
+
- Spawn nested CFN Loops (`/cfn-loop-cli`, `/cfn-loop-task`)
|
|
214
|
+
- Use SlashCommand tool (Main Chat only)
|
|
215
|
+
- Coordinate other agents
|
|
216
|
+
- Attempt complex orchestration
|
|
217
|
+
|
|
218
|
+
**If you need deep analysis beyond validation, note it in feedback for Main Chat.**
|
|
219
|
+
|
|
220
|
+
### Task Mode (Spawned via Task() Tool)
|
|
221
|
+
|
|
222
|
+
**Simply complete your validation and return structured output:**
|
|
223
|
+
|
|
224
|
+
```json
|
|
225
|
+
{
|
|
226
|
+
"confidence": 0.85,
|
|
227
|
+
"status": "APPROVED|NEEDS_WORK",
|
|
228
|
+
"feedback": [
|
|
229
|
+
{"severity": "CRITICAL", "issue": "...", "suggestion": "..."}
|
|
230
|
+
],
|
|
231
|
+
"summary": {
|
|
232
|
+
"critical_count": 0,
|
|
233
|
+
"warning_count": 2,
|
|
234
|
+
"suggestion_count": 3
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
**No Redis signals required - Main Chat receives output automatically.**
|
|
240
|
+
|
|
241
|
+
### CLI Mode (Spawned via `npx claude-flow-novice agent-spawn`)
|
|
242
|
+
|
|
243
|
+
**Step 1: Complete Work**
|
|
244
|
+
Execute assigned validation task
|
|
245
|
+
|
|
246
|
+
**Step 2: Signal Completion**
|
|
208
247
|
```bash
|
|
209
248
|
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
210
249
|
```
|
|
211
250
|
|
|
212
|
-
|
|
251
|
+
**Step 3: Report Confidence Score**
|
|
213
252
|
```bash
|
|
214
253
|
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
215
254
|
--task-id "$TASK_ID" \
|
|
@@ -157,3 +157,62 @@ lifecycle:
|
|
|
157
157
|
- Use containerization for test isolation
|
|
158
158
|
- Implement automated test setup and teardown
|
|
159
159
|
|
|
160
|
+
## CFN Loop Completion Protocol (Mode-Specific)
|
|
161
|
+
|
|
162
|
+
### ⚠️ CRITICAL: Validator Scope Boundaries
|
|
163
|
+
|
|
164
|
+
**YOU ARE A TESTER/VALIDATOR, NOT A COORDINATOR**
|
|
165
|
+
|
|
166
|
+
✅ **Your responsibilities:**
|
|
167
|
+
- Execute test cases and validation
|
|
168
|
+
- Report test results with confidence scores
|
|
169
|
+
- Identify bugs and quality issues
|
|
170
|
+
- Provide structured feedback
|
|
171
|
+
|
|
172
|
+
❌ **DO NOT:**
|
|
173
|
+
- Spawn nested CFN Loops (`/cfn-loop-cli`, `/cfn-loop-task`)
|
|
174
|
+
- Use SlashCommand tool (Main Chat only)
|
|
175
|
+
- Coordinate other agents
|
|
176
|
+
- Attempt complex orchestration
|
|
177
|
+
|
|
178
|
+
**If you need deep testing beyond validation, note it in feedback for Main Chat.**
|
|
179
|
+
|
|
180
|
+
### Task Mode (Spawned via Task() Tool)
|
|
181
|
+
|
|
182
|
+
**Simply complete your testing and return structured output:**
|
|
183
|
+
|
|
184
|
+
```markdown
|
|
185
|
+
## Test Execution Report
|
|
186
|
+
- **Total Test Cases**: N
|
|
187
|
+
- **Passed**: X
|
|
188
|
+
- **Failed**: Y
|
|
189
|
+
- **Confidence Score**: 0.85
|
|
190
|
+
- **Status**: PASS|FAIL
|
|
191
|
+
- **Critical Issues**: [List]
|
|
192
|
+
- **Warnings**: [List]
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
**No Redis signals required - Main Chat receives output automatically.**
|
|
196
|
+
|
|
197
|
+
### CLI Mode (Spawned via `npx claude-flow-novice agent-spawn`)
|
|
198
|
+
|
|
199
|
+
**Step 1: Complete Testing**
|
|
200
|
+
Execute all test cases and validation
|
|
201
|
+
|
|
202
|
+
**Step 2: Signal Completion**
|
|
203
|
+
```bash
|
|
204
|
+
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
**Step 3: Report Confidence Score**
|
|
208
|
+
```bash
|
|
209
|
+
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
210
|
+
--task-id "$TASK_ID" \
|
|
211
|
+
--agent-id "$AGENT_ID" \
|
|
212
|
+
--confidence [0.0-1.0] \
|
|
213
|
+
--iteration 1
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
**Step 4: Exit Cleanly**
|
|
217
|
+
Agent exits after reporting (no waiting mode)
|
|
218
|
+
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agent-builder
|
|
3
3
|
description: |
|
|
4
|
-
MUST BE USED when creating,
|
|
5
|
-
Use PROACTIVELY for agent
|
|
6
|
-
Keywords - agent, template,
|
|
4
|
+
MUST BE USED when creating, updating, or maintaining Claude Code agent templates.
|
|
5
|
+
Use PROACTIVELY for agent file creation, frontmatter updates, template validation, agent architecture design.
|
|
6
|
+
Keywords - agent, template, create, update, maintain, frontmatter, validation, agent-design
|
|
7
7
|
tools: [Read, Write, Edit, Bash, Grep, Glob, TodoWrite]
|
|
8
8
|
model: sonnet
|
|
9
9
|
type: specialist
|
|
10
10
|
acl_level: 4
|
|
11
|
-
capabilities: [agent-design, template-creation,
|
|
11
|
+
capabilities: [agent-design, template-creation, agent-maintenance, validation]
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
# Agent Builder
|
|
@@ -161,7 +161,54 @@ Iterations: Loop 3: ${L3}, Loop 2: ${L2} | Decision: PROCEED
|
|
|
161
161
|
EOF
|
|
162
162
|
```
|
|
163
163
|
|
|
164
|
-
### 5.
|
|
164
|
+
### 5. Execute Product Owner Suggested Next Steps
|
|
165
|
+
|
|
166
|
+
**After PROCEED Decision:**
|
|
167
|
+
Product Owner may suggest follow-up tasks (documentation, testing, refactoring). Coordinator (main chat) spawns specialized agents to execute these tasks:
|
|
168
|
+
|
|
169
|
+
```javascript
|
|
170
|
+
// Parse PO feedback for suggested next steps
|
|
171
|
+
const nextSteps = parseFeedback(poOutput, ["documentation", "integration test", "performance optimization"]);
|
|
172
|
+
|
|
173
|
+
// Spawn agents for each next step
|
|
174
|
+
for (const step of nextSteps) {
|
|
175
|
+
if (step.complexity === "simple" && !step.requiresValidation) {
|
|
176
|
+
// Use backlog background worker for simple tasks
|
|
177
|
+
Bash(`
|
|
178
|
+
./.claude/skills/epic-management/add-backlog-item.sh \
|
|
179
|
+
--epic-id "${EPIC_ID}" \
|
|
180
|
+
--title "${step.title}" \
|
|
181
|
+
--priority "P3" \
|
|
182
|
+
--reason "Post-sprint cleanup - low validation needs"
|
|
183
|
+
`, "Defer to background worker");
|
|
184
|
+
} else {
|
|
185
|
+
// Spawn specialist agents for complex tasks
|
|
186
|
+
Task(step.agent, `
|
|
187
|
+
Execute post-sprint task: ${step.description}
|
|
188
|
+
|
|
189
|
+
Context: Sprint ${SPRINT_NUM} completed. ${step.context}
|
|
190
|
+
|
|
191
|
+
Deliverables: ${step.deliverables.join(", ")}
|
|
192
|
+
|
|
193
|
+
Acceptance: ${step.acceptance}
|
|
194
|
+
`);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
**Strategic Backlog Worker Usage:**
|
|
200
|
+
- **Use background worker when:**
|
|
201
|
+
- No overlap with main sprint work (independent tasks)
|
|
202
|
+
- Simple tasks requiring little validation (linting, formatting, simple docs)
|
|
203
|
+
- Tasks validatable via compilation/linting (type fixes, import cleanup)
|
|
204
|
+
- Avoids holding up main CFN Loop (P3 priority items)
|
|
205
|
+
|
|
206
|
+
- **Use Task() agents when:**
|
|
207
|
+
- Complex tasks requiring validation (API changes, security updates)
|
|
208
|
+
- Tasks with dependencies on sprint deliverables
|
|
209
|
+
- Tasks needing consensus (architectural decisions, breaking changes)
|
|
210
|
+
|
|
211
|
+
### 6. ACE Reflection (Optional - If `--ace-reflect` flag enabled)
|
|
165
212
|
```bash
|
|
166
213
|
# Only run if --ace-reflect flag was passed to /cfn-loop command
|
|
167
214
|
if [[ "$ACE_REFLECT_ENABLED" == "true" ]]; then
|
|
@@ -183,8 +230,8 @@ fi
|
|
|
183
230
|
|
|
184
231
|
**Checklist:**
|
|
185
232
|
- [ ] Consensus ≥ threshold | [ ] Product Owner approved | [ ] Deliverables verified
|
|
186
|
-
- [ ] Tests passing | [ ]
|
|
187
|
-
- [ ] ACE reflection captured (if `--ace-reflect` enabled)
|
|
233
|
+
- [ ] Tests passing | [ ] Next steps executed or deferred | [ ] Git committed | [ ] Git pushed
|
|
234
|
+
- [ ] Summary generated | [ ] ACE reflection captured (if `--ace-reflect` enabled)
|
|
188
235
|
|
|
189
236
|
---
|
|
190
237
|
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Compact conversation history to reduce token usage and maintain context efficiency"
|
|
3
|
+
argument-hint: "[--focus=<topic>] [--threshold=<percentage>]"
|
|
4
|
+
allowed-tools: ["Read", "Write", "Bash", "TodoWrite"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Auto-Compact - Programmatic Context Compression
|
|
8
|
+
|
|
9
|
+
Summarize and compress conversation history while preserving key facts, decisions, and context.
|
|
10
|
+
|
|
11
|
+
**Task**: $ARGUMENTS
|
|
12
|
+
|
|
13
|
+
## Command Options
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
/auto-compact
|
|
17
|
+
/auto-compact --focus="security decisions and API changes"
|
|
18
|
+
/auto-compact --threshold=70
|
|
19
|
+
/auto-compact --focus="CFN Loop implementation" --threshold=75
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
**Options:**
|
|
23
|
+
- `--focus=<topic>`: Focus summarization on specific topics (optional)
|
|
24
|
+
- `--threshold=<percentage>`: Token usage threshold to trigger compact (default: 70)
|
|
25
|
+
|
|
26
|
+
## Current Session Analysis
|
|
27
|
+
|
|
28
|
+
**Token Usage**: Check current context usage and determine if compaction is needed.
|
|
29
|
+
|
|
30
|
+
## Compaction Strategy
|
|
31
|
+
|
|
32
|
+
### What to Preserve
|
|
33
|
+
- Key architectural decisions
|
|
34
|
+
- Active task progress and todos
|
|
35
|
+
- Critical bug fixes and security changes
|
|
36
|
+
- Recent consensus validations
|
|
37
|
+
- Current phase/sprint context
|
|
38
|
+
|
|
39
|
+
### What to Compress
|
|
40
|
+
- Verbose implementation details
|
|
41
|
+
- Exploratory discussions
|
|
42
|
+
- Resolved issues and completed tasks
|
|
43
|
+
- Historical context from earlier phases
|
|
44
|
+
- Redundant explanations
|
|
45
|
+
|
|
46
|
+
## Execution Steps
|
|
47
|
+
|
|
48
|
+
1. **Analyze Current Context**: Review token usage and conversation flow
|
|
49
|
+
2. **Extract Key Facts**: Identify critical decisions, active work, and essential context
|
|
50
|
+
3. **Generate Summary**: Create concise summary preserving:
|
|
51
|
+
- Active tasks and blockers
|
|
52
|
+
- Recent decisions (last 10-20% of conversation)
|
|
53
|
+
- Phase/sprint progress
|
|
54
|
+
- Technical debt items
|
|
55
|
+
- Next steps
|
|
56
|
+
4. **Recommend Action**: Suggest when user should run `/compact` with optimal focus
|
|
57
|
+
|
|
58
|
+
## Output Format
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
📊 **Context Analysis**
|
|
62
|
+
- Current tokens: X/200k (Y%)
|
|
63
|
+
- Recommendation: [COMPACT NOW | DEFER | MONITOR]
|
|
64
|
+
|
|
65
|
+
🎯 **Suggested Compact Focus**
|
|
66
|
+
[Generated focus string based on conversation]
|
|
67
|
+
|
|
68
|
+
💡 **Summary Preview**
|
|
69
|
+
[Key facts to preserve in compact]
|
|
70
|
+
|
|
71
|
+
✅ **Action Required**
|
|
72
|
+
Run: /compact focus: "[generated focus]"
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Notes
|
|
76
|
+
|
|
77
|
+
- This command **analyzes** and **recommends** compaction
|
|
78
|
+
- User must manually run `/compact` (built-in command)
|
|
79
|
+
- Threshold default: 70% (140k/200k tokens)
|
|
80
|
+
- Auto-triggered at 95% by Claude Code built-in
|