@hailer/mcp 1.1.12 → 1.1.13

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 (271) hide show
  1. package/CHANGELOG.md +0 -7
  2. package/{.claude → dist}/CLAUDE.md +2 -2
  3. package/dist/app.js +18 -5
  4. package/dist/bot/bot-config.d.ts +10 -1
  5. package/dist/bot/bot-config.js +64 -3
  6. package/dist/bot/bot-manager.d.ts +2 -0
  7. package/dist/bot/bot-manager.js +9 -2
  8. package/dist/bot/bot.d.ts +33 -0
  9. package/dist/bot/bot.js +461 -160
  10. package/dist/bot/services/message-classifier.js +17 -0
  11. package/dist/bot/services/permission-guard.d.ts +52 -0
  12. package/dist/bot/services/permission-guard.js +149 -0
  13. package/dist/bot/services/types.d.ts +5 -0
  14. package/dist/bot/services/typing-indicator.d.ts +6 -1
  15. package/dist/bot/services/typing-indicator.js +19 -3
  16. package/dist/cli.js +0 -0
  17. package/dist/config.d.ts +6 -1
  18. package/dist/config.js +43 -0
  19. package/dist/core.js +3 -6
  20. package/dist/lib/discussion-lock.d.ts +42 -0
  21. package/dist/lib/discussion-lock.js +110 -0
  22. package/dist/mcp/UserContextCache.d.ts +5 -0
  23. package/dist/mcp/UserContextCache.js +51 -19
  24. package/dist/mcp/hailer-clients.d.ts +19 -1
  25. package/dist/mcp/hailer-clients.js +158 -24
  26. package/dist/mcp/session-store.d.ts +68 -0
  27. package/dist/mcp/session-store.js +169 -0
  28. package/dist/mcp/signal-handler.js +2 -0
  29. package/dist/mcp/tool-registry.d.ts +17 -4
  30. package/dist/mcp/tool-registry.js +37 -7
  31. package/dist/mcp/tools/activity.js +99 -7
  32. package/dist/mcp/tools/app-scaffold.js +304 -336
  33. package/dist/mcp/tools/bot-config/constants.d.ts +23 -0
  34. package/dist/mcp/tools/bot-config/constants.js +94 -0
  35. package/dist/mcp/tools/bot-config/core.d.ts +253 -0
  36. package/dist/mcp/tools/bot-config/core.js +2456 -0
  37. package/dist/mcp/tools/bot-config/index.d.ts +10 -0
  38. package/dist/mcp/tools/bot-config/index.js +59 -0
  39. package/dist/mcp/tools/bot-config/tools.d.ts +7 -0
  40. package/dist/mcp/tools/bot-config/tools.js +15 -0
  41. package/dist/mcp/tools/bot-config/types.d.ts +50 -0
  42. package/dist/mcp/tools/bot-config/types.js +6 -0
  43. package/dist/mcp/tools/bug-fixer-tools.d.ts +45 -0
  44. package/dist/mcp/tools/bug-fixer-tools.js +1096 -0
  45. package/dist/mcp/tools/company.d.ts +9 -0
  46. package/dist/mcp/tools/company.js +88 -0
  47. package/dist/mcp/tools/discussion.js +68 -0
  48. package/dist/mcp/tools/document.d.ts +11 -0
  49. package/dist/mcp/tools/document.js +741 -0
  50. package/dist/mcp/tools/investigate.d.ts +9 -0
  51. package/dist/mcp/tools/investigate.js +254 -0
  52. package/dist/mcp/tools/workflow-permissions.d.ts +15 -0
  53. package/dist/mcp/tools/workflow-permissions.js +204 -0
  54. package/dist/mcp/tools/workflow.js +57 -18
  55. package/dist/mcp/utils/index.d.ts +2 -0
  56. package/dist/mcp/utils/index.js +12 -1
  57. package/dist/mcp/utils/role-utils.d.ts +74 -0
  58. package/dist/mcp/utils/role-utils.js +151 -0
  59. package/dist/mcp/utils/types.d.ts +43 -1
  60. package/dist/mcp/utils/types.js +14 -0
  61. package/dist/mcp/webhook-handler.d.ts +4 -0
  62. package/dist/mcp/webhook-handler.js +8 -0
  63. package/dist/mcp-server.d.ts +23 -2
  64. package/dist/mcp-server.js +639 -127
  65. package/dist/plugins/vipunen/client.d.ts +150 -0
  66. package/dist/plugins/vipunen/client.js +535 -0
  67. package/dist/plugins/vipunen/config/schema-config.json +19 -0
  68. package/dist/plugins/vipunen/config/schema-doc.json +22 -0
  69. package/dist/plugins/vipunen/index.d.ts +41 -0
  70. package/dist/plugins/vipunen/index.js +88 -0
  71. package/dist/plugins/vipunen/tools.d.ts +26 -0
  72. package/dist/plugins/vipunen/tools.js +501 -0
  73. package/dist/stdio-server.d.ts +14 -0
  74. package/dist/stdio-server.js +101 -0
  75. package/package.json +2 -1
  76. package/.claude/agents/agent-ada-skill-builder.md +0 -94
  77. package/.claude/agents/agent-alejandro-function-fields.md +0 -342
  78. package/.claude/agents/agent-bjorn-config-audit.md +0 -103
  79. package/.claude/agents/agent-builder-agent-creator.md +0 -130
  80. package/.claude/agents/agent-code-simplifier.md +0 -53
  81. package/.claude/agents/agent-dmitri-activity-crud.md +0 -159
  82. package/.claude/agents/agent-giuseppe-app-builder.md +0 -247
  83. package/.claude/agents/agent-gunther-mcp-tools.md +0 -39
  84. package/.claude/agents/agent-helga-workflow-config.md +0 -204
  85. package/.claude/agents/agent-igor-activity-mover-automation.md +0 -125
  86. package/.claude/agents/agent-ingrid-doc-templates.md +0 -261
  87. package/.claude/agents/agent-ivan-monolith.md +0 -154
  88. package/.claude/agents/agent-kenji-data-reader.md +0 -86
  89. package/.claude/agents/agent-lars-code-inspector.md +0 -102
  90. package/.claude/agents/agent-marco-mockup-builder.md +0 -110
  91. package/.claude/agents/agent-marcus-api-documenter.md +0 -323
  92. package/.claude/agents/agent-marketplace-publisher.md +0 -280
  93. package/.claude/agents/agent-marketplace-reviewer.md +0 -309
  94. package/.claude/agents/agent-permissions-handler.md +0 -208
  95. package/.claude/agents/agent-simple-writer.md +0 -48
  96. package/.claude/agents/agent-svetlana-code-review.md +0 -171
  97. package/.claude/agents/agent-tanya-test-runner.md +0 -333
  98. package/.claude/agents/agent-ui-designer.md +0 -100
  99. package/.claude/agents/agent-viktor-sql-insights.md +0 -212
  100. package/.claude/agents/agent-web-search.md +0 -55
  101. package/.claude/agents/agent-yevgeni-discussions.md +0 -45
  102. package/.claude/agents/agent-zara-zapier.md +0 -159
  103. package/.claude/commands/app-squad.md +0 -135
  104. package/.claude/commands/audit-squad.md +0 -158
  105. package/.claude/commands/autoplan.md +0 -563
  106. package/.claude/commands/cleanup-squad.md +0 -98
  107. package/.claude/commands/config-squad.md +0 -106
  108. package/.claude/commands/crud-squad.md +0 -87
  109. package/.claude/commands/data-squad.md +0 -97
  110. package/.claude/commands/debug-squad.md +0 -303
  111. package/.claude/commands/doc-squad.md +0 -65
  112. package/.claude/commands/handoff.md +0 -137
  113. package/.claude/commands/health.md +0 -49
  114. package/.claude/commands/help.md +0 -29
  115. package/.claude/commands/help:agents.md +0 -151
  116. package/.claude/commands/help:commands.md +0 -78
  117. package/.claude/commands/help:faq.md +0 -79
  118. package/.claude/commands/help:plugins.md +0 -50
  119. package/.claude/commands/help:skills.md +0 -93
  120. package/.claude/commands/help:tools.md +0 -75
  121. package/.claude/commands/hotfix-squad.md +0 -112
  122. package/.claude/commands/integration-squad.md +0 -82
  123. package/.claude/commands/janitor-squad.md +0 -167
  124. package/.claude/commands/learn-auto.md +0 -120
  125. package/.claude/commands/learn.md +0 -120
  126. package/.claude/commands/mcp-list.md +0 -27
  127. package/.claude/commands/onboard-squad.md +0 -140
  128. package/.claude/commands/plan-workspace.md +0 -732
  129. package/.claude/commands/prd.md +0 -130
  130. package/.claude/commands/project-status.md +0 -82
  131. package/.claude/commands/publish.md +0 -138
  132. package/.claude/commands/recap.md +0 -69
  133. package/.claude/commands/restore.md +0 -64
  134. package/.claude/commands/review-squad.md +0 -152
  135. package/.claude/commands/save.md +0 -24
  136. package/.claude/commands/stats.md +0 -19
  137. package/.claude/commands/swarm.md +0 -210
  138. package/.claude/commands/tool-builder.md +0 -39
  139. package/.claude/commands/ws-pull.md +0 -44
  140. package/.claude/hooks/_shared-memory.cjs +0 -305
  141. package/.claude/hooks/_utils.cjs +0 -108
  142. package/.claude/hooks/agent-failure-detector.cjs +0 -383
  143. package/.claude/hooks/agent-usage-logger.cjs +0 -204
  144. package/.claude/hooks/app-edit-guard.cjs +0 -494
  145. package/.claude/hooks/auto-learn.cjs +0 -304
  146. package/.claude/hooks/bash-guard.cjs +0 -272
  147. package/.claude/hooks/builder-mode-manager.cjs +0 -354
  148. package/.claude/hooks/bulk-activity-guard.cjs +0 -271
  149. package/.claude/hooks/context-watchdog.cjs +0 -230
  150. package/.claude/hooks/delegation-reminder.cjs +0 -465
  151. package/.claude/hooks/design-system-lint.cjs +0 -271
  152. package/.claude/hooks/post-scaffold-hook.cjs +0 -181
  153. package/.claude/hooks/prompt-guard.cjs +0 -354
  154. package/.claude/hooks/publish-template-guard.cjs +0 -147
  155. package/.claude/hooks/session-start.cjs +0 -35
  156. package/.claude/hooks/shared-memory-writer.cjs +0 -147
  157. package/.claude/hooks/skill-injector.cjs +0 -140
  158. package/.claude/hooks/skill-usage-logger.cjs +0 -258
  159. package/.claude/hooks/src-edit-guard.cjs +0 -240
  160. package/.claude/hooks/sync-marketplace-agents.cjs +0 -346
  161. package/.claude/settings.json +0 -257
  162. package/.claude/skills/SDK-activity-patterns/SKILL.md +0 -428
  163. package/.claude/skills/SDK-document-templates/SKILL.md +0 -1033
  164. package/.claude/skills/SDK-function-fields/SKILL.md +0 -542
  165. package/.claude/skills/SDK-generate-skill/SKILL.md +0 -92
  166. package/.claude/skills/SDK-init-skill/SKILL.md +0 -127
  167. package/.claude/skills/SDK-insight-queries/SKILL.md +0 -787
  168. package/.claude/skills/SDK-ws-config-skill/SKILL.md +0 -1139
  169. package/.claude/skills/agent-structure/SKILL.md +0 -98
  170. package/.claude/skills/api-documentation-patterns/SKILL.md +0 -474
  171. package/.claude/skills/chrome-mcp-reference/SKILL.md +0 -370
  172. package/.claude/skills/delegation-routing/SKILL.md +0 -202
  173. package/.claude/skills/frontend-design/SKILL.md +0 -254
  174. package/.claude/skills/hailer-activity-mover/SKILL.md +0 -213
  175. package/.claude/skills/hailer-api-client/SKILL.md +0 -518
  176. package/.claude/skills/hailer-app-builder/SKILL.md +0 -1434
  177. package/.claude/skills/hailer-apps-pictures/SKILL.md +0 -269
  178. package/.claude/skills/hailer-design-system/SKILL.md +0 -235
  179. package/.claude/skills/hailer-monolith-automations/SKILL.md +0 -686
  180. package/.claude/skills/hailer-permissions-system/SKILL.md +0 -121
  181. package/.claude/skills/hailer-project-protocol/SKILL.md +0 -488
  182. package/.claude/skills/hailer-rest-api/SKILL.md +0 -61
  183. package/.claude/skills/hailer-rest-api/hailer-activities.md +0 -184
  184. package/.claude/skills/hailer-rest-api/hailer-admin.md +0 -473
  185. package/.claude/skills/hailer-rest-api/hailer-calendar.md +0 -256
  186. package/.claude/skills/hailer-rest-api/hailer-feed.md +0 -249
  187. package/.claude/skills/hailer-rest-api/hailer-insights.md +0 -195
  188. package/.claude/skills/hailer-rest-api/hailer-messaging.md +0 -276
  189. package/.claude/skills/hailer-rest-api/hailer-workflows.md +0 -283
  190. package/.claude/skills/insight-join-patterns/SKILL.md +0 -174
  191. package/.claude/skills/integration-patterns/SKILL.md +0 -421
  192. package/.claude/skills/json-only-output/SKILL.md +0 -72
  193. package/.claude/skills/lsp-setup/SKILL.md +0 -160
  194. package/.claude/skills/mcp-direct-tools/SKILL.md +0 -153
  195. package/.claude/skills/optional-parameters/SKILL.md +0 -72
  196. package/.claude/skills/publish-hailer-app/SKILL.md +0 -244
  197. package/.claude/skills/testing-patterns/SKILL.md +0 -630
  198. package/.claude/skills/tool-builder/SKILL.md +0 -250
  199. package/.claude/skills/tool-parameter-usage/SKILL.md +0 -126
  200. package/.claude/skills/tool-response-verification/SKILL.md +0 -92
  201. package/.claude/skills/zapier-hailer-patterns/SKILL.md +0 -581
  202. package/.mcp.json +0 -13
  203. package/.opencode/agent/agent-ada-skill-builder.md +0 -35
  204. package/.opencode/agent/agent-alejandro-function-fields.md +0 -39
  205. package/.opencode/agent/agent-bjorn-config-audit.md +0 -36
  206. package/.opencode/agent/agent-builder-agent-creator.md +0 -39
  207. package/.opencode/agent/agent-code-simplifier.md +0 -31
  208. package/.opencode/agent/agent-dmitri-activity-crud.md +0 -40
  209. package/.opencode/agent/agent-giuseppe-app-builder.md +0 -37
  210. package/.opencode/agent/agent-gunther-mcp-tools.md +0 -39
  211. package/.opencode/agent/agent-helga-workflow-config.md +0 -203
  212. package/.opencode/agent/agent-igor-activity-mover-automation.md +0 -46
  213. package/.opencode/agent/agent-ingrid-doc-templates.md +0 -39
  214. package/.opencode/agent/agent-ivan-monolith.md +0 -46
  215. package/.opencode/agent/agent-kenji-data-reader.md +0 -53
  216. package/.opencode/agent/agent-lars-code-inspector.md +0 -28
  217. package/.opencode/agent/agent-marco-mockup-builder.md +0 -42
  218. package/.opencode/agent/agent-marcus-api-documenter.md +0 -53
  219. package/.opencode/agent/agent-marketplace-publisher.md +0 -44
  220. package/.opencode/agent/agent-marketplace-reviewer.md +0 -42
  221. package/.opencode/agent/agent-permissions-handler.md +0 -50
  222. package/.opencode/agent/agent-simple-writer.md +0 -45
  223. package/.opencode/agent/agent-svetlana-code-review.md +0 -39
  224. package/.opencode/agent/agent-tanya-test-runner.md +0 -57
  225. package/.opencode/agent/agent-ui-designer.md +0 -56
  226. package/.opencode/agent/agent-viktor-sql-insights.md +0 -34
  227. package/.opencode/agent/agent-web-search.md +0 -42
  228. package/.opencode/agent/agent-yevgeni-discussions.md +0 -37
  229. package/.opencode/agent/agent-zara-zapier.md +0 -53
  230. package/.opencode/commands/app-squad.md +0 -135
  231. package/.opencode/commands/audit-squad.md +0 -158
  232. package/.opencode/commands/autoplan.md +0 -563
  233. package/.opencode/commands/cleanup-squad.md +0 -98
  234. package/.opencode/commands/config-squad.md +0 -106
  235. package/.opencode/commands/crud-squad.md +0 -87
  236. package/.opencode/commands/data-squad.md +0 -97
  237. package/.opencode/commands/debug-squad.md +0 -303
  238. package/.opencode/commands/doc-squad.md +0 -65
  239. package/.opencode/commands/handoff.md +0 -137
  240. package/.opencode/commands/health.md +0 -49
  241. package/.opencode/commands/help-agents.md +0 -151
  242. package/.opencode/commands/help-commands.md +0 -32
  243. package/.opencode/commands/help-faq.md +0 -29
  244. package/.opencode/commands/help-plugins.md +0 -28
  245. package/.opencode/commands/help-skills.md +0 -7
  246. package/.opencode/commands/help-tools.md +0 -40
  247. package/.opencode/commands/help.md +0 -28
  248. package/.opencode/commands/hotfix-squad.md +0 -112
  249. package/.opencode/commands/integration-squad.md +0 -82
  250. package/.opencode/commands/janitor-squad.md +0 -167
  251. package/.opencode/commands/learn-auto.md +0 -120
  252. package/.opencode/commands/learn.md +0 -120
  253. package/.opencode/commands/mcp-list.md +0 -27
  254. package/.opencode/commands/onboard-squad.md +0 -140
  255. package/.opencode/commands/plan-workspace.md +0 -732
  256. package/.opencode/commands/prd.md +0 -131
  257. package/.opencode/commands/project-status.md +0 -82
  258. package/.opencode/commands/publish.md +0 -138
  259. package/.opencode/commands/recap.md +0 -69
  260. package/.opencode/commands/restore.md +0 -64
  261. package/.opencode/commands/review-squad.md +0 -152
  262. package/.opencode/commands/save.md +0 -24
  263. package/.opencode/commands/stats.md +0 -19
  264. package/.opencode/commands/swarm.md +0 -210
  265. package/.opencode/commands/tool-builder.md +0 -39
  266. package/.opencode/commands/ws-pull.md +0 -44
  267. package/.opencode/opencode.json +0 -28
  268. package/SESSION-HANDOFF.md +0 -68
  269. package/inbox/2026-03-04-bot-config-patterns.md +0 -24
  270. package/scripts/postinstall.cjs +0 -64
  271. package/scripts/test-hal-tools.ts +0 -154
