claude-flow-novice 2.16.0 → 2.16.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 (154) hide show
  1. package/.claude/cfn-extras/skills/GOOGLE_SHEETS_SKILLS_README.md +1 -1
  2. package/.claude/cfn-extras/skills/google-sheets-api-coordinator/SKILL.md +1 -1
  3. package/.claude/cfn-extras/skills/google-sheets-formula-builder/SKILL.md +1 -1
  4. package/.claude/cfn-extras/skills/google-sheets-progress/SKILL.md +1 -1
  5. package/.claude/commands/CFN_LOOP_FRONTEND.md +1 -1
  6. package/.claude/commands/cfn-loop-cli.md +124 -46
  7. package/.claude/commands/cfn-loop-frontend.md +1 -1
  8. package/.claude/commands/cfn-loop-task.md +2 -2
  9. package/.claude/commands/deprecated/cfn-loop.md +2 -2
  10. package/.claude/hooks/cfn-invoke-post-edit.sh +31 -5
  11. package/.claude/hooks/cfn-post-edit.config.json +9 -2
  12. package/.claude/root-claude-distribute/CFN-CLAUDE.md +1 -1
  13. package/.claude/skills/cfn-backlog-management/SKILL.md +1 -1
  14. package/.claude/skills/cfn-loop-orchestration/NORTH_STAR_INDEX.md +1 -1
  15. package/claude-assets/agents/cfn-dev-team/analysts/root-cause-analyst.md +2 -2
  16. package/claude-assets/agents/cfn-dev-team/architecture/base-template-generator.md +1 -1
  17. package/claude-assets/agents/cfn-dev-team/coordinators/cfn-frontend-coordinator.md +2 -2
  18. package/claude-assets/agents/cfn-dev-team/coordinators/handoff-coordinator.md +1 -1
  19. package/claude-assets/agents/cfn-dev-team/dev-ops/devops-engineer.md +1 -1
  20. package/claude-assets/agents/cfn-dev-team/dev-ops/docker-specialist.md +2 -2
  21. package/claude-assets/agents/cfn-dev-team/dev-ops/github-commit-agent.md +2 -2
  22. package/claude-assets/agents/cfn-dev-team/dev-ops/kubernetes-specialist.md +1 -1
  23. package/claude-assets/agents/cfn-dev-team/developers/api-gateway-specialist.md +1 -1
  24. package/claude-assets/agents/cfn-dev-team/developers/data/data-engineer.md +1 -1
  25. package/claude-assets/agents/cfn-dev-team/developers/database/database-architect.md +1 -1
  26. package/claude-assets/agents/cfn-dev-team/developers/frontend/typescript-specialist.md +1 -1
  27. package/claude-assets/agents/cfn-dev-team/developers/frontend/ui-designer.md +1 -1
  28. package/claude-assets/agents/cfn-dev-team/developers/graphql-specialist.md +1 -1
  29. package/claude-assets/agents/cfn-dev-team/documentation/pseudocode.md +1 -1
  30. package/claude-assets/agents/cfn-dev-team/product-owners/accessibility-advocate-persona.md +1 -1
  31. package/claude-assets/agents/cfn-dev-team/product-owners/cto-agent.md +1 -1
  32. package/claude-assets/agents/cfn-dev-team/product-owners/power-user-persona.md +1 -1
  33. package/claude-assets/agents/cfn-dev-team/reviewers/quality/security-specialist.md +1 -1
  34. package/claude-assets/agents/cfn-dev-team/testers/api-testing-specialist.md +1 -1
  35. package/claude-assets/agents/cfn-dev-team/testers/chaos-engineering-specialist.md +1 -1
  36. package/claude-assets/agents/cfn-dev-team/testers/contract-tester.md +1 -1
  37. package/claude-assets/agents/cfn-dev-team/testers/e2e/playwright-tester.md +1 -1
  38. package/claude-assets/agents/cfn-dev-team/testers/integration-tester.md +1 -1
  39. package/claude-assets/agents/cfn-dev-team/testers/load-testing-specialist.md +1 -1
  40. package/claude-assets/agents/cfn-dev-team/testers/mutation-testing-specialist.md +1 -1
  41. package/claude-assets/agents/cfn-dev-team/testers/unit/tdd-london-unit-swarm.md +1 -1
  42. package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +11 -0
  43. package/claude-assets/agents/cfn-dev-team/utility/analyst.md +1 -1
  44. package/claude-assets/agents/cfn-dev-team/utility/claude-code-expert.md +1 -1
  45. package/claude-assets/agents/cfn-dev-team/utility/epic-creator.md +1 -1
  46. package/claude-assets/agents/cfn-dev-team/utility/memory-leak-specialist.md +1 -1
  47. package/claude-assets/agents/cfn-dev-team/utility/researcher.md +1 -1
  48. package/claude-assets/agents/cfn-dev-team/utility/z-ai-specialist.md +1 -1
  49. package/claude-assets/agents/custom/cfn-docker-expert.md +1 -0
  50. package/claude-assets/agents/custom/cfn-loops-cli-expert.md +326 -17
  51. package/claude-assets/agents/custom/cfn-redis-operations.md +529 -529
  52. package/claude-assets/agents/custom/cfn-system-expert.md +1 -1
  53. package/claude-assets/agents/custom/trigger-dev-expert.md +369 -0
  54. package/claude-assets/agents/docker-team/micro-sprint-planner.md +747 -747
  55. package/claude-assets/agents/project-only-agents/npm-package-specialist.md +1 -1
  56. package/claude-assets/cfn-extras/skills/GOOGLE_SHEETS_SKILLS_README.md +1 -1
  57. package/claude-assets/cfn-extras/skills/google-sheets-api-coordinator/SKILL.md +1 -1
  58. package/claude-assets/cfn-extras/skills/google-sheets-formula-builder/SKILL.md +1 -1
  59. package/claude-assets/cfn-extras/skills/google-sheets-progress/SKILL.md +1 -1
  60. package/claude-assets/commands/CFN_LOOP_FRONTEND.md +1 -1
  61. package/claude-assets/commands/cfn-loop-cli.md +124 -46
  62. package/claude-assets/commands/cfn-loop-frontend.md +1 -1
  63. package/claude-assets/commands/cfn-loop-task.md +2 -2
  64. package/claude-assets/commands/deprecated/cfn-loop.md +2 -2
  65. package/claude-assets/hooks/GIT-HOOKS-USAGE-EXAMPLES.md +116 -0
  66. package/claude-assets/hooks/README-GIT-HOOKS.md +443 -0
  67. package/claude-assets/hooks/cfn-invoke-post-edit.sh +31 -5
  68. package/claude-assets/hooks/cfn-post-edit.config.json +9 -2
  69. package/claude-assets/hooks/install-git-hooks.sh +243 -0
  70. package/claude-assets/hooks/subagent-start.sh +98 -0
  71. package/claude-assets/hooks/subagent-stop.sh +93 -0
  72. package/claude-assets/hooks/validators/credential-scanner.sh +172 -0
  73. package/claude-assets/root-claude-distribute/CFN-CLAUDE.md +1 -1
  74. package/claude-assets/skills/cfn-backlog-management/SKILL.md +1 -1
  75. package/claude-assets/skills/cfn-dependency-ingestion/SKILL.md +41 -13
  76. package/claude-assets/skills/cfn-dependency-ingestion/ingest.sh +237 -0
  77. package/claude-assets/skills/cfn-dependency-ingestion/manifests/cli-mode-dependencies.txt +73 -0
  78. package/claude-assets/skills/cfn-dependency-ingestion/manifests/shared-dependencies.txt +57 -0
  79. package/claude-assets/skills/cfn-dependency-ingestion/manifests/trigger-dev-dependencies.txt +82 -0
  80. package/claude-assets/skills/cfn-dependency-ingestion/manifests/trigger-mode-dependencies.txt +80 -0
  81. package/claude-assets/skills/cfn-environment-sanitization/sanitize-environment.sh +14 -4
  82. package/claude-assets/skills/cfn-loop-orchestration/NORTH_STAR_INDEX.md +1 -1
  83. package/claude-assets/skills/cfn-provider-routing/SKILL.md +23 -0
  84. package/claude-assets/skills/docker-build/build.sh +1 -1
  85. package/dist/agent/skill-mcp-selector.js +2 -1
  86. package/dist/agent/skill-mcp-selector.js.map +1 -1
  87. package/dist/agents/agent-loader.js +165 -146
  88. package/dist/agents/agent-loader.js.map +1 -1
  89. package/dist/cli/agent-executor.js +470 -26
  90. package/dist/cli/agent-executor.js.map +1 -1
  91. package/dist/cli/agent-prompt-builder.js +2 -2
  92. package/dist/cli/agent-prompt-builder.js.map +1 -1
  93. package/dist/cli/agent-spawn.js +7 -4
  94. package/dist/cli/agent-spawn.js.map +1 -1
  95. package/dist/cli/agent-spawner.js +51 -4
  96. package/dist/cli/agent-spawner.js.map +1 -1
  97. package/dist/cli/agent-token-manager.js +2 -1
  98. package/dist/cli/agent-token-manager.js.map +1 -1
  99. package/dist/cli/anthropic-client.js +117 -11
  100. package/dist/cli/anthropic-client.js.map +1 -1
  101. package/dist/cli/cfn-context.js +2 -1
  102. package/dist/cli/cfn-context.js.map +1 -1
  103. package/dist/cli/cfn-metrics.js +2 -1
  104. package/dist/cli/cfn-metrics.js.map +1 -1
  105. package/dist/cli/cfn-redis.js +2 -1
  106. package/dist/cli/cfn-redis.js.map +1 -1
  107. package/dist/cli/cli-agent-context.js +2 -0
  108. package/dist/cli/cli-agent-context.js.map +1 -1
  109. package/dist/cli/config-manager.js +4 -252
  110. package/dist/cli/config-manager.js.map +1 -1
  111. package/dist/cli/conversation-fork-cleanup.js +2 -1
  112. package/dist/cli/conversation-fork-cleanup.js.map +1 -1
  113. package/dist/cli/conversation-fork.js +2 -1
  114. package/dist/cli/conversation-fork.js.map +1 -1
  115. package/dist/cli/coordination/agent-messaging.js +415 -0
  116. package/dist/cli/coordination/agent-messaging.js.map +1 -0
  117. package/dist/cli/coordination/wait-for-threshold.js +232 -0
  118. package/dist/cli/coordination/wait-for-threshold.js.map +1 -0
  119. package/dist/cli/iteration-history.js +2 -1
  120. package/dist/cli/iteration-history.js.map +1 -1
  121. package/dist/cli/process-lifecycle.js +5 -1
  122. package/dist/cli/process-lifecycle.js.map +1 -1
  123. package/dist/cli/spawn-agent-cli.js +41 -6
  124. package/dist/cli/spawn-agent-cli.js.map +1 -1
  125. package/dist/coordination/redis-waiting-mode.js +4 -0
  126. package/dist/coordination/redis-waiting-mode.js.map +1 -1
  127. package/dist/lib/artifact-registry.js +4 -0
  128. package/dist/lib/artifact-registry.js.map +1 -1
  129. package/dist/lib/connection-pool.js +390 -0
  130. package/dist/lib/connection-pool.js.map +1 -0
  131. package/dist/lib/environment-contract.js +258 -0
  132. package/dist/lib/environment-contract.js.map +1 -0
  133. package/dist/lib/query-optimizer.js +388 -0
  134. package/dist/lib/query-optimizer.js.map +1 -0
  135. package/dist/lib/result-cache.js +285 -0
  136. package/dist/lib/result-cache.js.map +1 -0
  137. package/dist/mcp/auth-middleware.js +2 -1
  138. package/dist/mcp/auth-middleware.js.map +1 -1
  139. package/dist/mcp/playwright-mcp-server-auth.js +2 -1
  140. package/dist/mcp/playwright-mcp-server-auth.js.map +1 -1
  141. package/package.json +3 -1
  142. package/scripts/build-agent-image.sh +1 -1
  143. package/scripts/cost-allocation-tracker.sh +632 -0
  144. package/scripts/docker-rebuild-all-agents.sh +2 -2
  145. package/scripts/reorganize-tests.sh +280 -0
  146. package/scripts/trigger-dev-setup.sh +12 -0
  147. package/tests/README.md +45 -0
  148. package/.claude/commands/cost-savings-status.md +0 -34
  149. package/.claude/commands/metrics-summary.md +0 -58
  150. package/claude-assets/agents/cfn-dev-team/dev-ops/monitoring-specialist.md +0 -768
  151. package/claude-assets/agents/custom/test-mcp-access.md +0 -24
  152. package/claude-assets/commands/cost-savings-status.md +0 -34
  153. package/claude-assets/commands/metrics-summary.md +0 -58
  154. package/tests/test-memory-leak-task-mode.sh +0 -435
