@hailer/mcp 1.1.16 → 1.1.17-beta.0

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 (313) hide show
  1. package/.claude/CLAUDE.md +117 -320
  2. package/.claude/commands/app-squad.md +86 -90
  3. package/.claude/commands/audit-squad.md +19 -19
  4. package/.claude/commands/autoplan.md +3 -3
  5. package/.claude/commands/cleanup-squad.md +16 -16
  6. package/.claude/commands/config-squad.md +30 -30
  7. package/.claude/commands/crud-squad.md +23 -23
  8. package/.claude/commands/data-squad.md +21 -21
  9. package/.claude/commands/debug-squad.md +44 -44
  10. package/.claude/commands/doc-squad.md +16 -16
  11. package/.claude/commands/help:agents.md +130 -99
  12. package/.claude/commands/help:commands.md +15 -15
  13. package/.claude/commands/help:faq.md +17 -17
  14. package/.claude/commands/help:plugins.md +1 -1
  15. package/.claude/commands/help:skills.md +18 -24
  16. package/.claude/commands/hotfix-squad.md +22 -22
  17. package/.claude/commands/integration-squad.md +22 -22
  18. package/.claude/commands/janitor-squad.md +31 -31
  19. package/.claude/commands/learn-auto.md +5 -5
  20. package/.claude/commands/learn.md +12 -20
  21. package/.claude/commands/onboard-squad.md +39 -49
  22. package/.claude/commands/plan-workspace.md +2 -2
  23. package/.claude/commands/publish.md +32 -37
  24. package/.claude/commands/review-squad.md +27 -27
  25. package/.claude/commands/stats.md +26 -12
  26. package/.claude/commands/swarm.md +25 -25
  27. package/.claude/skills/chrome-mcp-reference/SKILL.md +5 -0
  28. package/.claude/skills/hailer-api-client/SKILL.md +55 -16
  29. package/.claude/skills/hailer-app-builder/SKILL.md +4 -270
  30. package/.claude/skills/hailer-apps-pictures/SKILL.md +3 -3
  31. package/.claude/skills/hailer-design-system/SKILL.md +96 -4
  32. package/.claude/skills/hailer-monolith-automations/SKILL.md +138 -116
  33. package/.claude/skills/hailer-permissions-system/SKILL.md +6 -9
  34. package/.claude/skills/hailer-project-protocol/SKILL.md +20 -110
  35. package/.claude/skills/integration-patterns/SKILL.md +6 -6
  36. package/.claude/skills/lsp-setup/SKILL.md +8 -9
  37. package/.claude/skills/sdk-activity-patterns/SKILL.md +238 -0
  38. package/.claude/skills/{SDK-document-templates → sdk-document-templates}/SKILL.md +13 -340
  39. package/.claude/skills/{SDK-function-fields → sdk-function-fields}/SKILL.md +8 -40
  40. package/.claude/skills/{SDK-insight-queries → sdk-insight-queries}/SKILL.md +114 -392
  41. package/.claude/skills/{SDK-ws-config-skill → sdk-ws-config-skill}/SKILL.md +79 -310
  42. package/.claude/skills/zapier-hailer-patterns/SKILL.md +84 -361
  43. package/.opencode/package-lock.json +117 -0
  44. package/CLAUDE.md +5 -358
  45. package/dist/app.d.ts.map +1 -1
  46. package/dist/app.js +10 -127
  47. package/dist/app.js.map +1 -1
  48. package/dist/bot/bot-manager.d.ts +3 -14
  49. package/dist/bot/bot-manager.d.ts.map +1 -1
  50. package/dist/bot/bot-manager.js +13 -4
  51. package/dist/bot/bot-manager.js.map +1 -1
  52. package/dist/bot/bot.d.ts +23 -102
  53. package/dist/bot/bot.d.ts.map +1 -1
  54. package/dist/bot/bot.js +356 -1212
  55. package/dist/bot/bot.js.map +1 -1
  56. package/dist/bot/services/bot-permissions.d.ts +50 -0
  57. package/dist/bot/services/bot-permissions.d.ts.map +1 -0
  58. package/dist/bot/services/bot-permissions.js +198 -0
  59. package/dist/bot/services/bot-permissions.js.map +1 -0
  60. package/dist/bot/services/index.d.ts +4 -2
  61. package/dist/bot/services/index.d.ts.map +1 -1
  62. package/dist/bot/services/index.js +10 -5
  63. package/dist/bot/services/index.js.map +1 -1
  64. package/dist/bot/services/message-classifier.d.ts +1 -1
  65. package/dist/bot/services/message-classifier.d.ts.map +1 -1
  66. package/dist/bot/services/message-classifier.js.map +1 -1
  67. package/dist/bot/services/signal-router.d.ts +32 -0
  68. package/dist/bot/services/signal-router.d.ts.map +1 -0
  69. package/dist/bot/services/signal-router.js +132 -0
  70. package/dist/bot/services/signal-router.js.map +1 -0
  71. package/dist/bot/services/system-prompt.d.ts +12 -0
  72. package/dist/bot/services/system-prompt.d.ts.map +1 -0
  73. package/dist/bot/services/system-prompt.js +93 -0
  74. package/dist/bot/services/system-prompt.js.map +1 -0
  75. package/dist/bot/services/types.d.ts +7 -34
  76. package/dist/bot/services/types.d.ts.map +1 -1
  77. package/dist/bot/services/types.js +0 -3
  78. package/dist/bot/services/types.js.map +1 -1
  79. package/dist/bot/services/workspace-refresh.d.ts +47 -0
  80. package/dist/bot/services/workspace-refresh.d.ts.map +1 -0
  81. package/dist/bot/services/workspace-refresh.js +154 -0
  82. package/dist/bot/services/workspace-refresh.js.map +1 -0
  83. package/dist/bot-config/constants.d.ts +0 -36
  84. package/dist/bot-config/constants.d.ts.map +1 -1
  85. package/dist/bot-config/constants.js +1 -76
  86. package/dist/bot-config/constants.js.map +1 -1
  87. package/dist/bot-config/context.d.ts +2 -42
  88. package/dist/bot-config/context.d.ts.map +1 -1
  89. package/dist/bot-config/context.js +13 -134
  90. package/dist/bot-config/context.js.map +1 -1
  91. package/dist/bot-config/index.d.ts +6 -15
  92. package/dist/bot-config/index.d.ts.map +1 -1
  93. package/dist/bot-config/index.js +5 -80
  94. package/dist/bot-config/index.js.map +1 -1
  95. package/dist/bot-config/loader.d.ts +16 -4
  96. package/dist/bot-config/loader.d.ts.map +1 -1
  97. package/dist/bot-config/loader.js +187 -96
  98. package/dist/bot-config/loader.js.map +1 -1
  99. package/dist/bot-config/persistence.d.ts +1 -52
  100. package/dist/bot-config/persistence.d.ts.map +1 -1
  101. package/dist/bot-config/persistence.js +3 -213
  102. package/dist/bot-config/persistence.js.map +1 -1
  103. package/dist/bot-config/state.d.ts +0 -41
  104. package/dist/bot-config/state.d.ts.map +1 -1
  105. package/dist/bot-config/state.js +0 -151
  106. package/dist/bot-config/state.js.map +1 -1
  107. package/dist/bot-config/tools.d.ts +1 -1
  108. package/dist/bot-config/tools.js +27 -27
  109. package/dist/bot-config/tools.js.map +1 -1
  110. package/dist/bot-config/types.d.ts +39 -32
  111. package/dist/bot-config/types.d.ts.map +1 -1
  112. package/dist/bot-config/types.js +0 -3
  113. package/dist/bot-config/types.js.map +1 -1
  114. package/dist/bot-config/webhooks.d.ts +0 -4
  115. package/dist/bot-config/webhooks.d.ts.map +1 -1
  116. package/dist/bot-config/webhooks.js +0 -13
  117. package/dist/bot-config/webhooks.js.map +1 -1
  118. package/dist/commands/seed-config.js +16 -31
  119. package/dist/commands/seed-config.js.map +1 -1
  120. package/dist/config.d.ts +0 -9
  121. package/dist/config.d.ts.map +1 -1
  122. package/dist/config.js +0 -15
  123. package/dist/config.js.map +1 -1
  124. package/dist/mcp/hailer-clients.js +2 -2
  125. package/dist/mcp/hailer-clients.js.map +1 -1
  126. package/dist/mcp/tool-registry.d.ts +10 -115
  127. package/dist/mcp/tool-registry.d.ts.map +1 -1
  128. package/dist/mcp/tool-registry.js +39 -363
  129. package/dist/mcp/tool-registry.js.map +1 -1
  130. package/dist/mcp/tools/activity.d.ts +3 -0
  131. package/dist/mcp/tools/activity.d.ts.map +1 -1
  132. package/dist/mcp/tools/activity.js +8 -1
  133. package/dist/mcp/tools/activity.js.map +1 -1
  134. package/dist/mcp/tools/app-core.d.ts +3 -0
  135. package/dist/mcp/tools/app-core.d.ts.map +1 -1
  136. package/dist/mcp/tools/app-core.js +9 -2
  137. package/dist/mcp/tools/app-core.js.map +1 -1
  138. package/dist/mcp/tools/app-marketplace.d.ts +3 -0
  139. package/dist/mcp/tools/app-marketplace.d.ts.map +1 -1
  140. package/dist/mcp/tools/app-marketplace.js +13 -1
  141. package/dist/mcp/tools/app-marketplace.js.map +1 -1
  142. package/dist/mcp/tools/app-member.d.ts +3 -0
  143. package/dist/mcp/tools/app-member.d.ts.map +1 -1
  144. package/dist/mcp/tools/app-member.js +6 -1
  145. package/dist/mcp/tools/app-member.js.map +1 -1
  146. package/dist/mcp/tools/app-scaffold.d.ts +3 -0
  147. package/dist/mcp/tools/app-scaffold.d.ts.map +1 -1
  148. package/dist/mcp/tools/app-scaffold.js +15 -11
  149. package/dist/mcp/tools/app-scaffold.js.map +1 -1
  150. package/dist/mcp/tools/company.d.ts +3 -0
  151. package/dist/mcp/tools/company.d.ts.map +1 -1
  152. package/dist/mcp/tools/company.js +5 -1
  153. package/dist/mcp/tools/company.js.map +1 -1
  154. package/dist/mcp/tools/discussion.d.ts +3 -0
  155. package/dist/mcp/tools/discussion.d.ts.map +1 -1
  156. package/dist/mcp/tools/discussion.js +13 -2
  157. package/dist/mcp/tools/discussion.js.map +1 -1
  158. package/dist/mcp/tools/file.d.ts +3 -0
  159. package/dist/mcp/tools/file.d.ts.map +1 -1
  160. package/dist/mcp/tools/file.js +6 -1
  161. package/dist/mcp/tools/file.js.map +1 -1
  162. package/dist/mcp/tools/index.d.ts +7 -0
  163. package/dist/mcp/tools/index.d.ts.map +1 -0
  164. package/dist/mcp/tools/index.js +34 -0
  165. package/dist/mcp/tools/index.js.map +1 -0
  166. package/dist/mcp/tools/insight.d.ts +3 -0
  167. package/dist/mcp/tools/insight.d.ts.map +1 -1
  168. package/dist/mcp/tools/insight.js +18 -8
  169. package/dist/mcp/tools/insight.js.map +1 -1
  170. package/dist/mcp/tools/user.d.ts +3 -0
  171. package/dist/mcp/tools/user.d.ts.map +1 -1
  172. package/dist/mcp/tools/user.js +6 -1
  173. package/dist/mcp/tools/user.js.map +1 -1
  174. package/dist/mcp/tools/workflow-permissions.d.ts +3 -0
  175. package/dist/mcp/tools/workflow-permissions.d.ts.map +1 -1
  176. package/dist/mcp/tools/workflow-permissions.js +8 -1
  177. package/dist/mcp/tools/workflow-permissions.js.map +1 -1
  178. package/dist/mcp/tools/workflow.d.ts +3 -0
  179. package/dist/mcp/tools/workflow.d.ts.map +1 -1
  180. package/dist/mcp/tools/workflow.js +29 -28
  181. package/dist/mcp/tools/workflow.js.map +1 -1
  182. package/dist/mcp/utils/index.d.ts +4 -11
  183. package/dist/mcp/utils/index.d.ts.map +1 -1
  184. package/dist/mcp/utils/index.js +5 -36
  185. package/dist/mcp/utils/index.js.map +1 -1
  186. package/dist/mcp/utils/role-utils.d.ts +0 -32
  187. package/dist/mcp/utils/role-utils.d.ts.map +1 -1
  188. package/dist/mcp/utils/role-utils.js +0 -73
  189. package/dist/mcp/utils/role-utils.js.map +1 -1
  190. package/dist/mcp/utils/tool-helpers.d.ts +0 -25
  191. package/dist/mcp/utils/tool-helpers.d.ts.map +1 -1
  192. package/dist/mcp/utils/tool-helpers.js +0 -34
  193. package/dist/mcp/utils/tool-helpers.js.map +1 -1
  194. package/dist/mcp/webhook-handler.d.ts +4 -34
  195. package/dist/mcp/webhook-handler.d.ts.map +1 -1
  196. package/dist/mcp/webhook-handler.js +57 -74
  197. package/dist/mcp/webhook-handler.js.map +1 -1
  198. package/dist/mcp-server.d.ts.map +1 -1
  199. package/dist/mcp-server.js +3 -78
  200. package/dist/mcp-server.js.map +1 -1
  201. package/package.json +1 -2
  202. package/.claude/agents/agent-ada-skill-builder.md +0 -94
  203. package/.claude/agents/agent-alejandro-function-fields.md +0 -342
  204. package/.claude/agents/agent-bjorn-config-audit.md +0 -103
  205. package/.claude/agents/agent-builder-agent-creator.md +0 -130
  206. package/.claude/agents/agent-code-simplifier.md +0 -53
  207. package/.claude/agents/agent-dmitri-activity-crud.md +0 -159
  208. package/.claude/agents/agent-giuseppe-app-builder.md +0 -208
  209. package/.claude/agents/agent-gunther-mcp-tools.md +0 -39
  210. package/.claude/agents/agent-helga-workflow-config.md +0 -204
  211. package/.claude/agents/agent-igor-activity-mover-automation.md +0 -125
  212. package/.claude/agents/agent-ingrid-doc-templates.md +0 -261
  213. package/.claude/agents/agent-ivan-monolith.md +0 -154
  214. package/.claude/agents/agent-kenji-data-reader.md +0 -86
  215. package/.claude/agents/agent-lars-code-inspector.md +0 -102
  216. package/.claude/agents/agent-marco-mockup-builder.md +0 -110
  217. package/.claude/agents/agent-marcus-api-documenter.md +0 -323
  218. package/.claude/agents/agent-marketplace-publisher.md +0 -280
  219. package/.claude/agents/agent-marketplace-reviewer.md +0 -309
  220. package/.claude/agents/agent-permissions-handler.md +0 -208
  221. package/.claude/agents/agent-simple-writer.md +0 -48
  222. package/.claude/agents/agent-svetlana-code-review.md +0 -171
  223. package/.claude/agents/agent-tanya-test-runner.md +0 -333
  224. package/.claude/agents/agent-ui-designer.md +0 -100
  225. package/.claude/agents/agent-viktor-sql-insights.md +0 -212
  226. package/.claude/agents/agent-web-search.md +0 -55
  227. package/.claude/agents/agent-yevgeni-discussions.md +0 -45
  228. package/.claude/agents/agent-zara-zapier.md +0 -159
  229. package/.claude/skills/SDK-activity-patterns/SKILL.md +0 -428
  230. package/.claude/skills/SDK-generate-skill/SKILL.md +0 -92
  231. package/.claude/skills/SDK-init-skill/SKILL.md +0 -127
  232. package/.claude/skills/agent-structure/SKILL.md +0 -98
  233. package/.claude/skills/delegation-routing/SKILL.md +0 -202
  234. package/.claude/skills/frontend-design/SKILL.md +0 -254
  235. package/.claude/skills/hailer-activity-mover/SKILL.md +0 -213
  236. package/.claude/skills/hailer-rest-api/SKILL.md +0 -61
  237. package/.claude/skills/hailer-rest-api/hailer-activities.md +0 -184
  238. package/.claude/skills/hailer-rest-api/hailer-admin.md +0 -473
  239. package/.claude/skills/hailer-rest-api/hailer-calendar.md +0 -256
  240. package/.claude/skills/hailer-rest-api/hailer-feed.md +0 -249
  241. package/.claude/skills/hailer-rest-api/hailer-insights.md +0 -195
  242. package/.claude/skills/hailer-rest-api/hailer-messaging.md +0 -276
  243. package/.claude/skills/hailer-rest-api/hailer-workflows.md +0 -283
  244. package/.claude/skills/insight-join-patterns/SKILL.md +0 -174
  245. package/.claude/skills/json-only-output/SKILL.md +0 -72
  246. package/.claude/skills/mcp-direct-tools/SKILL.md +0 -153
  247. package/.claude/skills/optional-parameters/SKILL.md +0 -72
  248. package/.claude/skills/tool-parameter-usage/SKILL.md +0 -126
  249. package/.claude/skills/tool-response-verification/SKILL.md +0 -92
  250. package/.opencode/agent/agent-ada-skill-builder.md +0 -35
  251. package/.opencode/agent/agent-alejandro-function-fields.md +0 -39
  252. package/.opencode/agent/agent-bjorn-config-audit.md +0 -36
  253. package/.opencode/agent/agent-builder-agent-creator.md +0 -39
  254. package/.opencode/agent/agent-code-simplifier.md +0 -31
  255. package/.opencode/agent/agent-dmitri-activity-crud.md +0 -40
  256. package/.opencode/agent/agent-giuseppe-app-builder.md +0 -37
  257. package/.opencode/agent/agent-gunther-mcp-tools.md +0 -39
  258. package/.opencode/agent/agent-helga-workflow-config.md +0 -204
  259. package/.opencode/agent/agent-igor-activity-mover-automation.md +0 -46
  260. package/.opencode/agent/agent-ingrid-doc-templates.md +0 -39
  261. package/.opencode/agent/agent-ivan-monolith.md +0 -46
  262. package/.opencode/agent/agent-kenji-data-reader.md +0 -53
  263. package/.opencode/agent/agent-lars-code-inspector.md +0 -28
  264. package/.opencode/agent/agent-marco-mockup-builder.md +0 -42
  265. package/.opencode/agent/agent-marcus-api-documenter.md +0 -53
  266. package/.opencode/agent/agent-marketplace-publisher.md +0 -44
  267. package/.opencode/agent/agent-marketplace-reviewer.md +0 -42
  268. package/.opencode/agent/agent-permissions-handler.md +0 -50
  269. package/.opencode/agent/agent-simple-writer.md +0 -45
  270. package/.opencode/agent/agent-svetlana-code-review.md +0 -39
  271. package/.opencode/agent/agent-tanya-test-runner.md +0 -57
  272. package/.opencode/agent/agent-ui-designer.md +0 -56
  273. package/.opencode/agent/agent-viktor-sql-insights.md +0 -34
  274. package/.opencode/agent/agent-web-search.md +0 -42
  275. package/.opencode/agent/agent-yevgeni-discussions.md +0 -37
  276. package/.opencode/agent/agent-zara-zapier.md +0 -53
  277. package/.opencode/commands/app-squad.md +0 -135
  278. package/.opencode/commands/audit-squad.md +0 -158
  279. package/.opencode/commands/autoplan.md +0 -563
  280. package/.opencode/commands/cleanup-squad.md +0 -98
  281. package/.opencode/commands/config-squad.md +0 -106
  282. package/.opencode/commands/crud-squad.md +0 -87
  283. package/.opencode/commands/data-squad.md +0 -97
  284. package/.opencode/commands/debug-squad.md +0 -303
  285. package/.opencode/commands/doc-squad.md +0 -65
  286. package/.opencode/commands/handoff.md +0 -137
  287. package/.opencode/commands/health.md +0 -49
  288. package/.opencode/commands/help-agents.md +0 -151
  289. package/.opencode/commands/help-commands.md +0 -32
  290. package/.opencode/commands/help-faq.md +0 -29
  291. package/.opencode/commands/help-plugins.md +0 -28
  292. package/.opencode/commands/help-skills.md +0 -7
  293. package/.opencode/commands/help-tools.md +0 -40
  294. package/.opencode/commands/help.md +0 -28
  295. package/.opencode/commands/hotfix-squad.md +0 -112
  296. package/.opencode/commands/integration-squad.md +0 -82
  297. package/.opencode/commands/janitor-squad.md +0 -167
  298. package/.opencode/commands/learn-auto.md +0 -120
  299. package/.opencode/commands/learn.md +0 -120
  300. package/.opencode/commands/mcp-list.md +0 -27
  301. package/.opencode/commands/onboard-squad.md +0 -140
  302. package/.opencode/commands/plan-workspace.md +0 -732
  303. package/.opencode/commands/prd.md +0 -131
  304. package/.opencode/commands/project-status.md +0 -82
  305. package/.opencode/commands/publish.md +0 -138
  306. package/.opencode/commands/recap.md +0 -69
  307. package/.opencode/commands/restore.md +0 -64
  308. package/.opencode/commands/review-squad.md +0 -152
  309. package/.opencode/commands/save.md +0 -24
  310. package/.opencode/commands/stats.md +0 -19
  311. package/.opencode/commands/swarm.md +0 -210
  312. package/.opencode/commands/tool-builder.md +0 -39
  313. package/.opencode/commands/ws-pull.md +0 -44
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Build backend integrations with Kenji, Ivan, and Tanya
2
+ description: Build backend integrations with schema discovery and automation
3
3
  argument-hint: "integration description"
