claude-flow-novice 2.14.30 → 2.14.31

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 (32) hide show
  1. package/claude-assets/agents/cfn-dev-team/CLAUDE.md +10 -9
  2. package/claude-assets/agents/cfn-dev-team/architecture/base-template-generator.md +2 -9
  3. package/claude-assets/agents/cfn-dev-team/dev-ops/devops-engineer.md +7 -12
  4. package/claude-assets/agents/cfn-dev-team/dev-ops/docker-specialist.md +10 -5
  5. package/claude-assets/agents/cfn-dev-team/dev-ops/github-commit-agent.md +11 -10
  6. package/claude-assets/agents/cfn-dev-team/dev-ops/monitoring-specialist.md +10 -5
  7. package/claude-assets/agents/cfn-dev-team/developers/api-gateway-specialist.md +2 -5
  8. package/claude-assets/agents/cfn-dev-team/developers/backend-developer.md +11 -6
  9. package/claude-assets/agents/cfn-dev-team/developers/database/database-architect.md +2 -5
  10. package/claude-assets/agents/cfn-dev-team/developers/frontend/mobile-dev.md +2 -19
  11. package/claude-assets/agents/cfn-dev-team/developers/frontend/react-frontend-engineer.md +11 -6
  12. package/claude-assets/agents/cfn-dev-team/developers/frontend/ui-designer.md +9 -23
  13. package/claude-assets/agents/cfn-dev-team/developers/graphql-specialist.md +10 -5
  14. package/claude-assets/agents/cfn-dev-team/developers/rust-developer.md +2 -9
  15. package/claude-assets/agents/cfn-dev-team/documentation/pseudocode.md +2 -9
  16. package/claude-assets/agents/cfn-dev-team/product-owners/accessibility-advocate-persona.md +11 -6
  17. package/claude-assets/agents/cfn-dev-team/product-owners/cto-agent.md +0 -5
  18. package/claude-assets/agents/cfn-dev-team/product-owners/power-user-persona.md +0 -3
  19. package/claude-assets/agents/cfn-dev-team/product-owners/product-owner.md +2 -8
  20. package/claude-assets/agents/cfn-dev-team/utility/analyst.md +0 -7
  21. package/claude-assets/agents/cfn-dev-team/utility/code-booster.md +1 -38
  22. package/claude-assets/agents/cfn-dev-team/utility/memory-leak-specialist.md +10 -5
  23. package/claude-assets/agents/cfn-dev-team/utility/researcher.md +8 -34
  24. package/claude-assets/agents/cfn-dev-team/utility/z-ai-specialist.md +10 -5
  25. package/claude-assets/agents/project-only-agents/npm-package-specialist.md +9 -26
  26. package/claude-assets/skills/agent-lifecycle/SKILL.md +60 -0
  27. package/claude-assets/skills/agent-lifecycle/execute-lifecycle-hook.sh +573 -0
  28. package/claude-assets/skills/agent-lifecycle/simple-audit.sh +31 -0
  29. package/dist/agents/agent-loader.js +165 -146
  30. package/dist/agents/agent-loader.js.map +1 -1
  31. package/package.json +1 -1
  32. package/readme/README.md +71 -14
@@ -649,17 +649,18 @@ Agents participate in 3-loop validation:
649
649
  - Loop 4: Strategic decisions
650
650
  ```
651
651
 
652
- ### Lifecycle Hooks
652
+ ### Completion Protocol
653
653
 
654
654
  ```yaml
