@hailer/mcp 1.0.29 → 1.1.3

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 (233) hide show
  1. package/.claude/.session-checked +1 -0
  2. package/.claude/agents/agent-ada-skill-builder.md +10 -2
  3. package/.claude/agents/agent-alejandro-function-fields.md +104 -37
  4. package/.claude/agents/agent-bjorn-config-audit.md +41 -21
  5. package/.claude/agents/agent-builder-agent-creator.md +13 -3
  6. package/.claude/agents/agent-code-simplifier.md +53 -0
  7. package/.claude/agents/agent-dmitri-activity-crud.md +126 -11
  8. package/.claude/agents/agent-giuseppe-app-builder.md +212 -22
  9. package/.claude/agents/agent-gunther-mcp-tools.md +7 -36
  10. package/.claude/agents/agent-helga-workflow-config.md +75 -10
  11. package/.claude/agents/agent-igor-activity-mover-automation.md +125 -0
  12. package/.claude/agents/agent-ingrid-doc-templates.md +164 -36
  13. package/.claude/agents/agent-ivan-monolith.md +154 -0
  14. package/.claude/agents/agent-kenji-data-reader.md +15 -8
  15. package/.claude/agents/agent-lars-code-inspector.md +56 -8
  16. package/.claude/agents/agent-marco-mockup-builder.md +110 -0
  17. package/.claude/agents/agent-marcus-api-documenter.md +323 -0
  18. package/.claude/agents/agent-marketplace-publisher.md +232 -72
  19. package/.claude/agents/agent-marketplace-reviewer.md +255 -79
  20. package/.claude/agents/agent-permissions-handler.md +208 -0
  21. package/.claude/agents/agent-simple-writer.md +48 -0
  22. package/.claude/agents/agent-svetlana-code-review.md +127 -14
  23. package/.claude/agents/agent-tanya-test-runner.md +333 -0
  24. package/.claude/agents/agent-ui-designer.md +100 -0
  25. package/.claude/agents/agent-viktor-sql-insights.md +19 -6
  26. package/.claude/agents/agent-web-search.md +55 -0
  27. package/.claude/agents/agent-yevgeni-discussions.md +7 -1
  28. package/.claude/agents/agent-zara-zapier.md +159 -0
  29. package/.claude/commands/app-squad.md +135 -0
  30. package/.claude/commands/audit-squad.md +158 -0
  31. package/.claude/commands/autoplan.md +563 -0
  32. package/.claude/commands/cleanup-squad.md +98 -0
  33. package/.claude/commands/config-squad.md +106 -0
  34. package/.claude/commands/crud-squad.md +87 -0
  35. package/.claude/commands/data-squad.md +97 -0
  36. package/.claude/commands/debug-squad.md +303 -0
  37. package/.claude/commands/doc-squad.md +65 -0
  38. package/.claude/commands/handoff.md +137 -0
  39. package/.claude/commands/health.md +49 -0
  40. package/.claude/commands/help.md +2 -1
  41. package/.claude/commands/help:agents.md +96 -16
  42. package/.claude/commands/help:commands.md +55 -11
  43. package/.claude/commands/help:faq.md +16 -1
  44. package/.claude/commands/help:skills.md +93 -0
  45. package/.claude/commands/hotfix-squad.md +112 -0
  46. package/.claude/commands/integration-squad.md +82 -0
  47. package/.claude/commands/janitor-squad.md +167 -0
  48. package/.claude/commands/learn-auto.md +120 -0
  49. package/.claude/commands/learn.md +120 -0
  50. package/.claude/commands/mcp-list.md +27 -0
  51. package/.claude/commands/onboard-squad.md +140 -0
  52. package/.claude/commands/plan-workspace.md +732 -0
  53. package/.claude/commands/prd.md +131 -0
  54. package/.claude/commands/project-status.md +82 -0
  55. package/.claude/commands/publish.md +138 -0
  56. package/.claude/commands/recap.md +69 -0
  57. package/.claude/commands/restore.md +64 -0
  58. package/.claude/commands/review-squad.md +152 -0
  59. package/.claude/commands/save.md +24 -0
  60. package/.claude/commands/stats.md +19 -0
  61. package/.claude/commands/swarm.md +210 -0
  62. package/.claude/commands/tool-builder.md +3 -1
  63. package/.claude/commands/ws-pull.md +1 -1
  64. package/.claude/commands/yolo-off.md +17 -0
  65. package/.claude/commands/yolo.md +82 -0
  66. package/.claude/hooks/_shared-memory.cjs +305 -0
  67. package/.claude/hooks/_utils.cjs +134 -0
  68. package/.claude/hooks/agent-failure-detector.cjs +164 -79
  69. package/.claude/hooks/agent-usage-logger.cjs +204 -0
  70. package/.claude/hooks/app-edit-guard.cjs +20 -4
  71. package/.claude/hooks/auto-learn.cjs +316 -0
  72. package/.claude/hooks/bash-guard.cjs +282 -0
  73. package/.claude/hooks/builder-mode-manager.cjs +183 -54
  74. package/.claude/hooks/bulk-activity-guard.cjs +283 -0
  75. package/.claude/hooks/context-watchdog.cjs +292 -0
  76. package/.claude/hooks/delegation-reminder.cjs +478 -0
  77. package/.claude/hooks/design-system-lint.cjs +283 -0
  78. package/.claude/hooks/post-scaffold-hook.cjs +16 -3
  79. package/.claude/hooks/prompt-guard.cjs +366 -0
  80. package/.claude/hooks/publish-template-guard.cjs +16 -0
  81. package/.claude/hooks/session-start.cjs +35 -0
  82. package/.claude/hooks/shared-memory-writer.cjs +147 -0
  83. package/.claude/hooks/skill-injector.cjs +140 -0
  84. package/.claude/hooks/skill-usage-logger.cjs +258 -0
  85. package/.claude/hooks/src-edit-guard.cjs +16 -1
  86. package/.claude/hooks/sync-marketplace-agents.cjs +53 -8
  87. package/.claude/scripts/yolo-toggle.cjs +142 -0
  88. package/.claude/settings.json +141 -14
  89. package/.claude/skills/SDK-activity-patterns/SKILL.md +428 -0
  90. package/.claude/skills/SDK-document-templates/SKILL.md +1033 -0
  91. package/.claude/skills/SDK-function-fields/SKILL.md +542 -0
  92. package/.claude/skills/SDK-generate-skill/SKILL.md +92 -0
  93. package/.claude/skills/SDK-init-skill/SKILL.md +127 -0
  94. package/.claude/skills/SDK-insight-queries/SKILL.md +787 -0
  95. package/.claude/skills/SDK-ws-config-skill/SKILL.md +1139 -0
  96. package/.claude/skills/agent-structure/SKILL.md +98 -0
  97. package/.claude/skills/api-documentation-patterns/SKILL.md +474 -0
  98. package/.claude/skills/chrome-mcp-reference/SKILL.md +370 -0
  99. package/.claude/skills/delegation-routing/SKILL.md +202 -0
  100. package/.claude/skills/frontend-design/SKILL.md +254 -0
  101. package/.claude/skills/hailer-activity-mover/SKILL.md +213 -0
  102. package/.claude/skills/hailer-api-client/SKILL.md +518 -0
  103. package/.claude/skills/hailer-app-builder/SKILL.md +939 -11
  104. package/.claude/skills/hailer-apps-pictures/SKILL.md +269 -0
  105. package/.claude/skills/hailer-design-system/SKILL.md +235 -0
  106. package/.claude/skills/hailer-monolith-automations/SKILL.md +686 -0
  107. package/.claude/skills/hailer-permissions-system/SKILL.md +121 -0
  108. package/.claude/skills/hailer-project-protocol/SKILL.md +488 -0
  109. package/.claude/skills/hailer-rest-api/SKILL.md +61 -0
  110. package/.claude/skills/hailer-rest-api/hailer-activities.md +184 -0
  111. package/.claude/skills/hailer-rest-api/hailer-admin.md +473 -0
  112. package/.claude/skills/hailer-rest-api/hailer-calendar.md +256 -0
  113. package/.claude/skills/hailer-rest-api/hailer-feed.md +249 -0
  114. package/.claude/skills/hailer-rest-api/hailer-insights.md +195 -0
  115. package/.claude/skills/hailer-rest-api/hailer-messaging.md +276 -0
  116. package/.claude/skills/hailer-rest-api/hailer-workflows.md +283 -0
  117. package/.claude/skills/insight-join-patterns/SKILL.md +3 -0
  118. package/.claude/skills/integration-patterns/SKILL.md +421 -0
  119. package/.claude/skills/json-only-output/SKILL.md +52 -12
  120. package/.claude/skills/lsp-setup/SKILL.md +160 -0
  121. package/.claude/skills/mcp-direct-tools/SKILL.md +153 -0
  122. package/.claude/skills/optional-parameters/SKILL.md +32 -23
  123. package/.claude/skills/publish-hailer-app/SKILL.md +76 -12
  124. package/.claude/skills/testing-patterns/SKILL.md +630 -0
  125. package/.claude/skills/tool-builder/SKILL.md +250 -0
  126. package/.claude/skills/tool-parameter-usage/SKILL.md +59 -45
  127. package/.claude/skills/tool-response-verification/SKILL.md +82 -48
  128. package/.claude/skills/zapier-hailer-patterns/SKILL.md +581 -0
  129. package/.env.example +26 -7
  130. package/CLAUDE.md +290 -224
  131. package/dist/CLAUDE.md +370 -0
  132. package/dist/app.d.ts +1 -1
  133. package/dist/app.js +101 -101
  134. package/dist/bot/bot-config.d.ts +26 -0
  135. package/dist/bot/bot-config.js +135 -0
  136. package/dist/bot/bot-manager.d.ts +40 -0
  137. package/dist/bot/bot-manager.js +137 -0
  138. package/dist/bot/bot.d.ts +127 -0
  139. package/dist/bot/bot.js +1328 -0
  140. package/dist/bot/operation-logger.d.ts +28 -0
  141. package/dist/bot/operation-logger.js +132 -0
  142. package/dist/bot/services/conversation-manager.d.ts +60 -0
  143. package/dist/bot/services/conversation-manager.js +246 -0
  144. package/dist/bot/services/index.d.ts +9 -0
  145. package/dist/bot/services/index.js +18 -0
  146. package/dist/bot/services/message-classifier.d.ts +42 -0
  147. package/dist/bot/services/message-classifier.js +228 -0
  148. package/dist/bot/services/message-formatter.d.ts +88 -0
  149. package/dist/bot/services/message-formatter.js +411 -0
  150. package/dist/bot/services/session-logger.d.ts +162 -0
  151. package/dist/bot/services/session-logger.js +724 -0
  152. package/dist/bot/services/token-billing.d.ts +78 -0
  153. package/dist/bot/services/token-billing.js +233 -0
  154. package/dist/bot/services/types.d.ts +169 -0
  155. package/dist/bot/services/types.js +12 -0
  156. package/dist/bot/services/typing-indicator.d.ts +23 -0
  157. package/dist/bot/services/typing-indicator.js +60 -0
  158. package/dist/bot/services/workspace-schema-cache.d.ts +122 -0
  159. package/dist/bot/services/workspace-schema-cache.js +506 -0
  160. package/dist/bot/tool-executor.d.ts +28 -0
  161. package/dist/bot/tool-executor.js +48 -0
  162. package/dist/bot/workspace-overview.d.ts +12 -0
  163. package/dist/bot/workspace-overview.js +94 -0
  164. package/dist/cli.d.ts +1 -8
  165. package/dist/cli.js +1 -253
  166. package/dist/config.d.ts +96 -3
  167. package/dist/config.js +148 -37
  168. package/dist/core.d.ts +5 -0
  169. package/dist/core.js +61 -8
  170. package/dist/lib/discussion-lock.d.ts +42 -0
  171. package/dist/lib/discussion-lock.js +110 -0
  172. package/dist/lib/logger.d.ts +0 -1
  173. package/dist/lib/logger.js +39 -23
  174. package/dist/lib/request-logger.d.ts +77 -0
  175. package/dist/lib/request-logger.js +147 -0
  176. package/dist/mcp/UserContextCache.js +16 -13
  177. package/dist/mcp/hailer-clients.js +18 -17
  178. package/dist/mcp/signal-handler.js +43 -13
  179. package/dist/mcp/tool-registry.d.ts +4 -15
  180. package/dist/mcp/tool-registry.js +94 -32
  181. package/dist/mcp/tools/activity.js +28 -69
  182. package/dist/mcp/tools/app-core.js +9 -4
  183. package/dist/mcp/tools/app-marketplace.js +22 -12
  184. package/dist/mcp/tools/app-member.js +5 -2
  185. package/dist/mcp/tools/app-scaffold.js +32 -18
  186. package/dist/mcp/tools/bot-config/constants.d.ts +23 -0
  187. package/dist/mcp/tools/bot-config/constants.js +94 -0
  188. package/dist/mcp/tools/bot-config/core.d.ts +253 -0
  189. package/dist/mcp/tools/bot-config/core.js +2456 -0
  190. package/dist/mcp/tools/bot-config/index.d.ts +10 -0
  191. package/dist/mcp/tools/bot-config/index.js +59 -0
  192. package/dist/mcp/tools/bot-config/tools.d.ts +7 -0
  193. package/dist/mcp/tools/bot-config/tools.js +15 -0
  194. package/dist/mcp/tools/bot-config/types.d.ts +50 -0
  195. package/dist/mcp/tools/bot-config/types.js +6 -0
  196. package/dist/mcp/tools/discussion.js +107 -77
  197. package/dist/mcp/tools/document.d.ts +11 -0
  198. package/dist/mcp/tools/document.js +741 -0
  199. package/dist/mcp/tools/file.js +5 -2
  200. package/dist/mcp/tools/insight.js +36 -12
  201. package/dist/mcp/tools/investigate.d.ts +9 -0
  202. package/dist/mcp/tools/investigate.js +254 -0
  203. package/dist/mcp/tools/user.d.ts +2 -4
  204. package/dist/mcp/tools/user.js +9 -50
  205. package/dist/mcp/tools/workflow.d.ts +1 -0
  206. package/dist/mcp/tools/workflow.js +164 -52
  207. package/dist/mcp/utils/hailer-api-client.js +26 -17
  208. package/dist/mcp/webhook-handler.d.ts +64 -3
  209. package/dist/mcp/webhook-handler.js +227 -9
  210. package/dist/mcp-server.d.ts +4 -0
  211. package/dist/mcp-server.js +237 -25
  212. package/dist/plugins/bug-fixer/index.d.ts +2 -0
  213. package/dist/plugins/bug-fixer/index.js +18 -0
  214. package/dist/plugins/bug-fixer/tools.d.ts +45 -0
  215. package/dist/plugins/bug-fixer/tools.js +1096 -0
  216. package/package.json +10 -10
  217. package/scripts/test-hal-tools.ts +154 -0
  218. package/.claude/agents/agent-nora-name-functions.md +0 -123
  219. package/.claude/assistant-knowledge.md +0 -23
  220. package/.claude/commands/install-plugin.md +0 -261
  221. package/.claude/commands/list-plugins.md +0 -42
  222. package/.claude/commands/marketplace-setup.md +0 -33
  223. package/.claude/commands/publish-plugin.md +0 -55
  224. package/.claude/commands/uninstall-plugin.md +0 -87
  225. package/.claude/hooks/interactive-mode.cjs +0 -87
  226. package/.claude/hooks/mcp-server-guard.cjs +0 -108
  227. package/.claude/skills/marketplace-publishing.md +0 -155
  228. package/dist/bot/chat-bot.d.ts +0 -31
  229. package/dist/bot/chat-bot.js +0 -357
  230. package/dist/mcp/tools/metrics.d.ts +0 -13
  231. package/dist/mcp/tools/metrics.js +0 -546
  232. package/dist/stdio-server.d.ts +0 -14
  233. package/dist/stdio-server.js +0 -114