4
4
  allowed-tools: Task, Bash, Read
5
5
  ---
@@ -7,64 +7,64 @@ allowed-tools: Task, Bash, Read
7
7
 
8
8
  Sequential pipeline: Schema discovery, build integration, then verify with tests.
9
9
 
10
- **Agents:**
11
- 1. **Kenji** - Schema discovery (workflow fields, types, IDs)
12
- 2. **Ivan** - Build integration (monolith webhooks, scheduled jobs, automations)
13
- 3. **Tanya** - Test runner (verify integration with tests)
10
+ **Roles:**
11
+ 1. **Data Reader** - Schema discovery (workflow fields, types, IDs)
12
+ 2. **Automation Builder** - Build integration (monolith webhooks, scheduled jobs, automations)
13
+ 3. **Test Runner** - Test runner (verify integration with tests)
14
14
 
15
15
  **Goal:** $ARGUMENTS
16
16
 
17
17
  ## Protocol
18
18
 
19
- ### Step 1: Kenji (Schema Discovery)
19
+ ### Step 1: Schema Discovery
20
20
 
21
- Start with Kenji to gather workflow schema and field IDs needed for the integration:
21
+ Start with schema discovery to gather workflow schema and field IDs needed for the integration:
22
22
 
23
23
  ```
24
- Task(subagent_type="agent-kenji-data-reader", prompt="List all workflows and their fields relevant to: $ARGUMENTS. Include field IDs, types, and any existing integrations. Also identify webhook URLs and activity phase names needed.")
24
+ Task(prompt="Load sdk-ws-config-skill for understanding workspace structure.\n\nList all workflows and their fields relevant to: $ARGUMENTS. Include field IDs, types, and any existing integrations. Also identify webhook URLs and activity phase names needed.")
25
25
  ```
