create-hq 5.0.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/dist/deps.d.ts +2 -2
  2. package/dist/deps.d.ts.map +1 -1
  3. package/dist/deps.js +138 -29
  4. package/dist/deps.js.map +1 -1
  5. package/dist/index.js +3 -3
  6. package/dist/index.js.map +1 -1
  7. package/dist/scaffold.d.ts +1 -1
  8. package/dist/scaffold.d.ts.map +1 -1
  9. package/dist/scaffold.js +125 -26
  10. package/dist/scaffold.js.map +1 -1
  11. package/dist/ui.js +1 -1
  12. package/package.json +4 -8
  13. package/template/.claude/CLAUDE.md +0 -202
  14. package/template/.claude/commands/checkpoint.md +0 -127
  15. package/template/.claude/commands/cleanup.md +0 -307
  16. package/template/.claude/commands/execute-task.md +0 -440
  17. package/template/.claude/commands/exit-plan.md +0 -41
  18. package/template/.claude/commands/handoff.md +0 -97
  19. package/template/.claude/commands/learn.md +0 -218
  20. package/template/.claude/commands/metrics.md +0 -118
  21. package/template/.claude/commands/newworker.md +0 -162
  22. package/template/.claude/commands/nexttask.md +0 -67
  23. package/template/.claude/commands/prd.md +0 -238
  24. package/template/.claude/commands/reanchor.md +0 -51
  25. package/template/.claude/commands/remember.md +0 -126
  26. package/template/.claude/commands/run-project.md +0 -348
  27. package/template/.claude/commands/run.md +0 -110
  28. package/template/.claude/commands/search-reindex.md +0 -62
  29. package/template/.claude/commands/search.md +0 -100
  30. package/template/.claude/commands/setup.md +0 -381
  31. package/template/.claude/scripts/pure-ralph-loop.ps1 +0 -312
  32. package/template/.claude/scripts/pure-ralph-loop.sh +0 -859
  33. package/template/CHANGELOG.md +0 -220
  34. package/template/LICENSE +0 -21
  35. package/template/MIGRATION.md +0 -259
  36. package/template/README.md +0 -368
  37. package/template/data/journal/.gitkeep +0 -0
  38. package/template/docs/images/ascii-banner-options.md +0 -122
  39. package/template/docs/images/hq-banner.svg +0 -105
  40. package/template/knowledge/Ralph/01-overview.md +0 -71
  41. package/template/knowledge/Ralph/02-core-concepts.md +0 -114
  42. package/template/knowledge/Ralph/03-how-ralph-works.md +0 -184
  43. package/template/knowledge/Ralph/04-back-pressure.md +0 -222
  44. package/template/knowledge/Ralph/05-specifications.md +0 -210
  45. package/template/knowledge/Ralph/06-agents-md.md +0 -222
  46. package/template/knowledge/Ralph/07-implementation.md +0 -316
  47. package/template/knowledge/Ralph/08-economics.md +0 -182
  48. package/template/knowledge/Ralph/09-resources.md +0 -145
  49. package/template/knowledge/Ralph/10-claude-code-workflow.md +0 -212
  50. package/template/knowledge/Ralph/11-team-training-guide.md +0 -383
  51. package/template/knowledge/Ralph/README.md +0 -40
  52. package/template/knowledge/ai-security-framework/CONTRIBUTING.md +0 -139
  53. package/template/knowledge/ai-security-framework/GLOSSARY.md +0 -176
  54. package/template/knowledge/ai-security-framework/LICENSE +0 -21
  55. package/template/knowledge/ai-security-framework/QUICK-START.md +0 -172
  56. package/template/knowledge/ai-security-framework/README.md +0 -232
  57. package/template/knowledge/ai-security-framework/checklists/browser-security.md +0 -301
  58. package/template/knowledge/ai-security-framework/checklists/credential-isolation.md +0 -322
  59. package/template/knowledge/ai-security-framework/checklists/incident-response.md +0 -288
  60. package/template/knowledge/ai-security-framework/checklists/pre-flight.md +0 -249
  61. package/template/knowledge/ai-security-framework/checklists/weekly-audit.md +0 -159
  62. package/template/knowledge/ai-security-framework/configs/audit-logging.md +0 -372
  63. package/template/knowledge/ai-security-framework/configs/kill-switches.md +0 -354
  64. package/template/knowledge/ai-security-framework/docs/01-core-principles.md +0 -256
  65. package/template/knowledge/ai-security-framework/docs/02-threat-landscape.md +0 -326
  66. package/template/knowledge/ai-security-framework/docs/03-security-posture.md +0 -250
  67. package/template/knowledge/ai-security-framework/templates/agents-security.md +0 -233
  68. package/template/knowledge/design-styles/README.md +0 -42
  69. package/template/knowledge/design-styles/american-industrial.md +0 -136
  70. package/template/knowledge/design-styles/ethereal-abstract.md +0 -133
  71. package/template/knowledge/design-styles/liminal-portal.md +0 -111
  72. package/template/knowledge/design-styles/swipes/american-industrial/G-3m4YPW0AADdu2.jpeg +0 -0
  73. package/template/knowledge/design-styles/swipes/american-industrial/G-JJlt5WwAABK3K.png +0 -0
  74. package/template/knowledge/design-styles/swipes/american-industrial/G-JJmj5W0AEbJ-7.png +0 -0
  75. package/template/knowledge/design-styles/swipes/american-industrial/G59fgNuXkAAKLJQ (1).jpeg +0 -0
  76. package/template/knowledge/design-styles/swipes/american-industrial/G59fgNuXkAAKLJQ.jpeg +0 -0
  77. package/template/knowledge/design-styles/swipes/american-industrial/G7fVkn3WEAAM-ST.jpeg +0 -0
  78. package/template/knowledge/design-styles/swipes/american-industrial/G8ECO5JWEAIksyn.png +0 -0
  79. package/template/knowledge/design-styles/swipes/american-industrial/G9-3GQSWoAA8eqZ.png +0 -0
  80. package/template/knowledge/design-styles/swipes/american-industrial/G9xEOqrXkAEZRcs.png +0 -0
  81. package/template/knowledge/design-styles/swipes/american-industrial/G_MVeJrXQAA8sx4.jpeg +0 -0
  82. package/template/knowledge/design-styles/swipes/american-industrial/G_RSkmGXkAAgAVZ.png +0 -0
  83. package/template/knowledge/design-styles/swipes/american-industrial/README.md +0 -31
  84. package/template/knowledge/design-styles/swipes/american-industrial/qyqtg7Dq.png +0 -0
  85. package/template/knowledge/dev-team/README.md +0 -35
  86. package/template/knowledge/dev-team/patterns/README.md +0 -34
  87. package/template/knowledge/dev-team/patterns/frontend/react-best-practices.md +0 -178
  88. package/template/knowledge/dev-team/troubleshooting/README.md +0 -31
  89. package/template/knowledge/dev-team/workflows/README.md +0 -49
  90. package/template/knowledge/hq/checkpoint-schema.json +0 -51
  91. package/template/knowledge/hq/index-md-spec.md +0 -74
  92. package/template/knowledge/hq/thread-schema.md +0 -153
  93. package/template/knowledge/hq-core/checkpoint-schema.json +0 -51
  94. package/template/knowledge/hq-core/index-md-spec.md +0 -74
  95. package/template/knowledge/hq-core/thread-schema.md +0 -153
  96. package/template/knowledge/loom/README.md +0 -51
  97. package/template/knowledge/loom/architecture.md +0 -125
  98. package/template/knowledge/loom/code-style.md +0 -169
  99. package/template/knowledge/loom/llm-proxy.md +0 -132
  100. package/template/knowledge/loom/state-machine.md +0 -131
  101. package/template/knowledge/loom/thread-system.md +0 -117
  102. package/template/knowledge/loom/tools.md +0 -94
  103. package/template/knowledge/loom/weaver.md +0 -96
  104. package/template/knowledge/loom/web-frontend.md +0 -131
  105. package/template/knowledge/projects/README.md +0 -72
  106. package/template/knowledge/projects/templates/README.template.md +0 -28
  107. package/template/knowledge/workers/README.md +0 -195
  108. package/template/knowledge/workers/ralph-loop-pattern.md +0 -157
  109. package/template/knowledge/workers/skill-schema.md +0 -182
  110. package/template/knowledge/workers/state-machine.md +0 -102
  111. package/template/knowledge/workers/templates/base-worker.yaml +0 -73
  112. package/template/knowledge/workers/templates/code-worker.yaml +0 -85
  113. package/template/knowledge/workers/templates/skill.yaml +0 -49
  114. package/template/knowledge/workers/templates/social-worker.yaml +0 -70
  115. package/template/modules/examples/full-manifest.yaml +0 -92
  116. package/template/modules/examples/minimal.yaml +0 -14
  117. package/template/modules/modules.yaml +0 -59
  118. package/template/projects/.gitkeep +0 -0
  119. package/template/projects/incorporate-workers-into-pure-ralph/prd.json +0 -88
  120. package/template/projects/pure-ralph-branch-isolation/README.md +0 -114
  121. package/template/projects/pure-ralph-branch-isolation/prd.json +0 -123
  122. package/template/projects/purist-ralph-loop/README.md +0 -148
  123. package/template/projects/purist-ralph-loop/prd.json +0 -135
  124. package/template/projects/ralph-test/prd.json +0 -50
  125. package/template/prompts/pure-ralph-base.md +0 -551
  126. package/template/settings/.gitkeep +0 -0
  127. package/template/settings/pure-ralph.json +0 -42
  128. package/template/social-content/drafts/INDEX.md +0 -21
  129. package/template/social-content/drafts/linkedin/.gitkeep +0 -1
  130. package/template/social-content/drafts/x/.gitkeep +0 -1
  131. package/template/social-content/images/.gitkeep +0 -1
  132. package/template/starter-projects/code-worker/README.md +0 -97
  133. package/template/starter-projects/code-worker/prd.json +0 -45
  134. package/template/starter-projects/personal-assistant/README.md +0 -42
  135. package/template/starter-projects/personal-assistant/prd.json +0 -43
  136. package/template/starter-projects/social-media/README.md +0 -60
  137. package/template/starter-projects/social-media/prd.json +0 -43
  138. package/template/workers/content-brand/README.md +0 -59
  139. package/template/workers/content-brand/skills/messaging-alignment.md +0 -91
  140. package/template/workers/content-brand/skills/tone-check.md +0 -76
  141. package/template/workers/content-brand/skills/voice-analysis.md +0 -68
  142. package/template/workers/content-brand/worker.yaml +0 -81
  143. package/template/workers/content-legal/README.md +0 -80
  144. package/template/workers/content-legal/skills/claim-substantiation.md +0 -150
  145. package/template/workers/content-legal/skills/compliance-scan.md +0 -123
  146. package/template/workers/content-legal/skills/disclaimer-check.md +0 -146
  147. package/template/workers/content-legal/worker.yaml +0 -118
  148. package/template/workers/content-product/README.md +0 -77
  149. package/template/workers/content-product/skills/claim-verification.md +0 -96
  150. package/template/workers/content-product/skills/feature-accuracy.md +0 -117
  151. package/template/workers/content-product/skills/stats-check.md +0 -128
  152. package/template/workers/content-product/worker.yaml +0 -97
  153. package/template/workers/content-sales/README.md +0 -70
  154. package/template/workers/content-sales/skills/conversion-analysis.md +0 -96
  155. package/template/workers/content-sales/skills/cta-audit.md +0 -107
  156. package/template/workers/content-sales/skills/value-prop-check.md +0 -114
  157. package/template/workers/content-sales/worker.yaml +0 -93
  158. package/template/workers/content-shared/cli.ts +0 -242
  159. package/template/workers/content-shared/index.ts +0 -234
  160. package/template/workers/content-shared/lib/accuracy-analyzer.ts +0 -661
  161. package/template/workers/content-shared/lib/analyze.ts +0 -370
  162. package/template/workers/content-shared/lib/brand-analyzer.ts +0 -526
  163. package/template/workers/content-shared/lib/cms-integration.ts +0 -446
  164. package/template/workers/content-shared/lib/compliance-analyzer.ts +0 -655
  165. package/template/workers/content-shared/lib/conversion-analyzer.ts +0 -555
  166. package/template/workers/content-shared/lib/github-integration.ts +0 -582
  167. package/template/workers/content-shared/lib/output.ts +0 -373
  168. package/template/workers/content-shared/lib/parser.ts +0 -771
  169. package/template/workers/content-shared/lib/priority.ts +0 -439
  170. package/template/workers/content-shared/lib/recommendations.ts +0 -512
  171. package/template/workers/content-shared/lib/reporter.ts +0 -749
  172. package/template/workers/content-shared/lib/restructure.ts +0 -664
  173. package/template/workers/content-shared/lib/scorer.ts +0 -140
  174. package/template/workers/content-shared/lib/types.ts +0 -227
  175. package/template/workers/content-shared/lib/variants.ts +0 -595
  176. package/template/workers/content-shared/package.json +0 -51
  177. package/template/workers/content-shared/pnpm-lock.yaml +0 -39
  178. package/template/workers/content-shared/test/sample-page.json +0 -115
  179. package/template/workers/content-shared/tsconfig.json +0 -20
  180. package/template/workers/dev-team/README.md +0 -166
  181. package/template/workers/dev-team/_template.yaml +0 -70
  182. package/template/workers/dev-team/architect/package.json +0 -27
  183. package/template/workers/dev-team/architect/skills/api-design.md +0 -89
  184. package/template/workers/dev-team/architect/skills/refactor-plan.md +0 -96
  185. package/template/workers/dev-team/architect/skills/system-design.md +0 -100
  186. package/template/workers/dev-team/architect/src/index.ts +0 -49
  187. package/template/workers/dev-team/architect/src/mcp-server.ts +0 -122
  188. package/template/workers/dev-team/architect/src/skills/api-design.ts +0 -316
  189. package/template/workers/dev-team/architect/src/skills/refactor-plan.ts +0 -264
  190. package/template/workers/dev-team/architect/src/skills/system-design.ts +0 -212
  191. package/template/workers/dev-team/architect/tsconfig.json +0 -19
  192. package/template/workers/dev-team/architect/worker.yaml +0 -128
  193. package/template/workers/dev-team/backend-dev/package-lock.json +0 -1252
  194. package/template/workers/dev-team/backend-dev/package.json +0 -27
  195. package/template/workers/dev-team/backend-dev/skills/implement-endpoint.md +0 -70
  196. package/template/workers/dev-team/backend-dev/skills/implement-service.md +0 -62
  197. package/template/workers/dev-team/backend-dev/src/index.ts +0 -51
  198. package/template/workers/dev-team/backend-dev/src/mcp-server.ts +0 -109
  199. package/template/workers/dev-team/backend-dev/src/skills/implement-endpoint.ts +0 -122
  200. package/template/workers/dev-team/backend-dev/src/skills/implement-service.ts +0 -126
  201. package/template/workers/dev-team/backend-dev/tsconfig.json +0 -19
  202. package/template/workers/dev-team/backend-dev/worker.yaml +0 -128
  203. package/template/workers/dev-team/code-reviewer/package-lock.json +0 -1080
  204. package/template/workers/dev-team/code-reviewer/package.json +0 -24
  205. package/template/workers/dev-team/code-reviewer/skills/merge-to-production.md +0 -61
  206. package/template/workers/dev-team/code-reviewer/skills/merge-to-staging.md +0 -54
  207. package/template/workers/dev-team/code-reviewer/skills/request-changes.md +0 -63
  208. package/template/workers/dev-team/code-reviewer/skills/review-pr.md +0 -77
  209. package/template/workers/dev-team/code-reviewer/src/index.ts +0 -56
  210. package/template/workers/dev-team/code-reviewer/src/mcp-server.ts +0 -101
  211. package/template/workers/dev-team/code-reviewer/tsconfig.json +0 -19
  212. package/template/workers/dev-team/code-reviewer/worker.yaml +0 -90
  213. package/template/workers/dev-team/database-dev/package.json +0 -22
  214. package/template/workers/dev-team/database-dev/skills/create-schema.md +0 -48
  215. package/template/workers/dev-team/database-dev/src/index.ts +0 -50
  216. package/template/workers/dev-team/database-dev/src/mcp-server.ts +0 -76
  217. package/template/workers/dev-team/database-dev/tsconfig.json +0 -18
  218. package/template/workers/dev-team/database-dev/worker.yaml +0 -90
  219. package/template/workers/dev-team/frontend-dev/package.json +0 -22
  220. package/template/workers/dev-team/frontend-dev/skills/create-component.md +0 -26
  221. package/template/workers/dev-team/frontend-dev/src/index.ts +0 -50
  222. package/template/workers/dev-team/frontend-dev/src/mcp-server.ts +0 -77
  223. package/template/workers/dev-team/frontend-dev/tsconfig.json +0 -18
  224. package/template/workers/dev-team/frontend-dev/worker.yaml +0 -132
  225. package/template/workers/dev-team/infra-dev/package.json +0 -24
  226. package/template/workers/dev-team/infra-dev/skills/add-monitoring.md +0 -73
  227. package/template/workers/dev-team/infra-dev/skills/configure-deployment.md +0 -80
  228. package/template/workers/dev-team/infra-dev/skills/create-dockerfile.md +0 -62
  229. package/template/workers/dev-team/infra-dev/skills/setup-cicd.md +0 -63
  230. package/template/workers/dev-team/infra-dev/src/index.ts +0 -55
  231. package/template/workers/dev-team/infra-dev/src/mcp-server.ts +0 -82
  232. package/template/workers/dev-team/infra-dev/tsconfig.json +0 -19
  233. package/template/workers/dev-team/infra-dev/worker.yaml +0 -92
  234. package/template/workers/dev-team/knowledge-curator/package.json +0 -24
  235. package/template/workers/dev-team/knowledge-curator/skills/curate-troubleshooting.md +0 -63
  236. package/template/workers/dev-team/knowledge-curator/skills/process-learnings.md +0 -61
  237. package/template/workers/dev-team/knowledge-curator/skills/sync-documentation.md +0 -76
  238. package/template/workers/dev-team/knowledge-curator/skills/update-patterns.md +0 -63
  239. package/template/workers/dev-team/knowledge-curator/src/index.ts +0 -53
  240. package/template/workers/dev-team/knowledge-curator/src/mcp-server.ts +0 -92
  241. package/template/workers/dev-team/knowledge-curator/tsconfig.json +0 -19
  242. package/template/workers/dev-team/knowledge-curator/worker.yaml +0 -80
  243. package/template/workers/dev-team/motion-designer/package.json +0 -22
  244. package/template/workers/dev-team/motion-designer/skills/add-animation.md +0 -25
  245. package/template/workers/dev-team/motion-designer/skills/generate-image.md +0 -36
  246. package/template/workers/dev-team/motion-designer/src/index.ts +0 -63
  247. package/template/workers/dev-team/motion-designer/src/mcp-server.ts +0 -79
  248. package/template/workers/dev-team/motion-designer/tsconfig.json +0 -18
  249. package/template/workers/dev-team/motion-designer/worker.yaml +0 -84
  250. package/template/workers/dev-team/product-planner/queue.json +0 -4
  251. package/template/workers/dev-team/product-planner/worker.yaml +0 -220
  252. package/template/workers/dev-team/project-manager/package-lock.json +0 -1252
  253. package/template/workers/dev-team/project-manager/package.json +0 -27
  254. package/template/workers/dev-team/project-manager/skills/create-prd.md +0 -66
  255. package/template/workers/dev-team/project-manager/skills/next-issue.md +0 -51
  256. package/template/workers/dev-team/project-manager/skills/project-status.md +0 -59
  257. package/template/workers/dev-team/project-manager/skills/update-learnings.md +0 -65
  258. package/template/workers/dev-team/project-manager/src/index.ts +0 -54
  259. package/template/workers/dev-team/project-manager/src/mcp-server.ts +0 -207
  260. package/template/workers/dev-team/project-manager/src/skills/create-prd.ts +0 -86
  261. package/template/workers/dev-team/project-manager/src/skills/next-issue.ts +0 -137
  262. package/template/workers/dev-team/project-manager/src/skills/project-status.ts +0 -131
  263. package/template/workers/dev-team/project-manager/src/skills/update-learnings.ts +0 -94
  264. package/template/workers/dev-team/project-manager/tsconfig.json +0 -19
  265. package/template/workers/dev-team/project-manager/worker.yaml +0 -96
  266. package/template/workers/dev-team/qa-tester/package.json +0 -24
  267. package/template/workers/dev-team/qa-tester/skills/create-demo-account.md +0 -36
  268. package/template/workers/dev-team/qa-tester/skills/run-tests.md +0 -36
  269. package/template/workers/dev-team/qa-tester/skills/write-test.md +0 -27
  270. package/template/workers/dev-team/qa-tester/src/index.ts +0 -61
  271. package/template/workers/dev-team/qa-tester/src/mcp-server.ts +0 -88
  272. package/template/workers/dev-team/qa-tester/tsconfig.json +0 -18
  273. package/template/workers/dev-team/qa-tester/worker.yaml +0 -116
  274. package/template/workers/dev-team/task-executor/package-lock.json +0 -1252
  275. package/template/workers/dev-team/task-executor/package.json +0 -27
  276. package/template/workers/dev-team/task-executor/skills/analyze-issue.md +0 -101
  277. package/template/workers/dev-team/task-executor/skills/execute.md +0 -133
  278. package/template/workers/dev-team/task-executor/skills/report-learnings.md +0 -106
  279. package/template/workers/dev-team/task-executor/skills/validate-completion.md +0 -121
  280. package/template/workers/dev-team/task-executor/src/index.ts +0 -54
  281. package/template/workers/dev-team/task-executor/src/mcp-server.ts +0 -139
  282. package/template/workers/dev-team/task-executor/src/skills/analyze-issue.ts +0 -219
  283. package/template/workers/dev-team/task-executor/src/skills/execute.ts +0 -132
  284. package/template/workers/dev-team/task-executor/src/skills/report-learnings.ts +0 -119
  285. package/template/workers/dev-team/task-executor/src/skills/validate-completion.ts +0 -142
  286. package/template/workers/dev-team/task-executor/tsconfig.json +0 -19
  287. package/template/workers/dev-team/task-executor/worker.yaml +0 -110
  288. package/template/workers/registry.yaml +0 -171
  289. package/template/workers/security-scanner/README.md +0 -73
  290. package/template/workers/security-scanner/skills/pre-deploy-check.md +0 -205
  291. package/template/workers/security-scanner/worker.yaml +0 -26
  292. package/template/workspace/checkpoints/.gitkeep +0 -0
  293. package/template/workspace/content-ideas/inbox.jsonl +0 -0
  294. package/template/workspace/drafts/.gitkeep +0 -0
  295. package/template/workspace/learnings/.gitkeep +0 -3
  296. package/template/workspace/orchestrator/.gitkeep +0 -0
  297. package/template/workspace/ralph-test/COMPLETE.md +0 -18
  298. package/template/workspace/ralph-test/hello.txt +0 -2
  299. package/template/workspace/reports/.gitkeep +0 -0
  300. package/template/workspace/scratch/.gitkeep +0 -0
  301. package/template/workspace/threads/.gitkeep +0 -3
