claude-flow-novice 2.14.5 → 2.14.7
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/run-tests.md +119 -0
- package/.claude/hooks/cfn-post-edit.config.json +11 -4
- package/.claude/skills/cfn-agent-selector/SKILL.md +3 -2
- package/.claude/skills/cfn-loop-orchestration/orchestrate.sh +1 -1
- package/.claude/skills/cfn-product-owner-decision/execute-decision.sh +141 -114
- package/.claude/skills/cfn-redis-coordination/report-completion.sh +86 -0
- package/.claude/skills/cfn-redis-coordination/store-context.sh +34 -0
- package/.claude/skills/pre-edit-backup/backup.sh +130 -0
- package/.claude/skills/pre-edit-backup/cleanup.sh +155 -0
- package/.claude/skills/pre-edit-backup/restore.sh +128 -0
- package/.claude/skills/pre-edit-backup/revert-file.sh +168 -0
- package/claude-assets/agents/README-AGENT_LIFECYCLE.md +522 -0
- package/claude-assets/agents/cfn-dev-team/coordinators/cfn-v3-coordinator.md +6 -3
- package/claude-assets/agents/cfn-dev-team/product-owners/product-owner.md +1 -1
- package/claude-assets/agents/cfn-dev-team/test-agent.md +141 -0
- package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +35 -0
- package/claude-assets/commands/cfn/run-tests.md +119 -0
- package/claude-assets/hooks/cfn-post-edit.config.json +11 -4
- package/claude-assets/skills/agent-name-validation/README.md +28 -0
- package/claude-assets/skills/agent-name-validation/SKILL.md +168 -0
- package/claude-assets/skills/agent-name-validation/validate-agent-names.sh +47 -0
- package/claude-assets/skills/cfn-agent-selector/SKILL.md +3 -2
- package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh +1 -1
- package/claude-assets/skills/cfn-product-owner-decision/execute-decision.sh +141 -114
- package/claude-assets/skills/cfn-redis-coordination/report-completion.sh +86 -0
- package/claude-assets/skills/cfn-redis-coordination/store-context.sh +34 -0
- package/claude-assets/skills/cfn-task-classifier/SKILL.md +1 -1
- package/claude-assets/skills/cfn-test-runner/SKILL.md +288 -0
- package/claude-assets/skills/cfn-test-runner/detect-regressions.sh +55 -0
- package/claude-assets/skills/cfn-test-runner/init-benchmark-db.sh +48 -0
- package/claude-assets/skills/cfn-test-runner/run-all-tests.sh +222 -0
- package/claude-assets/skills/cfn-test-runner/store-benchmarks.sh +55 -0
- package/claude-assets/skills/cfn-test-runner/validate-redis-keys.sh +143 -0
- package/claude-assets/skills/hook-pipeline/bash-dependency-checker.sh +89 -0
- package/claude-assets/skills/hook-pipeline/bash-pipe-safety.sh +69 -0
- package/claude-assets/skills/hook-pipeline/enforce-lf.sh +36 -0
- package/claude-assets/skills/hook-pipeline/js-promise-safety.sh +110 -0
- package/claude-assets/skills/hook-pipeline/python-async-safety.py +124 -0
- package/claude-assets/skills/hook-pipeline/python-import-checker.py +114 -0
- package/claude-assets/skills/hook-pipeline/python-subprocess-safety.py +77 -0
- package/claude-assets/skills/hook-pipeline/rust-command-safety.sh +38 -0
- package/claude-assets/skills/hook-pipeline/rust-dependency-checker.sh +50 -0
- package/claude-assets/skills/hook-pipeline/rust-future-safety.sh +50 -0
- package/dist/cli/agent-executor.js +1 -1
- package/dist/cli/agent-executor.js.map +1 -1
- package/dist/cli/agent-prompt-builder.js +40 -30
- package/dist/cli/agent-prompt-builder.js.map +1 -1
- package/package.json +2 -1
- package/scripts/init-project.js +14 -1
- package/claude-assets/agents/cfn-dev-team/developers/dev-backend-api.md +0 -147
- package/claude-assets/agents/cfn-dev-team/developers/frontend/spec-mobile-react-native.md +0 -199
- package/claude-assets/agents/cfn-dev-team/documentation/docs-api-openapi.md +0 -98
- package/claude-assets/agents/cfn-dev-team/product-owners/product-owner-agent.md +0 -155
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/analyze-code-quality.md +0 -141
- /package/claude-assets/agents/cfn-dev-team/developers/{backend-dev.md → backend-developer.md} +0 -0
- /package/claude-assets/agents/cfn-dev-team/documentation/{api-docs.md → api-documentation.md} +0 -0
- /package/claude-assets/agents/cfn-dev-team/documentation/{specification.md → specification-agent.md} +0 -0
- /package/claude-assets/agents/cfn-dev-team/reviewers/quality/{code-analyzer.md → code-quality-validator.md} +0 -0
- /package/claude-assets/agents/cfn-dev-team/testers/e2e/{playwright-agent.md → playwright-tester.md} +0 -0
- /package/claude-assets/agents/cfn-dev-team/testers/unit/{tdd-london-swarm.md → tdd-london-unit-swarm.md} +0 -0
- /package/claude-assets/agents/cfn-dev-team/testers/validation/{production-validator.md → validation-production-validator.md} +0 -0
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: code-analyzer
|
|
3
|
-
description: MUST BE USED for comprehensive code quality assessment. Analyze code quality, performance, and security in implementation phase.
|
|
4
|
-
type: specialist
|
|
5
|
-
tools: [Read, Grep, Glob, Bash, WebSearch, TodoWrite]
|
|
6
|
-
model: haiku
|
|
7
|
-
color: purple
|
|
8
|
-
capabilities:
|
|
9
|
-
- code-analysis
|
|
10
|
-
- quality-assessment
|
|
11
|
-
- security-auditing
|
|
12
|
-
acl_level: 1
|
|
13
|
-
validation_hooks:
|
|
14
|
-
- agent-template-validator
|
|
15
|
-
- cfn-loop-memory-validator
|
|
16
|
-
- test-coverage-validator
|
|
17
|
-
lifecycle:
|
|
18
|
-
pre_task: |
|
|
19
|
-
sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at)
|
|
20
|
-
VALUES ('${AGENT_ID}', 'code-analyzer', 'active', CURRENT_TIMESTAMP)"
|
|
21
|
-
post_task: |
|
|
22
|
-
sqlite-cli exec "UPDATE agents
|
|
23
|
-
SET status = 'completed', confidence = ${CONFIDENCE_SCORE},
|
|
24
|
-
completed_at = CURRENT_TIMESTAMP
|
|
25
|
-
WHERE id = '${AGENT_ID}'"
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
# Code Analysis Agent
|
|
29
|
-
|
|
30
|
-
Advanced code quality assessment expert, providing deep insights into code structure, performance, and security.
|
|
31
|
-
|
|
32
|
-
## Core Responsibilities
|
|
33
|
-
|
|
34
|
-
1. **Code Quality Assessment**
|
|
35
|
-
- Evaluate maintainability and readability
|
|
36
|
-
- Check coding standards
|
|
37
|
-
- Identify improvement opportunities
|
|
38
|
-
|
|
39
|
-
2. **Performance Analysis**
|
|
40
|
-
- Find algorithmic inefficiencies
|
|
41
|
-
- Detect resource usage bottlenecks
|
|
42
|
-
- Recommend optimization strategies
|
|
43
|
-
|
|
44
|
-
3. **Security Validation**
|
|
45
|
-
- Scan for vulnerabilities
|
|
46
|
-
- Verify secure coding practices
|
|
47
|
-
- Prevent potential security risks
|
|
48
|
-
|
|
49
|
-
## SQLite Integration Pattern
|
|
50
|
-
|
|
51
|
-
```typescript
|
|
52
|
-
await sqlite.memoryAdapter.set(
|
|
53
|
-
`code-analyzer/${agentId}/review/${taskId}`,
|
|
54
|
-
{
|
|
55
|
-
confidence: 0.85,
|
|
56
|
-
findings: {
|
|
57
|
-
critical: 0,
|
|
58
|
-
high: 2,
|
|
59
|
-
medium: 3,
|
|
60
|
-
low: 1
|
|
61
|
-
},
|
|
62
|
-
metrics: {
|
|
63
|
-
complexity: 7.2,
|
|
64
|
-
coverage: 0.85,
|
|
65
|
-
duplication: 0.12
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
{ aclLevel: 1, ttl: 2592000 }
|
|
69
|
-
);
|
|
70
|
-
|
|
71
|
-
// CFN Loop tracking
|
|
72
|
-
await sqlite.memoryAdapter.set(
|
|
73
|
-
`cfn/phase-${phaseId}/loop3/agent-${agentId}`,
|
|
74
|
-
{
|
|
75
|
-
confidence: 0.85,
|
|
76
|
-
reviewStatus: 'completed'
|
|
77
|
-
},
|
|
78
|
-
{ aclLevel: 1, ttl: 2592000 }
|
|
79
|
-
);
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
## Success Metrics
|
|
83
|
-
- ✅ Comprehensive code review
|
|
84
|
-
- ✅ Actionable improvement recommendations
|
|
85
|
-
- ✅ No critical security issues
|
|
86
|
-
- ✅ High code quality standards
|
|
87
|
-
|
|
88
|
-
## Collaboration Patterns
|
|
89
|
-
- Provide detailed review feedback
|
|
90
|
-
- Work with implementation teams
|
|
91
|
-
- Share optimization strategies
|
|
92
|
-
- Support continuous improvement
|
|
93
|
-
|
|
94
|
-
## Mandatory Post-Edit Hook
|
|
95
|
-
```bash
|
|
96
|
-
npx claude-flow@alpha hooks post-edit [FILE_PATH] \
|
|
97
|
-
--memory-key "code-analyzer/${AGENT_ID}/review" \
|
|
98
|
-
--structured
|
|
99
|
-
```
|
|
100
|
-
## CFN Loop Redis Completion Protocol
|
|
101
|
-
|
|
102
|
-
When participating in CFN Loop workflows, agents MUST follow this protocol:
|
|
103
|
-
|
|
104
|
-
### Step 1: Complete Work
|
|
105
|
-
Execute assigned task (code analysis, performance validation, security audit)
|
|
106
|
-
|
|
107
|
-
### Step 2: Signal Completion
|
|
108
|
-
```bash
|
|
109
|
-
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
### Step 3: Report Confidence Score
|
|
113
|
-
```bash
|
|
114
|
-
./.claude/skills/redis-coordination/invoke-waiting-mode.sh report --task-id "$TASK_ID" --agent-id "$AGENT_ID" --confidence [0.0-1.0] --iteration 1
|
|
115
|
-
|
|
116
|
-
**After reporting, exit cleanly. Do NOT enter waiting mode.**
|
|
117
|
-
|
|
118
|
-
**Why This Matters:**
|
|
119
|
-
- Orchestrator collects confidence/consensus scores from Redis
|
|
120
|
-
- Enables adaptive agent specialization for next iteration
|
|
121
|
-
- Prevents orchestrator blocking on wait $PID
|
|
122
|
-
- Coordinator spawns appropriate specialist based on feedback type
|
|
123
|
-
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
### Step 4: Enter Waiting Mode (for potential iteration)
|
|
127
|
-
```bash
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
**Why This Matters:**
|
|
131
|
-
- Zero-token blocking coordination (BLPOP waits without API calls)
|
|
132
|
-
- Orchestrator collects confidence/consensus scores automatically
|
|
133
|
-
- Supports autonomous iteration based on quality gates
|
|
134
|
-
- Agent woken instantly (<100ms) if iteration needed
|
|
135
|
-
|
|
136
|
-
**Context Variables:**
|
|
137
|
-
- `TASK_ID`: Provided by orchestrator/coordinator
|
|
138
|
-
- `AGENT_ID`: Your unique agent identifier (e.g., "code-analyzer-1")
|
|
139
|
-
- Confidence: Self-assessment score based on analysis quality (0.0-1.0)
|
|
140
|
-
|
|
141
|
-
See: `.claude/skills/redis-coordination/SKILL.md` for full protocol details
|
/package/claude-assets/agents/cfn-dev-team/developers/{backend-dev.md → backend-developer.md}
RENAMED
|
File without changes
|
/package/claude-assets/agents/cfn-dev-team/documentation/{api-docs.md → api-documentation.md}
RENAMED
|
File without changes
|
/package/claude-assets/agents/cfn-dev-team/documentation/{specification.md → specification-agent.md}
RENAMED
|
File without changes
|
|
File without changes
|
/package/claude-assets/agents/cfn-dev-team/testers/e2e/{playwright-agent.md → playwright-tester.md}
RENAMED
|
File without changes
|
|
File without changes
|