26
26
 
27
- Wait for result. Save the schema output - Ivan needs these IDs.
27
+ Wait for result. Save the schema output - the automation builder needs these IDs.
28
28
 
29
- ### Step 2: Ivan (Build Integration)
29
+ ### Step 2: Build Integration
30
30
 
31
- Spawn Ivan with the schema context from Kenji:
31
+ Spawn an automation builder with the schema context:
32
32
 
33
33
  ```
34
- Task(subagent_type="agent-ivan-monolith", prompt="Build a backend integration for: $ARGUMENTS.\n\nWorkflow schema from Kenji:\n[PASTE KENJI'S OUTPUT - workflow IDs, field IDs, types, phases]\n\nImplement in the hailer-integration monolith. Use correct IDs for webhooks, scheduled jobs, or automations.")
34
+ Task(prompt="Load hailer-monolith-automations skill for building integrations.\n\nBuild a backend integration for: $ARGUMENTS.\n\nWorkflow schema from data reader:\n[PASTE SCHEMA DISCOVERY OUTPUT - workflow IDs, field IDs, types, phases]\n\nImplement in the hailer-integration monolith. Use correct IDs for webhooks, scheduled jobs, or automations.")
35
35
  ```
36
36
 
37
37
  Wait for result. If `"status": "ready_to_push"`:
