@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,131 +0,0 @@
1
- ---
2
- description: Create Product Requirements Document (PRD)
3
- ---
4
-
5
- # Create Product Requirements Document (PRD)
6
-
7
- Create a structured PRD for a feature.
8
-
9
- ## Arguments
10
- - `$ARGUMENTS` - Feature name or description
11
-
12
- ## Process
13
-
14
- ### Step 1: Gather Information
15
- If feature name is vague, ask clarifying questions:
16
- 1. What problem does this solve?
17
- 2. Who is the target user?
18
- 3. What are the key capabilities needed?
19
-
20
- ### Step 2: Generate PRD
21
-
22
- Create `docs/prd-[feature-name].md`:
23
-
24
- ```markdown
25
- # PRD: [Feature Name]
26
-
27
- **Created:** YYYY-MM-DD
28
- **Status:** Draft
29
-
30
- ---
31
-
32
- ## Executive Summary
33
- [1-2 paragraph overview of the feature and its value]
34
-
35
- ---
36
-
37
- ## Problem Statement
38
- **Current State:** [How things work now]
39
- **Pain Points:**
40
- - [Pain point 1]
41
- - [Pain point 2]
42
-
43
- **Desired Outcome:** [What success looks like]
44
-
45
- ---
46
-
47
- ## User Stories
48
-
49
- ### Primary User: [Role]
50
- - As a [role], I want [capability] so that [benefit]
51
-
52
- ### Secondary User: [Role]
53
- - As a [role], I want [capability] so that [benefit]
54
-
55
- ---
56
-
57
- ## Acceptance Criteria
58
-
59
- ### Must Have (P0)
60
- - [ ] Criterion 1
61
- - [ ] Criterion 2
62
-
63
- ### Should Have (P1)
64
- - [ ] Criterion 1
65
-
66
- ### Nice to Have (P2)
67
- - [ ] Criterion 1
68
-
69
- ---
70
-
71
- ## Technical Constraints
72
-
73
- ### Performance
74
- - [Response time requirements]
75
-
76
- ### Security
77
- - [Auth/data protection needs]
78
-
79
- ### Compatibility
80
- - [Browser/device/integration requirements]
81
-
82
- ---
83
-
84
- ## Out of Scope
85
- - [Item 1]
86
- - [Item 2]
87
-
88
- ---
89
-
90
- ## Success Metrics
91
- | Metric | Target | Measurement |
92
- |--------|--------|-------------|
93
- | [Metric] | [Target] | [How measured] |
94
-
95
- ---
96
-
97
- ## Open Questions
98
- - [ ] Question 1
99
- - [ ] Question 2
100
-
101
- ---
102
-
103
- ## Dependencies
104
- - [Dependency 1]
105
- ```
106
-
107
- ### Step 3: Update DEVELOPMENT.md (Required)
108
-
109
- **Always update DEVELOPMENT.md after creating a PRD:**
110
-
111
- 1. If DEVELOPMENT.md doesn't exist, create it first (use `/project-status`)
112
- 2. Add the new PRD to the Roadmap table:
113
-
114
- ```markdown
115
- | [Feature Name] | [docs/prd-feature-name.md](docs/prd-feature-name.md) | Planned |
116
- ```
117
-
118
- 3. Update "Current Status" section if this is the active work
119
-
120
- ### Step 4: Confirm
121
-
122
- Report to user:
123
- ```
124
- Created: docs/prd-[feature-name].md
125
- Updated: DEVELOPMENT.md roadmap
126
-
127
- Next steps:
128
- - Review PRD requirements
129
- - When ready to implement, `/yolo` works well for PRD-based tasks
130
- since the requirements are already clearly defined
131
- ```
@@ -1,82 +0,0 @@
1
- ---
2
- description: Review and update DEVELOPMENT.md with current project state
3
- ---
4
-
5
- # Sync Project Status
6
-
7
- Review and update DEVELOPMENT.md with current project state.
8
-
9
- ## Process
10
-
11
- ### Step 1: Read Current State
12
-
13
- 1. Read `DEVELOPMENT.md` if it exists
14
- 2. Read `SESSION-HANDOFF.md` if it exists
15
- 3. Check `docs/prd-*.md` files for PRD statuses
16
- 4. Check git status for uncommitted changes
17
- 5. Review current TodoWrite items
18
-
19
- ### Step 2: Sync PRD Statuses
20
-
21
- For each PRD in `docs/prd-*.md`:
22
- - Check if implementation is complete (all checkboxes checked)
23
- - Ensure PRD Status field matches actual state (Draft/In Progress/Complete)
24
- - Ensure DEVELOPMENT.md Roadmap matches PRD status
25
-
26
- ### Step 3: Update DEVELOPMENT.md
27
-
28
- Update or create DEVELOPMENT.md following this structure:
29
-
30
- ```markdown
31
- # [Project Name]
32
-
33
- **Stack:** [tech stack]
34
- **Entry:** [main entry point]
35
- **Run:** [dev command]
36
-
37
- ---
38
-
39
- ## What This Project Does
40
- [2-3 sentences]
41
-
42
- ---
43
-
44
- ## Architecture
45
- [Key directories and patterns]
46
-
47
- ---
48
-
49
- ## Roadmap
50
-
51
- | Feature | PRD | Status |
52
- |---------|-----|--------|
53
- | [Feature] | [docs/prd-*.md] | [Status] |
54
-
55
- ---
56
-
57
- ## Current Status
58
- **Active:** [Current work]
59
- **Blocked:** [Blockers or "None"]
60
-
61
- ---
62
-
63
- ## Known Issues
64
- - [ ] Issue (BUG/HIGH)
65
- - [ ] Note (NOTE)
66
-
67
- ---
68
-
69
- ## Technical Decisions
70
- | Decision | Rationale | Date |
71
- |----------|-----------|------|
72
- ```
73
-
74
- ### Step 4: Report Changes
75
-
76
- Tell user what was updated and suggest next actions.
77
-
78
- ## Notes
79
-
80
- - This is a local-only sync (no external services)
81
- - Updates are based on git, todos, and session context
82
- - Use `/handoff` before ending a session
@@ -1,138 +0,0 @@
1
- ---
2
- description: Publish to Marketplace
3
- ---
4
-
5
- # Publish to Marketplace
6
-
7
- Publish plugins from working copy (`.claude/`) to the Hailer Marketplace.
8
-
9
- ## Usage
10
-
11
- ```
12
- /publish <plugin-name> # Publish single plugin
13
- /publish all # Publish all out-of-sync plugins
14
- ```
15
-
16
- ## Arguments
17
-
18
- - `$ARGUMENTS` contains the publish target
19
-
20
- ## Paths
21
-
22
- - **Working copy:** `.claude/` (source of truth)
23
- - **Marketplace:** `Hailer-Marketplace/` (git repo)
24
- - **Individual plugins:** `Hailer-Marketplace/{plugin-name}/`
25
-
26
- ---
27
-
28
- ## Mode: <plugin-name>
29
-
30
- Publishes a single plugin to the marketplace.
31
-
32
- ### Steps
33
-
34
- 1. **Find the plugin** in `.claude/`:
35
- ```
36
- .claude/agents/agent-{name}*.md
37
- .claude/skills/{name}*/SKILL.md
38
- .claude/hooks/{name}*.cjs
39
- ```
40
-
41
- 2. **Detect plugin type** (agent, skill, hook)
42
-
43
- 3. **Ask for version and changelog**
44
- - Check existing version in `Hailer-Marketplace/{plugin-name}/.claude-plugin/plugin.json`
45
- - Suggest patch bump
46
-
47
- 4. **Invoke Publisher Agent:**
48
- ```json
49
- {
50
- "task": "publish_plugin",
51
- "plugin": {
52
- "name": "{name}",
53
- "type": "agent|skill|hook",
54
- "version": "{user provided}",
55
- "changelog_message": "{user provided}",
56
- "content": "{file content}"
57
- }
58
- }
59
- ```
60
-
61
- 5. **Invoke Reviewer Agent** (after PR created):
62
- ```json
63
- {
64
- "task": "review_pr",
65
- "pr_number": "{from publisher result}"
66
- }
67
- ```
68
-
69
- 6. **Report result** - PR merged and tags created, or changes requested
70
-
71
- ---
72
-
73
- ## Mode: all
74
-
75
- Publishes all out-of-sync plugins in a single PR.
76
-
77
- ### Steps
78
-
79
- 1. **Invoke Publisher Agent** with version_check to find mismatches
80
- 2. **Show results** to user, ask to confirm
81
- 3. **Invoke Publisher Agent** with publish_all
82
- 4. **Invoke Reviewer Agent**
83
- 5. **Report result**
84
-
85
- ---
86
-
87
- ## Publisher Agent Protocol
88
-
89
- Returns:
90
- ```json
91
- {
92
- "status": "pr_created",
93
- "result": {
94
- "pr_number": 123,
95
- "pr_url": "https://github.com/...",
96
- "plugins_updated": ["agent-kenji-data-reader"],
97
- "versions": { "agent-kenji-data-reader": "1.0.2" }
98
- },
99
- "summary": "Created PR #123"
100
- }
101
- ```
102
-
103
- ## Reviewer Agent Protocol
104
-
105
- After publisher creates PR, the reviewer:
106
- - Validates plugin.json schemas
107
- - Checks version increments
108
- - Scans for security issues
109
- - If ALL checks pass: auto-merges PR, creates git tags
110
- - If ANY check fails: requests changes
111
-
112
- ---
113
-
114
- ## Examples
115
-
116
- ```
117
- /publish kenji
118
- → Finds .claude/agents/agent-kenji-data-reader.md
119
- → Syncs to Hailer-Marketplace/agent-kenji-data-reader/
120
- → Creates PR, reviewer validates and merges
121
- → Tag: agent-kenji-data-reader@1.0.2
122
-
123
- /publish all
124
- → Checks manifest vs marketplace for mismatches
125
- → Single PR with all out-of-sync plugins
126
- → Multiple tags created
127
- ```
128
-
129
- ---
130
-
131
- ## Error Handling
132
-
133
- | Error | Action |
134
- |-------|--------|
135
- | Plugin not found | List available plugins in `.claude/` |
136
- | Version conflict | Show existing version, ask for higher |
137
- | Reviewer rejects | Show failures, user must fix and re-run |
138
- | Git push fails | Show error, suggest manual intervention |
@@ -1,69 +0,0 @@
1
- ---
2
- description: Resume session - load handoff, project status, and learnings into context
3
- argument-hint: [optional focus area]
4
- ---
5
- # Resume Session
6
-
7
- Load project context at session start or after context reset. This is the counterpart to `/handoff`.
8
-
9
- ## Instructions
10
-
11
- Read ALL of the following files and present a consolidated briefing. Do NOT delegate these reads - read them directly as the orchestrator.
12
-
13
- ### Step 1: Read Context Files
14
-
15
- Read these files (skip any that don't exist):
16
-
17
- 1. **SESSION-HANDOFF.md** - What happened last session, pending tasks, next steps
18
- 2. **DEVELOPMENT.md** - Project status, roadmap, known issues
19
- 3. **inbox.md** - Pending learnings from other projects (hub repo only)
20
-
21
- ### Step 2: Recreate Pending Tasks
22
-
23
- If SESSION-HANDOFF.md has a "Pending Tasks" section with items:
24
- - Use `TaskCreate` for each pending task
25
- - Set descriptions from the handoff context
26
-
27
- ### Step 3: Check Git State
28
-
29
- Run `git status` and `git log --oneline -5` to see:
30
- - Any uncommitted changes from last session
31
- - Recent commit history for context
32
-
33
- ### Step 4: Present Briefing
34
-
35
- Format output as:
36
-
37
- ```
38
- ## Session Resumed
39
-
40
- ### Last Session
41
- [Summary from SESSION-HANDOFF.md - what was done, key decisions]
42
-
43
- ### Current State
44
- - **Branch:** [branch name]
45
- - **Uncommitted changes:** [yes/no, summary if yes]
46
- - **Active work:** [from DEVELOPMENT.md current status]
47
-
48
- ### Pending Tasks
49
- [Recreated tasks, or "None"]
50
-
51
- ### Next Steps
52
- [From handoff next steps]
53
-
54
- ### Learnings Inbox
55
- [Count of pending items, or "Empty"]
56
- ```
57
-
58
- ### Step 5: Focus (if argument provided)
59
-
60
- If user provided `$ARGUMENTS`:
61
- - Filter the briefing to focus on that area
62
- - Read relevant PRD files (docs/prd-*.md) if the focus matches a feature
63
-
64
- ## Notes
65
-
66
- - This command reads files DIRECTLY (no delegation) for speed
67
- - Complements `/handoff` which writes these same files
68
- - Run at session start or after `/clear` to restore context
69
- - Updates SESSION-HANDOFF.md: removes "completed" items, keeps active context
@@ -1,64 +0,0 @@
1
- ---
2
- description: Restore to a previous save point
3
- allowed-tools: Bash
4
- ---
5
- Help user restore to a previous git save point.
6
-
7
- **Step 1: Check git exists**
8
- - If no `.git` folder, tell user: "No git history. Run /git-init first."
9
-
10
- **Step 2: Show recent saves**
11
- Run: `git log --oneline -10`
12
-
13
- Present as a numbered list:
14
- ```
15
- Recent saves:
16
-
17
- [1] a1b2c3d - 2 hours ago - "Fix login button"
18
- [2] e4f5g6h - Yesterday - "Add user form"
19
- [3] i7j8k9l - 2 days ago - "Before YOLO: Add dashboard"
20
- ...
21
-
22
- Which save do you want to restore to? (enter number)
23
- ```
24
-
25
- Use `git log --oneline --format="%h - %ar - %s" -10` for nice format.
26
-
27
- **Step 3: Confirm with user**
28
- After user picks a number, show:
29
- ```
30
- You selected: "Before YOLO: Add dashboard"
31
-
32
- This will:
33
- - Save your current state first (safety backup)
34
- - Restore all files to that point
35
-
36
- Proceed? (yes/no)
37
- ```
38
-
39
- **Step 4: Safe restore process**
40
- 1. First, save current state:
41
- ```bash
42
- git add -A
43
- git commit -m "Before restore - safety backup" --allow-empty
44
- ```
45
-
46
- 2. Then restore using revert or reset:
47
- ```bash
48
- git checkout <commit-id> -- .
49
- git add -A
50
- git commit -m "Restored to: <original message>"
51
- ```
52
-
53
- **Step 5: Confirm**
54
- ```
55
- Done! Restored to "Before YOLO: Add dashboard"
56
-
57
- Your previous state was saved as "Before restore - safety backup"
58
- If you want to undo, run /restore again and pick that save.
59
- ```
60
-
61
- **Important:**
62
- - Always create safety backup first
63
- - Use checkout to restore files (not hard reset)
64
- - Keep all history intact
@@ -1,152 +0,0 @@
1
- ---
2
- description: Run parallel code review with Svetlana, Lars, and Tanya
3
- argument-hint: [files, directory, or blank for recent changes]
4
- allowed-tools: Task, Bash
5
- ---
6
- # Review Squad
7
-
8
- Parallel code review with iterative fix loop: find issues, auto-fix criticals, re-review.
9
-
10
- **Agents:**
11
- - **Svetlana** - Code review (bugs, security, best practices)
12
- - **Lars** - LSP inspection (dead code, unused imports, type errors)
13
- - **Tanya** - Test runner (run tests, verify builds)
14
- - **Simple Writer** - Auto-fix critical issues (only in loop iterations)
15
-
16
- **Target:** $ARGUMENTS (if blank, use recent git changes)
17
-
18
- **Changed files:** Run `git diff --name-only HEAD` via Bash to get recent changes. Use the output as TARGET if no specific files are given.
19
-
20
- ## Protocol
21
-
22
- ### Step 1: Determine Target
23
-
24
- If `$ARGUMENTS` has specific files/directories, use those.
25
- Otherwise, use the changed files list above as the target.
26
-
27
- If `$ARGUMENTS` contains `--skip-tests`:
28
- - Remove flag from target
29
- - Skip Tanya in Step 2
30
-
31
- If `$ARGUMENTS` contains `--skip-lsp`:
32
- - Remove flag from target
33
- - Skip Lars in Step 2
34
-
35
- If `$ARGUMENTS` contains `--no-fix`:
36
- - Skip the fix loop entirely (old behavior - report only)
37
-
38
- ### Step 2: Launch Review Agents in Parallel
39
-
40
- **Set:** `iteration = 1`
41
-
42
- If `--bg` is present, add `run_in_background: true` to all agent calls below and tell the user they'll be notified when complete.
43
-
44
- Spawn all review agents simultaneously using multiple Task tool calls in a single message:
45
-
46
- **Svetlana:**
47
- ```
48
- Task(subagent_type="agent-svetlana-code-review", prompt="Review these files for bugs, security issues, and best practices: [TARGET]. [IF iteration > 1: Previous issues that were auto-fixed by Simple Writer: [LIST FIXES APPLIED]. Verify these are resolved and check for any NEW issues introduced by the fixes.] Return verdict (APPROVE/REQUEST_CHANGES), critical count, warning count, and details. Categorize each issue as CRITICAL or WARNING.")
49
- ```
50
-
51
- **Lars:**
52
- ```
53
- Task(subagent_type="agent-lars-code-inspector", prompt="Inspect these files for dead code, unused imports, and type errors: [TARGET]. [IF iteration > 1: Previous issues that were auto-fixed: [LIST FIXES APPLIED]. Verify these are resolved.] Use LSP if available, fall back to tsc/eslint.")
54
- ```
55
-
56
- **Tanya:**
57
- ```
58
- Task(subagent_type="agent-tanya-test-runner", prompt="Run tests associated with these files: [TARGET]. Include build verification. Report pass/fail counts.")
59
- ```
60
-
61
- ### Step 3: Evaluate Results - Fix or Report
62
-
63
- Collect results from all agents. Check for **auto-fixable issues**:
64
-
65
- **Auto-fixable** (Simple Writer can handle):
66
- - Unused imports
67
- - Dead code removal
68
- - Missing null checks
69
- - Simple type errors
70
- - Test failures with obvious fixes
71
-
72
- **NOT auto-fixable** (escalate to user):
73
- - Architecture concerns
74
- - Design pattern issues
75
- - Complex logic bugs
76
- - Security issues requiring design changes
77
- - Performance concerns
78
-
79
- #### If critical auto-fixable issues found AND `--no-fix` not set AND `iteration < 3`:
80
-
81
- Spawn Simple Writer with the specific issues:
82
-
83
- ```
84
- Task(subagent_type="agent-simple-writer", prompt="Fix these critical issues found by the review squad:\n\n[LIST AUTO-FIXABLE ISSUES WITH FILE PATHS AND LINE NUMBERS]\n\nFrom Svetlana: [critical issues]\nFrom Lars: [dead code, unused imports]\nFrom Tanya: [test failures if obvious fix]\n\nApply minimal fixes only. Do not refactor or improve beyond the reported issues.")
85
- ```
86
-
87
- After Simple Writer finishes:
88
- - Increment `iteration`
89
- - Go back to **Step 2** to re-review the fixed code
90
- - On re-review, include what Simple Writer fixed so agents can verify fixes and check for regressions
91
-
92
- #### If no auto-fixable criticals OR `--no-fix` set OR `iteration >= 3`:
93
-
94
- Proceed to Step 4 (report).
95
-
96
- ### Step 4: Report
97
-
98
- ```markdown
99
- ## Review Squad Report
100
-
101
- ### Loop Summary
102
- - Review iterations: [count]
103
- - Auto-fixes applied: [yes/no, count of issues fixed]
104
-
105
- ### Svetlana (Code Review)
106
- **Verdict:** APPROVE / REQUEST_CHANGES
107
- - Critical: X (Y auto-fixed)
108
- - Warnings: X
109
- - [Remaining issues grouped by file]
110
-
111
- ### Lars (LSP Inspector)
112
- - Dead code: X items (Y auto-removed)
113
- - Unused imports: X (Y auto-removed)
114
- - Type errors: X
115
- - [Remaining issues grouped by file]
116
-
117
- ### Tanya (Tests)
118
- - Tests: X passed, X failed
119
- - Build: Pass/Fail
120
- - [Failed test details if any]
121
-
122
- ### Auto-Fixes Applied
123
- [If Simple Writer made changes:]
124
- - [File]: [what was fixed]
125
- - [File]: [what was fixed]
126
-
127
- ### Remaining Issues (Manual Action Needed)
128
- [Issues that couldn't be auto-fixed]
129
-
130
- ### Summary
131
- [1-2 sentence overall assessment]
132
- ```
133
-
134
- If any agent fails or times out, report partial results from successful agents, note which failed, and offer to re-run individually.
135
-
136
- ## Options
137
-
138
- | Flag | Effect |
139
- |------|--------|
140
- | `--skip-tests` | Skip Tanya (faster, no test execution) |
141
- | `--skip-lsp` | Skip Lars (when LSP not configured) |
142
- | `--no-fix` | Report only, no auto-fix loop (old behavior) |
143
- | `--bg` | Run all agents in background mode |
144
-
145
- If `--bg` is present, launch all agents with `run_in_background: true` and tell the user they'll be notified when complete.
146
-
147
- ## Notes
148
-
149
- - Max 2 re-review iterations (3 total reviews) to prevent infinite loops
150
- - Simple Writer only fixes clear-cut issues - ambiguous problems go to user
151
- - Each re-review is a full parallel sweep, not just Svetlana
152
- - The `--no-fix` flag gives the old report-only behavior
@@ -1,24 +0,0 @@
1
- ---
2
- description: Save current changes to git (local commit)
3
- argument-hint: <description of changes>
4
- allowed-tools: Bash
5
- ---
6
- Save current work to git (local only, not pushed):
7
-
8
- 1. Check if git is initialized. If not, ask user if they want to initialize it first.
9
-
10
- 2. Run `git status` to see what changed
11
-
12
- 3. Stage all changes EXCEPT:
13
- - .env.local
14
- - .env
15
- - node_modules/
16
- - .DS_Store
17
-
18
- 4. Create commit with message:
19
- - If argument provided: use "$ARGUMENTS"
20
- - If no argument: generate brief message based on changed files
21
-
22
- 5. Show confirmation: "Saved locally. Use `git push` when ready to upload to GitLab."
23
-
24
- Keep it simple - this is for local saves only.
@@ -1,19 +0,0 @@
1
- ---
2
- description: Show agent usage statistics
3
- ---
4
-
5
- # Agent Usage Stats
6
-
7
- Run the usage logger to show agent statistics.
8
-
9
- ```bash
10
- node .claude/hooks/agent-usage-logger.cjs --stats
11
- ```
12
-
13
- **Options:**
14
- - `/stats` - Show all-time stats across all projects
15
- - `/stats recent` - Show last 20 agent calls
16
- - `/stats recent 50` - Show last 50 agent calls
17
- - `/stats clear` - Clear the usage log
18
-
19
- **Note:** Stats are collected from `$HAILER_INBOX_DIR/usage.jsonl` which aggregates usage across all Hailer projects.