@@ -1,182 +0,0 @@
1
- # Skill Interface Schema
2
-
3
- Formalized skill structure for consistent tooling and discovery. Inspired by Loom's tool system.
4
-
5
- ## Skill Definition
6
-
7
- Skills can be defined as YAML (in worker.yaml) or as standalone .md files with YAML frontmatter.
8
-
9
- ### Inline in worker.yaml
10
-
11
- ```yaml
12
- worker:
13
- id: cfo-worker
14
- # ...
15
-
16
- skills:
17
- - id: mrr
18
- name: "MRR Report"
19
- description: "Current MRR from Stripe subscriptions"
20
-
21
- interface:
22
- inputs:
23
- - name: months
24
- type: number
25
- default: 1
26
- description: "Months to include"
27
- outputs:
28
- - name: report
29
- type: markdown
30
- destination: workspace/reports/finance/
31
-
32
- verification:
33
- - command: "test -f {output}"
34
- description: "Output file exists"
35
-
36
- mutating: false
37
- ```
38
-
39
- ### Standalone Skill File
40
-
41
- `workers/{worker-id}/skills/{skill-id}.md`:
42
-
43
- ```yaml
44
- ---
45
- skill:
46
- id: mrr
47
- name: "MRR Report"
48
- description: "Current MRR from Stripe subscriptions"
49
-
50
- interface:
51
- inputs:
52
- - name: months
53
- type: number
54
- default: 1
55
- outputs:
56
- - name: report
57
- type: markdown
58
- destination: workspace/reports/finance/
59
-
60
- verification:
61
- - command: "test -f {output}"
62
-
63
- mutating: false
64
- ---
65
-
66
- # MRR Report Skill
67
-
68
- Instructions for executing this skill...
69
- ```
70
-
71
- ## Schema Reference
72
-
73
- ### Core Fields
74
-
75
- | Field | Type | Required | Description |
76
- |-------|------|----------|-------------|
77
- | `id` | string | yes | Unique skill identifier |
78
- | `name` | string | yes | Human-readable name |
79
- | `description` | string | yes | Brief description |
80
- | `mutating` | boolean | no | Triggers PostToolsHook if true |
81
-
82
- ### Interface
83
-
84
- ```yaml
85
- interface:
86
- inputs:
87
- - name: string # parameter name
88
- type: string # string, number, boolean, array
89
- required: boolean # default: false
90
- default: any # default value
91
- description: string # help text
92
-
93
- outputs:
94
- - name: string # output name
95
- type: string # markdown, json, file, git_commit
96
- destination: string # output path pattern
97
- ```
98
-
99
- ### Verification
100
-
101
- ```yaml
102
- verification:
103
- - command: string # shell command (use {output} placeholder)
104
- description: string # what this verifies
105
- must_pass: boolean # default: true
106
- ```
107
-
108
- ### Mutating Flag
109
-
110
- If `mutating: true`:
111
- - PostToolsHook runs after execution
112
- - Thread auto-saved
113
- - Metrics logged
114
-
115
- Mutating skills typically:
116
- - Write files
117
- - Make git commits
118
- - Modify external state
119
-
120
- ## Input Types
121
-
122
- | Type | Description | Example |
123
- |------|-------------|---------|
124
- | `string` | Text input | `"customer-cube"` |
125
- | `number` | Numeric | `6` |
126
- | `boolean` | True/false | `true` |
127
- | `array` | List | `["a", "b"]` |
128
- | `date` | ISO date | `"2026-01-23"` |
129
- | `path` | File path | `"workspace/reports/"` |
130
-
131
- ## Output Types
132
-
133
- | Type | Description |
134
- |------|-------------|
135
- | `markdown` | Markdown file |
136
- | `json` | JSON file |
137
- | `file` | Generic file |
138
- | `git_commit` | Creates commit |
139
- | `console` | Prints to console |
140
-
141
- ## Example Skills
142
-
143
- ### Read-Only (non-mutating)
144
-
145
- ```yaml
146
- skills:
147
- - id: mrr
148
- name: "MRR Report"
149
- description: "Current MRR"
150
- interface:
151
- outputs:
152
- - type: console
153
- verification: []
154
- mutating: false
155
- ```
156
-
157
- ### File-Generating (mutating)
158
-
159
- ```yaml
160
- skills:
161
- - id: monthly-report
162
- name: "Monthly Report"
163
- description: "Generate monthly financial report"
164
- interface:
165
- inputs:
166
- - name: month
167
- type: string
168
- required: true
169
- outputs:
170
- - name: report
171
- type: markdown
172
- destination: "workspace/reports/finance/{month}-report.md"
173
- verification:
174
- - command: "test -f workspace/reports/finance/{month}-report.md"
175
- mutating: true
176
- ```
177
-
178
- ## See Also
179
-
180
- - [Worker Framework](./README.md)
181
- - [State Machine](./state-machine.md)
182
- - [Loom Tools](../loom/tools.md) - Inspiration
@@ -1,102 +0,0 @@
1
- # Worker State Machine
2
-
3
- Workers follow an explicit state machine for predictable execution. Inspired by Loom's agent FSM.
4
-
5
- ## States
6
-
7
- ```
8
- Idle → Loading → Planning → Executing → Verifying → PostHook → Completed
9
-
10
- Error → (retry or fail)
11
- ```
12
-
13
- | State | Description |
14
- |-------|-------------|
15
- | `idle` | Worker ready, no active task |
16
- | `loading` | Loading context (worker.yaml, knowledge files) |
17
- | `planning` | Analyzing task, determining approach |
18
- | `executing` | Running skill logic |
19
- | `verifying` | Running verification checks |
20
- | `post_hook` | Auto-checkpoint, metrics logging |
21
- | `completed` | Skill finished successfully |
22
- | `error` | Recoverable error, may retry |
23
-
24
- ## State Transitions
25
-
26
- | From | Event | To |
27
- |------|-------|----|
28
- | idle | skill_requested | loading |
29
- | loading | context_loaded | planning |
30
- | loading | load_failed | error |
31
- | planning | plan_ready | executing |
32
- | executing | execution_done | verifying |
33
- | executing | execution_failed | error |
34
- | verifying | verification_passed | post_hook |
35
- | verifying | verification_failed | error |
36
- | post_hook | hook_complete | completed |
37
- | error | retry | loading |
38
- | error | max_retries | completed (with error) |
39
-
40
- ## State in Thread
41
-
42
- When saving a thread, capture current worker state:
43
-
44
- ```json
45
- {
46
- "worker": {
47
- "id": "{worker-id}",
48
- "skill": "mrr",
49
- "state": "completed",
50
- "started_at": "ISO8601",
51
- "completed_at": "ISO8601",
52
- "error": null
53
- }
54
- }
55
- ```
56
-
57
- ## Hooks
58
-
59
- ### post_execute
60
-
61
- Runs after successful execution, before completion:
62
- - `auto_checkpoint` - Save thread to workspace/threads/
63
- - `log_metrics` - Append to workspace/metrics/metrics.jsonl
64
-
65
- ### on_error
66
-
67
- Runs when entering error state:
68
- - `log_error` - Record error details
69
- - `checkpoint_error_state` - Save thread with error info
70
-
71
- ## worker.yaml Schema Addition
72
-
73
- ```yaml
74
- worker:
75
- id: example-worker
76
- # ... existing fields ...
77
-
78
- state_machine:
79
- enabled: true
80
- max_retries: 1
81
-
82
- hooks:
83
- post_execute:
84
- - auto_checkpoint
85
- - log_metrics
86
- on_error:
87
- - log_error
88
- - checkpoint_error_state
89
- ```
90
-
91
- ## Benefits
92
-
93
- 1. **Predictable** - Every worker follows same lifecycle
94
- 2. **Debuggable** - State captured in threads
95
- 3. **Resilient** - Retry logic built-in
96
- 4. **Observable** - Metrics on state transitions
97
-
98
- ## See Also
99
-
100
- - [Thread Schema](../hq-core/thread-schema.md) - Thread format
101
- - [Loom State Machine](../loom/state-machine.md) - Inspiration
102
- - [Worker Framework](./README.md) - Worker docs
@@ -1,73 +0,0 @@
1
- # Base Worker Template
2
- # Copy and customize for your worker
3
-
4
- worker:
5
- id: my-worker # unique identifier
6
- name: "My Worker" # human-readable name
7
- type: CodeWorker # CodeWorker, SocialWorker, ResearchWorker, OpsWorker
8
- version: "1.0"
9
-
10
- identity:
11
- # Choose one:
12
- # persona: your-name
13
- # company_context: companies/acme/
14
- # voice_guide: knowledge/my-brand/voice-style.md
15
-
16
- execution:
17
- mode: on-demand # on-demand, scheduled, event-triggered
18
- # schedule: "0 9 * * *" # cron format (if scheduled)
19
- max_runtime: 15m
20
- retry_attempts: 3
21
-
22
- context:
23
- base: # always loaded
24
- - path/to/required/file.md
25
- dynamic: # loaded per task
26
- - path/to/task/context/
27
- exclude: # never load
28
- - "*.test.*"
29
- - node_modules/
30
-
31
- verification:
32
- pre_execute: [] # checks before starting
33
- post_execute: # checks before marking done
34
- - check: output_valid
35
- approval_required: false # true = human reviews before action
36
-
37
- tasks:
38
- source: path/to/tasks.json # or prd.json
39
- format: simple # simple, prd
40
- one_at_a_time: true # always true (Ralph principle)
41
-
42
- output:
43
- destination: path/to/output/
44
- format: markdown # markdown, json, git_commit
45
-
46
- audit:
47
- log: workers/logs/my-worker.log
48
- progress: workers/progress/my-worker.txt
49
-
50
- # State Machine (Loom pattern)
51
- state_machine:
52
- enabled: true
53
- max_retries: 1
54
-
55
- hooks:
56
- post_execute:
57
- - auto_checkpoint # save thread to workspace/threads/
58
- - log_metrics # append to workspace/metrics/metrics.jsonl
59
- on_error:
60
- - log_error
61
- - checkpoint_error_state
62
-
63
- instructions: |
64
- Worker-specific instructions go here.
65
-
66
- Protocol:
67
- 1. Step one
68
- 2. Step two
69
- 3. Step three
70
-
71
- Never:
72
- - Thing to avoid
73
- - Another thing to avoid
@@ -1,85 +0,0 @@
1
- # Code Worker Template
2
- # For implementing features, fixing bugs, refactoring
3
-
4
- worker:
5
- id: code-{project}
6
- name: "{Project} Code Worker"
7
- type: CodeWorker
8
- version: "1.0"
9
-
10
- identity:
11
- company_context: companies/{company}/
12
-
13
- execution:
14
- mode: on-demand
15
- max_runtime: 30m
16
- retry_attempts: 3
17
-
18
- context:
19
- base:
20
- - companies/{company}/README.md
21
- dynamic:
22
- - repos/{visibility}/{repo}/src/
23
- exclude:
24
- - "*.test.*"
25
- - node_modules/
26
- - dist/
27
- - .git/
28
-
29
- verification:
30
- pre_execute:
31
- - check: branch_clean
32
- command: "git status --porcelain"
33
- post_execute:
34
- - check: tests
35
- command: "npm test"
36
- - check: lint
37
- command: "npm run lint"
38
- - check: typecheck
39
- command: "npm run typecheck"
40
- - check: build
41
- command: "npm run build"
42
- approval_required: false # auto-commit if all pass
43
-
44
- tasks:
45
- source: workers/code/{id}/prd.json
46
- format: prd
47
- one_at_a_time: true
48
-
49
- output:
50
- destination: null # commits directly to repo
51
- format: git_commit
52
-
53
- audit:
54
- log: workers/code/logs/{id}.log
55
- progress: workers/code/progress/{id}.txt
56
-
57
- instructions: |
58
- You are a code worker for {project}.
59
-
60
- Tech Stack:
61
- - [List technologies]
62
-
63
- Protocol:
64
- 1. Read PRD, find first item where passes: false
65
- 2. Implement ONLY that feature
66
- 3. Write tests for new functionality
67
- 4. Run all verification checks
68
- 5. If ALL pass: commit with conventional message, update PRD
69
- 6. If ANY fail: fix and retry (up to retry_attempts)
70
- 7. Log progress
71
-
72
- Commit Format:
73
- feat(scope): short description
74
-
75
- - Detail 1
76
- - Detail 2
77
-
78
- Implements: {feature-id}
79
-
80
- Never:
81
- - Modify multiple features per iteration
82
- - Skip tests
83
- - Use `any` type (TypeScript)
84
- - Leave console.logs in production
85
- - Commit without passing all checks
@@ -1,49 +0,0 @@
1
- # Skill Template
2
- # Use as YAML frontmatter in .md skill files, or inline in worker.yaml
3
-
4
- skill:
5
- id: my-skill # unique within worker
6
- name: "My Skill" # human-readable name
7
- description: "What this skill does"
8
-
9
- interface:
10
- inputs:
11
- - name: param1
12
- type: string # string, number, boolean, array, date, path
13
- required: false
14
- default: "default-value"
15
- description: "Parameter description"
16
-
17
- - name: param2
18
- type: number
19
- required: false
20
- default: 1
21
-
22
- outputs:
23
- - name: report
24
- type: markdown # markdown, json, file, git_commit, console
25
- destination: "workspace/reports/{name}.md" # path pattern
26
-
27
- verification:
28
- - command: "test -f {output}"
29
- description: "Output file exists"
30
- must_pass: true
31
-
32
- # Triggers PostToolsHook (auto-checkpoint, metrics) if true
33
- mutating: false
34
-
35
- # --- Below this line goes in the .md file body ---
36
- #
37
- # # My Skill
38
- #
39
- # ## Purpose
40
- # What this skill accomplishes.
41
- #
42
- # ## Process
43
- # 1. First step
44
- # 2. Second step
45
- # 3. Third step
46
- #
47
- # ## Notes
48
- # - Important consideration
49
- # - Another note
@@ -1,70 +0,0 @@
1
- # Social Worker Template
2
- # For X/Twitter, LinkedIn, etc.
3
-
4
- worker:
5
- id: social-{platform}-{persona}
6
- name: "{Persona}'s {Platform} Worker"
7
- type: SocialWorker
8
- version: "1.0"
9
-
10
- identity:
11
- persona: {persona}
12
- voice_guide: knowledge/{persona}/voice-style.md
13
-
14
- execution:
15
- mode: scheduled
16
- schedule: "0 9,14,19 * * *" # 9am, 2pm, 7pm
17
- max_runtime: 10m
18
- retry_attempts: 2
19
-
20
- context:
21
- base:
22
- - knowledge/{persona}/voice-style.md
23
- - knowledge/{persona}/profile.md
24
- dynamic:
25
- - social-content/trends/
26
- - social-content/drafts/{platform}/
27
-
28
- verification:
29
- post_execute:
30
- - check: character_count
31
- max: 280 # adjust per platform
32
- - check: voice_consistency
33
- reference: knowledge/{persona}/voice-style.md
34
- approval_required: true # always review before posting
35
-
36
- tasks:
37
- source: workers/social/{id}/queue.json
38
- format: simple
39
- one_at_a_time: true
40
-
41
- output:
42
- destination: social-content/drafts/{platform}/
43
- format: markdown
44
- naming: "{date}-{time}-draft.md"
45
-
46
- audit:
47
- log: workers/social/logs/{id}.log
48
- progress: workers/social/progress/{id}.txt
49
-
50
- instructions: |
51
- You are {persona}'s {platform} worker.
52
-
53
- Task Types:
54
- - generate: Create original post on given topic
55
- - respond: Draft reply to specified thread
56
- - curate: Find content to repost with commentary
57
-
58
- Protocol:
59
- 1. Check queue for pending task
60
- 2. Execute based on task type
61
- 3. Save draft to output destination
62
- 4. Log progress
63
-
64
- Style Guidelines:
65
- - [Add platform-specific style notes]
66
-
67
- Never:
68
- - Post without approval
69
- - Use corporate jargon
70
- - Over-explain
@@ -1,92 +0,0 @@
1
- # Example: Full HQ Modules Manifest
2
- # Shows various module configurations for different use cases
3
-
4
- version: "1.0"
5
-
6
- modules:
7
- # =============================================================================
8
- # CORE MODULE
9
- # Official HQ updates - recommended for all users
10
- # =============================================================================
11
- - name: hq-core
12
- repo: https://github.com/coreyepstein/hq-starter-kit.git
13
- branch: main
14
- strategy: merge
15
- access: public
16
- paths:
17
- # Core knowledge bases
18
- knowledge/Ralph: knowledge/Ralph
19
- knowledge/workers: knowledge/workers
20
- # Commands and configuration
21
- .claude/commands: .claude/commands
22
- # Worker templates
23
- workers/examples: workers/examples
24
-
25
- # =============================================================================
26
- # COMPANY MODULES
27
- # Shared across your organization
28
- # =============================================================================
29
-
30
- # Company-wide shared resources
31
- - name: acme-shared
32
- repo: https://github.com/acme-corp/hq-shared.git
33
- branch: main
34
- strategy: link
35
- access: team
36
- paths:
37
- # Company knowledge
38
- knowledge/company: knowledge/acme
39
- knowledge/processes: knowledge/acme/processes
40
- # Shared worker configurations
41
- workers/shared: workers/acme-shared
42
- # Company templates
43
- templates: templates/acme
44
-
45
- # Engineering team module
46
- - name: acme-engineering
47
- repo: https://github.com/acme-corp/hq-engineering.git
48
- branch: main
49
- strategy: merge
50
- access: "role:engineer"
51
- paths:
52
- # Tech stack documentation
53
- knowledge/tech-stack: knowledge/tech-stack
54
- # Code review guidelines
55
- knowledge/code-review: knowledge/engineering/code-review
56
- # Engineering-specific workers
57
- workers/code: workers/engineering
58
-
59
- # Design team module
60
- - name: acme-design
61
- repo: https://github.com/acme-corp/hq-design.git
62
- branch: main
63
- strategy: copy
64
- access: "role:designer"
65
- paths:
66
- knowledge/design-system: knowledge/design-system
67
- knowledge/brand: knowledge/brand
68
-
69
- # =============================================================================
70
- # COMMUNITY/THIRD-PARTY MODULES
71
- # Optional integrations
72
- # =============================================================================
73
-
74
- # Social media management extension
75
- - name: social-pro
76
- repo: https://github.com/hq-community/social-pro.git
77
- branch: stable
78
- strategy: merge
79
- access: public
80
- paths:
81
- workers/social: workers/social-extended
82
- knowledge/social-strategy: knowledge/social
83
-
84
- # Research and analysis tools
85
- - name: research-toolkit
86
- repo: https://github.com/hq-community/research-toolkit.git
87
- branch: main
88
- strategy: copy
89
- access: public
90
- paths:
91
- workers/research: workers/research
92
- knowledge/research-methods: knowledge/research
@@ -1,14 +0,0 @@
1
- # Example: Minimal modules.yaml
2
- # Just the essentials for getting started
3
-
4
- version: "1.0"
5
-
6
- modules:
7
- - name: hq-core
8
- repo: https://github.com/coreyepstein/hq-starter-kit.git
9
- branch: main
10
- strategy: merge
11
- access: public
12
- paths:
13
- knowledge/Ralph: knowledge/Ralph
14
- .claude/commands: .claude/commands