38
- - Run the push commands Ivan provides
38
+ - Run the push commands provided
39
39
 
40
- ### Step 3: Tanya (Test Runner)
40
+ ### Step 3: Test Integration
41
41
 
42
- Spawn Tanya to verify the integration works:
42
+ Spawn a test runner to verify the integration works:
43
43
 
44
44
  ```
45
- Task(subagent_type="agent-tanya-test-runner", prompt="Test the integration for: $ARGUMENTS.\n\nTest coverage needed:\n- Webhook payload validation (if webhook)\n- Scheduled job execution (if scheduled)\n- Activity creation/phase transitions\n- Error handling and edge cases\n\nRun tests and report pass/fail counts.")
45
+ Task(prompt="Load testing-patterns skill for integration testing.\n\nTest the integration for: $ARGUMENTS.\n\nTest coverage needed:\n- Webhook payload validation (if webhook)\n- Scheduled job execution (if scheduled)\n- Activity creation/phase transitions\n- Error handling and edge cases\n\nRun tests and report pass/fail counts.")
46
46
  ```
47
47
 
48
- Wait for result. If tests fail, report which ones and offer to have Ivan fix issues.
48
+ Wait for result. If tests fail, report which ones and offer to have the automation builder fix issues.
49
49
 
50
50
  ### Step 4: Report
51
51
 
52
52
  ```markdown
53
53
  ## Integration Squad Complete
54
54
 
55
- ### Kenji (Schema Discovery)
55
+ ### Data Reader (Schema Discovery)
56
56
  - Workflows found: [list]
57
57
  - Fields mapped: [count]
58
58
  - Phases identified: [list]
59
59
  - Existing integrations: [list or "none"]
60
60
 
61
- ### Ivan (Monolith Integration)
61
+ ### Automation Builder
62
62
  - Integration type: [webhook/scheduled/automation]
63
63
  - Files created/modified: [list]
64
64
  - Endpoints: [list if webhook]
65
65
  - Commands run: [list]
66
66
 
67
- ### Tanya (Tests)
67
+ ### Test Runner
68
68
  - Tests: X passed, X failed
69
69
  - Build: Pass/Fail
70
70
  - [Failed test details if any]
@@ -77,6 +77,6 @@ Wait for result. If tests fail, report which ones and offer to have Ivan fix iss
77
77
 
78
78
  ## Notes
79
79
 
80
- - Kenji must run first to get real IDs - never let Ivan guess IDs
80
+ - Data Reader must run first to get real IDs - never let automation builder guess IDs
81
81
  - Each agent in the pipeline depends on output from the previous step
82
- - If tests fail, Ivan may need to revise the integration code
82
+ - If tests fail, the automation builder may need to revise the integration code
@@ -7,11 +7,11 @@ allowed-tools: Task, Bash
7
7
 
8
8
  Deep project cleanup across code, configuration, and data. Discovers dead patterns and auto-fixes clear-cut removals.
9
9
 
10
- **Agents:**
11
- - **Lars** - Dead code detection (unused imports, unreachable code, type errors via LSP)
12
- - **Bjorn** - Configuration audit (deprecated fields, broken references, unused workflows)
13
- - **Viktor** - Data analysis (unpopulated fields, zero-activity workflows, silent insights)
14
- - **Simple Writer** - Auto-fix confirmed dead code and unused imports (fix loop)
10
+ **Roles:**
11
+ - **Dead Code Inspector** - Dead code detection (unused imports, unreachable code, type errors via LSP)
12
+ - **Config Auditor** - Configuration audit (deprecated fields, broken references, unused workflows)
13
+ - **Data Analyzer** - Data analysis (unpopulated fields, zero-activity workflows, silent insights)
14
+ - **Code Fixer** - Auto-fix confirmed dead code and unused imports (fix loop)
15
15
  - **Code Simplifier** - Simplify complex code blocks identified during discovery (fix loop)
16
16
 
17
17
  **Target:** $ARGUMENTS (if blank, scan full project)
@@ -26,12 +26,12 @@ If `$ARGUMENTS` has specific files/directories, use those as the target.
26
26
  Otherwise, scan the entire project.
27
27
 
28
28
  If `$ARGUMENTS` contains `--code-only`:
29
- - Skip Bjorn and Viktor
30
- - Only run Lars in discovery phase
29
+ - Skip Config Auditor and Data Analyzer
30
+ - Only run Dead Code Inspector in discovery phase
31
31
 
32
32
  If `$ARGUMENTS` contains `--config-only`:
33
- - Skip Lars and Viktor
34
- - Only run Bjorn in discovery phase
33
+ - Skip Dead Code Inspector and Data Analyzer
34
+ - Only run Config Auditor in discovery phase
35
35
 
36
36
  If `$ARGUMENTS` contains `--report-only`:
37
37
  - Skip all fix loop iterations
@@ -43,31 +43,31 @@ If `$ARGUMENTS` contains `--report-only`:
43
43
 
44
44
  Spawn all three discovery agents simultaneously using multiple Task tool calls in a single message:
45
45
 
46
- **Lars:**
46
+ **Dead Code Inspector:**
47
47
  ```