@@ -371,7 +371,7 @@ find ./.claude/cfn-extras/skills/google-sheets-* -name "*.sh" \
371
371
 
372
372
  ## Related Documentation
373
373
 
374
- - **CFN Loop Guide**: `.claude/commands/cfn/CFN_LOOP_TASK_MODE.md`
374
+ - **CFN Loop Guide**: `.claude/commands/CFN_LOOP_TASK_MODE.md`
375
375
  - **Progress Tracking**: `.claude/cfn-extras/skills/google-sheets-progress/SKILL.md`
376
376
  - **Validation Rules**: `.claude/cfn-extras/skills/google-sheets-validation/SKILL.md`
377
377
  - **Formula Templates**: `.claude/cfn-extras/skills/google-sheets-formula-builder/SKILL.md`
@@ -269,4 +269,4 @@ Rate limit state stored in: `.claude/cfn-extras/.gs-api-quota.json`
269
269
  - **Google Sheets API**: https://developers.google.com/sheets/api
270
270
  - **Rate Limiting Guide**: https://developers.google.com/sheets/api/guides/limits
271
271
  - **Quota Documentation**: `google-sheets-validation` skill
272
- - **CFN Loop Guide**: `.claude/commands/cfn/CFN_LOOP_TASK_MODE.md`
272
+ - **CFN Loop Guide**: `.claude/commands/CFN_LOOP_TASK_MODE.md`
@@ -234,4 +234,4 @@ fi
234
234
 