655
- lifecycle:
656
- pre_task: |
657
- # Runs before agent starts
658
- echo "Initializing agent..."
659
-
660
- post_task: |
661
- # Runs after agent completes
662
- echo "Agent completed with confidence: ${CONFIDENCE_SCORE}"
655
+ ## Completion Protocol
656
+
657
+ Complete your work and provide a structured response with:
658
+ - Confidence score (0.0-1.0) based on work quality
659
+ - Summary of analysis/review completed
660
+ - List of findings or deliverables
661
+ - Any recommendations made
662
+
663
+ **Note:** Coordination instructions are provided when spawned via CLI.
663
664
  ```
664
665
 
665
666
  ### Validation Hooks
@@ -14,15 +14,8 @@ validation_hooks:
14
14
  - agent-template-validator
15
15
  - cfn-loop-memory-validator
16
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}', 'specialist', '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}'"
17
+ completion_protocol: |
18
+ Complete your work and provide a structured response with confidence score.
26
19
  ---
27
20
  ## 🚀 Template Generation Focus
28
21
 
@@ -10,15 +10,6 @@ validation_hooks:
10
10
  - agent-template-validator
11
11
  - cfn-loop-memory-validator
12
12
  - test-coverage-validator
13
- lifecycle:
14
- pre_task: |
15
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at)
16
- VALUES ('${AGENT_ID}', 'devops-engineer', 'active', CURRENT_TIMESTAMP)"
17
- post_task: |
18
- sqlite-cli exec "UPDATE agents
19
- SET status = 'completed', confidence = ${CONFIDENCE_SCORE},
20
- completed_at = CURRENT_TIMESTAMP
21
- WHERE id = '${AGENT_ID}'"
22
13
  acl_level: 1
23
14
  ---
24
15
  ## 🚀 DevOps Engineering Focus
@@ -137,8 +128,12 @@ You are an elite DevOps and platform engineer specializing in building scalable,
137
128
 
138
129
  Remember: The best infrastructure is invisible—seamless, scalable, and empowering developers to deliver value.
139
130
 
140
- ---
131
+ ## Completion Protocol
141
132
 
142
- ## SQLite Integration
133
+ Complete your work and provide a structured response with:
134
+ - Confidence score (0.0-1.0) based on work quality
135
+ - Summary of analysis/review completed
136
+ - List of findings or deliverables
137
+ - Any recommendations made
143
138
 
144
- Implements standard lifecycle hooks for agent tracking and performance monitoring, with private memory storage for task-level confidence scores and infrastructure components.
139
+ **Note:** Coordination instructions are provided when spawned via CLI.
@@ -15,11 +15,6 @@ acl_level: 1
15
15
  validation_hooks:
16
16
  - agent-template-validator
17
17
  - test-coverage-validator
18
- lifecycle:
19
- pre_task: |
20
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at) VALUES ('${AGENT_ID}', 'docker-specialist', 'active', CURRENT_TIMESTAMP)"
21
- post_task: |
22
- sqlite-cli exec "UPDATE agents SET status = 'completed', confidence = ${CONFIDENCE_SCORE}, completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}'"
23
18
  ---
24
19
 
25
20
  # Docker Specialist Agent
@@ -680,6 +675,16 @@ Before reporting high confidence:
680
675
  - Health checks pass consistently
681
676
  - Confidence score ≥ 0.85
682
677
 
678
+ ## Completion Protocol
679
+
680
+ Complete your work and provide a structured response with:
681
+ - Confidence score (0.0-1.0) based on work quality
682
+ - Summary of analysis/review completed
683
+ - List of findings or deliverables
684
+ - Any recommendations made
685
+
686
+ **Note:** Coordination instructions are provided when spawned via CLI.
687
+
683
688
  ## Skill References
684
689
  → **Security Scanning**: `.claude/skills/docker-security-scanning/SKILL.md`
685
690
  → **Image Optimization**: `.claude/skills/docker-image-optimization/SKILL.md`
@@ -9,15 +9,6 @@ acl_level: 1
9
9
  validation_hooks:
10
10
  - agent-template-validator
11
11
  - cfn-loop-memory-validator
12
- lifecycle:
13
- pre_task: |
14
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at)
15
- VALUES ('${AGENT_ID}', 'github-commit-agent', 'active', CURRENT_TIMESTAMP)"
16
- post_task: |
17
- sqlite-cli exec "UPDATE agents
18
- SET status = 'completed', confidence = ${CONFIDENCE_SCORE},
19
- completed_at = CURRENT_TIMESTAMP
20
- WHERE id = '${AGENT_ID}'"
21
12
  ---
22
13
 
23
14
  # GitHub Commit Agent
@@ -111,4 +102,14 @@ Co-Authored-By: Claude <noreply@anthropic.com>
111
102
  "secretsDetected": false
112
103
  }
113
104
  }
114
- ```
105
+ ```
106
+
107
+ ## Completion Protocol
108
+
109
+ Complete your work and provide a structured response with:
110
+ - Confidence score (0.0-1.0) based on work quality
111
+ - Summary of analysis/review completed
112
+ - List of findings or deliverables
113
+ - Any recommendations made
114
+
115
+ **Note:** Coordination instructions are provided when spawned via CLI.
@@ -16,11 +16,6 @@ acl_level: 1
16
16
  validation_hooks:
17
17
  - agent-template-validator
18
18
  - test-coverage-validator
19
- lifecycle:
20
- pre_task: |
21
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at) VALUES ('${AGENT_ID}', 'monitoring-specialist', 'active', CURRENT_TIMESTAMP)"
22
- post_task: |
23
- sqlite-cli exec "UPDATE agents SET status = 'completed', confidence = ${CONFIDENCE_SCORE}, completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}'"
24
19
  ---
25
20
 
26
21
  # Monitoring Specialist Agent
@@ -728,6 +723,16 @@ Before reporting high confidence:
728
723
  - SLO tracking accurate within 0.1%
729
724
  - Confidence score ≥ 0.90
730
725
 
726
+ ## Completion Protocol
727
+
728
+ Complete your work and provide a structured response with:
729
+ - Confidence score (0.0-1.0) based on work quality
730
+ - Summary of analysis/review completed
731
+ - List of findings or deliverables
732
+ - Any recommendations made
733
+
734
+ **Note:** Coordination instructions are provided when spawned via CLI.
735
+
731
736
  ## Skill References
732
737
  → **Prometheus Setup**: `.claude/skills/prometheus-monitoring/SKILL.md`
733
738
  → **Grafana Dashboards**: `.claude/skills/grafana-dashboard-creation/SKILL.md`
@@ -17,11 +17,8 @@ acl_level: 1
17
17
  validation_hooks:
18
18
  - agent-template-validator
19
19
  - test-coverage-validator
20
- lifecycle:
21
- pre_task: |
22
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at) VALUES ('${AGENT_ID}', 'api-gateway-specialist', 'active', CURRENT_TIMESTAMP)"
23
- post_task: |
24
- sqlite-cli exec "UPDATE agents SET status = 'completed', confidence = ${CONFIDENCE_SCORE}, completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}'"
20
+ completion_protocol: |
21
+ Complete your work and provide a structured response with confidence score.
25
22
  ---
26
23
 
27
24
  # API Gateway Specialist Agent
@@ -8,11 +8,6 @@ acl_level: 1
8
8
  validation_hooks:
9
9
  - agent-template-validator
10
10
  - test-coverage-validator
11
- lifecycle:
12
- pre_task: |
13
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at) VALUES ('${AGENT_ID}', 'backend-developer', 'active', CURRENT_TIMESTAMP)"
14
- post_task: |
15
- sqlite-cli exec "UPDATE agents SET status = 'completed', confidence = ${CONFIDENCE_SCORE}, completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}'"
16
11
  ---
17
12
 
18
13
  # Backend Developer Agent
@@ -91,4 +86,14 @@ After creating or modifying API endpoints, you MUST perform functional testing:
91
86
  - Implement caching strategies
92
87
  - Use connection pooling
93
88
  - Profile and optimize slow queries
94
- - Minimize N+1 query patterns
89
+ - Minimize N+1 query patterns
90
+
91
+ ## Completion Protocol
92
+
93
+ Complete your work and provide a structured response with:
94
+ - Confidence score (0.0-1.0) based on work quality
95
+ - Summary of analysis/review completed
96
+ - List of findings or deliverables
97
+ - Any recommendations made
98
+
99
+ **Note:** Coordination instructions are provided when spawned via CLI.
@@ -8,11 +8,8 @@ acl_level: 1
8
8
  validation_hooks:
9
9
  - agent-template-validator
10
10
  - test-coverage-validator
11
- lifecycle:
12
- pre_task: |
13
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at) VALUES ('${AGENT_ID}', 'database-architect', 'active', CURRENT_TIMESTAMP)"
14
- post_task: |
15
- sqlite-cli exec "UPDATE agents SET status = 'completed', confidence = ${CONFIDENCE_SCORE}, completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}'"
11
+ completion_protocol: |
12
+ Complete your work and provide a structured response with confidence score.
16
13
  ---
17
14
 
18
15
  # Database Architect Agent
@@ -20,25 +20,8 @@ validation_hooks:
20
20
  - cfn-loop-memory-validator
21
21
  - test-coverage-validator
22
22
  acl_level: 1 # Private - implementer level
23
- lifecycle:
24
- pre_task: |
25
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at, role, mode, platform_focus)
26
- VALUES ('${AGENT_ID}', 'mobile-dev', 'active', CURRENT_TIMESTAMP, 'implementer', '${MODE:-standard}', '${PLATFORM:-cross_platform}')"
27
-
28
- # Initialize mobile development context
29
- sqlite-cli exec "INSERT INTO mobile_development_context (agent_id, task_id, mode, platform, created_at)
30
- VALUES ('${AGENT_ID}', '${TASK_ID}', '${MODE:-standard}', '${PLATFORM:-cross_platform}', CURRENT_TIMESTAMP)"
31
-
32
- post_task: |
33
- # Update agent status with comprehensive mobile metrics
34
- sqlite-cli exec "UPDATE agents
35
- SET status = 'completed', confidence = ${CONFIDENCE_SCORE},
36
- completed_at = CURRENT_TIMESTAMP, mode = '${MODE:-standard}'
37
- WHERE id = '${AGENT_ID}'"
38
-
39
- # Store comprehensive mobile development results
40
- sqlite-cli exec "INSERT INTO mobile_development_results (agent_id, task_id, mode, platform, confidence, screens_implemented, components_created, native_modules_integrated, performance_score, accessibility_score, timestamp)
41
- VALUES ('${AGENT_ID}', '${TASK_ID}', '${MODE:-standard}', '${PLATFORM:-cross_platform}', ${CONFIDENCE_SCORE}, ${SCREENS_COUNT}, ${COMPONENTS_COUNT}, ${NATIVE_MODULES_COUNT}, ${PERFORMANCE_SCORE}, ${ACCESSIBILITY_SCORE}, CURRENT_TIMESTAMP)"
23
+ completion_protocol: |
24
+ Complete your work and provide a structured response with confidence score.
42
25
 
43
26
  ---
44
27
 
@@ -8,11 +8,6 @@ acl_level: 1
8
8
  validation_hooks:
9
9
  - agent-template-validator
10
10
  - test-coverage-validator
11
- lifecycle:
12
- pre_task: |
13
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at) VALUES ('${AGENT_ID}', 'react-frontend-engineer', 'active', CURRENT_TIMESTAMP)"
14
- post_task: |
15
- sqlite-cli exec "UPDATE agents SET status = 'completed', confidence = ${CONFIDENCE_SCORE}, completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}'"
16
11
  ---
17
12
 
18
13
  # React Frontend Engineer Agent Profile
@@ -163,4 +158,14 @@ lifecycle:
163
158
  - Add internationalization (i18n)
164
159
  - Create storybook documentation
165
160
  - Implement micro-interactions
166
- - Progressive enhancement techniques
161
+ - Progressive enhancement techniques
162
+
163
+ ## Completion Protocol
164
+
165
+ Complete your work and provide a structured response with:
166
+ - Confidence score (0.0-1.0) based on work quality
167
+ - Summary of analysis/review completed
168
+ - List of findings or deliverables
169
+ - Any recommendations made
170
+
171
+ **Note:** Coordination instructions are provided when spawned via CLI.
@@ -10,15 +10,6 @@ validation_hooks:
10
10
  - agent-template-validator
11
11
  - cfn-loop-memory-validator
12
12
  - test-coverage-validator
13
- lifecycle:
14
- pre_task: |
15
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at)
16
- VALUES ('${AGENT_ID}', 'ui-designer', 'active', CURRENT_TIMESTAMP)"
17
- post_task: |
18
- sqlite-cli exec "UPDATE agents
19
- SET status = 'completed', confidence = ${CONFIDENCE_SCORE},
20
- completed_at = CURRENT_TIMESTAMP
21
- WHERE id = '${AGENT_ID}'"
22
13
  ---
23
14
 
24
15
  # UI Designer Agent
@@ -53,20 +44,15 @@ npx claude-flow@alpha hooks post-edit [FILE_PATH] --memory-key "ui-designer/cont
53
44
  - Touch-friendly interfaces
54
45
  - Performance-aware design
55
46
 
56
- ## SQLite Integration
57
-
58
- ```javascript
59
- // Persist design system details
60
- await sqlite.memoryAdapter.set(
61
- `ui-designer/${agentId}/design-system/${projectName}`,
62
- {
63
- colorPalette: colorTokens,
64
- typography: typographyScale,
65
- accessibilityScore: 0.92
66
- },
67
- { aclLevel: 1, ttl: 2592000 } // 30 days retention
68
- );
69
- ```
47
+ ## Completion Protocol
48
+
49
+ Complete your work and provide a structured response with:
50
+ - Confidence score (0.0-1.0) based on work quality
51
+ - Summary of analysis/review completed
52
+ - List of findings or deliverables
53
+ - Any recommendations made
54
+
55
+ **Note:** Coordination instructions are provided when spawned via CLI.
70
56
 
71
57
  ## Technology Stack
72
58
 
@@ -8,11 +8,6 @@ acl_level: 1
8
8
  validation_hooks:
9
9
  - agent-template-validator
10
10
  - test-coverage-validator
11
- lifecycle:
12
- pre_task: |
13
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at) VALUES ('${AGENT_ID}', 'graphql-specialist', 'active', CURRENT_TIMESTAMP)"
14
- post_task: |
15
- sqlite-cli exec "UPDATE agents SET status = 'completed', confidence = ${CONFIDENCE_SCORE}, completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}'"
16
11
  ---
17
12
 
18
13
  # GraphQL Specialist Agent
@@ -609,3 +604,13 @@ describe('User resolvers', () => {
609
604
  - Verifying DataLoader batching effectiveness
610
605
  - Testing federation if using Apollo Federation
611
606
  - Security review of authorization logic
607
+
608
+ ## Completion Protocol
609
+
610
+ Complete your work and provide a structured response with:
611
+ - Confidence score (0.0-1.0) based on work quality
612
+ - Summary of analysis/review completed
613
+ - List of findings or deliverables
614
+ - Any recommendations made
615
+
616
+ **Note:** Coordination instructions are provided when spawned via CLI.
@@ -13,15 +13,8 @@ validation_hooks:
13
13
  - agent-template-validator
14
14
  - cfn-loop-memory-validator
15
15
  - test-coverage-validator
16
- lifecycle:
17
- pre_task: |
18
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at)
19
- VALUES ('${AGENT_ID}', 'rust-developer', 'active', CURRENT_TIMESTAMP)"
20
- post_task: |
21
- sqlite-cli exec "UPDATE agents
22
- SET status = 'completed', confidence = ${CONFIDENCE_SCORE},
23
- completed_at = CURRENT_TIMESTAMP
24
- WHERE id = '${AGENT_ID}'"
16
+ completion_protocol: |
17
+ Complete your work and provide a structured response with confidence score.
25
18
  acl_level: 1
26
19
  role: implementer
27
20
  mode_support: [mvp, standard, enterprise]
@@ -17,15 +17,8 @@ validation_hooks:
17
17
  - agent-template-validator
18
18
  - cfn-loop-memory-validator
19
19
  - test-coverage-validator
20
- lifecycle:
21
- pre_task: |
22
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at)
23
- VALUES ('${AGENT_ID}', 'pseudocode', 'active', CURRENT_TIMESTAMP)"
24
- post_task: |
25
- sqlite-cli exec "UPDATE agents
26
- SET status = 'completed', confidence = ${CONFIDENCE_SCORE},
27
- completed_at = CURRENT_TIMESTAMP
28
- WHERE id = '${AGENT_ID}'"
20
+ completion_protocol: |
21
+ Complete your work and provide a structured response with confidence score.
29
22
  acl_level: 1
30
23
  ---
31
24
 
@@ -9,11 +9,6 @@ acl_level: 3
9
9
  validation_hooks:
10
10
  - agent-template-validator
11
11
  - cfn-loop-memory-validator
12
- lifecycle:
13
- pre_task: |
14
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at) VALUES ('${AGENT_ID}', 'accessibility-advocate-persona', 'active', CURRENT_TIMESTAMP)"
15
- post_task: |
16
- sqlite-cli exec "UPDATE agents SET status = 'completed', confidence = ${CONFIDENCE_SCORE}, completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}'"
17
12
  ---
18
13
 
19
14
  # Accessibility Advocate Agent
@@ -103,4 +98,14 @@ confidence = (
103
98
  "Enhance keyboard navigation"
104
99
  ]
105
100
  }
106
- ```
101
+ ```
102
+
103
+ ## Completion Protocol
104
+
105
+ Complete your work and provide a structured response with:
106
+ - Confidence score (0.0-1.0) based on work quality
107
+ - Summary of analysis/review completed
108
+ - List of findings or deliverables
109
+ - Any recommendations made
110
+
111
+ **Note:** Coordination instructions are provided when spawned via CLI.
@@ -15,11 +15,6 @@ acl_level: 4
15
15
  validation_hooks:
16
16
  - agent-template-validator
17
17
  - cfn-loop-memory-validator
18
- lifecycle:
19
- pre_task: |
20
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at) VALUES ('${AGENT_ID}', 'cto-agent', 'active', CURRENT_TIMESTAMP)"
21
- post_task: |
22
- sqlite-cli exec "UPDATE agents SET status = 'completed', confidence = ${CONFIDENCE_SCORE}, completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}'"
23
18
  ---
24
19
 
25
20
  # CTO Agent - Dr. Tech
@@ -9,9 +9,6 @@ acl_level: 3
9
9
  validation_hooks:
10
10
  - agent-template-validator
11
11
  - cfn-loop-memory-validator
12
- lifecycle:
13
- pre_task: "sqlite-cli exec 'INSERT INTO agents (id, type, status, spawned_at) VALUES ('${AGENT_ID}', 'power-user-persona', 'active', CURRENT_TIMESTAMP)'"
14
- post_task: "sqlite-cli exec 'UPDATE agents SET status = 'completed', confidence = ${CONFIDENCE_SCORE}, completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}''"
15
12
  ---
16
13
 
17
14
  # Power User Persona - Alex Pro
@@ -16,14 +16,8 @@ validation_hooks:
16
16
  - agent-template-validator
17
17
  - cfn-loop-memory-validator
18
18
  - test-coverage-validator
19
- lifecycle:
20
- pre_task: |
21
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at)
22
- VALUES ('${AGENT_ID}', 'strategic', 'active', CURRENT_TIMESTAMP)"
23
- post_task: |
24
- sqlite-cli exec "UPDATE agents
25
- SET status = 'completed', completed_at = CURRENT_TIMESTAMP
26
- WHERE id = '${AGENT_ID}'"
19
+ completion_protocol: |
20
+ Complete your work and provide a structured response with confidence score.
27
21
  ---
28
22
 
29
23
  # Product Owner Agent
@@ -14,13 +14,6 @@ validation_hooks:
14
14
  - agent-template-validator
15
15
  - cfn-loop-memory-validator
16
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}', 'analyst', 'active', CURRENT_TIMESTAMP)"
21
- post_task: |
22
- sqlite-cli exec "UPDATE agents SET status = 'completed', confidence = ${CONFIDENCE_SCORE},
23
- completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}'"
24
17
  acl_level: 1
25
18
  ---
26
19
 
@@ -14,15 +14,6 @@ validation_hooks:
14
14
  - agent-template-validator
15
15
  - cfn-loop-memory-validator
16
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-booster', '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
17
  ---
27
18
 
28
19
  # Code Booster Agent
@@ -48,35 +39,6 @@ Specialized performance optimization expert leveraging WASM acceleration and adv
48
39
  - Manage compute offloading
49
40
  - Create efficient resource pools
50
41
 
51
- ## SQLite Integration Pattern
52
-
53
- ```typescript
54
- // Performance metrics storage
55
- await sqlite.memoryAdapter.set(
56
- `code-booster/${agentId}/optimization/${taskId}`,
57
- {
58
- confidence: 0.90,
59
- speedup: 3.5, // 3.5x performance improvement
60
- memoryReduction: 0.4, // 40% memory reduction
61
- files: ['optimized-module.rs', 'wasm-acceleration.js']
62
- },
63
- { aclLevel: 1, ttl: 2592000 }
64
- );
65
-
66
- // CFN Loop performance tracking
67
- await sqlite.memoryAdapter.set(
68
- `cfn/phase-${phaseId}/loop3/agent-${agentId}`,
69
- {
70
- confidence: 0.90,
71
- metrics: {
72
- speedup: 3.5,
73
- memoryReduction: 0.4
74
- }
75
- },
76
- { aclLevel: 1, ttl: 2592000 }
77
- );
78
- ```
79
-
80
42
  ## Success Metrics
81
43
  - ✅ 2-10x performance improvement
82
44
  - ✅ 20-50% memory reduction
@@ -95,6 +57,7 @@ npx claude-flow@alpha hooks post-edit [FILE_PATH] \
95
57
  --memory-key "code-booster/${AGENT_ID}/optimization" \
96
58
  --structured
97
59
  ```