48
- Task(subagent_type="agent-lars-code-inspector", prompt="Inspect the project for dead code patterns: [TARGET]. Find:\n- Unused imports\n- Unreachable code blocks\n- Unused variables and functions\n- Type errors\n\nUse LSP if available, fall back to tsc/eslint. Return detailed findings grouped by file.")
48
+ Task(prompt="Load lsp-setup skill for code inspection.\n\nInspect the project for dead code patterns: [TARGET]. Find:\n- Unused imports\n- Unreachable code blocks\n- Unused variables and functions\n- Type errors\n\nUse LSP if available, fall back to tsc/eslint. Return detailed findings grouped by file.")
49
49
  ```
50
50
 
51
- **Bjorn:**
51
+ **Config Auditor:**
52
52
  ```
53
- Task(subagent_type="agent-bjorn-config-audit", prompt="Audit workspace configuration for zombie patterns: [TARGET]. Check:\n- Deprecated fields in workspace/fields.ts\n- Broken field references in phases\n- Unused workflows (defined but zero activities)\n- Broken enum references\n- Orphaned configuration entries\n\nReturn issues grouped by category with severity.")
53
+ Task(prompt="Audit workspace configuration for zombie patterns: [TARGET]. Check:\n- Deprecated fields in workspace/fields.ts\n- Broken field references in phases\n- Unused workflows (defined but zero activities)\n- Broken enum references\n- Orphaned configuration entries\n\nReturn issues grouped by category with severity.")
54
54
  ```
55
55
 
56
- **Viktor:**
56
+ **Data Analyzer:**
57
57
  ```
58
- Task(subagent_type="agent-viktor-sql-insights", prompt="Analyze data patterns in workflows: [TARGET]. Find:\n- Fields that are defined but never populated (zero values across all activities)\n- Workflows with zero activities (created but unused)\n- Insights that return empty data (broken or obsolete)\n- Calculated fields that never execute\n- Orphaned data patterns\n\nReturn findings with field IDs, workflow IDs, and impact estimates.")
58
+ Task(prompt="Load sdk-insight-queries skill for data analysis.\n\nAnalyze data patterns in workflows: [TARGET]. Find:\n- Fields that are defined but never populated (zero values across all activities)\n- Workflows with zero activities (created but unused)\n- Insights that return empty data (broken or obsolete)\n- Calculated fields that never execute\n- Orphaned data patterns\n\nReturn findings with field IDs, workflow IDs, and impact estimates.")
59
59
  ```
60
60
 
61
61
  ### Step 3: Categorize Findings
62
62
 
63
63
  Collect results from all three agents. Categorize each finding as:
64
64
 
65
- **AUTO-FIXABLE** (Simple Writer can safely remove):
66
- - Unused imports identified by Lars
65
+ **AUTO-FIXABLE** (Code Fixer can safely remove):
66
+ - Unused imports identified by Dead Code Inspector
67
67
  - Dead code blocks with no side effects
68
- - Workflow definitions with zero activities (from Viktor + Bjorn)
69
- - Deprecated enum references (from Bjorn)
70
- - Never-populated fields that can be safely archived (from Viktor + Bjorn)
68
+ - Workflow definitions with zero activities (from Data Analyzer + Config Auditor)
69
+ - Deprecated enum references (from Config Auditor)
70
+ - Never-populated fields that can be safely archived (from Data Analyzer + Config Auditor)
71
71
 
72
72
  **NEEDS-HUMAN-REVIEW** (escalate to user):
73
73
  - Architecture concerns
@@ -78,16 +78,16 @@ Collect results from all three agents. Categorize each finding as:
78
78
 
79
79
  ### Step 4: Auto-Fix Loop (if auto-fixable items found AND `--report-only` not set AND `iteration < 3`)
80
80
 
81
- If critical auto-fixable items exist, spawn two agents to clean up. If Simple Writer's fixes introduce new issues detected by re-audit, escalate remaining issues to user after max 2 iterations.
81
+ If critical auto-fixable items exist, spawn two agents to clean up. If the Code Fixer's fixes introduce new issues detected by re-audit, escalate remaining issues to user after max 2 iterations.
82
82
 
83
- **Simple Writer:**
83
+ **Code Fixer:**
84
84
  ```
85
- Task(subagent_type="agent-simple-writer", prompt="Remove confirmed dead code and unused imports from the project:\n\n[LIST AUTO-FIXABLE ITEMS WITH FILE PATHS AND LINE NUMBERS]\n\nFrom Lars:\n- [Unused imports with files]\n- [Dead code blocks with files]\n\nFrom Bjorn:\n- [Deprecated enum references with files]\n- [Unused workflow definitions with IDs]\n\nFrom Viktor:\n- [Never-populated field definitions with IDs]\n\nApply minimal removals only. Do not refactor or improve beyond confirmed dead patterns.")
85
+ Task(prompt="Remove confirmed dead code and unused imports from the project:\n\n[LIST AUTO-FIXABLE ITEMS WITH FILE PATHS AND LINE NUMBERS]\n\nFrom Dead Code Inspector:\n- [Unused imports with files]\n- [Dead code blocks with files]\n\nFrom Config Auditor:\n- [Deprecated enum references with files]\n- [Unused workflow definitions with IDs]\n\nFrom Data Analyzer:\n- [Never-populated field definitions with IDs]\n\nApply minimal removals only. Do not refactor or improve beyond confirmed dead patterns.")
86
86
  ```
87
87
 
88
88
  **Code Simplifier:**
89
89
  ```