235
235
  - **Google Sheets API**: https://developers.google.com/sheets/api/reference/rest
236
236
  - **Formula Validation**: `google-sheets-validation` skill
237
- - **CFN Loop Guide**: `.claude/commands/cfn/CFN_LOOP_TASK_MODE.md`
237
+ - **CFN Loop Guide**: `.claude/commands/CFN_LOOP_TASK_MODE.md`
@@ -281,7 +281,7 @@ The skill includes comprehensive test coverage:
281
281
 
282
282
  ## References
283
283
 
284
- - **CFN Loop Documentation**: `.claude/commands/cfn/CFN_LOOP_TASK_MODE.md`
284
+ - **CFN Loop Documentation**: `.claude/commands/CFN_LOOP_TASK_MODE.md`
285
285
  - **State Management Pattern**: `.claude/skills/cfn-automatic-memory-persistence/SKILL.md`
286
286
  - **Coordination Protocols**: `.claude/skills/cfn-coordination/SKILL.md`
287
287
  - **Agent Output Standards**: `docs/AGENT_OUTPUT_STANDARDS.md`
@@ -732,7 +732,7 @@ Not generic advice - specific fixes only.`
732
732
 
733
733
  ## Related Documentation
734
734
 
735
- - **Task Mode Guide**: `.claude/commands/cfn/CFN_LOOP_TASK_MODE.md`
735
+ - **Task Mode Guide**: `.claude/commands/CFN_LOOP_TASK_MODE.md`
736
736
  - **Standard CFN Loop**: `.claude/commands/cfn/cfn-loop.md`
737
737
  - **Coordinator Parameters**: `.claude/commands/cfn/CFN_COORDINATOR_PARAMETERS.md`
738
738
 
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  description: "Execute CFN Loop in simplified CLI mode (Main Chat coordination, provider routing)"
3
- argument-hint: "<task description> [--mode=mvp|standard|enterprise] [--provider=zai|kimi|anthropic|openrouter] [--model=<model>]"
3
+ argument-hint: "<task description> [--mode=mvp|standard|enterprise] [--provider=zai|kimi|anthropic|openrouter] [--model=<model>] [--agents=N] [--threshold=0.75]"
4
4
  allowed-tools: ["Task", "TodoWrite", "Read", "Bash", "SlashCommand"]
5
5
  ---
6
6
 
7
- # CFN Loop CLI Mode - Simplified Main Chat Coordination
7
+ # CFN Loop CLI Mode - Parallel Agent Coordination
8
8
 
9
- 🚨 **NEW ARCHITECTURE:** Main Chat directly coordinates CLI agents via Redis BLPOP signaling
9
+ 🚨 **v2.0 ARCHITECTURE:** Main Chat spawns parallel CLI agents with threshold-based completion
10
10
 
11
11
  ---
12
12
 
@@ -18,6 +18,8 @@ TASK_DESCRIPTION: $ARGUMENTS (extract task, remove flags)
18
18
  MODE: Parse from --mode flag or default to "standard"
19
19
  PROVIDER: Parse from --provider flag or use Main Chat setting
20
20
  MODEL: Parse from --model flag or use provider default
21
+ AGENTS: Parse from --agents flag or default to 4
22
+ THRESHOLD: Parse from --threshold flag or default to 0.75 (3/4 agents)
21
23
  ```
22
24
 
23
25
  **Step 2: Set Environment Variables**
@@ -27,6 +29,7 @@ TASK_ID="cfn-cli-$(date +%s%N | tail -c 7)-${RANDOM}"
27
29
  echo "📋 Task ID: $TASK_ID"
28
30
  echo "🎯 Mode: $MODE"
29
31
  echo "🤖 Provider: $PROVIDER (from --provider or Main Chat setting)"
32
+ echo "👥 Agents: $AGENTS (threshold: $THRESHOLD)"
30
33
  if [ -n "$MODEL" ]; then
31
34
  echo "🧠 Model: $MODEL"
32
35
  fi
@@ -53,55 +56,88 @@ fi
53
56
  echo "✅ Redis available for Main Chat coordination"
54
57
  ```
55
58
 
56
- **Step 4: Spawn Initial CLI Agent (Main Chat Coordination Pattern)**
59
+ **Step 4: Spawn Parallel CLI Agents**
57
60
  ```bash
58
- # Determine first agent type based on task
59
- # This is a simplified selection - could be enhanced with task classification
60
- AGENT_TYPE="backend-developer"
61
+ # Define agent types based on task complexity
62
+ # For comprehensive tasks, spawn multiple specialized agents
63
+ AGENT_TYPES=("backend-developer" "tester" "code-reviewer" "security-specialist")
61
64
 
62
- # Spawn first CLI agent with provider routing
63
- echo "🚀 Spawning CLI agent: $AGENT_TYPE"
65
+ echo "🚀 Spawning $AGENTS parallel CLI agents..."
64
66
 
65
- npx tsx src/cli/spawn-agent-cli.ts "$AGENT_TYPE" \
66
- --task-id "$TASK_ID" \
67
- --mode "$MODE" \
68
- ${PROVIDER:+--provider "$PROVIDER"} \
69
- ${MODEL:+--model "$MODEL"} \
70
- --background
67
+ # Spawn agents in BACKGROUND (use & to allow Main Chat to continue)
68
+ for i in $(seq 1 $AGENTS); do
69
+ AGENT_TYPE="${AGENT_TYPES[$((i-1)) % ${#AGENT_TYPES[@]}]}"
70
+ AGENT_ID="${AGENT_TYPE}-${TASK_ID}-${i}"
71
71
 