@@ -1,65 +0,0 @@
1
- ---
2
- description: Document API endpoints with Lars and Marcus
3
- argument-hint: "endpoint or module to document"
4
- allowed-tools: Task, Bash
5
- ---
6
- # Doc Squad
7
-
8
- Sequential pipeline: Code analysis, then generate documentation.
9
-
10
- **Agents:**
11
- 1. **Lars** - LSP code analysis (inspect types, schemas, function signatures)
12
- 2. **Marcus** - API documentation (generate endpoint docs from analysis)
13
-
14
- **Goal:** $ARGUMENTS
15
-
16
- ## Protocol
17
-
18
- ### Step 1: Lars (LSP Analysis)
19
-
20
- Spawn Lars to analyze code and extract types/schemas:
21
-
22
- ```
23
- Task(subagent_type="agent-lars-code-inspector", prompt="Inspect code for: $ARGUMENTS. Extract:\n- Function signatures\n- Type definitions\n- Return types\n- Parameter schemas\n- Joi/Zod validation rules\n\nUse LSP if available. Return structured analysis with types and schemas.")
24
- ```
25
-
26
- Wait for result. Save the analysis output - Marcus needs these type definitions.
27
-
28
- ### Step 2: Marcus (API Documentation)
29
-
30
- Spawn Marcus with the code analysis from Lars:
31
-
32
- ```
33
- Task(subagent_type="agent-marcus-api-documenter", prompt="Generate API documentation for: $ARGUMENTS.\n\nCode analysis from Lars:\n[PASTE LARS'S OUTPUT - types, schemas, function signatures]\n\nCreate comprehensive endpoint documentation including:\n- Endpoint path and method\n- Description\n- Parameters and types\n- Request/response examples\n- Error codes and handling\n- Usage examples with @hailer/cli")
34
- ```
35
-
36
- Wait for result. If `"status": "ready_to_push"`:
37
- - Run the push commands Marcus provides
38
-
39
- ### Step 3: Report
40
-
41
- ```markdown
42
- ## Doc Squad Complete
43
-
44
- ### Lars (Code Analysis)
45
- - Files analyzed: [count]
46
- - Functions found: [count]
47
- - Types extracted: [count]
48
- - Schemas identified: [list]
49
-
50
- ### Marcus (Documentation)
51
- - Endpoints documented: [count]
52
- - Examples created: [count]
53
- - Files generated: [list]
54
-
55
- ### Next Steps
56
- - Review generated documentation
57
- - Add to API reference
58
- - Test examples with @hailer/cli
59
- ```
60
-
61
- ## Notes
62
-
63
- - Lars runs first to extract accurate types - never guess schemas
64
- - Marcus creates human-friendly docs from the type analysis
65
- - Documentation stays in sync with actual code signatures
@@ -1,137 +0,0 @@
1
- ---
2
- description: Create or update session handoff for continuity
3
- argument-hint: [optional summary]
4
- ---
5
- # Session Handoff
6
-
7
- Context is getting full or session is ending. Create/update handoff for next session.
8
-
9
- ## Step 0: Capture Learnings (Auto-Learn)
10
-
11
- Before creating handoff, scan for learnings from this session.
12
-
13
- **Run the learn-auto logic:**
14
- 1. Scan conversation for: error→fix patterns, user corrections, explicit insights, agent failures
15
- 2. Present any findings to user for confirmation
16
- 3. Write confirmed learnings to inbox
17
-
18
- This ensures valuable insights aren't lost when session ends.
19
-
20
- If no learnings found or user skips, continue to Step 1.
21
-
22
- ---
23
-
24
- ## Step 1: Gather Current State
25
-
26
- Collect:
27
- - What was worked on this session
28
- - Current state of in-progress work
29
- - Any blockers or issues found
30
- - Uncommitted changes (`git status`)
31
- - Next steps
32
-
33
- ## Step 2: Graduate Auto Memory
34
-
35
- Check if the project has auto memory entries to graduate.
36
-
37
- **Find the memory file:**
38
- 1. Get project root from working directory
39
- 2. Transform path: replace `/` with `-` (e.g., `/Users/timoahonen/my-project` → `-Users-timoahonen-my-project`)
40
- 3. Memory path: `~/.claude/projects/<transformed-path>/memory/MEMORY.md`
41
-
42
- **If MEMORY.md exists and has content:**
43
- 1. Read it
44
- 2. For each entry, decide:
45
- - **Project-specific gotcha** (field ID quirks, workflow-specific behavior) → Move to SESSION-HANDOFF.md "Context to Preserve"
46
- - **Reusable pattern** (SDK behavior, API gotchas, agent tips) → Capture via `/learn-hub` or note for inbox
47
- - **Already in a skill or CLAUDE.md** → Remove (it graduated in a previous session)
48
- - **Stale or wrong** → Remove
49
- 3. Remove graduated/stale entries from MEMORY.md
50
- 4. Keep only entries that are still being validated (discovered this session, not yet confirmed)
51
-
52
- **Goal:** MEMORY.md is a scratch buffer, not permanent storage. At handoff, everything graduates out.
53
-
54
- ## Step 3: Check for Active Tasks
55
-
56
- Run `TaskList`. If tasks exist:
57
- - Export pending/in_progress tasks to handoff
58
- - Summarize completed tasks in "What Was Done"
59
-
60
- ## Step 4: Update Documentation (if applicable)
61
-
62
- **Did this session complete any features?**
63
-
64
- If YES:
65
- - Update the PRD file (docs/prd-*.md): change Status to "Complete", check off completed items
66
- - Update DEVELOPMENT.md Roadmap: mark feature as Complete
67
- - Update "Current Status"
68
- - Add any technical decisions
69
- - Note new issues discovered
70
-
71
- ## Step 5: Create/Update SESSION-HANDOFF.md
72
-
73
- If file exists → UPDATE it (remove stale items, keep relevant context)
74
- If not exists → CREATE it
75
-
76
- ```markdown
77
- # Session Handoff
78
-
79
- **Last Updated:** YYYY-MM-DD HH:MM
80
-
81
- ## What Was Done
82
- - [Completed items with context]
83
-
84
- ## Current Work
85
- - [What's actively being worked on]
86
- - [State of in-progress features]
87
-
88
- ## Pending Tasks
89
- _From TaskList - will be recreated next session_
90
- - [ ] Task description
91
- - [ ] Task description
92
-
93
- ## Blockers / Issues
94
- - [Problems encountered]
95
- - [Things that need investigation]
96
-
97
- ## Next Steps
98
- 1. [First thing to do when resuming]
99
- 2. [Second thing]
100
- 3. [Third thing]
101
-
102
- ## Key Decisions
103
- - [Decision]: [Why]
104
-
105
- ## Files Modified
106
- - `path/to/file` - [what changed]
107
-
108
- ## Context to Preserve
109
- - [Important notes that shouldn't be lost]
110
- - [Gotchas discovered]
111
- ```
112
-
113
- ## Step 6: Save Progress
114
-
115
- If git is initialized and there are changes:
116
- ```
117
- /save "Session handoff: [brief summary]"
118
- ```
119
-
120
- ## Step 7: Report
121
-
122
- Tell user:
123
- ```
124
- Session handoff complete:
125
- - SESSION-HANDOFF.md updated
126
- - DEVELOPMENT.md updated (if features completed)
127
- - [X] files have uncommitted changes
128
-
129
- To continue: Start new session - handoff will be read automatically.
130
- ```
131
-
132
- ## Notes
133
-
134
- - **UPDATE, don't delete** - SESSION-HANDOFF.md accumulates context
135
- - Remove items that are no longer relevant
136
- - Keep decisions and gotchas even after tasks complete
137
- - Next session reads handoff, then updates it (removes completed items)
@@ -1,49 +0,0 @@
1
- ---
2
- description: Run project health check and config audit
3
- allowed-tools: Task, Bash, Read
4
- ---
5
- # Project Health Check
6
-
7
- Run a quick audit of the current project configuration.
8
-
9
- **Check the following:**
10
-
11
- 1. **Workspace sync status**
12
- - Run `npm run pull` to check connectivity
13
- - Compare local workspace/ timestamps with server
14
-
15
- 2. **CLAUDE.md accuracy**
16
- - Does CLAUDE.md exist?
17
- - Are listed agents present in .claude/agents/?
18
- - Are referenced skills present in .claude/skills/?
19
-
20
- 3. **Hooks integrity**
21
- - Are all hooks in settings.json present in .claude/hooks/?
22
- - Do hook files have execute permissions?
23
-
24
- 4. **Dependencies**
25
- - Run `npm outdated` to check for updates
26
- - Check if node_modules exists
27
-
28
- 5. **Git status**
29
- - Any uncommitted changes?
30
- - Is branch up to date with remote?
31
-
32
- **Output format:**
33
-
34
- ```
35
- ## Health Check - [Project Name]
36
-
37
- [x] Workspace synced (last pull: X minutes ago)
38
- [x] CLAUDE.md valid (15 agents, 10 skills)
39
- [x] Hooks intact (8/8 present)
40
- [ ] Dependencies outdated (3 packages)
41
- [x] Git clean
42
-
43
- ### Issues Found
44
- - @hailer/sdk outdated: 0.8.3 → 0.8.5
45
- - Missing hook: xyz.cjs referenced but not found
46
-
47
- ### Recommendations
48
- - Run `npm update @hailer/sdk`
49
- ```
@@ -1,29 +0,0 @@
1
- ---
2
- description: Show help topics for Hailer MCP
3
- ---
4
-
5
- # Hailer MCP Help
6
-
7
- Display available help topics to the user.
8
-
9
- ## Output
10
-
11
- ```
12
- ╭─────────────────────────────────────────╮
13
- │ HAILER MCP HELP SYSTEM │
14
- ╰─────────────────────────────────────────╯
15
-
16
- Available topics:
17
-
18
- /help agents How agents work and delegation
19
- /help skills Skills reference (patterns, templates, fixes)
20
- /help commands All slash commands
21
- /help tools MCP tools reference
22
- /help plugins Plugin system (install, uninstall, publish)
23
- /help faq Common questions
24
-
25
- ───────────────────────────────────────────
26
- Type /help <topic> for details
27
- ```
28
-
29
- ## Always show this exactly as formatted above.
@@ -1,151 +0,0 @@
1
- ---
2
- description: Agent usage help for Hailer MCP
3
- ---
4
-
5
- # Agents Help
6
-
7
- Display agent usage instructions to the user.
8
-
9
- ## Output
10
-
11
- ```
12
- ╭─────────────────────────────────────────╮
13
- │ HAILER MCP - AGENTS │
14
- ╰─────────────────────────────────────────╯
15
-
16
- Agents are AI specialists that handle specific tasks. The orchestrator
17
- (Claude) delegates work to them based on the task type.
18
-
19
- HOW IT WORKS:
20
-
21
- 1. You ask Claude to do something
22
- 2. Claude identifies the right agent
23
- 3. Claude spawns the agent with your task
24
- 4. Agent does the work, returns JSON result
25
- 5. Claude interprets result and reports back
26
-
27
- ─────────────────────────────────────────────────────────────────────────
28
-
29
- AGENT RELATIONSHIPS (who calls who):
30
-
31
- Kenji → Dmitri Kenji gets IDs, Dmitri creates/updates
32
- Kenji → Helga Kenji gets structure, Helga modifies config
33
- Kenji → Alejandro Kenji gets field IDs, Alejandro creates functions
34
- Kenji → Viktor Kenji gets schema, Viktor creates insights
35
- Kenji → Giuseppe Kenji gets data structure, Giuseppe builds app
36
- Marco → Giuseppe Marco validates mockup, Giuseppe builds production
37
- Ada ← (any failure) Ada creates skills from repeated failures
38
-
39
- Common chains:
40
- • Add field: Kenji → Helga → (push) → Kenji (verify)
41
- • Create app: Kenji → Viktor → Giuseppe → Tanya
42
- • Activity CRUD: Kenji → Dmitri
43
-
44
- ─────────────────────────────────────────────────────────────────────────
45
-
46
- AGENT TOOL ACCESS:
47
-
48
- MCP Tools Only (restricted):
49
- Kenji - list_workflows, count_activities, list_activities
50
- Dmitri - create_activity, update_activity
51
- Permissions - list_apps, add/remove_app_member, search_users
52
- Yevgeni - discussion tools (list, fetch, post, invite)
53
-
54
- Code Tools (Bash, Read, Write, Edit):
55
- Giuseppe - App building (+scaffold_hailer_app)
56
- Gunther - MCP tool building
57
- Helga - Workflow config
58
- Igor - Activity movers
59
- Ivan - Monolith automations
60
- Marco - Mockups
61
- Ingrid - Document templates
62
-
63
- Read-Only (Read, Glob, Grep):
64
- Svetlana - Code review
65
- Bjorn - Config audit
66
- Tanya - Test runner (+ Bash for test execution)
67
-
68
- Light Edit (Read, Edit, Glob):
69
- Simple Writer - Basic edits only (haiku model, fast)
70
- Code Simplifier - Simplify code for clarity (sonnet model)
71
-
72
- Special:
73
- Lars - LSP only (code inspection)
74
- Ada - Read, Write, Edit, Glob (skill creation)
75
-
76
- ─────────────────────────────────────────────────────────────────────────
77
-
78
- AGENT CATEGORIES:
79
-
80
- Data Operations:
81
- agent-kenji-data-reader - Read workflows, fields, activities (LOCAL FIRST)
82
- agent-dmitri-activity-crud - Create/update activities
83
- agent-yevgeni-discussions - Read/post discussion messages
84
- agent-permissions-handler - Manage app access
85
- agent-simple-writer - Basic code edits (ID swaps, string replacements)
86
-
87
- Configuration:
88
- agent-helga-workflow-config - Manage workflows, fields, phases
89
- agent-alejandro-function-fields - Calculated fields + name functions
90
- agent-viktor-sql-insights - SQL-like reports
91
- agent-ingrid-doc-templates - PDF/CSV document templates
92
-
93
- Development:
94
- agent-giuseppe-app-builder - Build Hailer apps (production)
95
- agent-marco-mockup-builder - Build demo apps (validation)
96
- agent-gunther-mcp-tools - Build MCP tools
97
- agent-igor-activity-mover - Phase cascade microservices
98
- agent-ivan-monolith - Monolith automations
99
- agent-zara-zapier - Zapier integrations
100
-
101
- Quality:
102
- agent-svetlana-code-review - Code review (READ-ONLY)
103
- agent-tanya-test-runner - Run tests
104
- agent-lars-code-inspector - Find bugs, dead code (LSP)
105
- agent-bjorn-config-audit - Audit configuration
106
- agent-code-simplifier - Simplify code for clarity
107
-
108
- Meta:
109
- agent-ada-skill-builder - Create skills from failures
110
- agent-builder-agent-creator - Create new agents
111
- agent-marcus-api-documenter - Document API endpoints
112
- agent-marketplace-publisher - Publish plugins
113
- agent-marketplace-reviewer - Review plugin PRs
114
-
115
- ─────────────────────────────────────────────────────────────────────────
116
-
117
- CRITICAL BOUNDARIES:
118
-
119
- Kenji vs Dmitri:
120
- Kenji = READ (schema, lists, counts)
121
- Dmitri = WRITE (create, update)
122
- Dmitri needs IDs from Kenji first!
123
-
124
- Marco vs Giuseppe:
125
- Marco = DEMO apps (non-functional, for validation)
126
- Giuseppe = PRODUCTION apps (real data, functional)
127
- Use Marco first to validate concept, then Giuseppe
128
-
129
- ─────────────────────────────────────────────────────────────────────────
130
-
131
- EXAMPLE USAGE:
132
-
133
- "Create a customer activity in the CRM workflow"
134
- → Kenji (get IDs) → Dmitri (create activity)
135
-
136
- "Build a dashboard app showing orders"
137
- → Kenji (get schema) → Giuseppe (build app)
138
-
139
- "Add a calculated total field"
140
- → Kenji (get field IDs) → Alejandro (create function)
141
-
142
- "Review my code changes"
143
- → Svetlana (code review)
144
-
145
- ─────────────────────────────────────────────────────────────────────────
146
-
147
- SEE ALSO:
148
- /stats - View agent usage statistics
149
- /help plugins - Install more agents
150
- /help commands - All slash commands
151
- ```
@@ -1,78 +0,0 @@
1
- ---
2
- description: All slash commands for Hailer MCP
3
- ---
4
-
5
- # Commands Reference
6
-
7
- Display all available commands to the user.
8
-
9
- ## Output
10
-
11
- ```
12
- ╭─────────────────────────────────────────╮
13
- │ HAILER MCP - ALL COMMANDS │
14
- ╰─────────────────────────────────────────╯
15
-
16
- HELP SYSTEM
17
- /help Show all help topics
18
- /help:agents Agent usage, relationships, tool access
19
- /help:commands This reference
20
- /help:plugins Plugin system guide
21
- /help:tools MCP tools reference
22
- /help:faq Common questions
23
-
24
- PLUGINS
25
- /marketplace-setup Clone/update marketplace repo
26
- /list-plugins List available plugins
27
- /install-plugin <name> Install a plugin
28
- /uninstall-plugin <name> Remove a plugin
29
- /publish-plugin Publish to marketplace
30
- /publish Publish (alias)
31
- /version-check Show out-of-sync plugins
32
-
33
- WORKSPACE
34
- /ws-pull Pull workspace config from Hailer (read-only)
35
-
36
- DEVELOPMENT
37
- /tool-builder Enter MCP tool building mode
38
- /stats View agent usage statistics
39
- /stats recent Show last 20 agent calls
40
- /health Run project health check
41
-
42
- PLANNING
43
- /autoplan <desc> Quick project planning with PRDs
44
- /plan-workspace <desc> Thorough workspace discovery (10 phases)
45
- /prd <feature> Create PRD for a feature
46
- /project-status Sync DEVELOPMENT.md with PRD statuses
47
-
48
- SQUADS (multi-agent commands)
49
- /review-squad [files] Parallel+Loop: Svetlana + Lars + Tanya + Simple Writer
50
- /cleanup-squad [files] Parallel: Bjorn + Code Simplifier + Lars
51
- /app-squad <desc> Pipeline+Loop: Kenji → UI Designer → Giuseppe → Tanya (build verify)
52
- /config-squad <desc> Pipeline: Helga → Alejandro → Viktor
53
- /crud-squad <desc> Pipeline: Kenji → Dmitri → Kenji (verify)
54
- /data-squad <desc> Pipeline: Kenji → Alejandro → Viktor
55
- /integration-squad <desc> Pipeline: Kenji → Ivan → Tanya
56
- /doc-squad <desc> Pipeline: Lars → Marcus
57
- /hotfix-squad <desc> Pipeline+Loop: Tanya → Simple Writer → Svetlana (max 3 iter)
58
- /debug-squad <desc> Parallel+Loop: Kenji + Viktor + Svetlana + Tanya (--debate for competing hypotheses)
59
- /audit-squad Parallel: Svetlana + Permissions + Gunther (security audit)
60
- /onboard-squad <desc> Pipeline+Loop: Helga → Alejandro → Giuseppe → Bjorn (bootstrap)
61
- /janitor-squad Parallel+Loop: Lars + Bjorn + Viktor → Simple Writer (cleanup)
62
- /swarm <desc> Swarm: orchestrator picks agents, splits work, dispatches parallel workers
63
-
64
- SESSION
65
- /recap [focus] Resume session - load handoff, status, learnings
66
- /save <message> Save changes to git (local commit)
67
- /restore Restore to a previous save point
68
- /handoff Create session handoff for next session
69
- /learn <cat> <desc> Capture learning and apply fix
70
-
71
- ───────────────────────────────────────────
72
- Examples:
73
- /plan-workspace "CRM system" Thorough discovery for new project
74
- /autoplan "Add invoicing" Quick planning for feature
75
- /prd "customer portal" Create PRD for feature
76
- /save "Add customer form" Local git commit
77
- /learn agent/kenji "Check enums first"
78
- ```
@@ -1,79 +0,0 @@
1
- ---
2
- description: Frequently asked questions for Hailer MCP
3
- ---
4
-
5
- # FAQ
6
-
7
- Display frequently asked questions to the user.
8
-
9
- ## Output
10
-
11
- ```
12
- ╭─────────────────────────────────────────╮
13
- │ HAILER MCP - FAQ │
14
- ╰─────────────────────────────────────────╯
15
-
16
- Q: Why is Claude failing at Hailer tasks?
17
- A: Check two things:
18
- 1. Run /mcp-list to verify Claude is connected to the Hailer MCP
19
- 2. Make sure you're running Claude from the correct project folder
20
- (the one with CLAUDE.md and .claude/ folder)
21
-
22
- Q: Why do I need to restart Claude Code after installing a plugin?
23
- A: Claude Code loads agent definitions at startup. New agents
24
- won't be available until restart. Use 'claude -c' to keep context.
25
-
26
- Q: What's the difference between /plugin install and /install-plugin?
27
- A: /plugin install - Claude's built-in plugin system (global)
28
- /install-plugin - Our local marketplace system (per-project)
29
-
30
- Q: Can I create my own agents?
31
- A: Yes! Add a markdown file to .claude/agents/ following the agent
32
- structure. See existing agents for examples.
33
-
34
- Q: How do I publish my agent to the marketplace?
35
- A: Use /publish-plugin. It creates a PR that gets auto-reviewed.
36
- See /help plugins for details.
37
-
38
- Q: Why does the orchestrator delegate instead of doing work directly?
39
- A: Delegation keeps specialized knowledge in focused agents,
40
- reducing context size and improving accuracy.
41
-
42
- Q: What happens if an agent fails?
43
- A: The orchestrator receives an error JSON and reports the failure.
44
- It should identify root cause and fix it, never apply bandaids.
45
-
46
- Q: How do I know which agent will handle my request?
47
- A: Check the <agents> table in CLAUDE.md. The orchestrator matches
48
- your request to the appropriate agent based on patterns.
49
-
50
- Q: Can I use MCP tools directly without agents?
51
- A: Yes! Tools like list_workflows, create_activity, etc. are
52
- available directly. Agents just provide structured workflows.
53
-
54
- Q: Where is configuration stored?
55
- A: - Agents: .claude/agents/
56
- - Skills: .claude/skills/
57
- - Hooks: .claude/hooks/
58
- - Settings: .claude/settings.json
59
- - Instructions: CLAUDE.md
60
-
61
- Q: How do I update an installed plugin?
62
- A: Uninstall and reinstall:
63
- /uninstall-plugin <name>
64
- /install-plugin <name>
65
-
66
- Q: What's the difference between /autoplan and /plan-workspace?
67
- A: /autoplan - Quick planning, creates DEVELOPMENT.md + PRDs
68
- /plan-workspace - Thorough 10-phase discovery for complex workspaces
69
- Use /autoplan for features, /plan-workspace for new projects.
70
-
71
- Q: How do PRDs and DEVELOPMENT.md work together?
72
- A: DEVELOPMENT.md is the big picture (roadmap, status, decisions).
73
- PRDs (docs/prd-*.md) are detailed requirements for each feature.
74
- DEVELOPMENT.md roadmap links to individual PRDs.
75
-
76
- MORE HELP:
77
- /help plugins - Plugin system
78
- /help agents - Agent usage
79
- ```
@@ -1,50 +0,0 @@
1
- ---
2
- description: Plugin system help for Hailer MCP
3
- ---
4
-
5
- # Plugin System Help
6
-
7
- Display plugin system instructions to the user.
8
-
9
- ## Output
10
-
11
- ```
12
- HAILER MCP - PLUGIN SYSTEM
13
-
14
- The plugin system lets you install community agents from the marketplace.
15
-
16
- COMMANDS:
17
-
18
- /marketplace-setup
19
- Clone or pull the marketplace repo to ./hailer-marketplace
20
- Only needed once. Commands will prompt you if missing.
21
-
22
- /list-plugins
23
- List all available plugins (auto-pulls latest).
24
-
25
- /install-plugin <name>
26
- Install a plugin to .claude/ folder.
27
- Example: /install-plugin tanya-test-runner
28
-
29
- /uninstall-plugin <name>
30
- Remove a plugin from .claude/ folder.
31
-
32
- /publish-plugin
33
- Publish your plugin to marketplace (creates PR).
34
-
35
- PLUGIN TYPES:
36
-
37
- Agents AI specialists (.claude/agents/)
38
- Skills On-demand docs (.claude/skills/)
39
- Hooks Event scripts (.claude/hooks/)
40
-
41
- WORKFLOW:
42
-
43
- 1. /list-plugins # See what's available
44
- 2. /install-plugin <name> # Install what you need
45
- 3. Restart: claude -c # Load new agents
46
-
47
- SEE ALSO:
48
- /help agents - How to use installed agents
49
- /help faq - Common questions
50
- ```