@@ -0,0 +1,137 @@
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)
@@ -0,0 +1,49 @@
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
+ ```
@@ -15,10 +15,11 @@ Display available help topics to the user.
15
15
 
16
16
  Available topics:
17
17
 
18
- /help plugins Plugin system (install, uninstall, publish)
19
18
  /help agents How agents work and delegation
19
+ /help skills Skills reference (patterns, templates, fixes)
20
20
  /help commands All slash commands
21
21
  /help tools MCP tools reference
22
+ /help plugins Plugin system (install, uninstall, publish)
22
23
  /help faq Common questions
23
24
 
24
25
  ───────────────────────────────────────────
@@ -24,48 +24,128 @@ HOW IT WORKS:
24
24
  4. Agent does the work, returns JSON result
25
25
  5. Claude interprets result and reports back
26
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
+
27
78
  AGENT CATEGORIES:
28
79
 
29
80
  Data Operations:
30
- agent-kenji-data-reader - Read workflows, fields, activities
81
+ agent-kenji-data-reader - Read workflows, fields, activities (LOCAL FIRST)
31
82
  agent-dmitri-activity-crud - Create/update activities
32
- agent-generic-crud - Generic CRUD across workflows
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)
33
86
 
34
87
  Configuration:
35
88
  agent-helga-workflow-config - Manage workflows, fields, phases
36
- agent-alejandro-function-fields - Calculated function fields
89
+ agent-alejandro-function-fields - Calculated fields + name functions
37
90
  agent-viktor-sql-insights - SQL-like reports
38
- agent-nora-name-functions - Activity name functions
91
+ agent-ingrid-doc-templates - PDF/CSV document templates
39
92
 
40
93
  Development:
41
- agent-giuseppe-app-builder - Build Hailer apps
94
+ agent-giuseppe-app-builder - Build Hailer apps (production)
95
+ agent-marco-mockup-builder - Build demo apps (validation)
42
96
  agent-gunther-mcp-tools - Build MCP tools
43
- agent-marco-mockup-builder - React mockups
97
+ agent-igor-activity-mover - Phase cascade microservices
98
+ agent-ivan-monolith - Monolith automations
99
+ agent-zara-zapier - Zapier integrations
44
100
 
45
101
  Quality:
46
- agent-svetlana-code-review - Code review
102
+ agent-svetlana-code-review - Code review (READ-ONLY)
47
103
  agent-tanya-test-runner - Run tests
48
- agent-lars-code-inspector - Find bugs, dead code
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
+ ─────────────────────────────────────────────────────────────────────────
49
116
 
50
- Marketplace:
51
- agent-marketplace-publisher - Publish plugins
52
- agent-marketplace-reviewer - Review plugin PRs
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
+ ─────────────────────────────────────────────────────────────────────────
53
130
 
54
131
  EXAMPLE USAGE:
55
132
 
56
133
  "Create a customer activity in the CRM workflow"
57
- Delegates to agent-dmitri-activity-crud
134
+ Kenji (get IDs) → Dmitri (create activity)
58
135
 
59
136
  "Build a dashboard app showing orders"
60
- Delegates to agent-giuseppe-app-builder
137
+ Kenji (get schema) → Giuseppe (build app)
138
+
139
+ "Add a calculated total field"
140
+ → Kenji (get field IDs) → Alejandro (create function)
61
141
 
62
142
  "Review my code changes"
63
- Delegates to agent-svetlana-code-review
143
+ Svetlana (code review)
64
144
 
65
- INSTALLED AGENTS:
66
- Check the <agents> table in CLAUDE.md
145
+ ─────────────────────────────────────────────────────────────────────────
67
146
 
68
147
  SEE ALSO:
148
+ /stats - View agent usage statistics
69
149
  /help plugins - Install more agents
70
150
  /help commands - All slash commands
71
151
  ```