60
+
98
61
  ## Completion Protocol
99
62
 
100
63
  Complete your work and provide a structured response with:
@@ -16,11 +16,6 @@ acl_level: 1
16
16
  validation_hooks:
17
17
  - agent-template-validator
18
18
  - test-coverage-validator
19
- lifecycle:
20
- pre_task: |
21
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at) VALUES ('${AGENT_ID}', 'memory-leak-specialist', 'active', CURRENT_TIMESTAMP)"
22
- post_task: |
23
- sqlite-cli exec "UPDATE agents SET status = 'completed', confidence = ${CONFIDENCE_SCORE}, completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}'"
24
19
  ---
25
20
 
26
21
  # Memory Leak Specialist Agent
@@ -746,6 +741,16 @@ Before reporting high confidence:
746
741
  - Heap utilization optimized (<80% of max)
747
742
  - Confidence score ≥ 0.90
748
743
 
744
+ ## Completion Protocol
745
+
746
+ Complete your work and provide a structured response with:
747
+ - Confidence score (0.0-1.0) based on work quality
748
+ - Summary of analysis/review completed
749
+ - List of findings or deliverables
750
+ - Any recommendations made
751
+
752
+ **Note:** Coordination instructions are provided when spawned via CLI.
753
+
749
754
  ## Skill References