72
- echo " CLI agent spawned with Task ID: $TASK_ID"
73
- ```
74
-
75
- **Step 5: Wait for Agent Completion (Main Chat BLPOP Pattern)**
76
- ```bash
77
- # Main Chat waits for completion signal via Redis BLPOP
78
- echo "⏳ Waiting for CLI agent completion..."
72
+ echo " Spawning agent $i: $AGENT_TYPE ($AGENT_ID)"
79
73
 
80
- SIGNAL_KEY="cfn:mainchat:signal:$TASK_ID"
81
- TIMEOUT_SECONDS=120
74
+ npx claude-flow-novice agent "$AGENT_TYPE" \
75
+ --task-id "$TASK_ID" \
76
+ --mode "$MODE" \
77
+ --provider "$PROVIDER" \
78
+ --context "$TASK_DESCRIPTION" \
79
+ </dev/null >/tmp/agent-${AGENT_ID}.log 2>&1 &
80
+ done
82
81
 
83
- # Wait for completion signal with timeout
84
- COMPLETION_SIGNAL=$(timeout $TIMEOUT_SECONDS redis-cli BLPOP "$SIGNAL_KEY" $((TIMEOUT_SECONDS + 10)))
82
+ echo "✅ All $AGENTS CLI agents spawned with Task ID: $TASK_ID"
83
+ ```
85
84
 
86
- if [ $? -eq 0 ] && [ -n "$COMPLETION_SIGNAL" ]; then
87
- echo "✅ CLI agent completed successfully"
88
- echo "📊 Completion signal received via Redis"
85
+ **Step 5: Wait for Threshold Completion (FOREGROUND - Required for Main Chat)**
86
+ ```bash
87
+ # CRITICAL: Run monitor in FOREGROUND so Main Chat receives completion signal
88
+ # DO NOT use run_in_background for this monitoring loop
89
+
90
+ COMPLETION_QUEUE="cfn:cli:${TASK_ID}:completion"
91
+ REQUIRED=$(echo "$AGENTS * $THRESHOLD" | bc | cut -d. -f1)
92
+
93
+ echo "⏳ Monitoring for completion (${REQUIRED}/$AGENTS agents)..."
94
+ echo "📊 Queue: $COMPLETION_QUEUE"
95
+ echo ""
96
+
97
+ COMPLETED=0
98
+ END_TIME=$(($(date +%s) + 300)) # 5 minute timeout
99
+
100
+ while [ $(date +%s) -lt $END_TIME ] && [ $COMPLETED -lt $REQUIRED ]; do
101
+ QUEUE_LEN=$(redis-cli LLEN "$COMPLETION_QUEUE" 2>/dev/null || echo "0")
102
+
103
+ if [ "$QUEUE_LEN" -gt 0 ]; then
104
+ SIGNAL=$(redis-cli LPOP "$COMPLETION_QUEUE")
105
+ if [ -n "$SIGNAL" ] && [ "$SIGNAL" != "(nil)" ]; then
106
+ COMPLETED=$((COMPLETED + 1))
107
+ AGENT_ID=$(echo "$SIGNAL" | jq -r '.agentId' 2>/dev/null || echo "unknown")
108
+ CONFIDENCE=$(echo "$SIGNAL" | jq -r '.confidence' 2>/dev/null || echo "N/A")
109
+ PROVIDER=$(echo "$SIGNAL" | jq -r '.provider' 2>/dev/null || echo "N/A")
110
+
111
+ echo "✅ Agent $COMPLETED completed: $AGENT_ID"
112
+ echo " Confidence: $CONFIDENCE, Provider: $PROVIDER"
113
+ echo ""
114
+
115
+ if [ $COMPLETED -ge $REQUIRED ]; then
116
+ echo "🎉 THRESHOLD MET! ($COMPLETED/$AGENTS agents)"
117
+ echo "✅ CFN Loop CLI task completed"
118
+ exit 0
119
+ fi
120
+ fi
121
+ fi
122
+
123
+ sleep 3
124
+ done
125
+
126
+ echo "⏰ Timeout: Only $COMPLETED/$AGENTS agents completed"
127
+ exit 1
128
+ ```
89
129
 
90
- # Parse completion signal (second line contains JSON)
91
- SIGNAL_DATA=$(echo "$COMPLETION_SIGNAL" | tail -n 1)
92
- echo "🔍 Agent signal: $SIGNAL_DATA"
130
+ **Step 6: Query Agent Status (Optional - Interactive)**
131
+ ```bash
132
+ # Main Chat can query individual agent status during execution
133
+ # Example: npx tsx src/cli/coordination/agent-messaging.ts status --task-id "$TASK_ID" --agent-id <agent-id>
93
134
 