@@ -13,13 +13,13 @@ Display all available commands to the user.
13
13
  │ HAILER MCP - ALL COMMANDS │
14
14
  ╰─────────────────────────────────────────╯
15
15
 
16
- HELP
17
- /help Show all help topics
18
- /help plugins Plugin system guide
19
- /help agents Agent usage guide
20
- /help commands This reference
21
- /help tools MCP tools reference
22
- /help faq Common questions
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
23
 
24
24
  PLUGINS
25
25
  /marketplace-setup Clone/update marketplace repo
@@ -27,13 +27,57 @@ PLUGINS
27
27
  /install-plugin <name> Install a plugin
28
28
  /uninstall-plugin <name> Remove a plugin
29
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)
30
35
 
31
36
  DEVELOPMENT
32
- /tool-builder Build a new MCP tool
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
+ AUTONOMOUS MODE
65
+ /yolo <task> Run task without asking permission
66
+ /yolo-off Disable autonomous mode
67
+
68
+ SESSION
69
+ /recap [focus] Resume session - load handoff, status, learnings
70
+ /save <message> Save changes to git (local commit)
71
+ /restore Restore to a previous save point
72
+ /handoff Create session handoff for next session
73
+ /learn <cat> <desc> Capture learning and apply fix
33
74
 
34
75
  ───────────────────────────────────────────