90
- Task(subagent_type="agent-code-simplifier", prompt="After dead code removal, simplify complex code blocks identified as difficult to maintain: [TARGET].\n\nFocus on:\n- Variable naming clarity\n- Function complexity reduction\n- Comment clarity around remaining logic\n- Code organization in affected files\n\nReturn refactoring suggestions with before/after examples.")
90
+ Task(prompt="After dead code removal, simplify complex code blocks identified as difficult to maintain: [TARGET].\n\nFocus on:\n- Variable naming clarity\n- Function complexity reduction\n- Comment clarity around remaining logic\n- Code organization in affected files\n\nReturn refactoring suggestions with before/after examples.")
91
91
  ```
92
92
 
93
93
  After both finish:
@@ -106,20 +106,20 @@ After both finish:
106
106
  - Auto-fixes applied: [yes/no]
107
107
  - Items removed: [count by category]
108
108
 
109
- ### Lars (Dead Code Detection)
109
+ ### Dead Code Inspector
110
110
  - Unused imports: X (Y auto-removed)
111
111
  - Dead code blocks: X (Y auto-removed)
112
112
  - Type errors: X
113
113
  - [Remaining issues grouped by file]
114
114
 
115
- ### Bjorn (Config Audit)
115
+ ### Config Auditor
116
116
  - Deprecated fields: X
117
117
  - Broken references: X (Y auto-removed)
118
118
  - Unused workflows: X (Y auto-removed)
119
119
  - Orphaned config: X
120
120
  - [Remaining issues grouped by category]
121
121
 
122
- ### Viktor (Data Analysis)
122
+ ### Data Analyzer
123
123
  - Never-populated fields: X (Y marked for archival)
124
124
  - Zero-activity workflows: X (Y removed)
125
125
  - Silent insights: X
@@ -151,8 +151,8 @@ If any agent fails or times out, report partial results from successful agents,
151
151
 
152
152
  | Flag | Effect |
153
153
  |------|--------|
154
- | `--code-only` | Skip Bjorn and Viktor, just code cleanup via Lars |
155
- | `--config-only` | Skip Lars and Viktor, just workspace config audit via Bjorn |
154
+ | `--code-only` | Skip Config Auditor and Data Analyzer, just code cleanup via Dead Code Inspector |
155
+ | `--config-only` | Skip Dead Code Inspector and Data Analyzer, just workspace config audit via Config Auditor |
156
156
  | `--report-only` | Report findings only, no auto-fix loop (discovery phase only) |
157
157
  | `--bg` | Run all discovery agents in background mode |
158
158
 
@@ -161,7 +161,7 @@ If `--bg` is present, launch all discovery agents with `run_in_background: true`
161
161
  ## Notes
162
162
 
163
163
  - Max 2 re-discovery iterations (3 total) to prevent infinite loops
164
- - Simple Writer only removes clear-cut dead code - ambiguous items go to user review
165
- - Data cleanup (Viktor findings) may affect reports/history - always prompt user before removal
164
+ - Code Fixer only removes clear-cut dead code - ambiguous items go to user review
165
+ - Data cleanup (Data Analyzer findings) may affect reports/history - always prompt user before removal
166
166
  - Each re-discovery is a full parallel sweep across all enabled agents
167
167
  - The `--report-only` flag gives discovery results without auto-fixes
@@ -62,8 +62,8 @@ If learnings found, present to user:
62
62
  ```
63
63
  Found [N] potential learnings from this session:
64
64
 
65
- 1. [agent/kenji] Field lookup should check enums.ts first
66
- Context: Kenji made API call when data was available locally
65
+ 1. [agent/data-reader] Field lookup should check enums.ts first
66
+ Context: Data Reader made API call when data was available locally
67
67
 
68
68
  2. [pattern] Date fields from Hailer come pre-formatted
69
69
  Context: Tried to format already-formatted date, got wrong output
@@ -96,10 +96,10 @@ If in project repo, write to `docs/learnings.md` or project's inbox location.
96
96
 
97
97
  ```
98
98
  Captured [N] learnings to inbox:
99
- - [agent/kenji] Field lookup should check enums.ts first
99
+ - [agent/data-reader] Field lookup should check enums.ts first
100
100
  - [pattern] Date fields from Hailer come pre-formatted
101
101
 
102
- Review later with /learn to apply fixes, or let Ada auto-process.
102
+ Review later with /learn to apply fixes, or let Skill Builder auto-process.
103
103
  ```
104
104
 
105
105
  ## No Learnings Found
@@ -114,7 +114,7 @@ To capture something manually: /learn <category> <description>
114
114
 
115
115
  ## Notes
116
116
 
117
- - This is DETECTION only - doesn't apply fixes (that's /learn or Ada's job)
117
+ - This is DETECTION only - doesn't apply fixes (that's /learn's job)
118
118
  - User confirms before anything is saved
119
119
  - Bias toward false negatives (miss some) rather than false positives (noise)
120
120
  - Works best at end of session when there's context to analyze
@@ -10,7 +10,6 @@ Capture a learning, ask clarifying questions, then apply the fix to the right pl
10
10
  `/learn <category> <description>`
11
11
 
12
12
  ## Categories
13
- - `agent/<name>` - Agent behavior issue (e.g., `agent/kenji`)
14
13
  - `skill/<name>` - Skill missing pattern (e.g., `skill/function-fields`)
15
14
  - `pattern` - General pattern to document
16
15
  - `bug` - Bug in code/config
@@ -18,7 +17,7 @@ Capture a learning, ask clarifying questions, then apply the fix to the right pl
18
17
 
19
18
  ## Examples
20
19
  ```
21
- /learn agent/kenji should check enums.ts before API calls
20
+ /learn skill/data-reader should check enums.ts before API calls
22
21
  /learn skill/insights JOIN syntax was wrong for linked fields
23
22
  /learn pattern always verify push succeeded before continuing
24
23
  /learn gotcha phase IDs change when workflow is copied
@@ -29,16 +28,16 @@ Capture a learning, ask clarifying questions, then apply the fix to the right pl
29
28
  ### Step 1: Parse & Understand
30
29
 
31
30
  Parse the input:
32
- - Category: first word (e.g., `agent/kenji`)
31
+ - Category: first word (e.g., `skill/data-reader`)
33
32
  - Description: rest of the text
34
33
 
35
34
  ### Step 2: Ask Clarifying Questions
36
35
 
37
36
  Use AskUserQuestion to gather details:
38
37
 
39
- **For agent issues:**
38
+ **For skill issues:**
40
39
  - "What was the symptom?" (wrong output, error, missed step)
41
- - "What should the agent do differently?"
40
+ - "What should the skill do differently?"
42
41
  - "Should this be a rule, a skill addition, or both?"
43
42
 
44
43
  **For skill issues:**
@@ -55,11 +54,10 @@ Based on category and answers, decide where the fix goes:
55
54
 
56
55
  | Category | Likely Target |
57
56
  |----------|---------------|
58
- | `agent/X` | `.claude/agents/agent-X.md` |
59
57
  | `skill/X` | `.claude/skills/X/SKILL.md` |
60
58
  | `pattern` | Relevant skill or CLAUDE.md |
61
59
  | `bug` | Code fix + possibly skill |
62
- | `gotcha` | Skill or agent rules section |
60
+ | `gotcha` | Skill or CLAUDE.md |
63
61
 
64
62
  ### Step 4: Apply the Fix
65
63
 
@@ -67,16 +65,10 @@ Based on category and answers, decide where the fix goes:
67
65
  - Edit the target file directly
68
66
  - Add to appropriate section (rules, patterns, examples)
69
67
 
70
- **Option B: Delegate to Ada (if complex)**
71
- For complex changes, invoke Ada agent:
68
+ **Option B: Delegate to a sub-agent (if complex)**
69
+ For complex changes requiring deep knowledge of skills or patterns:
72
70
  ```