94
- # Could spawn additional agents here based on signal content
95
- # For now, we'll consider the task complete
96
- echo "🎉 CFN Loop CLI task completed"
97
- else
98
- echo "⚠️ CLI agent did not complete within timeout ($TIMEOUT_SECONDS seconds)"
99
- echo "💡 Check agent logs or increase timeout if needed"
100
- fi
135
+ # Or send commands to running agents:
136
+ # npx tsx src/cli/coordination/agent-messaging.ts send --task-id "$TASK_ID" --agent-id <agent-id> --command status
101
137
  ```
102
138
 
103
- **Step 6: Inform User**
104
- Report completion status and any additional information.
139
+ **Step 7: Inform User**
140
+ Report completion status, which agents completed, and any additional information.
105
141
 
106
142
  ---
107
143
 
@@ -111,13 +147,55 @@ Report completion status and any additional information.
111
147
 
112
148
  ## What is CLI Mode?
113
149
 
114
- **NEW CLI Mode Architecture (Simplified):**
115
- - **Main Chat** directly spawns CLI agents with provider routing
150
+ **v2.0 CLI Mode Architecture (Parallel + Messaging):**
151
+ - **Main Chat** spawns multiple CLI agents in parallel
116
152
  - **CLI agents** execute tasks and send Redis completion signals
117
- - **Main Chat** waits via Redis BLPOP for agent completion
118
- - **2-layer coordination** (Main Chat CLI agents)
153
+ - **Main Chat** waits for threshold completion (e.g., 3/4 agents)
154
+ - **Bidirectional messaging** - Main Chat can send commands to running agents
119
155
  - **Provider routing** via `--provider` and `--model` flags
120
- - **Fallback behavior** to Z.ai glm-4.6 if no provider specified
156
+ - **Graceful degradation** - continues when threshold met, doesn't wait for stragglers
157
+
158
+ ## New Features (v2.0)
159
+
160
+ ### Parallel Agent Spawning
161
+ - Spawn multiple agents simultaneously (default: 4)
162
+ - Each agent works independently on the task
163
+ - Different agent types for comprehensive coverage
164
+
165
+ ### Threshold-Based Completion
166
+ - Exit when N/M agents complete (default: 75%)
167
+ - Don't wait for slow/stuck agents
168
+ - Configurable via `--threshold` flag
169
+
170
+ ### Bidirectional Messaging
171
+ Main Chat can communicate with running agents:
172
+
173
+ **Query agent status:**
174
+ ```bash
175
+ npx tsx src/cli/coordination/agent-messaging.ts status \
176
+ --task-id "$TASK_ID" --agent-id <agent-id>
177
+ ```
178
+
179
+ **Send commands to agents:**
180
+ ```bash
181
+ # Request status update
182
+ npx tsx src/cli/coordination/agent-messaging.ts send \
183
+ --task-id "$TASK_ID" --agent-id <agent-id> --command status
184
+
185
+ # Redirect agent to new task
186
+ npx tsx src/cli/coordination/agent-messaging.ts send \
187
+ --task-id "$TASK_ID" --agent-id <agent-id> --command redirect \
188
+ --payload '{"newTask": "Focus on security tests"}'
189
+
190
+ # Abort agent
191
+ npx tsx src/cli/coordination/agent-messaging.ts send \
192
+ --task-id "$TASK_ID" --agent-id <agent-id> --command abort
193
+
194
+ # Pause agent
195
+ npx tsx src/cli/coordination/agent-messaging.ts send \
196
+ --task-id "$TASK_ID" --agent-id <agent-id> --command pause \
197
+ --payload '{"seconds": 30}'
198
+ ```
121
199
 
122
200
  ## Prerequisites
123
201
 
@@ -561,7 +561,7 @@ Before running frontend CFN Loop:
561
561
 
562
562
  - Guide: `.claude/commands/cfn/CFN_LOOP_FRONTEND.md` (742 lines, complete workflow)
563
563
  - Coordinator: `.claude/agents/cfn-dev-team/coordinators/cfn-frontend-coordinator.md`
564
- - Task Mode: `.claude/commands/cfn/CFN_LOOP_TASK_MODE.md`
564
+ - Task Mode: `.claude/commands/CFN_LOOP_TASK_MODE.md`
565
565
  - Standard CFN Loop: `.claude/commands/cfn/cfn-loop.md`
566
566
 
567
567
  ---
@@ -106,7 +106,7 @@ You must execute this CFN Loop directly using the Task() tool to spawn agents.
106
106
  Read the complete Task Mode guide for detailed workflow:
107
107
 
108
108
  ```
109
- Read('.claude/commands/cfn/CFN_LOOP_TASK_MODE.md')
109
+ Read('.claude/commands/CFN_LOOP_TASK_MODE.md')
110
110
  ```
111
111
 
112
112
  **Expected output:** Complete guide with agent selection, workflow steps, helper scripts
@@ -450,7 +450,7 @@ parse-decision.sh --output "$PO_OUTPUT"
450
450
 
451
451
  ## Related Documentation
452
452
 
453
- - **Task Mode Guide**: `.claude/commands/cfn/CFN_LOOP_TASK_MODE.md` (complete reference)
453
+ - **Task Mode Guide**: `.claude/commands/CFN_LOOP_TASK_MODE.md` (complete reference)
454
454
  - Coordinator Parameters: `.claude/commands/cfn/CFN_COORDINATOR_PARAMETERS.md`
455
455
  - Agent Output Standards: `docs/AGENT_OUTPUT_STANDARDS.md`
456
456
  - ACE System: `.claude/skills/cfn-ace-system/SKILL.md`
@@ -95,7 +95,7 @@ Extract parameters from command:
95
95
 
96
96
  ```javascript
97
97
  // Read Task Mode guide for agent specialization and workflow
98
- const taskModeGuide = await Read('.claude/commands/cfn/CFN_LOOP_TASK_MODE.md');
98
+ const taskModeGuide = await Read('.claude/commands/CFN_LOOP_TASK_MODE.md');
99
99
 
100
100
  // Guide provides:
101
101
  // - Agent specialization (Loop 3: implementers, Loop 2: validators, Loop 4: PO)
@@ -274,7 +274,7 @@ Main Chat does NOT spawn a coordinator. Instead, it coordinates directly followi
274
274
 