35
76
  Examples:
36
- /list-plugins
37
- /install-plugin tanya-test-runner
38
- /help plugins
77
+ /plan-workspace "CRM system" Thorough discovery for new project
78
+ /autoplan "Add invoicing" Quick planning for feature
79
+ /prd "customer portal" Create PRD for feature
80
+ /yolo docs/prd-feature.md Implement a PRD autonomously
81
+ /save "Add customer form" Local git commit
82
+ /learn agent/kenji "Check enums first"
39
83
  ```
@@ -15,7 +15,7 @@ Display frequently asked questions to the user.
15
15
 
16
16
  Q: Why is Claude failing at Hailer tasks?
17
17
  A: Check two things:
18
- 1. Run /mcp to verify Claude is connected to the Hailer MCP
18
+ 1. Run /mcp-list to verify Claude is connected to the Hailer MCP
19
19
  2. Make sure you're running Claude from the correct project folder
20
20
  (the one with CLAUDE.md and .claude/ folder)
21
21
 
@@ -63,6 +63,21 @@ A: Uninstall and reinstall:
63
63
  /uninstall-plugin <name>
64
64
  /install-plugin <name>
65
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: What is /yolo mode?
72
+ A: Autonomous execution without permission prompts. Best for PRD-based
73
+ tasks where requirements are clearly defined. Still delegates to
74
+ agents and creates restore points. Use /yolo-off to disable.
75
+
76
+ Q: How do PRDs and DEVELOPMENT.md work together?
77
+ A: DEVELOPMENT.md is the big picture (roadmap, status, decisions).
78
+ PRDs (docs/prd-*.md) are detailed requirements for each feature.
79
+ DEVELOPMENT.md roadmap links to individual PRDs.
80
+
66
81
  MORE HELP:
67
82
  /help plugins - Plugin system
68
83
  /help agents - Agent usage
@@ -0,0 +1,93 @@
1
+ ---
2
+ description: Skills reference for Hailer MCP
3
+ ---
4
+
5
+ # Skills Reference
6
+
7
+ Display skills reference to the user.
8
+
9
+ ## Output
10
+
11
+ ```
12
+ ╭─────────────────────────────────────────╮
13
+ │ HAILER MCP - SKILLS REFERENCE │
14
+ ╰─────────────────────────────────────────╯
15
+
16
+ Skills are reusable knowledge files (.claude/skills/<name>/SKILL.md) that
17
+ give agents domain-specific patterns, API references, and code templates.
18
+
19
+ HOW SKILLS WORK:
20
+
21
+ Auto-injected: Agents declare skills in their frontmatter. The
22
+ SubagentStart hook injects them automatically when the agent spawns.
23
+
24
+ On-demand: The orchestrator tells an agent to load a skill via the
25
+ Skill tool. Only 6 agents have it: Giuseppe, Helga, Viktor,
26
+ Alejandro, Ingrid, Ada.
27
+
28
+ ─────────────────────────────────────────────────────────────────────────
29
+
30
+ SDK SKILLS (core patterns):
31
+ SDK-activity-patterns - Field value formats, dates, users, links
32
+ SDK-document-templates - PDF/CSV template structure + generation
33
+ SDK-function-fields - Calculated fields in Hailer workflows
34
+ SDK-generate-skill - TypeScript type generation from workspace
35
+ SDK-init-skill - Initialize new Hailer SDK projects
36
+ SDK-insight-queries - SQL query patterns for insights
37
+ SDK-ws-config-skill - Workflow config: fields, phases, schemas
38
+
39
+ HAILER PLATFORM SKILLS:
40
+ hailer-activity-mover - Phase cascade microservice patterns
41
+ hailer-api-client - @hailer/cli auth, requests, signals
42
+ hailer-app-builder - Build apps with @hailer/app-sdk
43
+ hailer-apps-pictures - Fetch and display images from Hailer
44
+ hailer-design-system - Chakra UI theme, colors, icons, components
45
+ hailer-monolith-automations - Webhooks, scheduled jobs in monolith
46
+ hailer-permissions-system - Users, teams, access control
47
+ hailer-project-protocol - Full SDK workflow reference
48
+ hailer-rest-api - Direct HTTP API endpoints
49
+
50
+ INTEGRATION SKILLS:
51
+ integration-patterns - Activity movers, webhooks, SCIM, Kafka
52
+ zapier-hailer-patterns - Zapier triggers, actions, Zap configs
53
+ insight-join-patterns - JOIN syntax for cross-workflow insights
54
+
55
+ TOOL & AGENT SKILLS:
56
+ agent-structure - Template for creating new agents
57
+ delegation-routing - Full routing table + chaining patterns
58
+ tool-builder - Building MCP tools for Hailer server
59
+ mcp-direct-tools - MCP tools not assigned to agents
60
+
61
+ QUALITY & FIX SKILLS (auto-loaded on errors):
62
+ tool-parameter-usage - Extract IDs, correct parameter formats
63
+ tool-response-verification - Verify MCP results before reporting
64
+ optional-parameters - Omit optional params vs empty values
65
+ json-only-output - Fix agents adding prose after JSON
66
+ testing-patterns - vitest, playwright, build verification
67
+
68
+ REFERENCE SKILLS:
69
+ api-documentation-patterns - API doc standards for Marcus
70
+ chrome-mcp-reference - Browser automation reference
71
+ frontend-design - UI design patterns
72
+ lsp-setup - Language Server Protocol setup
73
+ publish-hailer-app - App publishing to production
74
+
75
+ ─────────────────────────────────────────────────────────────────────────
76
+
77
+ ON-DEMAND SKILL LOADING (tell the orchestrator):
78
+
79
+ "Load hailer-apps-pictures for Giuseppe"
80
+ → Giuseppe gets image handling patterns
81
+
82
+ "Viktor needs insight-join-patterns for this query"
83
+ → Viktor gets JOIN syntax for cross-workflow data
84
+
85
+ Only works with: Giuseppe, Helga, Viktor, Alejandro, Ingrid, Ada
86
+
87
+ ─────────────────────────────────────────────────────────────────────────
88
+
89
+ SEE ALSO:
90
+ /help agents - Which agents use which skills
91
+ /help commands - All slash commands
92
+ /help tools - MCP tools reference
93
+ ```
@@ -0,0 +1,112 @@
1
+ ---
2
+ description: Quick bug fix with Tanya, Simple Writer, and Svetlana
3
+ argument-hint: "bug description"
4
+ allowed-tools: Task, Bash
5
+ ---
6
+ # Hotfix Squad
7
+
8
+ Sequential pipeline with iterative loop: Reproduce bug, apply fix, verify, review. Loops back if review fails.
9
+
10
+ **Agents:**
11
+ 1. **Tanya** - Test runner (create failing test, verify fix)
12
+ 2. **Simple Writer** - Code editor (apply minimal fix)
13
+ 3. **Svetlana** - Code review (security audit of the fix)
14
+
15
+ **Goal:** $ARGUMENTS
16
+
17
+ ## Protocol
18
+
19
+ ### Step 1: Tanya (Reproduce Bug)
20
+
21
+ Spawn Tanya to create a test that demonstrates the bug:
22
+
23
+ ```
24
+ Task(subagent_type="agent-tanya-test-runner", prompt="Create a test that reproduces this bug: $ARGUMENTS.\n\nThe test should:\n- Fail with the current code (red)\n- Clearly demonstrate the bug\n- Be minimal and focused\n\nDo NOT fix the bug yet. Just create the failing test and report the failure.")
25
+ ```
26
+
27
+ Wait for result. The test should be failing (RED state).
28
+
29
+ ### Step 2: Fix-Verify-Review Loop
30
+
31
+ Track iteration count. Max **3 iterations** before escalating to user with remaining issues.
32
+
33
+ **Set:** `iteration = 1`
34
+
35
+ #### Step 2a: Simple Writer (Apply Fix)
36
+
37
+ Spawn Simple Writer with accumulated context from all previous iterations:
38
+
39
+ ```
40
+ Task(subagent_type="agent-simple-writer", prompt="Fix the bug in: $ARGUMENTS.\n\nContext:\nTanya created a failing test that reproduces the bug:\n[PASTE TANYA'S TEST CODE AND FAILURE OUTPUT]\n\n[IF iteration > 1: Include ALL accumulated feedback:\n- Tanya's latest test results (pass/fail details)\n- Svetlana's review feedback (if review was reached in previous iteration)\n- What was already tried and why it didn't fully work\nThis prevents repeating previous mistakes.]\n\nMake the MINIMAL change needed to make the test pass (GREEN state). Do not refactor or improve surrounding code.")
41
+ ```
42
+
43
+ #### Step 2b: Tanya (Verify Fix)
44
+
45
+ Run the test to confirm the fix works:
46
+
47
+ ```
48
+ Task(subagent_type="agent-tanya-test-runner", prompt="Re-run the test for: $ARGUMENTS. Confirm it now passes with Simple Writer's fix. Also run any related tests to check for regressions.")
49
+ ```
50
+
51
+ If tests FAIL:
52
+ - If `iteration < 3`: increment iteration, go back to **Step 2a** with the test failure output
53
+ - If `iteration >= 3`: escalate to user (see Step 3)
54
+
55
+ #### Step 2c: Svetlana (Security Review)
56
+
57
+ Tests passed. Spawn Svetlana to audit the fix:
58
+
59
+ ```
60
+ Task(subagent_type="agent-svetlana-code-review", prompt="Security review of the hotfix for: $ARGUMENTS.\n\nFix applied by Simple Writer:\n[PASTE SIMPLE WRITER'S CHANGES]\n\nIteration: [iteration] of 3\n\nCheck for:\n- Security vulnerabilities\n- Data validation issues\n- Authentication/authorization concerns\n- Edge cases that could be exploited\n\nReturn verdict: APPROVED or REQUEST_CHANGES with specific issues to fix.")
61
+ ```
62
+
63
+ **If APPROVED:** proceed to Step 3 (report).
64
+
65
+ **If REQUEST_CHANGES:**
66
+ - If `iteration < 3`: increment iteration, go back to **Step 2a** with Svetlana's feedback
67
+ - If `iteration >= 3`: escalate to user (see Step 3)
68
+
69
+ ### Step 3: Report
70
+
71
+ ```markdown
72
+ ## Hotfix Squad Complete
73
+
74
+ ### Loop Summary
75
+ - Iterations: [count] of 3 max
76
+ - Final status: FIXED / ESCALATED
77
+
78
+ ### Tanya (Test)
79
+ - Bug reproduced: YES
80
+ - Test status before fix: FAILED
81
+ - Test status after fix: PASSED / STILL FAILING
82
+ - Regressions found: [yes/no]
83
+
84
+ ### Simple Writer (Fix)
85
+ - Files modified: [list]
86
+ - Lines changed: [count]
87
+ - Approach: [brief description]
88
+
89
+ ### Svetlana (Security)
90
+ - Verdict: APPROVED / REQUEST_CHANGES
91
+ - Critical issues: [count]
92
+ - Warnings: [count]
93
+ - [If REQUEST_CHANGES: list remaining issues]
94
+
95
+ ### Next Steps
96
+ [If FIXED:]
97
+ - Deploy to staging
98
+ - Monitor error logs
99
+
100
+ [If ESCALATED after 3 iterations:]
101
+ - Manual intervention needed
102
+ - Remaining issues: [list from Svetlana/Tanya]
103
+ - Attempted fixes: [summary of what was tried]
104
+ ```
105
+
106
+ ## Notes
107
+
108
+ - RED -> GREEN -> REVIEW loop ensures quality
109
+ - Fix must be minimal - no refactoring
110
+ - Max 3 iterations prevents infinite loops
111
+ - Each iteration passes previous feedback to Simple Writer so it doesn't repeat mistakes
112
+ - Security check is mandatory before reporting success