@hera-al/server 1.6.1

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 (348) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +325 -0
  3. package/bundled/apple-notes/SKILL.md +77 -0
  4. package/bundled/apple-reminders/SKILL.md +96 -0
  5. package/bundled/blogwatcher/SKILL.md +69 -0
  6. package/bundled/camsnap/SKILL.md +45 -0
  7. package/bundled/discord/SKILL.md +578 -0
  8. package/bundled/gemini/SKILL.md +43 -0
  9. package/bundled/gifgrep/SKILL.md +79 -0
  10. package/bundled/github/SKILL.md +77 -0
  11. package/bundled/gog/SKILL.md +116 -0
  12. package/bundled/goplaces/SKILL.md +52 -0
  13. package/bundled/himalaya/SKILL.md +257 -0
  14. package/bundled/himalaya/references/configuration.md +184 -0
  15. package/bundled/himalaya/references/message-composition.md +199 -0
  16. package/bundled/homebrew/SKILL.md +82 -0
  17. package/bundled/local-places/SERVER_README.md +101 -0
  18. package/bundled/local-places/SKILL.md +102 -0
  19. package/bundled/local-places/pyproject.toml +21 -0
  20. package/bundled/local-places/src/local_places/__init__.py +2 -0
  21. package/bundled/local-places/src/local_places/google_places.py +314 -0
  22. package/bundled/local-places/src/local_places/main.py +65 -0
  23. package/bundled/local-places/src/local_places/schemas.py +107 -0
  24. package/bundled/markitdown/SKILL.md +96 -0
  25. package/bundled/mcporter/SKILL.md +61 -0
  26. package/bundled/merge-pr/SKILL.md +187 -0
  27. package/bundled/merge-pr/agents/openai.yaml +4 -0
  28. package/bundled/nano-banana-pro/SKILL.md +58 -0
  29. package/bundled/nano-banana-pro/scripts/generate_image.py +184 -0
  30. package/bundled/nano-pdf/SKILL.md +38 -0
  31. package/bundled/open-prose/README.md +25 -0
  32. package/bundled/open-prose/index.ts +5 -0
  33. package/bundled/open-prose/openclaw.plugin.json +11 -0
  34. package/bundled/open-prose/package.json +15 -0
  35. package/bundled/open-prose/skills/prose/LICENSE +21 -0
  36. package/bundled/open-prose/skills/prose/SKILL.md +323 -0
  37. package/bundled/open-prose/skills/prose/alt-borges.md +141 -0
  38. package/bundled/open-prose/skills/prose/alts/arabian-nights.md +358 -0
  39. package/bundled/open-prose/skills/prose/alts/borges.md +360 -0
  40. package/bundled/open-prose/skills/prose/alts/folk.md +322 -0
  41. package/bundled/open-prose/skills/prose/alts/homer.md +346 -0
  42. package/bundled/open-prose/skills/prose/alts/kafka.md +373 -0
  43. package/bundled/open-prose/skills/prose/compiler.md +2971 -0
  44. package/bundled/open-prose/skills/prose/examples/01-hello-world.prose +4 -0
  45. package/bundled/open-prose/skills/prose/examples/02-research-and-summarize.prose +6 -0
  46. package/bundled/open-prose/skills/prose/examples/03-code-review.prose +17 -0
  47. package/bundled/open-prose/skills/prose/examples/04-write-and-refine.prose +14 -0
  48. package/bundled/open-prose/skills/prose/examples/05-debug-issue.prose +20 -0
  49. package/bundled/open-prose/skills/prose/examples/06-explain-codebase.prose +17 -0
  50. package/bundled/open-prose/skills/prose/examples/07-refactor.prose +20 -0
  51. package/bundled/open-prose/skills/prose/examples/08-blog-post.prose +20 -0
  52. package/bundled/open-prose/skills/prose/examples/09-research-with-agents.prose +25 -0
  53. package/bundled/open-prose/skills/prose/examples/10-code-review-agents.prose +32 -0
  54. package/bundled/open-prose/skills/prose/examples/11-skills-and-imports.prose +27 -0
  55. package/bundled/open-prose/skills/prose/examples/12-secure-agent-permissions.prose +43 -0
  56. package/bundled/open-prose/skills/prose/examples/13-variables-and-context.prose +51 -0
  57. package/bundled/open-prose/skills/prose/examples/14-composition-blocks.prose +48 -0
  58. package/bundled/open-prose/skills/prose/examples/15-inline-sequences.prose +23 -0
  59. package/bundled/open-prose/skills/prose/examples/16-parallel-reviews.prose +19 -0
  60. package/bundled/open-prose/skills/prose/examples/17-parallel-research.prose +19 -0
  61. package/bundled/open-prose/skills/prose/examples/18-mixed-parallel-sequential.prose +36 -0
  62. package/bundled/open-prose/skills/prose/examples/19-advanced-parallel.prose +71 -0
  63. package/bundled/open-prose/skills/prose/examples/20-fixed-loops.prose +20 -0
  64. package/bundled/open-prose/skills/prose/examples/21-pipeline-operations.prose +35 -0
  65. package/bundled/open-prose/skills/prose/examples/22-error-handling.prose +51 -0
  66. package/bundled/open-prose/skills/prose/examples/23-retry-with-backoff.prose +63 -0
  67. package/bundled/open-prose/skills/prose/examples/24-choice-blocks.prose +86 -0
  68. package/bundled/open-prose/skills/prose/examples/25-conditionals.prose +114 -0
  69. package/bundled/open-prose/skills/prose/examples/26-parameterized-blocks.prose +100 -0
  70. package/bundled/open-prose/skills/prose/examples/27-string-interpolation.prose +105 -0
  71. package/bundled/open-prose/skills/prose/examples/28-automated-pr-review.prose +37 -0
  72. package/bundled/open-prose/skills/prose/examples/28-gas-town.prose +1572 -0
  73. package/bundled/open-prose/skills/prose/examples/29-captains-chair.prose +218 -0
  74. package/bundled/open-prose/skills/prose/examples/30-captains-chair-simple.prose +42 -0
  75. package/bundled/open-prose/skills/prose/examples/31-captains-chair-with-memory.prose +145 -0
  76. package/bundled/open-prose/skills/prose/examples/33-pr-review-autofix.prose +168 -0
  77. package/bundled/open-prose/skills/prose/examples/34-content-pipeline.prose +204 -0
  78. package/bundled/open-prose/skills/prose/examples/35-feature-factory.prose +296 -0
  79. package/bundled/open-prose/skills/prose/examples/36-bug-hunter.prose +237 -0
  80. package/bundled/open-prose/skills/prose/examples/37-the-forge.prose +1474 -0
  81. package/bundled/open-prose/skills/prose/examples/38-skill-scan.prose +455 -0
  82. package/bundled/open-prose/skills/prose/examples/39-architect-by-simulation.prose +277 -0
  83. package/bundled/open-prose/skills/prose/examples/40-rlm-self-refine.prose +32 -0
  84. package/bundled/open-prose/skills/prose/examples/41-rlm-divide-conquer.prose +38 -0
  85. package/bundled/open-prose/skills/prose/examples/42-rlm-filter-recurse.prose +46 -0
  86. package/bundled/open-prose/skills/prose/examples/43-rlm-pairwise.prose +50 -0
  87. package/bundled/open-prose/skills/prose/examples/44-run-endpoint-ux-test.prose +261 -0
  88. package/bundled/open-prose/skills/prose/examples/45-plugin-release.prose +159 -0
  89. package/bundled/open-prose/skills/prose/examples/45-run-endpoint-ux-test-with-remediation.prose +637 -0
  90. package/bundled/open-prose/skills/prose/examples/46-run-endpoint-ux-test-fast.prose +148 -0
  91. package/bundled/open-prose/skills/prose/examples/46-workflow-crystallizer.prose +225 -0
  92. package/bundled/open-prose/skills/prose/examples/47-language-self-improvement.prose +356 -0
  93. package/bundled/open-prose/skills/prose/examples/48-habit-miner.prose +445 -0
  94. package/bundled/open-prose/skills/prose/examples/49-prose-run-retrospective.prose +210 -0
  95. package/bundled/open-prose/skills/prose/examples/README.md +391 -0
  96. package/bundled/open-prose/skills/prose/examples/roadmap/README.md +22 -0
  97. package/bundled/open-prose/skills/prose/examples/roadmap/iterative-refinement.prose +20 -0
  98. package/bundled/open-prose/skills/prose/examples/roadmap/parallel-review.prose +18 -0
  99. package/bundled/open-prose/skills/prose/examples/roadmap/simple-pipeline.prose +17 -0
  100. package/bundled/open-prose/skills/prose/examples/roadmap/syntax/open-prose-syntax.prose +223 -0
  101. package/bundled/open-prose/skills/prose/guidance/antipatterns.md +951 -0
  102. package/bundled/open-prose/skills/prose/guidance/patterns.md +700 -0
  103. package/bundled/open-prose/skills/prose/guidance/system-prompt.md +180 -0
  104. package/bundled/open-prose/skills/prose/help.md +144 -0
  105. package/bundled/open-prose/skills/prose/lib/README.md +108 -0
  106. package/bundled/open-prose/skills/prose/lib/calibrator.prose +215 -0
  107. package/bundled/open-prose/skills/prose/lib/cost-analyzer.prose +174 -0
  108. package/bundled/open-prose/skills/prose/lib/error-forensics.prose +250 -0
  109. package/bundled/open-prose/skills/prose/lib/inspector.prose +196 -0
  110. package/bundled/open-prose/skills/prose/lib/profiler.prose +460 -0
  111. package/bundled/open-prose/skills/prose/lib/program-improver.prose +275 -0
  112. package/bundled/open-prose/skills/prose/lib/project-memory.prose +118 -0
  113. package/bundled/open-prose/skills/prose/lib/user-memory.prose +93 -0
  114. package/bundled/open-prose/skills/prose/lib/vm-improver.prose +243 -0
  115. package/bundled/open-prose/skills/prose/primitives/session.md +593 -0
  116. package/bundled/open-prose/skills/prose/prose.md +1237 -0
  117. package/bundled/open-prose/skills/prose/state/filesystem.md +498 -0
  118. package/bundled/open-prose/skills/prose/state/in-context.md +384 -0
  119. package/bundled/open-prose/skills/prose/state/postgres.md +880 -0
  120. package/bundled/open-prose/skills/prose/state/sqlite.md +574 -0
  121. package/bundled/peekaboo/SKILL.md +190 -0
  122. package/bundled/prepare-pr/SKILL.md +277 -0
  123. package/bundled/prepare-pr/agents/openai.yaml +4 -0
  124. package/bundled/review-pr/SKILL.md +228 -0
  125. package/bundled/review-pr/agents/openai.yaml +4 -0
  126. package/bundled/sag/SKILL.md +87 -0
  127. package/bundled/skill-creator/SKILL.md +370 -0
  128. package/bundled/skill-creator/license.txt +202 -0
  129. package/bundled/skill-creator/scripts/init_skill.py +378 -0
  130. package/bundled/skill-creator/scripts/package_skill.py +111 -0
  131. package/bundled/skill-creator/scripts/quick_validate.py +101 -0
  132. package/bundled/spotify-player/SKILL.md +64 -0
  133. package/bundled/ssh/SKILL.md +119 -0
  134. package/bundled/summarize/SKILL.md +87 -0
  135. package/bundled/video-frames/SKILL.md +46 -0
  136. package/bundled/video-frames/scripts/frame.sh +81 -0
  137. package/bundled/voice-call/SKILL.md +45 -0
  138. package/bundled/wacli/SKILL.md +72 -0
  139. package/bundled/weather/SKILL.md +54 -0
  140. package/dist/agent/agent-service.d.ts +88 -0
  141. package/dist/agent/agent-service.js +1 -0
  142. package/dist/agent/message-queue.d.ts +24 -0
  143. package/dist/agent/message-queue.js +1 -0
  144. package/dist/agent/prompt-builder.d.ts +58 -0
  145. package/dist/agent/prompt-builder.js +1 -0
  146. package/dist/agent/session-agent.d.ts +197 -0
  147. package/dist/agent/session-agent.js +1 -0
  148. package/dist/agent/session-db.d.ts +26 -0
  149. package/dist/agent/session-db.js +1 -0
  150. package/dist/agent/session-error-handler.d.ts +37 -0
  151. package/dist/agent/session-error-handler.js +1 -0
  152. package/dist/agent/session-manager.d.ts +19 -0
  153. package/dist/agent/session-manager.js +1 -0
  154. package/dist/agent/workspace-files.d.ts +51 -0
  155. package/dist/agent/workspace-files.js +1 -0
  156. package/dist/auth/auth-middleware.d.ts +9 -0
  157. package/dist/auth/auth-middleware.js +1 -0
  158. package/dist/auth/node-signature-db.d.ts +30 -0
  159. package/dist/auth/node-signature-db.js +1 -0
  160. package/dist/auth/token-db.d.ts +38 -0
  161. package/dist/auth/token-db.js +1 -0
  162. package/dist/browser/browser-service.d.ts +9 -0
  163. package/dist/browser/browser-service.js +1 -0
  164. package/dist/channels/channel.d.ts +2 -0
  165. package/dist/channels/channel.js +1 -0
  166. package/dist/channels/responses.d.ts +21 -0
  167. package/dist/channels/responses.js +1 -0
  168. package/dist/commands/clear.d.ts +7 -0
  169. package/dist/commands/clear.js +1 -0
  170. package/dist/commands/cmd.d.ts +7 -0
  171. package/dist/commands/cmd.js +1 -0
  172. package/dist/commands/coder.d.ts +12 -0
  173. package/dist/commands/coder.js +1 -0
  174. package/dist/commands/command-registry.d.ts +12 -0
  175. package/dist/commands/command-registry.js +1 -0
  176. package/dist/commands/command.d.ts +22 -0
  177. package/dist/commands/command.js +1 -0
  178. package/dist/commands/compact.d.ts +7 -0
  179. package/dist/commands/compact.js +1 -0
  180. package/dist/commands/customsubagents.d.ts +15 -0
  181. package/dist/commands/customsubagents.js +1 -0
  182. package/dist/commands/help.d.ts +9 -0
  183. package/dist/commands/help.js +1 -0
  184. package/dist/commands/mcp.d.ts +9 -0
  185. package/dist/commands/mcp.js +1 -0
  186. package/dist/commands/model.d.ts +22 -0
  187. package/dist/commands/model.js +1 -0
  188. package/dist/commands/models.d.ts +11 -0
  189. package/dist/commands/models.js +1 -0
  190. package/dist/commands/new.d.ts +7 -0
  191. package/dist/commands/new.js +1 -0
  192. package/dist/commands/plugin.d.ts +7 -0
  193. package/dist/commands/plugin.js +1 -0
  194. package/dist/commands/sandbox.d.ts +12 -0
  195. package/dist/commands/sandbox.js +1 -0
  196. package/dist/commands/showtool.d.ts +12 -0
  197. package/dist/commands/showtool.js +1 -0
  198. package/dist/commands/status.d.ts +24 -0
  199. package/dist/commands/status.js +1 -0
  200. package/dist/commands/stop.d.ts +10 -0
  201. package/dist/commands/stop.js +1 -0
  202. package/dist/commands/subagents.d.ts +12 -0
  203. package/dist/commands/subagents.js +1 -0
  204. package/dist/commands/usage.d.ts +25 -0
  205. package/dist/commands/usage.js +1 -0
  206. package/dist/commands/useplugin.d.ts +7 -0
  207. package/dist/commands/useplugin.js +1 -0
  208. package/dist/config-watcher.d.ts +14 -0
  209. package/dist/config-watcher.js +1 -0
  210. package/dist/config.d.ts +267 -0
  211. package/dist/config.js +1 -0
  212. package/dist/cron/cron-service.d.ts +57 -0
  213. package/dist/cron/cron-service.js +1 -0
  214. package/dist/cron/heartbeat-token.d.ts +29 -0
  215. package/dist/cron/heartbeat-token.js +1 -0
  216. package/dist/cron/schedule.d.ts +3 -0
  217. package/dist/cron/schedule.js +1 -0
  218. package/dist/cron/store.d.ts +4 -0
  219. package/dist/cron/store.js +1 -0
  220. package/dist/cron/types.d.ts +47 -0
  221. package/dist/cron/types.js +1 -0
  222. package/dist/gateway/bridge.d.ts +38 -0
  223. package/dist/gateway/bridge.js +1 -0
  224. package/dist/gateway/channel-manager.d.ts +45 -0
  225. package/dist/gateway/channel-manager.js +1 -0
  226. package/dist/gateway/channels/qr-image.d.ts +5 -0
  227. package/dist/gateway/channels/qr-image.js +1 -0
  228. package/dist/gateway/channels/telegram.d.ts +39 -0
  229. package/dist/gateway/channels/telegram.js +1 -0
  230. package/dist/gateway/channels/webchat.d.ts +51 -0
  231. package/dist/gateway/channels/webchat.js +1 -0
  232. package/dist/gateway/channels/whatsapp.d.ts +40 -0
  233. package/dist/gateway/channels/whatsapp.js +1 -0
  234. package/dist/gateway/node-registry.d.ts +38 -0
  235. package/dist/gateway/node-registry.js +1 -0
  236. package/dist/heracli/index.d.ts +3 -0
  237. package/dist/heracli/index.js +2 -0
  238. package/dist/heracli/logs.d.ts +13 -0
  239. package/dist/heracli/logs.js +1 -0
  240. package/dist/heracli/security/audit.d.ts +17 -0
  241. package/dist/heracli/security/audit.js +1 -0
  242. package/dist/heracli/security/checks/channel-policies.d.ts +6 -0
  243. package/dist/heracli/security/checks/channel-policies.js +1 -0
  244. package/dist/heracli/security/checks/credentials.d.ts +6 -0
  245. package/dist/heracli/security/checks/credentials.js +1 -0
  246. package/dist/heracli/security/checks/fs-permissions.d.ts +6 -0
  247. package/dist/heracli/security/checks/fs-permissions.js +1 -0
  248. package/dist/heracli/security/checks/network.d.ts +4 -0
  249. package/dist/heracli/security/checks/network.js +1 -0
  250. package/dist/heracli/security/report.d.ts +4 -0
  251. package/dist/heracli/security/report.js +1 -0
  252. package/dist/index.d.ts +3 -0
  253. package/dist/index.js +2 -0
  254. package/dist/installer/hera.d.ts +3 -0
  255. package/dist/installer/hera.js +2 -0
  256. package/dist/media/message-processor.d.ts +23 -0
  257. package/dist/media/message-processor.js +1 -0
  258. package/dist/memory/memory-manager.d.ts +21 -0
  259. package/dist/memory/memory-manager.js +1 -0
  260. package/dist/memory/memory-provider.d.ts +22 -0
  261. package/dist/memory/memory-provider.js +1 -0
  262. package/dist/memory/memory-search.d.ts +102 -0
  263. package/dist/memory/memory-search.js +1 -0
  264. package/dist/memory/recall-strategies.d.ts +2 -0
  265. package/dist/memory/recall-strategies.js +1 -0
  266. package/dist/nostromo/auth.d.ts +29 -0
  267. package/dist/nostromo/auth.js +1 -0
  268. package/dist/nostromo/nostromo.d.ts +23 -0
  269. package/dist/nostromo/nostromo.js +1 -0
  270. package/dist/nostromo/ui-html-layout.d.ts +3 -0
  271. package/dist/nostromo/ui-html-layout.js +1 -0
  272. package/dist/nostromo/ui-html-modals.d.ts +3 -0
  273. package/dist/nostromo/ui-html-modals.js +1 -0
  274. package/dist/nostromo/ui-js-agent.d.ts +3 -0
  275. package/dist/nostromo/ui-js-agent.js +1 -0
  276. package/dist/nostromo/ui-js-channels.d.ts +3 -0
  277. package/dist/nostromo/ui-js-channels.js +1 -0
  278. package/dist/nostromo/ui-js-competences.d.ts +3 -0
  279. package/dist/nostromo/ui-js-competences.js +1 -0
  280. package/dist/nostromo/ui-js-config.d.ts +3 -0
  281. package/dist/nostromo/ui-js-config.js +1 -0
  282. package/dist/nostromo/ui-js-core.d.ts +3 -0
  283. package/dist/nostromo/ui-js-core.js +1 -0
  284. package/dist/nostromo/ui-js-ops.d.ts +3 -0
  285. package/dist/nostromo/ui-js-ops.js +1 -0
  286. package/dist/nostromo/ui-js-prompts.d.ts +3 -0
  287. package/dist/nostromo/ui-js-prompts.js +1 -0
  288. package/dist/nostromo/ui-styles.d.ts +3 -0
  289. package/dist/nostromo/ui-styles.js +1 -0
  290. package/dist/nostromo/ui.d.ts +2 -0
  291. package/dist/nostromo/ui.js +1 -0
  292. package/dist/server.d.ts +80 -0
  293. package/dist/server.js +1 -0
  294. package/dist/stt/local-whisper.d.ts +9 -0
  295. package/dist/stt/local-whisper.js +1 -0
  296. package/dist/stt/openai-whisper.d.ts +14 -0
  297. package/dist/stt/openai-whisper.js +1 -0
  298. package/dist/stt/stt-loader.d.ts +4 -0
  299. package/dist/stt/stt-loader.js +1 -0
  300. package/dist/stt/stt-provider.d.ts +4 -0
  301. package/dist/stt/stt-provider.js +1 -0
  302. package/dist/tools/browser-tools.d.ts +9 -0
  303. package/dist/tools/browser-tools.js +1 -0
  304. package/dist/tools/cron-tools.d.ts +4 -0
  305. package/dist/tools/cron-tools.js +1 -0
  306. package/dist/tools/memory-tools.d.ts +3 -0
  307. package/dist/tools/memory-tools.js +1 -0
  308. package/dist/tools/message-tools.d.ts +5 -0
  309. package/dist/tools/message-tools.js +1 -0
  310. package/dist/tools/node-tools.d.ts +3 -0
  311. package/dist/tools/node-tools.js +1 -0
  312. package/dist/tools/server-tools.d.ts +2 -0
  313. package/dist/tools/server-tools.js +1 -0
  314. package/dist/tools/tts-tools.d.ts +3 -0
  315. package/dist/tools/tts-tools.js +1 -0
  316. package/dist/tts/tts-service.d.ts +19 -0
  317. package/dist/tts/tts-service.js +1 -0
  318. package/dist/utils/chunk.d.ts +3 -0
  319. package/dist/utils/chunk.js +1 -0
  320. package/dist/utils/logger.d.ts +16 -0
  321. package/dist/utils/logger.js +1 -0
  322. package/dist/utils/markdown/fences.d.ts +11 -0
  323. package/dist/utils/markdown/fences.js +1 -0
  324. package/dist/utils/markdown/ir.d.ts +33 -0
  325. package/dist/utils/markdown/ir.js +1 -0
  326. package/dist/utils/markdown/render.d.ts +19 -0
  327. package/dist/utils/markdown/render.js +1 -0
  328. package/dist/utils/markdown/tables.d.ts +3 -0
  329. package/dist/utils/markdown/tables.js +1 -0
  330. package/dist/utils/media-response.d.ts +29 -0
  331. package/dist/utils/media-response.js +1 -0
  332. package/dist/utils/package-paths.d.ts +5 -0
  333. package/dist/utils/package-paths.js +1 -0
  334. package/dist/utils/telegram-format.d.ts +13 -0
  335. package/dist/utils/telegram-format.js +1 -0
  336. package/installationPkg/.env.example +26 -0
  337. package/installationPkg/AGENTS.md +143 -0
  338. package/installationPkg/BOOTSTRAP.md +45 -0
  339. package/installationPkg/CBINT.json +16 -0
  340. package/installationPkg/HEARTBEAT.md +5 -0
  341. package/installationPkg/IDENTITY.md +7 -0
  342. package/installationPkg/SOUL.md +36 -0
  343. package/installationPkg/SYSTEM_PROMPT.md +55 -0
  344. package/installationPkg/SYSTEM_PROMPT_SUBAGENT.md +40 -0
  345. package/installationPkg/TOOLS.md +36 -0
  346. package/installationPkg/USER.md +11 -0
  347. package/installationPkg/config.example.yaml +291 -0
  348. package/package.json +95 -0