73
- Task(subagent_type="agent-ada-skill-builder", prompt={
74
- "task": "apply_learning",
75
- "category": "<category>",
76
- "learning": "<description>",
77
- "details": "<clarification answers>",
78
- "target": "<determined target>"
79
- })
71
+ Task(prompt="Apply this learning to the appropriate skill or config file.\n\nCategory: <category>\nLearning: <description>\nDetails: <clarification answers>\nTarget: <determined target>\n\nEdit the target file to incorporate this learning.")
80
72
  ```
81
73
 
82
74
  ### Step 5: Log & Confirm
@@ -89,9 +81,9 @@ Task(subagent_type="agent-ada-skill-builder", prompt={
89
81
  2. Report what was done:
90
82
  ```
91
83
  Learning applied:
92
- - Category: agent/kenji
84
+ - Category: role/data-reader
93
85
  - Fix: Added rule "Check enums.ts before making API calls"
94
- - Location: .claude/agents/agent-kenji-data-reader.md
86
+ - Location: .claude/skills/<relevant-skill>/SKILL.md
95
87
  ```
96
88
 
97
89
  ## File Template
@@ -107,7 +99,7 @@ History of fixes applied from learnings.
107
99
 
108
100
  ## Log
109
101
 
110
- - [agent/kenji] Check enums.ts first → Added to rules _(2026-01-31)_
102
+ - [skill/data-reader] Check enums.ts first → Added to SKILL.md _(2026-01-31)_
111
103
  - [skill/insights] JOIN syntax example → Added to SKILL.md _(2026-01-31)_
112
104
  ```
113
105
 
@@ -116,5 +108,5 @@ History of fixes applied from learnings.
116
108
  - This command APPLIES fixes, not just logs them
117
109
  - Ask questions to understand the real issue
118
110
  - Small fixes: edit directly
119
- - Complex fixes: delegate to Ada
111
+ - Complex fixes: delegate to a general-purpose sub-agent
120
112
  - Always log what was done for history
@@ -7,11 +7,11 @@ allowed-tools: Task, Bash, Read
7
7
 
8
8
  Sequential pipeline: Create workspace infrastructure, scaffold the app, and verify everything is wired correctly.
9
9
 
10
- **Agents:**
11
- 1. **Helga** - Workflow config (create workflows, fields, phases, teams, groups)
12
- 2. **Alejandro** - Function fields and nameFunction
13
- 3. **Giuseppe** - Scaffold first app with basic CRUD interface
14
- 4. **Bjorn** - Audit config accuracy and field references
10
+ **Roles:**
11
+ 1. **Workflow Config** - Workflow configuration (create workflows, fields, phases, teams, groups)
12
+ 2. **Function Fields** - Calculated fields and nameFunction
13
+ 3. **App Builder** - Scaffold first app with basic CRUD interface
14
+ 4. **Config Auditor** - Audit configuration accuracy and field references
15
15
 
16
16
  **Goal:** $ARGUMENTS
17
17
 
@@ -24,72 +24,62 @@ Parse `$ARGUMENTS` to determine input type:
24
24
  - **If it's a file path** (e.g., `docs/prd-onboarding.md`): Read it for requirements
25
25
  - **Otherwise:** Use it as a project description
26
26
 
27
- If `$ARGUMENTS` is a file path, read it first before proceeding to Helga.
27
+ If `$ARGUMENTS` is a file path, read it first before proceeding to Workflow Config.
28
28
 
29
- ### Step 2: Helga (Workspace Config)
29
+ ### Step 2: Workflow Config
30
30
 
31
- Spawn Helga to create workspace infrastructure:
31
+ Spawn a workflow config agent to create workspace infrastructure:
32
32
 
33
33
  ```
34
- Task(subagent_type="agent-helga-workflow-config", prompt="Bootstrap a new Hailer project: $ARGUMENTS\n\nCreate: workflows (at least 1), fields for each workflow, phases, teams, and groups as needed.")
34
+ Task(prompt="Load sdk-ws-config-skill for workspace setup.\n\nBootstrap a new Hailer project: $ARGUMENTS\n\nCreate: workflows (at least 1), fields for each workflow, phases, teams, and groups as needed.")
35
35
  ```
36
36
 
37
- Wait for result. If Helga returns `"status": "ready_to_push"`:
38
- - Run the push commands she provides (e.g., `npm run fields-push:force`)
37
+ Wait for result. If the agent returns `"status": "ready_to_push"`:
38
+ - Run the push commands provided (e.g., `npm run fields-push:force`)
39
39
  - Then run `npm run pull` to refresh local workspace with new IDs
40
- - **Important:** Helga ALWAYS spawns Alejandro for nameFunction. Check if her result indicates Alejandro was spawned and created nameFunction. If yes, Alejandro's work is done - skip to Step 3.
40
+ - **Important:** Workflow config ALWAYS spawns a function fields agent for nameFunction. Check if the result indicates it was spawned and created nameFunction. If yes, function fields work is done - skip to Step 3.
41
41
 
42
- ### Step 3: Alejandro (Function Fields) - Conditional
42
+ ### Step 3: Function Fields - Conditional
43
43
 
44
- Only spawn if Helga indicates additional function fields are needed beyond what was created by Helga+Alejandro auto-spawn.
44
+ Only spawn if workflow config indicates additional function fields are needed beyond what was created by the auto-spawn.
45
45
 
46
- If needed, spawn Alejandro:
46
+ If needed, spawn a function fields agent:
47
47
 
48
48
  ```
49
- Task(subagent_type="agent-alejandro-function-fields", prompt="Create additional function fields for workflows created in: [INSERT HELGA'S GOAL].\n\nHelga created these workflows: [SUMMARIZE HELGA'S RESULT - workflow names, IDs, field counts].\n\nFunction fields already created by Helga: [FROM HELGA'S RESULT].")
49
+ Task(prompt="Load sdk-function-fields and sdk-ws-config-skill skills for creating calculated fields.\n\nCreate additional function fields for workflows created in: [INSERT WORKFLOW CONFIG GOAL].\n\nWorkflow config created these workflows: [SUMMARIZE WORKFLOW CONFIG RESULT - workflow names, IDs, field counts].\n\nFunction fields already created by workflow config: [FROM WORKFLOW CONFIG RESULT].")
50
50
  ```
51
51
 
52
52
  Wait for result. If `"status": "ready_to_push"`:
53
53
  - Run the push commands
54
54
  - Run `npm run pull` to refresh workspace
55
55
 
56
- ### Step 4: Giuseppe (App Scaffold)
56
+ ### Step 4: App Scaffold
57
57
 
58
- **Before spawning Giuseppe, enable builder mode:**
59
- ```
60
- Bash: node .claude/hooks/app-edit-guard.cjs --agent-on
61
- ```
62
-
63
- Spawn Giuseppe to build the first app using the new workspace:
64
-
65
- ```
66
- Task(subagent_type="agent-giuseppe-app-builder", prompt="Scaffold the first Hailer app for this new project: $ARGUMENTS\n\nWorkspace created by Helga: [SUMMARIZE HELGA'S RESULT - workflow names, IDs, field counts]. Giuseppe: read workspace/ directly to discover exact field IDs, types, and team configurations. Do not guess IDs.\n\nBuild a basic CRUD interface using @hailer/app-sdk and Chakra UI. Start with the primary workflow. Use the Hailer Design System.\n\nNote: Assume Local Dev app exists (orchestrator checks this before spawning you). Build for local development at http://localhost:3000.")
67
- ```
58
+ Spawn an app builder to build the first app using the new workspace:
68
59
 