750
755
  → **Node.js Profiling**: `.claude/skills/nodejs-memory-profiling/SKILL.md`
751
756
  → **Python Profiling**: `.claude/skills/python-memory-analysis/SKILL.md`
@@ -8,11 +8,6 @@ type: specialist
8
8
  acl_level: 1
9
9
  validation_hooks:
10
10
  - agent-template-validator
11
- lifecycle:
12
- pre_task: |
13
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at) VALUES ('${AGENT_ID}', 'researcher', 'active', CURRENT_TIMESTAMP)"
14
- post_task: |
15
- sqlite-cli exec "UPDATE agents SET status = 'completed', confidence = ${CONFIDENCE_SCORE}, completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}'"
16
11
  ---
17
12
 
18
13
  # Researcher Agent
@@ -101,36 +96,15 @@ confidence = (
101
96
  }
102
97
  ```
103
98
 
104
- ## SQLite Memory Integration
105
-
106
- ### Research State Tracking
107
- ```javascript
108
- // Store research confidence and findings
109
- await sqlite.memoryAdapter.set(
110
- `researcher/${agentId}/confidence/${taskId}`,
111
- {
112
- confidence: 0.85,
113
- sources: 12,
114
- noveltyScore: 0.75
115
- },
116
- { aclLevel: 1, ttl: 2592000 } // 30 days retention
117
- );
118
- ```
99
+ ## Completion Protocol
119
100
 
120
- ### Error Handling
121
- ```javascript
122
- try {
123
- await sqlite.memoryAdapter.set(key, researchFindings, { aclLevel: 1 });
124
- } catch (error) {
125
- if (error.code === 'SQLITE_BUSY') {
126
- await retryWithBackoff(() =>
127
- sqlite.memoryAdapter.set(key, researchFindings, { aclLevel: 1 })
128
- );
129
- } else {
130
- console.error('Research persistence failed:', error);
131
- }
132
- }
133
- ```
101
+ Complete your work and provide a structured response with:
102
+ - Confidence score (0.0-1.0) based on work quality
103
+ - Summary of analysis/review completed
104
+ - List of findings or deliverables
105
+ - Any recommendations made
106
+
107
+ **Note:** Coordination instructions are provided when spawned via CLI.
134
108
 
135
109
  ## Post-Edit Hook Validation
136
110
 
@@ -15,11 +15,6 @@ acl_level: 1
15
15
  validation_hooks:
16
16
  - agent-template-validator
17
17
  - test-coverage-validator
18
- lifecycle:
19
- pre_task: |
20
- sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at) VALUES ('${AGENT_ID}', 'z-ai-specialist', 'active', CURRENT_TIMESTAMP)"
21
- post_task: |
22
- sqlite-cli exec "UPDATE agents SET status = 'completed', confidence = ${CONFIDENCE_SCORE}, completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}'"
23
18
  ---
24
19
 
25
20
  # Z.ai Specialist Agent
@@ -619,6 +614,16 @@ Before reporting high confidence:
619
614
  - Usage tracking accurate (100% requests logged)
620
615
  - Confidence score ≥ 0.90
621
616
 
617
+ ## Completion Protocol
618
+
619
+ Complete your work and provide a structured response with:
620
+ - Confidence score (0.0-1.0) based on work quality
621
+ - Summary of analysis/review completed
622
+ - List of findings or deliverables
623
+ - Any recommendations made
624
+
625
+ **Note:** Coordination instructions are provided when spawned via CLI.
626
+
622
627
  ## Skill References
623
628
  → **Z.ai Setup**: `.claude/skills/zai-platform-setup/SKILL.md`
624
629
  → **Cost Optimization**: `.claude/skills/ai-cost-optimization/SKILL.md`