@@ -0,0 +1,204 @@
1
+ # Content Creation Pipeline
2
+ #
3
+ # From idea to published content in one run. Researches a topic in parallel,
4
+ # writes a blog post, refines it through editorial review, and generates
5
+ # social media posts. Watch an entire content operation happen automatically.
6
+ #
7
+ # Usage: Provide a topic and watch the content materialize.
8
+
9
+ input topic: "The topic to create content about"
10
+ input audience: "Target audience (e.g., 'developers', 'executives', 'general')"
11
+
12
+ agent researcher:
13
+ model: opus # Deep research requires reasoning
14
+ skills: ["web-search"]
15
+ prompt: """
16
+ You are a research specialist. For any topic:
17
+ 1. Find authoritative sources
18
+ 2. Identify key facts and statistics
19
+ 3. Note interesting angles and hooks
20
+ 4. Cite your sources
21
+
22
+ Return structured research with citations.
23
+ """
24
+
25
+ agent writer:
26
+ model: opus # Writing is hard work
27
+ prompt: """
28
+ You are a skilled technical writer. You write:
29
+ - Clear, engaging prose
30
+ - Well-structured articles with headers
31
+ - Content appropriate for the target audience
32
+ - With a distinctive but professional voice
33
+
34
+ Avoid jargon unless writing for experts.
35
+ """
36
+
37
+ agent editor:
38
+ model: sonnet
39
+ persist: true
40
+ prompt: """
41
+ You are a senior editor. You review content for:
42
+ - Clarity and flow
43
+ - Factual accuracy
44
+ - Engagement and hook strength
45
+ - Appropriate length and structure
46
+
47
+ Be constructive. Suggest specific improvements.
48
+ """
49
+
50
+ agent social-strategist:
51
+ model: sonnet
52
+ prompt: """
53
+ You create social media content. For each platform:
54
+ - Twitter/X: Punchy, hooks, threads if needed
55
+ - LinkedIn: Professional, insight-focused
56
+ - Hacker News: Technical, understated, genuine
57
+
58
+ Match the culture of each platform. Never be cringe.
59
+ """
60
+
61
+ # Phase 1: Parallel research from multiple angles
62
+ session "Research phase starting for: {topic}"
63
+
64
+ parallel:
65
+ core_research = session: researcher
66
+ prompt: """
67
+ Deep research on: {topic}
68
+
69
+ Find:
70
+ - Current state of the art
71
+ - Recent developments (last 6 months)
72
+ - Key players and their positions
73
+ - Statistics and data points
74
+ """
75
+
76
+ competitive_landscape = session: researcher
77
+ prompt: """
78
+ Competitive/comparative research on: {topic}
79
+
80
+ Find:
81
+ - Alternative approaches or solutions
82
+ - Pros and cons of different options
83
+ - What experts recommend
84
+ """
85
+
86
+ human_interest = session: researcher
87
+ prompt: """
88
+ Human interest research on: {topic}
89
+
90
+ Find:
91
+ - Real-world case studies
92
+ - Success and failure stories
93
+ - Quotes from practitioners
94
+ - Surprising or counterintuitive findings
95
+ """
96
+
97
+ # Phase 2: Synthesize research
98
+ let research_synthesis = session "Synthesize all research"
99
+ prompt: """
100
+ Combine all research into a unified brief:
101
+ 1. Key thesis/angle for the article
102
+ 2. Supporting evidence ranked by strength
103
+ 3. Narrative arc suggestion
104
+ 4. Potential hooks and headlines
105
+
106
+ Target audience: {audience}
107
+ """
108
+ context: { core_research, competitive_landscape, human_interest }
109
+
110
+ # Phase 3: Write first draft
111
+ let draft = session: writer
112
+ prompt: """
113
+ Write a blog post on: {topic}
114
+
115
+ Target: {audience}
116
+ Length: 1500-2000 words
117
+ Structure: Hook, context, main points, examples, conclusion
118
+
119
+ Use the research provided. Cite sources where appropriate.
120
+ """
121
+ context: research_synthesis
122
+
123
+ # Phase 4: Editorial loop
124
+ session: editor
125
+ prompt: "Beginning editorial review. I'll track revisions."
126
+
127
+ loop until **the article meets publication standards** (max: 4):
128
+ let critique = resume: editor
129
+ prompt: """
130
+ Review this draft critically:
131
+ 1. What works well?
132
+ 2. What needs improvement?
133
+ 3. Specific suggestions (be actionable)
134
+ 4. Overall verdict: READY / NEEDS_REVISION
135
+
136
+ Be demanding but fair.
137
+ """
138
+ context: draft
139
+
140
+ if **the article needs revision**:
141
+ draft = session: writer
142
+ prompt: """
143
+ Revise the article based on editorial feedback.
144
+ Address each point specifically.
145
+ Maintain what's working well.
146
+ """
147
+ context: { draft, critique }
148
+
149
+ # Phase 5: Generate social media variants
150
+ parallel:
151
+ twitter_content = session: social-strategist
152
+ prompt: """
153
+ Create Twitter/X content to promote this article:
154
+ 1. Main announcement tweet (punchy, with hook)
155
+ 2. 5-tweet thread extracting key insights
156
+ 3. 3 standalone insight tweets for later
157
+
158
+ Include placeholder for article link.
159
+ """
160
+ context: draft
161
+
162
+ linkedin_post = session: social-strategist
163
+ prompt: """
164
+ Create a LinkedIn post for this article:
165
+ - Professional but not boring
166
+ - Lead with insight, not announcement
167
+ - 150-300 words
168
+ - End with genuine question for engagement
169
+ """
170
+ context: draft
171
+
172
+ hn_submission = session: social-strategist
173
+ prompt: """
174
+ Create Hacker News submission:
175
+ - Title: factual, not clickbait, <80 chars
176
+ - Suggested comment: genuine, adds context, not promotional
177
+
178
+ HN culture: technical, skeptical, hates marketing speak.
179
+ """
180
+ context: draft
181
+
182
+ # Phase 6: Package everything
183
+ output article = draft
184
+ output social = { twitter_content, linkedin_post, hn_submission }
185
+
186
+ resume: editor
187
+ prompt: """
188
+ Content Pipeline Complete!
189
+
190
+ Final package:
191
+ 1. Article: {draft length} words, {revision count} revisions
192
+ 2. Twitter: thread + standalone tweets
193
+ 3. LinkedIn: professional post
194
+ 4. HN: submission ready
195
+
196
+ Recommended publication order:
197
+ 1. Publish article
198
+ 2. HN submission (wait for feedback)
199
+ 3. Twitter thread
200
+ 4. LinkedIn (next business day AM)
201
+
202
+ All files saved to ./content-output/
203
+ """
204
+ context: { draft, twitter_content, linkedin_post, hn_submission }
@@ -0,0 +1,296 @@
1
+ # Feature Factory
2
+ #
3
+ # From user story to deployed feature. A captain agent coordinates a team
4
+ # of specialists to design, implement, test, and document a complete feature.
5
+ # Watch an entire engineering team's workflow automated.
6
+ #
7
+ # Usage: Describe a feature and watch it get built.
8
+
9
+ input feature: "Description of the feature to implement"
10
+ input codebase_context: "Brief description of the codebase (optional)"
11
+
12
+ # The Captain: Coordinates everything, maintains context across the build
13
+ agent captain:
14
+ model: sonnet
15
+ persist: project # Remembers across features
16
+ prompt: """
17
+ You are the Tech Lead coordinating feature development.
18
+
19
+ Your responsibilities:
20
+ - Break features into implementable tasks
21
+ - Review all work before it merges
22
+ - Maintain architectural consistency
23
+ - Make technical decisions when needed
24
+ - Keep the build moving forward
25
+
26
+ You've worked on this codebase before. Reference prior decisions.
27
+ """
28
+
29
+ # Specialists
30
+ agent architect:
31
+ model: opus
32
+ prompt: """
33
+ You are a software architect. You design systems that are:
34
+ - Simple (no unnecessary complexity)
35
+ - Extensible (but not over-engineered)
36
+ - Consistent with existing patterns
37
+
38
+ Produce clear technical designs with file paths and interfaces.
39
+ """
40
+
41
+ agent implementer:
42
+ model: opus
43
+ prompt: """
44
+ You are a senior developer. You write:
45
+ - Clean, idiomatic code
46
+ - Following existing project patterns
47
+ - With clear variable names and structure
48
+ - Minimal but sufficient comments
49
+
50
+ You implement exactly what's specified, nothing more.
51
+ """
52
+
53
+ agent tester:
54
+ model: sonnet
55
+ prompt: """
56
+ You are a QA engineer. You write:
57
+ - Unit tests for individual functions
58
+ - Integration tests for workflows
59
+ - Edge case tests
60
+ - Clear test names that document behavior
61
+
62
+ Aim for high coverage of the new code.
63
+ """
64
+
65
+ agent documenter:
66
+ model: sonnet
67
+ prompt: """
68
+ You are a technical writer. You create:
69
+ - Clear API documentation
70
+ - Usage examples
71
+ - README updates
72
+ - Inline JSDoc/docstrings where needed
73
+
74
+ Match existing documentation style.
75
+ """
76
+
77
+ # ============================================================================
78
+ # Phase 1: Understand the codebase
79
+ # ============================================================================
80
+
81
+ session: captain
82
+ prompt: """
83
+ Starting feature implementation: {feature}
84
+
85
+ First, let me understand the current codebase.
86
+ """
87
+
88
+ let codebase_analysis = session "Analyze codebase structure"
89
+ prompt: """
90
+ Explore the codebase to understand:
91
+ 1. Directory structure and organization
92
+ 2. Key patterns used (state management, API style, etc.)
93
+ 3. Testing approach
94
+ 4. Where this feature would fit
95
+
96
+ Use Glob and Read tools to explore. Be thorough but efficient.
97
+ """
98
+ context: codebase_context
99
+
100
+ # ============================================================================
101
+ # Phase 2: Design
102
+ # ============================================================================
103
+
104
+ let design = session: architect
105
+ prompt: """
106
+ Design the implementation for: {feature}
107
+
108
+ Based on the codebase analysis, produce:
109
+ 1. High-level approach (2-3 sentences)
110
+ 2. Files to create/modify (with paths)
111
+ 3. Key interfaces/types to define
112
+ 4. Integration points with existing code
113
+ 5. Potential risks or decisions needed
114
+
115
+ Keep it simple. Match existing patterns.
116
+ """
117
+ context: { feature, codebase_analysis }
118
+
119
+ # Captain reviews design
120
+ let design_approved = resume: captain
121
+ prompt: """
122
+ Review this design:
123
+ - Does it fit our architecture?
124
+ - Is it the simplest approach?
125
+ - Any risks or concerns?
126
+ - Any decisions I need to make?
127
+
128
+ Return APPROVED or specific concerns.
129
+ """
130
+ context: design
131
+
132
+ if **design needs adjustment**:
133
+ design = session: architect
134
+ prompt: "Revise design based on tech lead feedback"
135
+ context: { design, design_approved }
136
+
137
+ # ============================================================================
138
+ # Phase 3: Implementation
139
+ # ============================================================================
140
+
141
+ resume: captain
142
+ prompt: "Design approved. Breaking into implementation tasks."
143
+ context: design
144
+
145
+ let tasks = resume: captain
146
+ prompt: """
147
+ Break the design into ordered implementation tasks.
148
+ Each task should be:
149
+ - Small enough to implement in one session
150
+ - Have clear acceptance criteria
151
+ - List file(s) to modify
152
+
153
+ Return as numbered list with dependencies.
154
+ """
155
+ context: design
156
+
157
+ # Implement each task sequentially
158
+ for task in tasks:
159
+ resume: captain
160
+ prompt: "Starting task: {task}"
161
+
162
+ let implementation = session: implementer
163
+ prompt: """
164
+ Implement this task:
165
+ {task}
166
+
167
+ Follow the design spec. Match existing code patterns.
168
+ Write the actual code using Edit/Write tools.
169
+ """
170
+ context: { task, design, codebase_analysis }
171
+ retry: 2
172
+ backoff: exponential
173
+
174
+ # Captain reviews each piece
175
+ let review = resume: captain
176
+ prompt: """
177
+ Review this implementation:
178
+ - Does it match the design?
179
+ - Code quality acceptable?
180
+ - Any issues to fix before continuing?
181
+
182
+ Be specific if changes needed.
183
+ """
184
+ context: { task, implementation }
185
+
186
+ if **implementation needs fixes**:
187
+ session: implementer
188
+ prompt: "Fix issues noted in review"
189
+ context: { implementation, review }
190
+
191
+ # ============================================================================
192
+ # Phase 4: Testing
193
+ # ============================================================================
194
+
195
+ resume: captain
196
+ prompt: "Implementation complete. Starting test phase."
197
+
198
+ let tests = session: tester
199
+ prompt: """
200
+ Write tests for the new feature:
201
+ 1. Unit tests for new functions/methods
202
+ 2. Integration tests for the feature flow
203
+ 3. Edge cases and error handling
204
+
205
+ Use the project's existing test framework and patterns.
206
+ Actually create the test files.
207
+ """
208
+ context: { design, codebase_analysis }
209
+
210
+ # Run tests
211
+ let test_results = session "Run test suite"
212
+ prompt: """
213
+ Run all tests:
214
+ 1. npm test / pytest / cargo test (whatever this project uses)
215
+ 2. Report results
216
+ 3. If failures, identify which tests failed and why
217
+ """
218
+
219
+ loop until **all tests pass** (max: 5):
220
+ if **tests are failing**:
221
+ let fix = session: implementer
222
+ prompt: "Fix failing tests. Either fix the code or fix the test if it's wrong."
223
+ context: test_results
224
+
225
+ test_results = session "Re-run tests after fix"
226
+ prompt: "Run tests again and report results"
227
+
228
+ # ============================================================================
229
+ # Phase 5: Documentation
230
+ # ============================================================================
231
+
232
+ resume: captain
233
+ prompt: "Tests passing. Final phase: documentation."
234
+
235
+ parallel:
236
+ api_docs = session: documenter
237
+ prompt: """
238
+ Document the new feature's API:
239
+ - Function/method signatures
240
+ - Parameters and return values
241
+ - Usage examples
242
+ - Add to existing docs structure
243
+ """
244
+ context: design
245
+
246
+ readme_update = session: documenter
247
+ prompt: """
248
+ Update README if needed:
249
+ - Add feature to feature list
250
+ - Add usage example if user-facing
251
+ - Update any outdated sections
252
+ """
253
+ context: { design, codebase_analysis }
254
+
255
+ # ============================================================================
256
+ # Phase 6: Final Review & Commit
257
+ # ============================================================================
258
+
259
+ resume: captain
260
+ prompt: """
261
+ Feature complete! Final review:
262
+
263
+ 1. All tasks implemented
264
+ 2. Tests passing
265
+ 3. Documentation updated
266
+
267
+ Prepare final summary and create commit.
268
+ """
269
+ context: { design, tests, api_docs }
270
+
271
+ session "Create feature commit"
272
+ prompt: """
273
+ Stage all changes and create a well-structured commit:
274
+ 1. git add -A
275
+ 2. git commit with message following conventional commits:
276
+ feat: {feature short description}
277
+
278
+ - Implementation details
279
+ - Tests added
280
+ - Docs updated
281
+ """
282
+
283
+ # Final report
284
+ output summary = resume: captain
285
+ prompt: """
286
+ Feature Factory Complete!
287
+
288
+ Generate final report:
289
+ - Feature: {feature}
290
+ - Files created/modified: [list]
291
+ - Tests added: [count]
292
+ - Time from start to finish
293
+ - Any notes for future work
294
+
295
+ This feature is ready for PR review.
296
+ """