69
- **After Giuseppe completes, disable builder mode:**
70
60
  ```
71
- Bash: node .claude/hooks/app-edit-guard.cjs --agent-off
61
+ Task(prompt="Load hailer-app-builder and hailer-design-system skills for app development.\n\nScaffold the first Hailer app for this new project: $ARGUMENTS\n\nWorkspace created by workflow config: [SUMMARIZE WORKFLOW CONFIG RESULT - workflow names, IDs, field counts]. You: read workspace/ directly to discover exact field IDs, types, and team configurations. Do not guess IDs.\n\nBuild a basic CRUD interface using @hailer/app-sdk and Chakra UI. Start with the primary workflow. Use the Hailer Design System.\n\nNote: Assume Local Dev app exists (orchestrator checks this before spawning you). Build for local development at http://localhost:3000.")
72
62
  ```
73
63
 
74
- Wait for result. If Giuseppe returns `"status": "ready_to_push"`:
64
+ Wait for result. If the builder returns `"status": "ready_to_push"`:
75
65
  - Run the push commands
76
66
 
77
- ### Step 5: Bjorn (Config Audit)
67
+ ### Step 5: Config Audit
78
68
 
79
- Spawn Bjorn to verify everything is configured correctly:
69
+ Spawn a config auditor to verify everything is configured correctly:
80
70
 
81
71
  ```
82
- Task(subagent_type="agent-bjorn-config-audit", prompt="Audit this new Hailer project setup:\n\n1. Verify CLAUDE.md accuracy (check that project type detection works)\n2. Verify workspace configuration: workflows, fields, phases, teams all match workspace/ files\n3. Verify field references in the new app match workspace/ field definitions\n4. Check for missing imports, incorrect IDs, or type mismatches\n5. Verify that nameFunction is set on the primary workflow\n\nProject goal: $ARGUMENTS\n\nReport any misconfigurations. If iteration <= 1, recommend fixes to the orchestrator.")
72
+ Task(prompt="Audit this new Hailer project setup:\n\n1. Verify CLAUDE.md accuracy (check that project type detection works)\n2. Verify workspace configuration: workflows, fields, phases, teams all match workspace/ files\n3. Verify field references in the new app match workspace/ field definitions\n4. Check for missing imports, incorrect IDs, or type mismatches\n5. Verify that nameFunction is set on the primary workflow\n\nProject goal: $ARGUMENTS\n\nReport any misconfigurations. If iteration <= 1, recommend fixes to the orchestrator.")
83
73
  ```
84
74
 
85
75
  **Loop Control:**
86
- - If Bjorn finds no critical issues: proceed to Step 6 (report)
87
- - If Bjorn finds issues AND `iteration <= 1`:
76
+ - If config auditor finds no critical issues: proceed to Step 6 (report)
77
+ - If config auditor finds issues AND `iteration <= 1`:
88
78
  - Increment `iteration`
89
- - Determine which agent to fix it (usually Helga or Giuseppe)
79
+ - Determine which agent to fix it (usually Workflow Config or App Builder)
90
80
  - Run appropriate agent with the issues to fix
91
- - Return to Step 5 (Bjorn re-audits)
92
- - If Bjorn finds issues AND `iteration > 1`: escalate to user in Step 6
81
+ - Return to Step 5 (config audit re-checks)
82
+ - If config auditor finds issues AND `iteration > 1`: escalate to user in Step 6
93
83
 
94
84
  ### Step 6: Report
95
85
 
@@ -98,30 +88,30 @@ Task(subagent_type="agent-bjorn-config-audit", prompt="Audit this new Hailer pro
98
88
 
99
89
  **Project Goal:** $ARGUMENTS
100
90
 
101
- ### Workspace Setup (Helga)
91
+ ### Workspace Setup
102
92
  - Workflows created: [list with IDs]
103
93
  - Fields created: [count]
104
94
  - Phases: [count]
105
95
  - Teams: [count]
106
- - Alejandro auto-spawn: [nameFunction created? Y/N]
96
+ - Function fields auto-spawn: [nameFunction created? Y/N]
107
97
 
108
- ### Function Fields (Alejandro)
98
+ ### Function Fields
109
99
  - Additional function fields created: [list or "None needed"]
110
100
  - Skipped: [reason if skipped]
111
101
 
112
- ### App Scaffold (Giuseppe)
102
+ ### App Scaffold
113
103
  - App path: [path to new app]
114
104
  - Build status: Pass/Fail
115
105
  - Files created: [count/list]
116
106
  - Local dev setup: [check local dev app name]
117
107
 
118
- ### Verification (Bjorn)
108
+ ### Config Audit
119
109
  - Critical issues found: [count] or "None"
120
110
  - Status: VERIFIED / NEEDS FIXES (if iteration > 1, see below)
121
111
 
122
112
  [If iteration > 1 - escalated:]
123
113
  ### Remaining Issues
124
- [List issues Bjorn found that weren't resolved in 1 fix iteration]
114
+ [List issues config auditor found that weren't resolved in 1 fix iteration]
125
115
  - Manual fixes recommended: [hints]
126
116
 
127
117
  ### Next Steps
@@ -133,8 +123,8 @@ Task(subagent_type="agent-bjorn-config-audit", prompt="Audit this new Hailer pro
133
123
 
134
124
  ## Notes
135
125
 
136
- - Each agent in the pipeline needs IDs from the previous step. Always `npm run pull` between HelgaAlejandroGiuseppe to refresh local workspace.
137
- - Helga auto-spawns Alejandro for nameFunction. Check her result - only spawn Alejandro again in Step 3 if additional function fields are needed.
138
- - Giuseppe needs real workflow and field IDs from workspace/ - always read the files and paste actual IDs, never let him guess.
139
- - Bjorn's audit is the quality gate. If issues are found and you've iterated once, escalate remaining issues to the user rather than looping infinitely.
140
- - Set `iteration = 1` at the start. Increment after each Bjorn audit if fixes are attempted.
126
+ - Each agent in the pipeline needs IDs from the previous step. Always `npm run pull` between Workflow ConfigFunction FieldsApp Builder to refresh local workspace.
127
+ - Workflow config auto-spawns function fields agent for nameFunction. Check the result - only spawn function fields separately in Step 3 if additional function fields are needed.
128
+ - App builder needs real workflow and field IDs from workspace/ - always read the files and paste actual IDs, never let it guess.
129
+ - Config auditor's audit is the quality gate. If issues are found and you've iterated once, escalate remaining issues to the user rather than looping infinitely.
130
+ - Set `iteration = 1` at the start. Increment after each config audit if fixes are attempted.
@@ -707,8 +707,8 @@ Use the PRD templates from autoplan but with REAL DATA from the discovery:
707
707
  **Total components planned:** X
708
708
 
709
709
  **Recommended build order:**
710
- 1. Core workflows (master data first) - Helga auto-spawns Alejandro for nameFunction
711
- 2. Transactional workflows - Helga auto-spawns Alejandro for nameFunction + function fields
710
+ 1. Core workflows (master data first) - create nameFunction after workflow setup
711
+ 2. Transactional workflows - create nameFunction + function fields after workflow setup
712
712
  3. Cross-workflow function fields (if needed separately)
713
713
  4. Insights for apps/reports
714
714
  5. Document templates (PDF/CSV)