275
275
  ```javascript
276
276
  // Step 1: Read Task Mode Guide
277
- const guide = await Read('.claude/commands/cfn/CFN_LOOP_TASK_MODE.md');
277
+ const guide = await Read('.claude/commands/CFN_LOOP_TASK_MODE.md');
278
278
 
279
279
  // Step 2: Analyze Task Complexity (from guide)
280
280
  const complexity = analyzeComplexity({
@@ -38,6 +38,28 @@ set -euo pipefail
38
38
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
39
39
  CONFIG_FILE="$SCRIPT_DIR/cfn-post-edit.config.json"
40
40
 
41
+ # Ensure jq is available (fallback to local download if sudo unavailable)
42
+ JQ_CMD="jq"
43
+ if ! command -v jq >/dev/null 2>&1; then
44
+ JQ_FALLBACK="$SCRIPT_DIR/../tools/jq"
45
+ if [ ! -x "$JQ_FALLBACK" ]; then
46
+ mkdir -p "$SCRIPT_DIR/../tools"
47
+ if command -v curl >/dev/null 2>&1; then
48
+ curl -fsSL -o "$JQ_FALLBACK" https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && chmod +x "$JQ_FALLBACK" || true
49
+ elif command -v wget >/dev/null 2>&1; then
50
+ wget -q -O "$JQ_FALLBACK" https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && chmod +x "$JQ_FALLBACK" || true
51
+ fi
52
+ fi
53
+ if [ -x "$JQ_FALLBACK" ]; then
54
+ JQ_CMD="$JQ_FALLBACK"
55
+ else
56
+ echo "Error: jq not found and download failed. Install jq or ensure curl/wget access." >&2
57
+ exit 1
58
+ fi
59
+ else
60
+ JQ_CMD="$(command -v jq)"
61
+ fi
62
+
41
63
  # Parse arguments
42
64
  FILE_PATH=""
43
65
  AGENT_ID="${AGENT_ID:-unknown}"
@@ -46,6 +68,10 @@ BLOCKING=false
46
68
  while [[ $# -gt 0 ]]; do
47
69
  case $1 in
48
70
  --agent-id)
71
+ if [[ -z "${2:-}" ]]; then
72
+ echo "Error: --agent-id requires a value" >&2
73
+ exit 1
74
+ fi
49
75
  AGENT_ID="$2"
50
76
  shift 2
51
77
  ;;
@@ -68,14 +94,14 @@ if [ -z "$FILE_PATH" ]; then
68
94
  fi
69
95
 
70
96
  # Check if hooks are enabled
71
- ENABLED=$(jq -r '.enabled // true' "$CONFIG_FILE" 2>/dev/null || echo "true")
97
+ ENABLED=$("$JQ_CMD" -r '.enabled // true' "$CONFIG_FILE" 2>/dev/null || echo "true")
72
98
  if [ "$ENABLED" != "true" ]; then
73
99
  echo "Post-edit hooks disabled in config"
74
100
  exit 0
75
101
  fi
76
102
 
77
103
  # Get pipeline path from config
78
- PIPELINE=$(jq -r '.pipeline // "config/hooks/post-edit-pipeline.js"' "$CONFIG_FILE")
104
+ PIPELINE=$("$JQ_CMD" -r '.pipeline // "config/hooks/post-edit-pipeline.js"' "$CONFIG_FILE")
79
105
 
80
106
  # Build memory key
81
107
  MEMORY_KEY="swarm/${AGENT_ID}/hook-results"
@@ -92,10 +118,10 @@ if [ "$BLOCKING" = true ] && [ $EXIT_CODE -ne 0 ]; then
92
118
  fi
93
119
 
94
120
  # Publish to Redis if enabled
95
- REDIS_ENABLED=$(jq -r '.redis.enabled // false' "$CONFIG_FILE")
121
+ REDIS_ENABLED=$("$JQ_CMD" -r '.redis.enabled // false' "$CONFIG_FILE")
96
122
  if [ "$REDIS_ENABLED" = "true" ] && command -v redis-cli >/dev/null 2>&1; then
97
- CHANNEL=$(jq -r '.redis.publishChannel // "swarm:hooks:post-edit"' "$CONFIG_FILE")
98
- MESSAGE=$(jq -n \
123
+ CHANNEL=$("$JQ_CMD" -r '.redis.publishChannel // "swarm:hooks:post-edit"' "$CONFIG_FILE")
124
+ MESSAGE=$("$JQ_CMD" -n \
99
125
  --arg file "$FILE_PATH" \
100
126
  --arg agent "$AGENT_ID" \
101
127
  --arg exit "$EXIT_CODE" \
@@ -10,7 +10,8 @@
10
10
  "1": "ERROR",
11
11
  "2": "SYNTAX_ERROR",
12
12
  "9": "BASH_VALIDATOR_ERROR",
13
- "10": "BASH_VALIDATOR_WARNING"
13
+ "10": "BASH_VALIDATOR_WARNING",
14
+ "11": "CREDENTIAL_DETECTED"
14
15
  },
15
16
  "redis": {
16
17
  "enabled": true,
@@ -33,12 +34,18 @@
33
34
  "enabled": true,
34
35
  "validators": ["pipe-safety", "dependency-checker", "line-endings"],
35
36
  "timeout": 5000
37
+ },
38
+ "credentials": {
39
+ "enabled": true,
40
+ "validator": ".claude/hooks/validators/credential-scanner.sh",
41
+ "blocking": true,
42
+ "timeout": 10000
36
43
  }
37
44
  },
38
45
  "feedback": {
39
46
  "provideSuggestions": true,
40
47
  "autoFixable": ["LINT_ISSUES"],
41
48
  "nonBlocking": ["TYPE_WARNING", "LINT_ISSUES", "BASH_VALIDATOR_WARNING"],
42
- "blocking": ["SYNTAX_ERROR", "BASH_VALIDATOR_ERROR"]
49
+ "blocking": ["SYNTAX_ERROR", "BASH_VALIDATOR_ERROR", "CREDENTIAL_DETECTED"]
43
50
  }
44
51
  }
@@ -486,7 +486,7 @@ Implement comprehensive test suites that validate both functional requirements a
486
486
  - CFN Loop Validation: `.claude/skills/cfn-loop-validation/SKILL.md`
487
487
 
488
488
  **CFN Loop Documentation:**
489
- - **Task Mode Guide**: `.claude/commands/cfn/CFN_LOOP_TASK_MODE.md` (agent specialization, sprint workflow, backlog management, adaptive validator scaling)
489
+ - **Task Mode Guide**: `.claude/commands/CFN_LOOP_TASK_MODE.md` (agent specialization, sprint workflow, backlog management, adaptive validator scaling)
490
490
  - Coordinator Parameters: `.claude/commands/cfn/CFN_COORDINATOR_PARAMETERS.md`
491
491
 
492
492
  **Migration Analytics:**
@@ -195,5 +195,5 @@ grep -B 2 "Category: Optimization" readme/BACKLOG.md
195
195
  ## References
196
196
 
197
197
  - **STRAT-025**: Explicit Deliverable Tracking (adaptive context)
198
- - **CFN Loop Documentation**: `.claude/commands/cfn/CFN_LOOP_TASK_MODE.md`
198
+ - **CFN Loop Documentation**: `.claude/commands/CFN_LOOP_TASK_MODE.md`
199
199
  - **Sprint Execution**: CLAUDE.md Section 6 - Sprint Context Injection
@@ -289,7 +289,7 @@ The North Star test simulates a complete CFN Loop with progressive improvement:
289
289
  - [README.md](../../../README.md) - Project overview
290
290
 
291
291
  ### CFN Loop Documentation
292
- - [.claude/commands/cfn/CFN_LOOP_TASK_MODE.md](../../commands/cfn/CFN_LOOP_TASK_MODE.md) - Task mode guide
292
+ - [.claude/commands/CFN_LOOP_TASK_MODE.md](../../commands/cfn/CFN_LOOP_TASK_MODE.md) - Task mode guide
293
293
  - [.claude/commands/cfn/CFN_COORDINATOR_PARAMETERS.md](../../commands/cfn/CFN_COORDINATOR_PARAMETERS.md) - Coordinator parameters
294
294
 
295
295
  ### Test Documentation
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: root-cause-analyst
3
3
  description: MUST BE USED when investigating technical issues, bugs, system failures to identify true root causes. Use PROACTIVELY for deep technical investigation, error analysis, failure diagnosis, debugging complex issues. Keywords - root cause, investigation, bug analysis, failure diagnosis, debugging, error tracing, issue investigation
4
- tools: [Bash, Grep, Glob]
5
- model: sonnet
4
+ tools: [Bash, Grep, Glob, Read]
5
+ model: opus
6
6
  type: specialist
7
7
  acl_level: 2
8
8
  capabilities: [root-cause-analysis, investigation, debugging, error-tracing, system-analysis]
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: base-template-generator
3
- description: MUST BE USED when creating foundational templates, boilerplate code, starter configurations, or scaffolding new projects/components/features. use PROACTIVELY for generating component templates, API endpoint skeletons, database model structures, configuration files, test suite scaffolding, documentation templates, build configurations, project initialization, starter kits, module boilerplate. ALWAYS delegate when user asks to "generate template", "create boilerplate", "scaffold", "initialize project", "setup starter", "create base structure", "generate skeleton", "setup configuration", "create starter template". Keywords - template, boilerplate, scaffold, generate, starter, skeleton, base structure, foundational code, setup, initialization, configuration template, component template, API template, model template, test template, documentation template, project setup, module template, starter kit, base configuration
3
+ description: MUST BE USED when creating templates, boilerplate code, scaffolding projects/components. Use PROACTIVELY for component templates, API skeletons, configuration files. Keywords - template, boilerplate, scaffold, starter, skeleton
4
4
  tools: Read, Write, Edit, Bash, Glob, Grep, TodoWrite
5
5
  model: haiku
6
6
  color: orange
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cfn-frontend-coordinator
3
- description: MUST BE USED for frontend CFN Loops with visual iteration workflow. Coordinates mockup analysis, brand guidelines, screenshot/video validation. Use PROACTIVELY for UI development, visual design implementation, frontend components. Keywords - frontend, UI, mockup, visual, screenshot, video, brand-guidelines, design-first, playwright
3
+ description: MUST BE USED for frontend development coordination, React workflows, UI implementation. Use PROACTIVELY for component development. Keywords - frontend, react, UI, coordination
4
4
  tools: [Read, Bash, Write, Grep, mcp__zai-mcp-server__analyze_image, mcp__zai-mcp-server__analyze_video]
5
5
  model: sonnet
6
6
  type: coordinator
@@ -879,7 +879,7 @@ Test Execution Summary:
879
879
  ## Related Documentation
880
880
 
881
881
  - Guide: `.claude/commands/cfn/CFN_LOOP_FRONTEND.md`
882
- - Task Mode Guide: `.claude/commands/cfn/CFN_LOOP_TASK_MODE.md`
882
+ - Task Mode Guide: `.claude/commands/CFN_LOOP_TASK_MODE.md`
883
883
  - Coordinator Parameters: `.claude/commands/cfn/CFN_COORDINATOR_PARAMETERS.md`
884
884
  - Standard CFN Loop: `.claude/commands/cfn/cfn-loop.md`
885
885
  - Agent Coordination: Dynamic coordination layer
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: handoff-coordinator
3
- description: MUST BE USED when creating session handoff documentation for team transitions or new session context reset. Use PROACTIVELY for session-transition, context-extraction, team-handoff, context-reset. Keywords - handoff, session-transition, context-extraction, team-handoff, session-documentation, context-reset, new-session, pickup-context
3
+ description: MUST BE USED for agent handoffs, task delegation, workflow transitions. Use PROACTIVELY for multi-agent coordination, context transfer. Keywords - handoff, delegation, coordination, workflow
4
4
  tools: [Read, Bash, Grep, Glob, Write, TodoWrite]
5
5
  model: sonnet
6
6
  type: coordinator
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: devops-engineer
3
- description: MUST BE USED for cloud infrastructure, DevOps automation, and platform engineering. Use PROACTIVELY for CI/CD, containerization, Kubernetes, IaC, monitoring, security automation. ALWAYS delegate when user asks to deploy, setup infrastructure, configure pipelines. Keywords - DevOps, infrastructure, CI/CD, Kubernetes, Docker, Terraform, cloud
3
+ description: MUST BE USED for CI/CD pipelines, infrastructure automation, deployment. Use PROACTIVELY for build automation, release management. Keywords - devops, CI/CD, deployment, automation
4
4
  tools: [Read, Write, Edit, Bash, TodoWrite]
5
5
  model: haiku
6
6
  color: green
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: docker-specialist
3
- description: MUST BE USED for Docker containerization, intelligent coordinator debugging, multi-stage builds, and container security. Use PROACTIVELY for Dockerfile creation, coordinator architectural fixes, Bug 4 resolution, wave spawning, memory budgets, Redis coordination patterns, container status tracking. ALWAYS delegate for Docker coordinator infinite wait loops, task distribution mismatches, integration testing. Keywords - Docker, coordinator, Bug 4, wave spawning, memory budget, Redis queue, container status, architectural mismatch, infinite wait, integration test
3
+ description: MUST BE USED for Docker containerization, coordinator debugging, multi-stage builds, Bug 4 resolution. Keywords - Docker, coordinator, wave spawning, Redis, container status, integration test
4
4
  tools: [Read, Write, Edit, Bash, Grep, Glob, TodoWrite]
5
- model: sonnet
5
+ model: opus
6
6
  type: specialist
7
7
  skills: [docker-build]
8
8
  capabilities: [docker-containerization, multi-stage-builds, container-security, image-optimization, docker-compose, registry-management, coordinator-debugging, wave-spawning, memory-budgeting]
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: github-commit-agent
3
- description: MUST BE USED when creating git commits with CI/CD monitoring and automated workflows. Use PROACTIVELY for commit creation, push operations, pipeline monitoring, conventional commits. ALWAYS delegate when user asks to "commit changes", "create commit", "push to github", "monitor CI/CD". Keywords - git commit, github, CI/CD, pipeline, conventional commits, automated workflow
3
+ description: MUST BE USED when creating git commits with CI/CD monitoring. Use PROACTIVELY for commit creation, push operations, conventional commits. Keywords - git, github, CI/CD, pipeline, commit
4
4
  tools: [Bash, Read, Grep, Glob, BashOutput, TodoWrite]
5
5
  model: haiku
6
6
  color: purple
@@ -112,4 +112,4 @@ Complete your work and provide a structured response with:
112
112
  - List of findings or deliverables
113
113
  - Any recommendations made
114
114
 
115
- **Note:** Coordination instructions are provided when spawned via CLI.
115
+ **Note:** Coordination instructions are provided when spawned via CLI.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: kubernetes-specialist
3
- description: MUST BE USED for Kubernetes cluster management, Helm charts, operators, service mesh, and container orchestration. Use PROACTIVELY for K8s deployments, autoscaling, ingress, StatefulSets, CRDs, monitoring. ALWAYS delegate for "deploy to Kubernetes", "Helm chart", "K8s operator", "service mesh", "container orchestration". Keywords - Kubernetes, k8s, Helm, operators, containers, pods, deployments, ingress, service mesh, Istio, autoscaling
3
+ description: MUST BE USED for Kubernetes cluster management, Helm charts, operators, service mesh. Use PROACTIVELY for K8s deployments, autoscaling, ingress. Keywords - kubernetes, k8s, helm, containers, pods
4
4
  tools: [Read, Write, Edit, Bash, Grep, Glob, TodoWrite]
5
5
  model: sonnet
6
6
  type: specialist
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: api-gateway-specialist
3
- description: MUST BE USED for API gateway configuration, Kong, AWS API Gateway, Nginx, rate limiting, authentication, and API management. Use PROACTIVELY for gateway setup, routing rules, OAuth2/JWT configuration, rate limiting, API versioning, load balancing. ALWAYS delegate for "API gateway", "Kong configuration", "rate limiting", "OAuth2 setup", "API routing", "reverse proxy". Keywords - API gateway, Kong, AWS API Gateway, Nginx, reverse proxy, rate limiting, OAuth2, JWT, authentication, routing, load balancing
3
+ description: MUST BE USED for API gateway design, routing, rate limiting, authentication. Use PROACTIVELY for gateway configuration, API security, traffic management. Keywords - gateway, API, routing, security
4
4
  tools: [Read, Write, Edit, Bash, Grep, Glob, TodoWrite]
5
5
  model: sonnet
6
6
  type: specialist
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: data-engineer
3
- description: MUST BE USED for data pipeline design, ETL processes, data warehousing, and data quality. Use PROACTIVELY for data ingestion, transformation, orchestration, data lakes, streaming. ALWAYS delegate for "ETL pipeline", "data warehouse", "data lake", "Apache Airflow", "data quality". Keywords - ETL, data pipeline, Airflow, data warehouse, data lake, streaming, Kafka, Spark, dbt, data quality
3
+ description: MUST BE USED for data pipelines, ETL processes, data warehousing. Use PROACTIVELY for data transformation, batch processing, streaming. Keywords - data, ETL, pipeline, warehouse, processing
4
4
  tools: [Read, Write, Edit, Bash, Grep, Glob, TodoWrite]
5
5
  model: sonnet
6
6
  type: specialist
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: database-architect
3
- description: MUST BE USED for database schema design, migration strategies, query optimization, and data modeling. Use PROACTIVELY for relational/NoSQL design, indexing strategies, normalization, data integrity. ALWAYS delegate for "design schema", "database migration", "optimize queries", "data modeling". Keywords - database, schema, SQL, PostgreSQL, MongoDB, migrations, indexing, normalization, query optimization
3
+ description: MUST BE USED for database design, schema optimization, query performance. Use PROACTIVELY for data modeling, indexing, migrations. Keywords - database, schema, SQL, optimization, modeling
4
4
  tools: [Read, Write, Edit, Bash, Grep, Glob, TodoWrite]
5
5
  model: sonnet
6
6
  type: specialist
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: typescript-specialist
3
- description: MUST BE USED for TypeScript development, type system design, and type safety implementation. Use PROACTIVELY for type definitions, generics, utility types, advanced TypeScript patterns, and compile-time validation. Keywords - TypeScript types, generics, interfaces, type safety, utility types, advanced patterns, type guards, conditional types
3
+ description: MUST BE USED for TypeScript development, type safety, advanced typing. Use PROACTIVELY for type definitions, generics. Keywords - typescript, types, type safety, generics
4
4
  tools: [Read, Write, Edit, Bash, Grep, Glob, TodoWrite]
5
5
  model: haiku
6
6
  type: specialist
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ui-designer
3
- description: MUST BE USED when designing user interfaces and user experience for web applications. Use PROACTIVELY for responsive design, component libraries, and modern UI/UX patterns. ALWAYS delegate when user asks to "UI design", "user interface", "UX design", "component design". Keywords - UI design, user experience, responsive design, component libraries, interface design
3
+ description: MUST BE USED for UI/UX design, component libraries, design systems. Use PROACTIVELY for interface design, accessibility, responsive layouts. Keywords - UI, UX, design, components, accessibility
4
4
  tools: [Read, Write, Edit, Bash, TodoWrite]
5
5
  model: haiku
6
6
  color: mediumpurple
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: graphql-specialist
3
- description: MUST BE USED for GraphQL schema design, resolver implementation, federation, and performance optimization. Use PROACTIVELY for GraphQL APIs, schema stitching, Apollo Server, federation, subscriptions, DataLoader. ALWAYS delegate for "GraphQL API", "schema design", "resolvers", "federation", "GraphQL subscriptions". Keywords - GraphQL, schema, resolvers, mutations, queries, subscriptions, Apollo, federation, DataLoader, N+1
3
+ description: MUST BE USED for GraphQL API design, schema definition, resolver implementation. Use PROACTIVELY for GraphQL optimization, federation. Keywords - GraphQL, schema, resolvers, API, federation
4
4
  tools: [Read, Write, Edit, Bash, Grep, Glob, TodoWrite]
5
5
  model: sonnet
6
6
  type: specialist
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: pseudocode
3
- description: MUST BE USED when designing algorithms, logic flows, or data structures in SPARC methodology. Use PROACTIVELY for algorithm design, pseudocode creation, complexity analysis, data structure selection, logic flow mapping. Keywords - SPARC, pseudocode, algorithm, logic flow, complexity analysis, Big-O, optimization
3
+ description: MUST BE USED for algorithm design, logic planning, code outline creation. Use PROACTIVELY for problem decomposition, planning. Keywords - pseudocode, algorithm, logic, planning
4
4
  tools: [Read, Write, Edit, Bash, Grep, Glob, TodoWrite]
5
5
  model: haiku
6
6
  color: indigo
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: accessibility-advocate-persona
3
- description: MUST BE USED when evaluating accessibility, WCAG compliance, assistive technology support, and inclusive design. Use PROACTIVELY for accessibility audits, ARIA implementation, keyboard navigation, screen reader testing, color contrast validation. Keywords - accessibility, WCAG, ARIA, screen reader, keyboard navigation, inclusive design, a11y
3
+ description: MUST BE USED for accessibility compliance, WCAG validation, inclusive design. Use PROACTIVELY for a11y testing, screen reader support. Keywords - accessibility, a11y, WCAG, inclusive
4
4
  tools: [Read, Write, Edit, Bash, Grep, Glob, TodoWrite]
5
5
  model: haiku
6
6
  color: violet