@jairodri/huckleberry-cli 1.0.2 → 1.1.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 (745) hide show
  1. package/README.md +85 -0
  2. package/agents/cos.json +2 -5
  3. package/agents/hermes/AGENTS.md +25 -49
  4. package/agents/hermes/fix-kimaki/SKILL.md +19 -92
  5. package/agents/hermes/hermes-fixer.md +44 -74
  6. package/agents/hermes.json +6 -18
  7. package/kanban/SKILL.md +18 -18
  8. package/kanban/package.json +1 -1
  9. package/kanban/src/dispatcher.mjs +1 -1
  10. package/kanban/templates/blog-social-campaign.yaml +6 -2
  11. package/kanban/templates/social-campaign.yaml +9 -4
  12. package/mcp/jev-calibration.mjs +335 -0
  13. package/mcp/jev-client.mjs +119 -0
  14. package/mcp/jev-thresholds.json +27 -0
  15. package/package.json +13 -9
  16. package/scripts/doctor-watchdog.sh +73 -0
  17. package/scripts/install-services.sh +34 -27
  18. package/scripts/self-improve-weekly.sh +34 -0
  19. package/scripts/sync-skills.mjs +121 -0
  20. package/skills/ab-test-setup/SKILL.md +266 -0
  21. package/skills/ab-test-setup/evals/evals.json +105 -0
  22. package/skills/ab-test-setup/references/sample-size-guide.md +263 -0
  23. package/skills/ab-test-setup/references/test-templates.md +277 -0
  24. package/skills/agent-reach/SKILL.md +132 -0
  25. package/skills/agent-reach/references/career.md +29 -0
  26. package/skills/agent-reach/references/dev.md +62 -0
  27. package/skills/agent-reach/references/search.md +33 -0
  28. package/skills/agent-reach/references/social.md +232 -0
  29. package/skills/agent-reach/references/video.md +130 -0
  30. package/skills/agent-reach/references/web.md +50 -0
  31. package/skills/ai-agent-seo/SKILL.md +450 -0
  32. package/skills/ai-cold-email-intelligence/SKILL.md +54 -0
  33. package/skills/ai-cold-email-intelligence/references/prompts.md +21 -0
  34. package/skills/ai-consensus-builder/SKILL.md +324 -0
  35. package/skills/ai-seo/SKILL.md +399 -0
  36. package/skills/ai-seo/evals/evals.json +90 -0
  37. package/skills/ai-seo/references/content-patterns.md +284 -0
  38. package/skills/ai-seo/references/platform-ranking-factors.md +152 -0
  39. package/skills/ai-visibility-audit/SKILL.md +322 -0
  40. package/skills/analytics-tracking/SKILL.md +309 -0
  41. package/skills/analytics-tracking/evals/evals.json +90 -0
  42. package/skills/analytics-tracking/references/event-library.md +260 -0
  43. package/skills/analytics-tracking/references/ga4-implementation.md +300 -0
  44. package/skills/analytics-tracking/references/gtm-implementation.md +390 -0
  45. package/skills/article-generator/SKILL.md +216 -0
  46. package/skills/auto-indexing/SKILL.md +179 -0
  47. package/skills/auto-indexing/scripts/auto-indexing.js +257 -0
  48. package/skills/auto-skill/SKILL.md +151 -0
  49. package/skills/auto-skill/correction-queue.js +102 -0
  50. package/skills/auto-skill/dedup.js +97 -0
  51. package/skills/auto-skill/skill-router.js +224 -0
  52. package/skills/autoresearch/SKILL.md +334 -0
  53. package/skills/autoresearch/autoresearch-autoresearch/SKILL.md.baseline +329 -0
  54. package/skills/autoresearch/autoresearch-autoresearch/changelog.md +34 -0
  55. package/skills/autoresearch/autoresearch-autoresearch/dashboard.html +116 -0
  56. package/skills/autoresearch/autoresearch-autoresearch/evals.md +39 -0
  57. package/skills/autoresearch/autoresearch-autoresearch/results.json +44 -0
  58. package/skills/autoresearch/autoresearch-autoresearch/results.tsv +3 -0
  59. package/skills/autoresearch/eval-guide.md +121 -0
  60. package/skills/b2b-cold-outreach/SKILL.md +322 -0
  61. package/skills/birdclaw/SKILL.md +82 -0
  62. package/skills/brainstorm/SKILL.md +168 -0
  63. package/skills/brand-kit-playground/SKILL.md +312 -0
  64. package/skills/brand-kit-playground/references/html-architecture.md +316 -0
  65. package/skills/brand-kit-playground/references/steal-patterns.md +88 -0
  66. package/skills/brand-voice/SKILL.md +223 -0
  67. package/skills/brand-voice/references/honesty-as-positioning.md +60 -0
  68. package/skills/brand-voice/references/voice-modes.md +1158 -0
  69. package/skills/business-advisory-council/README.md +136 -0
  70. package/skills/business-advisory-council/SKILL.md +94 -0
  71. package/skills/business-advisory-council/business-advisory-council.py +492 -0
  72. package/skills/business-advisory-council/discord-components-decision.json +8 -0
  73. package/skills/business-advisory-council/examples/steve-conley-partnership.json +6 -0
  74. package/skills/business-advisory-council/steve-conley-call-brief.json +6 -0
  75. package/skills/churn-prevention/SKILL.md +305 -0
  76. package/skills/churn-prevention/evals/evals.json +93 -0
  77. package/skills/churn-prevention/references/cancel-flow-patterns.md +316 -0
  78. package/skills/churn-prevention/references/dunning-playbook.md +408 -0
  79. package/skills/claw-compactor/LICENSE +21 -0
  80. package/skills/claw-compactor/README.md +459 -0
  81. package/skills/claw-compactor/SKILL.md +329 -0
  82. package/skills/claw-compactor/benchmark/RESULTS.md +104 -0
  83. package/skills/claw-compactor/benchmark/__init__.py +1 -0
  84. package/skills/claw-compactor/benchmark/compressors.py +520 -0
  85. package/skills/claw-compactor/benchmark/data/sample_01_devops.json +82 -0
  86. package/skills/claw-compactor/benchmark/data/sample_02_trading.json +54 -0
  87. package/skills/claw-compactor/benchmark/data/sample_03_ml_short.json +38 -0
  88. package/skills/claw-compactor/benchmark/data/sample_04_mixed_long.json +318 -0
  89. package/skills/claw-compactor/benchmark/data/sample_05_sysadmin.json +56 -0
  90. package/skills/claw-compactor/benchmark/evaluate.py +278 -0
  91. package/skills/claw-compactor/benchmark/report.py +241 -0
  92. package/skills/claw-compactor/benchmark/results/benchmark_results.json +405 -0
  93. package/skills/claw-compactor/benchmark/run_benchmark.py +238 -0
  94. package/skills/claw-compactor/engram.yaml +49 -0
  95. package/skills/claw-compactor/proxy/README.md +87 -0
  96. package/skills/claw-compactor/proxy/dashboard.html +804 -0
  97. package/skills/claw-compactor/proxy/event-log.mjs +213 -0
  98. package/skills/claw-compactor/proxy/fair-queue.mjs +288 -0
  99. package/skills/claw-compactor/proxy/metrics-store.mjs +425 -0
  100. package/skills/claw-compactor/proxy/package-lock.json +125 -0
  101. package/skills/claw-compactor/proxy/package.json +15 -0
  102. package/skills/claw-compactor/proxy/portal.html +360 -0
  103. package/skills/claw-compactor/proxy/process-registry.mjs +447 -0
  104. package/skills/claw-compactor/proxy/rate-limiter.mjs +117 -0
  105. package/skills/claw-compactor/proxy/redis-client.mjs +75 -0
  106. package/skills/claw-compactor/proxy/retry.mjs +182 -0
  107. package/skills/claw-compactor/proxy/server.mjs +2100 -0
  108. package/skills/claw-compactor/proxy/session-affinity.mjs +177 -0
  109. package/skills/claw-compactor/proxy/start.sh +23 -0
  110. package/skills/claw-compactor/proxy/test/event-log.test.mjs +237 -0
  111. package/skills/claw-compactor/proxy/test/helpers.mjs +103 -0
  112. package/skills/claw-compactor/proxy/test/integration.test.mjs +297 -0
  113. package/skills/claw-compactor/proxy/test/metrics-store.test.mjs +243 -0
  114. package/skills/claw-compactor/proxy/test/process-registry.test.mjs +390 -0
  115. package/skills/claw-compactor/proxy/test/rate-limiter.test.mjs +121 -0
  116. package/skills/claw-compactor/proxy/test/redis-client.test.mjs +62 -0
  117. package/skills/claw-compactor/proxy/test/token-tracker.test.mjs +200 -0
  118. package/skills/claw-compactor/proxy/token-tracker.mjs +482 -0
  119. package/skills/claw-compactor/pyproject.toml +26 -0
  120. package/skills/claw-compactor/references/README.md +44 -0
  121. package/skills/claw-compactor/references/architecture.md +197 -0
  122. package/skills/claw-compactor/references/benchmarks.md +94 -0
  123. package/skills/claw-compactor/references/compression-prompts.md +39 -0
  124. package/skills/claw-compactor/references/compression-techniques.md +219 -0
  125. package/skills/claw-compactor/references/testing.md +160 -0
  126. package/skills/claw-compactor/scripts/audit_memory.py +216 -0
  127. package/skills/claw-compactor/scripts/compress_memory.py +236 -0
  128. package/skills/claw-compactor/scripts/compressed_context.py +280 -0
  129. package/skills/claw-compactor/scripts/dedup_memory.py +147 -0
  130. package/skills/claw-compactor/scripts/dictionary_compress.py +170 -0
  131. package/skills/claw-compactor/scripts/engram-auto.sh +152 -0
  132. package/skills/claw-compactor/scripts/engram_auto.py +695 -0
  133. package/skills/claw-compactor/scripts/engram_cli.py +474 -0
  134. package/skills/claw-compactor/scripts/estimate_tokens.py +131 -0
  135. package/skills/claw-compactor/scripts/generate_summary_tiers.py +292 -0
  136. package/skills/claw-compactor/scripts/lib/__init__.py +34 -0
  137. package/skills/claw-compactor/scripts/lib/config.py +289 -0
  138. package/skills/claw-compactor/scripts/lib/dedup.py +119 -0
  139. package/skills/claw-compactor/scripts/lib/dictionary.py +281 -0
  140. package/skills/claw-compactor/scripts/lib/engram.py +793 -0
  141. package/skills/claw-compactor/scripts/lib/engram_prompts.py +175 -0
  142. package/skills/claw-compactor/scripts/lib/engram_storage.py +254 -0
  143. package/skills/claw-compactor/scripts/lib/exceptions.py +24 -0
  144. package/skills/claw-compactor/scripts/lib/markdown.py +312 -0
  145. package/skills/claw-compactor/scripts/lib/rle.py +165 -0
  146. package/skills/claw-compactor/scripts/lib/tokenizer_optimizer.py +188 -0
  147. package/skills/claw-compactor/scripts/lib/tokens.py +68 -0
  148. package/skills/claw-compactor/scripts/mem_compress.py +788 -0
  149. package/skills/claw-compactor/scripts/observation_compressor.py +346 -0
  150. package/skills/claw-compactor/tests/__init__.py +0 -0
  151. package/skills/claw-compactor/tests/conftest.py +94 -0
  152. package/skills/claw-compactor/tests/test_audit_comprehensive.py +123 -0
  153. package/skills/claw-compactor/tests/test_audit_memory.py +67 -0
  154. package/skills/claw-compactor/tests/test_benchmark.py +122 -0
  155. package/skills/claw-compactor/tests/test_cli_commands.py +228 -0
  156. package/skills/claw-compactor/tests/test_compress_memory.py +109 -0
  157. package/skills/claw-compactor/tests/test_compress_memory_comprehensive.py +191 -0
  158. package/skills/claw-compactor/tests/test_compressed_context.py +145 -0
  159. package/skills/claw-compactor/tests/test_config.py +54 -0
  160. package/skills/claw-compactor/tests/test_dedup_memory.py +124 -0
  161. package/skills/claw-compactor/tests/test_dictionary.py +327 -0
  162. package/skills/claw-compactor/tests/test_dictionary_comprehensive.py +241 -0
  163. package/skills/claw-compactor/tests/test_engram.py +1091 -0
  164. package/skills/claw-compactor/tests/test_engram_auto.py +529 -0
  165. package/skills/claw-compactor/tests/test_error_handling.py +194 -0
  166. package/skills/claw-compactor/tests/test_estimate_tokens.py +99 -0
  167. package/skills/claw-compactor/tests/test_generate_summary_tiers.py +105 -0
  168. package/skills/claw-compactor/tests/test_integration.py +249 -0
  169. package/skills/claw-compactor/tests/test_lib_dedup.py +135 -0
  170. package/skills/claw-compactor/tests/test_lib_markdown.py +388 -0
  171. package/skills/claw-compactor/tests/test_lib_tokens.py +82 -0
  172. package/skills/claw-compactor/tests/test_main_entry.py +176 -0
  173. package/skills/claw-compactor/tests/test_markdown_advanced.py +284 -0
  174. package/skills/claw-compactor/tests/test_new_features.py +77 -0
  175. package/skills/claw-compactor/tests/test_observation_comprehensive.py +261 -0
  176. package/skills/claw-compactor/tests/test_observation_compressor.py +128 -0
  177. package/skills/claw-compactor/tests/test_performance.py +172 -0
  178. package/skills/claw-compactor/tests/test_pipeline.py +109 -0
  179. package/skills/claw-compactor/tests/test_real_workspace.py +161 -0
  180. package/skills/claw-compactor/tests/test_rle.py +114 -0
  181. package/skills/claw-compactor/tests/test_rle_comprehensive.py +151 -0
  182. package/skills/claw-compactor/tests/test_roundtrip.py +253 -0
  183. package/skills/claw-compactor/tests/test_roundtrip_comprehensive.py +192 -0
  184. package/skills/claw-compactor/tests/test_tiers_comprehensive.py +171 -0
  185. package/skills/claw-compactor/tests/test_token_economics.py +237 -0
  186. package/skills/claw-compactor/tests/test_tokenizer_optimizer.py +175 -0
  187. package/skills/claw-compactor/tests/test_tokenizer_optimizer_comprehensive.py +241 -0
  188. package/skills/claw-compactor/tests/test_tokens.py +27 -0
  189. package/skills/cmo/CHANGELOG.md +61 -0
  190. package/skills/cmo/SKILL.md +500 -0
  191. package/skills/cmo/references/ai-slop-patterns.md +56 -0
  192. package/skills/cmo/references/analytics-guide.md +152 -0
  193. package/skills/cmo/references/ideas-library.md +197 -0
  194. package/skills/cmo/rules/brand-file-map.md +198 -0
  195. package/skills/cmo/rules/brand-memory.md +158 -0
  196. package/skills/cmo/rules/cli-runtime-index.md +95 -0
  197. package/skills/cmo/rules/command-reference.md +167 -0
  198. package/skills/cmo/rules/communication.md +15 -0
  199. package/skills/cmo/rules/context-switch.md +101 -0
  200. package/skills/cmo/rules/ecosystem.md +125 -0
  201. package/skills/cmo/rules/error-recovery.md +98 -0
  202. package/skills/cmo/rules/learning-loop.md +170 -0
  203. package/skills/cmo/rules/monorepo.md +78 -0
  204. package/skills/cmo/rules/output-format.md +124 -0
  205. package/skills/cmo/rules/persona.md +15 -0
  206. package/skills/cmo/rules/playbooks.md +327 -0
  207. package/skills/cmo/rules/progressive-enhancement.md +231 -0
  208. package/skills/cmo/rules/publish-index.md +106 -0
  209. package/skills/cmo/rules/quality-gate.md +90 -0
  210. package/skills/cmo/rules/recency-grounding.md +124 -0
  211. package/skills/cmo/rules/safety.md +80 -0
  212. package/skills/cmo/rules/studio-api-index.md +138 -0
  213. package/skills/cmo/rules/studio-integration.md +147 -0
  214. package/skills/cmo/rules/sub-agents.md +167 -0
  215. package/skills/cold-email/SKILL.md +240 -0
  216. package/skills/cold-email/evals/evals.json +94 -0
  217. package/skills/cold-email/references/benchmarks.md +83 -0
  218. package/skills/cold-email/references/follow-up-sequences.md +81 -0
  219. package/skills/cold-email/references/frameworks.md +90 -0
  220. package/skills/cold-email/references/personalization.md +79 -0
  221. package/skills/cold-email/references/subject-lines.md +53 -0
  222. package/skills/competitive-intel/SKILL.md +433 -0
  223. package/skills/competitive-intel/references/competitive-frameworks.md +145 -0
  224. package/skills/competitor-alternatives/SKILL.md +362 -0
  225. package/skills/competitor-alternatives/evals/evals.json +93 -0
  226. package/skills/competitor-alternatives/references/content-architecture.md +271 -0
  227. package/skills/competitor-alternatives/references/templates.md +223 -0
  228. package/skills/concreteness-fixer/SKILL.md +483 -0
  229. package/skills/concreteness-fixer/scripts/validation/concreteness-validator.js +221 -0
  230. package/skills/concreteness-fixer/utils/execFileNoThrow.js +16 -0
  231. package/skills/content-atomizer/SKILL.md +424 -0
  232. package/skills/content-atomizer/references/hook-strategies.md +56 -0
  233. package/skills/content-atomizer/references/platform-specs.md +118 -0
  234. package/skills/content-atomizer/references/platforms/bluesky.md +64 -0
  235. package/skills/content-atomizer/references/platforms/instagram.md +77 -0
  236. package/skills/content-atomizer/references/platforms/linkedin.md +120 -0
  237. package/skills/content-atomizer/references/platforms/reddit.md +73 -0
  238. package/skills/content-atomizer/references/platforms/threads.md +64 -0
  239. package/skills/content-atomizer/references/platforms/tiktok.md +55 -0
  240. package/skills/content-atomizer/references/platforms/twitter.md +123 -0
  241. package/skills/content-atomizer/references/platforms/youtube.md +56 -0
  242. package/skills/content-atomizer/references/tweet-patterns.md +40 -0
  243. package/skills/content-repost-manager/SKILL.md +245 -0
  244. package/skills/content-repost-manager/scripts/content-repost-scan.py +133 -0
  245. package/skills/context-recovery/.clawdhub/origin.json +7 -0
  246. package/skills/context-recovery/SKILL.md +198 -0
  247. package/skills/context-recovery/_meta.json +6 -0
  248. package/skills/conversion-flow-cro/SKILL.md +248 -0
  249. package/skills/conversion-flow-cro/references/flow-benchmarks.md +158 -0
  250. package/skills/copy-editing/SKILL.md +474 -0
  251. package/skills/copy-editing/evals/evals.json +89 -0
  252. package/skills/copy-editing/references/plain-english-alternatives.md +394 -0
  253. package/skills/copywriting/SKILL.md +349 -0
  254. package/skills/copywriting/evals/evals.json +111 -0
  255. package/skills/copywriting/references/awareness-level-guide.md +227 -0
  256. package/skills/copywriting/references/copy-frameworks.md +389 -0
  257. package/skills/copywriting/references/natural-transitions.md +272 -0
  258. package/skills/creative/SKILL.md +365 -0
  259. package/skills/creative/modes/ad-creative.md +1748 -0
  260. package/skills/creative/modes/product-photo.md +1520 -0
  261. package/skills/creative/modes/product-video.md +1657 -0
  262. package/skills/creative/modes/social-graphics.md +1511 -0
  263. package/skills/creative/modes/talking-head.md +2208 -0
  264. package/skills/creative/references/VISUAL_INTELLIGENCE.md +1233 -0
  265. package/skills/deep-serp-article/SKILL.md +677 -0
  266. package/skills/deep-serp-article/SKILL.md.bak +530 -0
  267. package/skills/earned-media/SKILL.md +260 -0
  268. package/skills/email-sequences/SKILL.md +446 -0
  269. package/skills/email-sequences/references/sequence-templates.md +1217 -0
  270. package/skills/firecrawl/.skill-meta.json +13 -0
  271. package/skills/firecrawl/SKILL.md +154 -0
  272. package/skills/firecrawl/rules/install.md +63 -0
  273. package/skills/firecrawl/rules/security.md +26 -0
  274. package/skills/form-cro/SKILL.md +429 -0
  275. package/skills/form-cro/evals/evals.json +90 -0
  276. package/skills/free-tool-strategy/SKILL.md +325 -0
  277. package/skills/free-tool-strategy/evals/evals.json +90 -0
  278. package/skills/free-tool-strategy/references/tool-types.md +253 -0
  279. package/skills/frontend-slides/SKILL.md +248 -0
  280. package/skills/frontend-slides/STYLE_PRESETS.md +347 -0
  281. package/skills/frontend-slides/animation-patterns.md +110 -0
  282. package/skills/frontend-slides/html-template.md +347 -0
  283. package/skills/frontend-slides/scripts/extract-pptx.py +96 -0
  284. package/skills/frontend-slides/viewport-base.css +153 -0
  285. package/skills/guardrail-framework/SKILL.md +319 -0
  286. package/skills/hook-generator/SKILL.md +438 -0
  287. package/skills/hook-generator/database/2026-PLATFORM-RESEARCH.md +211 -0
  288. package/skills/hook-generator/database/instagram-hooks.json +591 -0
  289. package/skills/hook-generator/database/linkedin-hooks.json +502 -0
  290. package/skills/hook-generator/database/medium-hooks.json +181 -0
  291. package/skills/hook-generator/database/tiktok-hooks.json +337 -0
  292. package/skills/hook-generator/database/twitter-hooks.json +567 -0
  293. package/skills/hook-generator/database/youtube-hooks.json +275 -0
  294. package/skills/hook-generator/package-lock.json +24 -0
  295. package/skills/hook-generator/package.json +5 -0
  296. package/skills/hook-generator/references/hook-generation-system.md +257 -0
  297. package/skills/hook-generator/references/hook-performance-analysis.json +153 -0
  298. package/skills/hook-generator/references/hooks-library.md +128 -0
  299. package/skills/hook-generator/references/platform-hook-frameworks.md +275 -0
  300. package/skills/hook-generator/scripts/generate-hooks-unified.js +722 -0
  301. package/skills/hook-generator/scripts/generate-hooks.js +225 -0
  302. package/skills/hook-generator/scripts/generate.sh +36 -0
  303. package/skills/hook-generator/scripts/ralph-hook-enhancer.js +864 -0
  304. package/skills/hook-generator/scripts/test-gemini-output.js +51 -0
  305. package/skills/humanizer/README.md +120 -0
  306. package/skills/humanizer/SKILL.md +699 -0
  307. package/skills/image-gen/SKILL.md +277 -0
  308. package/skills/image-gen/references/prompt-patterns.md +114 -0
  309. package/skills/image-gen/references/visual-metaphors.md +51 -0
  310. package/skills/impeccable/SKILL.md +86 -0
  311. package/skills/impeccable/reference/adapt.md +312 -0
  312. package/skills/impeccable/reference/adapt.native.md +58 -0
  313. package/skills/impeccable/reference/android.md +40 -0
  314. package/skills/impeccable/reference/animate.md +86 -0
  315. package/skills/impeccable/reference/audit.md +136 -0
  316. package/skills/impeccable/reference/audit.native.md +139 -0
  317. package/skills/impeccable/reference/bolder.md +31 -0
  318. package/skills/impeccable/reference/clarify.md +94 -0
  319. package/skills/impeccable/reference/colorize.md +86 -0
  320. package/skills/impeccable/reference/craft-floor.md +42 -0
  321. package/skills/impeccable/reference/craft.md +5 -0
  322. package/skills/impeccable/reference/critique.md +788 -0
  323. package/skills/impeccable/reference/degraded/asset-producer.md +90 -0
  324. package/skills/impeccable/reference/degraded/documenter.md +24 -0
  325. package/skills/impeccable/reference/degraded/finish-reviewer.md +37 -0
  326. package/skills/impeccable/reference/degraded/manual-edit-applier.md +92 -0
  327. package/skills/impeccable/reference/delight.md +70 -0
  328. package/skills/impeccable/reference/distill.md +111 -0
  329. package/skills/impeccable/reference/doctor.md +53 -0
  330. package/skills/impeccable/reference/document.md +416 -0
  331. package/skills/impeccable/reference/extract.md +69 -0
  332. package/skills/impeccable/reference/harden.md +336 -0
  333. package/skills/impeccable/reference/hooks.md +105 -0
  334. package/skills/impeccable/reference/init.md +125 -0
  335. package/skills/impeccable/reference/ios.md +45 -0
  336. package/skills/impeccable/reference/layout.md +84 -0
  337. package/skills/impeccable/reference/live-setup.md +102 -0
  338. package/skills/impeccable/reference/live.md +323 -0
  339. package/skills/impeccable/reference/new-work.md +110 -0
  340. package/skills/impeccable/reference/onboard.md +234 -0
  341. package/skills/impeccable/reference/operate.md +61 -0
  342. package/skills/impeccable/reference/optimize.md +258 -0
  343. package/skills/impeccable/reference/overdrive.md +127 -0
  344. package/skills/impeccable/reference/polish.md +97 -0
  345. package/skills/impeccable/reference/quieter.md +99 -0
  346. package/skills/impeccable/reference/routing.md +18 -0
  347. package/skills/impeccable/reference/shape.md +59 -0
  348. package/skills/impeccable/reference/typeset.md +80 -0
  349. package/skills/impeccable/reference/visualize.md +49 -0
  350. package/skills/impeccable/scripts/command-metadata.json +94 -0
  351. package/skills/impeccable/scripts/concept-seed.mjs +558 -0
  352. package/skills/impeccable/scripts/context-signals.mjs +334 -0
  353. package/skills/impeccable/scripts/context.mjs +1467 -0
  354. package/skills/impeccable/scripts/critique-storage.mjs +213 -0
  355. package/skills/impeccable/scripts/detect-csp.mjs +198 -0
  356. package/skills/impeccable/scripts/detect.mjs +21 -0
  357. package/skills/impeccable/scripts/detector/browser/injected/index.mjs +2023 -0
  358. package/skills/impeccable/scripts/detector/cli/main.mjs +438 -0
  359. package/skills/impeccable/scripts/detector/design-system.mjs +1046 -0
  360. package/skills/impeccable/scripts/detector/detect-antipatterns-browser.js +8283 -0
  361. package/skills/impeccable/scripts/detector/detect-antipatterns.mjs +50 -0
  362. package/skills/impeccable/scripts/detector/engines/browser/detect-url.mjs +372 -0
  363. package/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs +1168 -0
  364. package/skills/impeccable/scripts/detector/engines/static-html/css-cascade.mjs +1186 -0
  365. package/skills/impeccable/scripts/detector/engines/static-html/detect-html.mjs +264 -0
  366. package/skills/impeccable/scripts/detector/engines/visual/screenshot-contrast.mjs +189 -0
  367. package/skills/impeccable/scripts/detector/findings.mjs +18 -0
  368. package/skills/impeccable/scripts/detector/node/file-system.mjs +203 -0
  369. package/skills/impeccable/scripts/detector/profile/profiler.mjs +166 -0
  370. package/skills/impeccable/scripts/detector/registry/antipatterns.mjs +617 -0
  371. package/skills/impeccable/scripts/detector/rules/checks.mjs +5580 -0
  372. package/skills/impeccable/scripts/detector/shared/color.mjs +124 -0
  373. package/skills/impeccable/scripts/detector/shared/constants.mjs +112 -0
  374. package/skills/impeccable/scripts/detector/shared/fonts.mjs +30 -0
  375. package/skills/impeccable/scripts/detector/shared/inline-ignores.mjs +148 -0
  376. package/skills/impeccable/scripts/detector/shared/page.mjs +7 -0
  377. package/skills/impeccable/scripts/doctor.mjs +336 -0
  378. package/skills/impeccable/scripts/embed-prompt.mjs +133 -0
  379. package/skills/impeccable/scripts/generate-image.mjs +240 -0
  380. package/skills/impeccable/scripts/hook-admin.mjs +801 -0
  381. package/skills/impeccable/scripts/hook-before-edit.mjs +508 -0
  382. package/skills/impeccable/scripts/hook-lib.mjs +2153 -0
  383. package/skills/impeccable/scripts/hook.mjs +78 -0
  384. package/skills/impeccable/scripts/lib/artifact-schema.mjs +93 -0
  385. package/skills/impeccable/scripts/lib/composition-catalog.mjs +200 -0
  386. package/skills/impeccable/scripts/lib/concept-catalog.mjs +384 -0
  387. package/skills/impeccable/scripts/lib/design-parser.mjs +925 -0
  388. package/skills/impeccable/scripts/lib/impeccable-config.mjs +658 -0
  389. package/skills/impeccable/scripts/lib/impeccable-paths.mjs +137 -0
  390. package/skills/impeccable/scripts/lib/is-generated.mjs +69 -0
  391. package/skills/impeccable/scripts/lib/provider.mjs +5 -0
  392. package/skills/impeccable/scripts/lib/roll-selection.mjs +362 -0
  393. package/skills/impeccable/scripts/lib/staleness-deep.mjs +478 -0
  394. package/skills/impeccable/scripts/lib/staleness-notice.mjs +169 -0
  395. package/skills/impeccable/scripts/lib/staleness.mjs +457 -0
  396. package/skills/impeccable/scripts/lib/surface-briefs.mjs +151 -0
  397. package/skills/impeccable/scripts/lib/target-args.mjs +42 -0
  398. package/skills/impeccable/scripts/lib/target-slug.mjs +33 -0
  399. package/skills/impeccable/scripts/lib/template-extensions.mjs +146 -0
  400. package/skills/impeccable/scripts/live/accept-css.mjs +617 -0
  401. package/skills/impeccable/scripts/live/accept-verify.mjs +60 -0
  402. package/skills/impeccable/scripts/live/browser-script-parts.mjs +55 -0
  403. package/skills/impeccable/scripts/live/completion.mjs +28 -0
  404. package/skills/impeccable/scripts/live/event-validation.mjs +199 -0
  405. package/skills/impeccable/scripts/live/frameworks/astro.mjs +47 -0
  406. package/skills/impeccable/scripts/live/frameworks/detect-utils.mjs +73 -0
  407. package/skills/impeccable/scripts/live/frameworks/index.mjs +143 -0
  408. package/skills/impeccable/scripts/live/frameworks/journal.mjs +197 -0
  409. package/skills/impeccable/scripts/live/frameworks/nextjs.mjs +49 -0
  410. package/skills/impeccable/scripts/live/frameworks/nuxt.mjs +161 -0
  411. package/skills/impeccable/scripts/live/frameworks/script-src.mjs +17 -0
  412. package/skills/impeccable/scripts/live/frameworks/static-html.mjs +26 -0
  413. package/skills/impeccable/scripts/live/frameworks/sveltekit.mjs +71 -0
  414. package/skills/impeccable/scripts/live/frameworks/tag-strategy.mjs +247 -0
  415. package/skills/impeccable/scripts/live/frameworks/tanstack-start.mjs +70 -0
  416. package/skills/impeccable/scripts/live/frameworks/vite-generic.mjs +42 -0
  417. package/skills/impeccable/scripts/live/generation-preflight.mjs +149 -0
  418. package/skills/impeccable/scripts/live/insert-ui.mjs +458 -0
  419. package/skills/impeccable/scripts/live/instructions.mjs +142 -0
  420. package/skills/impeccable/scripts/live/manual-apply.mjs +939 -0
  421. package/skills/impeccable/scripts/live/manual-edit-routes.mjs +357 -0
  422. package/skills/impeccable/scripts/live/manual-edits-buffer.mjs +152 -0
  423. package/skills/impeccable/scripts/live/poll-lanes.mjs +14 -0
  424. package/skills/impeccable/scripts/live/roots.mjs +508 -0
  425. package/skills/impeccable/scripts/live/session-store.mjs +563 -0
  426. package/skills/impeccable/scripts/live/source-lock.mjs +105 -0
  427. package/skills/impeccable/scripts/live/source-search.mjs +105 -0
  428. package/skills/impeccable/scripts/live/svelte-ast.mjs +961 -0
  429. package/skills/impeccable/scripts/live/svelte-component.mjs +1342 -0
  430. package/skills/impeccable/scripts/live/sveltekit-adapter.mjs +316 -0
  431. package/skills/impeccable/scripts/live/tanstack-adapter.mjs +280 -0
  432. package/skills/impeccable/scripts/live/ui-core.mjs +180 -0
  433. package/skills/impeccable/scripts/live/vocabulary.mjs +171 -0
  434. package/skills/impeccable/scripts/live-accept.mjs +954 -0
  435. package/skills/impeccable/scripts/live-browser-dom.js +146 -0
  436. package/skills/impeccable/scripts/live-browser-session.js +123 -0
  437. package/skills/impeccable/scripts/live-browser.js +12520 -0
  438. package/skills/impeccable/scripts/live-commit-manual-edits.mjs +1244 -0
  439. package/skills/impeccable/scripts/live-complete.mjs +107 -0
  440. package/skills/impeccable/scripts/live-copy-edit-agent.mjs +683 -0
  441. package/skills/impeccable/scripts/live-discard-manual-edits.mjs +51 -0
  442. package/skills/impeccable/scripts/live-inject.mjs +503 -0
  443. package/skills/impeccable/scripts/live-insert.mjs +292 -0
  444. package/skills/impeccable/scripts/live-manual-edit-evidence.mjs +368 -0
  445. package/skills/impeccable/scripts/live-poll.mjs +429 -0
  446. package/skills/impeccable/scripts/live-resume.mjs +123 -0
  447. package/skills/impeccable/scripts/live-server.mjs +1669 -0
  448. package/skills/impeccable/scripts/live-status.mjs +71 -0
  449. package/skills/impeccable/scripts/live-target.mjs +30 -0
  450. package/skills/impeccable/scripts/live-wrap.mjs +927 -0
  451. package/skills/impeccable/scripts/live.mjs +359 -0
  452. package/skills/impeccable/scripts/modern-screenshot.umd.js +14 -0
  453. package/skills/impeccable/scripts/palette.mjs +628 -0
  454. package/skills/impeccable/scripts/pin.mjs +221 -0
  455. package/skills/impeccable/scripts/serve-question.mjs +932 -0
  456. package/skills/impeccable/scripts/surface-brief.mjs +74 -0
  457. package/skills/inkstone-admin/SKILL.md +66 -0
  458. package/skills/jev-hook-gate/SKILL.md +111 -0
  459. package/skills/keyword-research/SKILL.md +503 -0
  460. package/skills/keyword-research/references/dr-cap-and-confidence.md +62 -0
  461. package/skills/keyword-research/references/keyword-examples.md +769 -0
  462. package/skills/landing-page-architect/SKILL.md +585 -0
  463. package/skills/landing-page-architect/references/architecture-reference.md +32 -0
  464. package/skills/launch-strategy/SKILL.md +384 -0
  465. package/skills/launch-strategy/evals/evals.json +91 -0
  466. package/skills/launch-strategy/references/launch-checklist.md +209 -0
  467. package/skills/launch-strategy/references/launch-timeline.md +159 -0
  468. package/skills/lead-email-craft/SKILL.md +522 -0
  469. package/skills/lead-magnets/SKILL.md +310 -0
  470. package/skills/lead-magnets/references/benchmarks.md +129 -0
  471. package/skills/lead-magnets/references/format-guide.md +196 -0
  472. package/skills/link-building-seo/SKILL.md +210 -0
  473. package/skills/lint-report.txt +1 -0
  474. package/skills/manifest.json +129 -0
  475. package/skills/marketing-demo/SKILL.md +249 -0
  476. package/skills/marketing-demo/references/remotion-examples.md +281 -0
  477. package/skills/marketing-ideas/SKILL.md +167 -0
  478. package/skills/marketing-ideas/evals/evals.json +90 -0
  479. package/skills/marketing-ideas/references/ideas-by-category.md +366 -0
  480. package/skills/marketing-psychology/SKILL.md +374 -0
  481. package/skills/marketing-psychology/evals/evals.json +88 -0
  482. package/skills/marketing-psychology/references/case-studies.md +148 -0
  483. package/skills/narrative-research-article/SKILL.md +469 -0
  484. package/skills/narrative-research-article/references/lanusse-patterns.md +166 -0
  485. package/skills/notebooklm/SKILL.md +674 -0
  486. package/skills/off-page-seo/SKILL.md +219 -0
  487. package/skills/onboarding-cro/SKILL.md +220 -0
  488. package/skills/onboarding-cro/evals/evals.json +92 -0
  489. package/skills/onboarding-cro/references/experiments.md +258 -0
  490. package/skills/original-research/SKILL.md +388 -0
  491. package/skills/page-cro/SKILL.md +269 -0
  492. package/skills/page-cro/references/cro-benchmarks.md +140 -0
  493. package/skills/paper-marketing/SKILL.md +448 -0
  494. package/skills/paper-marketing/references/agent-quality-rubric.md +68 -0
  495. package/skills/paper-marketing/references/brand-system-template.md +120 -0
  496. package/skills/paper-marketing/references/paper-mcp-rules.md +71 -0
  497. package/skills/paper-marketing/references/platform-conventions.md +43 -0
  498. package/skills/paywall-upgrade-cro/SKILL.md +227 -0
  499. package/skills/paywall-upgrade-cro/evals/evals.json +93 -0
  500. package/skills/paywall-upgrade-cro/references/experiments.md +164 -0
  501. package/skills/platform-formatting/SKILL.md +51 -0
  502. package/skills/popup-cro/SKILL.md +454 -0
  503. package/skills/popup-cro/evals/evals.json +94 -0
  504. package/skills/positioning-angles/SKILL.md +524 -0
  505. package/skills/positioning-angles/references/ad-matrix-and-examples.md +176 -0
  506. package/skills/positioning-angles/references/angle-frameworks.md +187 -0
  507. package/skills/positioning-angles/references/dunford-positioning.md +135 -0
  508. package/skills/positioning-angles/references/hormozi-offer.md +247 -0
  509. package/skills/positioning-angles/references/schwartz-sophistication.md +166 -0
  510. package/skills/positioning-angles/references/unique-mechanism.md +162 -0
  511. package/skills/pricing-strategy/SKILL.md +346 -0
  512. package/skills/pricing-strategy/evals/evals.json +90 -0
  513. package/skills/pricing-strategy/references/research-methods.md +152 -0
  514. package/skills/pricing-strategy/references/tier-structure.md +307 -0
  515. package/skills/programmatic-seo/SKILL.md +238 -0
  516. package/skills/programmatic-seo/evals/evals.json +94 -0
  517. package/skills/programmatic-seo/references/playbooks.md +308 -0
  518. package/skills/project-rag/SKILL.md +127 -0
  519. package/skills/quality-gate/SKILL.md +519 -0
  520. package/skills/quality-gate/judge-personas/buyer.md +47 -0
  521. package/skills/quality-gate/judge-personas/expert.md +47 -0
  522. package/skills/quality-gate/judge-personas/outsider.md +47 -0
  523. package/skills/quality-gate/judge-personas/scanner.md +41 -0
  524. package/skills/quality-gate/judge-personas/skeptic.md +40 -0
  525. package/skills/referral-program/SKILL.md +290 -0
  526. package/skills/referral-program/evals/evals.json +89 -0
  527. package/skills/referral-program/references/affiliate-programs.md +163 -0
  528. package/skills/referral-program/references/program-examples.md +143 -0
  529. package/skills/review-sites/SKILL.md +279 -0
  530. package/skills/revops/SKILL.md +343 -0
  531. package/skills/revops/evals/evals.json +91 -0
  532. package/skills/revops/references/automation-playbooks.md +290 -0
  533. package/skills/revops/references/lifecycle-definitions.md +278 -0
  534. package/skills/revops/references/routing-rules.md +203 -0
  535. package/skills/revops/references/scoring-models.md +247 -0
  536. package/skills/saas-product-seo/SKILL.md +324 -0
  537. package/skills/sales-enablement/SKILL.md +349 -0
  538. package/skills/sales-enablement/evals/evals.json +91 -0
  539. package/skills/sales-enablement/references/deck-frameworks.md +263 -0
  540. package/skills/sales-enablement/references/demo-scripts.md +355 -0
  541. package/skills/sales-enablement/references/objection-library.md +270 -0
  542. package/skills/sales-enablement/references/one-pager-templates.md +208 -0
  543. package/skills/schema-markup/SKILL.md +179 -0
  544. package/skills/schema-markup/evals/evals.json +87 -0
  545. package/skills/schema-markup/references/schema-examples.md +398 -0
  546. package/skills/self-improve/SKILL.md +166 -0
  547. package/skills/self-improving-agent/README.md +243 -0
  548. package/skills/self-improving-agent/SKILL.md +437 -0
  549. package/skills/self-improving-agent/scripts/__init__.py +16 -0
  550. package/skills/self-improving-agent/scripts/__pycache__/auto_detect.cpython-314.pyc +0 -0
  551. package/skills/self-improving-agent/scripts/__pycache__/nlm_curation.cpython-314.pyc +0 -0
  552. package/skills/self-improving-agent/scripts/__pycache__/self_improving_agent.cpython-314.pyc +0 -0
  553. package/skills/self-improving-agent/scripts/auto_detect.py +270 -0
  554. package/skills/self-improving-agent/scripts/init_expertise_registry.py +89 -0
  555. package/skills/self-improving-agent/scripts/nlm_curation.py +259 -0
  556. package/skills/self-improving-agent/scripts/self-improving-agent +113 -0
  557. package/skills/self-improving-agent/scripts/self_improving_agent.py +603 -0
  558. package/skills/self-improving-agent/scripts/test_curation_scorer.py +20 -0
  559. package/skills/self-improving-agent/scripts/test_self_improving.py +184 -0
  560. package/skills/send-email/SKILL.md +426 -0
  561. package/skills/send-email/references/batch-email-examples.md +807 -0
  562. package/skills/send-email/references/best-practices.md +453 -0
  563. package/skills/send-email/references/installation.md +123 -0
  564. package/skills/send-email/references/single-email-examples.md +470 -0
  565. package/skills/send-email/references/webhooks.md +221 -0
  566. package/skills/seo-audit/SKILL.md +362 -0
  567. package/skills/seo-audit/references/ai-writing-detection.md +200 -0
  568. package/skills/seo-audit/references/architecture-patterns.md +271 -0
  569. package/skills/seo-audit/references/schema-templates.md +427 -0
  570. package/skills/seo-content/SKILL.md +510 -0
  571. package/skills/seo-content/references/anti-ai-detection.md +184 -0
  572. package/skills/seo-content/references/content-structures.md +148 -0
  573. package/skills/seo-content/references/eeat-examples.md +235 -0
  574. package/skills/seo-content/references/on-page-seo.md +261 -0
  575. package/skills/seo-content/references/pseo-playbooks.md +226 -0
  576. package/skills/seo-content/references/schema-templates.md +104 -0
  577. package/skills/seo-content/references/serp-analysis-format.md +151 -0
  578. package/skills/seo-machine/SKILL.md +331 -0
  579. package/skills/seo-machine/assets/brand-template.md +73 -0
  580. package/skills/seo-machine/assets/link-inventory-template.md +74 -0
  581. package/skills/seo-machine/assets/roadmap-template.md +184 -0
  582. package/skills/seo-machine/references/api-stack-recipes.md +230 -0
  583. package/skills/seo-machine/references/exa-recipes.md +260 -0
  584. package/skills/seo-machine/references/manual-research.md +73 -0
  585. package/skills/seo-machine/references/methodology.md +87 -0
  586. package/skills/seo-machine/references/off-page.md +123 -0
  587. package/skills/seo-machine/references/patterns/alternatives.md +176 -0
  588. package/skills/seo-machine/references/patterns/compare.md +105 -0
  589. package/skills/seo-machine/references/patterns/playbooks.md +106 -0
  590. package/skills/seo-machine/references/patterns/use-case.md +109 -0
  591. package/skills/seo-machine/references/quality-bars.md +99 -0
  592. package/skills/seo-machine/references/stacks/astro.md +156 -0
  593. package/skills/seo-machine/references/stacks/detection.md +61 -0
  594. package/skills/seo-machine/references/stacks/markdown-fallback.md +181 -0
  595. package/skills/seo-machine/references/stacks/nextjs.md +108 -0
  596. package/skills/seo-machine/references/stacks/rails-inertia.md +99 -0
  597. package/skills/seo-machine/references/striking-distance.md +116 -0
  598. package/skills/seo-machine/references/technical-audit.md +153 -0
  599. package/skills/seo-machine/scripts/link_audit.py +265 -0
  600. package/skills/seo-machine/scripts/tech_audit.py +221 -0
  601. package/skills/seo-machine/scripts/word_count.py +154 -0
  602. package/skills/sharp-thesis-validator/SKILL.md +393 -0
  603. package/skills/sharp-thesis-validator/examples.md +186 -0
  604. package/skills/signup-flow-cro/SKILL.md +359 -0
  605. package/skills/signup-flow-cro/evals/evals.json +88 -0
  606. package/skills/site-architecture/SKILL.md +357 -0
  607. package/skills/site-architecture/evals/evals.json +88 -0
  608. package/skills/site-architecture/references/mermaid-templates.md +216 -0
  609. package/skills/site-architecture/references/navigation-patterns.md +305 -0
  610. package/skills/site-architecture/references/site-type-templates.md +293 -0
  611. package/skills/skill-self-improvement/SKILL.md +151 -0
  612. package/skills/slideshow-script/SKILL.md +274 -0
  613. package/skills/slideshow-script/references/content-spec-schema.md +77 -0
  614. package/skills/slideshow-script/references/frameworks.md +84 -0
  615. package/skills/slideshow-script/references/paips-framework.md +37 -0
  616. package/skills/social-campaign/SKILL.md +419 -0
  617. package/skills/social-campaign/references/paper-mcp-workflow.md +48 -0
  618. package/skills/social-content/SKILL.md +359 -0
  619. package/skills/social-content/evals/evals.json +92 -0
  620. package/skills/social-content/references/platforms.md +170 -0
  621. package/skills/social-content/references/post-templates.md +177 -0
  622. package/skills/social-content/references/reverse-engineering.md +195 -0
  623. package/skills/social-worker/SKILL.md +204 -0
  624. package/skills/startup-launcher/SKILL.md +252 -0
  625. package/skills/startup-launcher/references/file-router.md +64 -0
  626. package/skills/startup-launcher/references/platform-matrix.md +65 -0
  627. package/skills/startup-launcher/references/platforms/alternativeto.md +283 -0
  628. package/skills/startup-launcher/references/platforms/appsumo.md +495 -0
  629. package/skills/startup-launcher/references/platforms/auraplusplus.md +736 -0
  630. package/skills/startup-launcher/references/platforms/betalist.md +98 -0
  631. package/skills/startup-launcher/references/platforms/capterra.md +276 -0
  632. package/skills/startup-launcher/references/platforms/crunchbase.md +514 -0
  633. package/skills/startup-launcher/references/platforms/dealify.md +291 -0
  634. package/skills/startup-launcher/references/platforms/dealmirror.md +313 -0
  635. package/skills/startup-launcher/references/platforms/desifounder.md +490 -0
  636. package/skills/startup-launcher/references/platforms/devhunt.md +210 -0
  637. package/skills/startup-launcher/references/platforms/devpost.md +448 -0
  638. package/skills/startup-launcher/references/platforms/fazier.md +56 -0
  639. package/skills/startup-launcher/references/platforms/firsto.md +489 -0
  640. package/skills/startup-launcher/references/platforms/g2.md +226 -0
  641. package/skills/startup-launcher/references/platforms/hackernews.md +99 -0
  642. package/skills/startup-launcher/references/platforms/hackernoon.md +385 -0
  643. package/skills/startup-launcher/references/platforms/indiedeals.md +367 -0
  644. package/skills/startup-launcher/references/platforms/indiehackers.md +80 -0
  645. package/skills/startup-launcher/references/platforms/kenmoo.md +231 -0
  646. package/skills/startup-launcher/references/platforms/labstartups.md +618 -0
  647. package/skills/startup-launcher/references/platforms/launchboard.md +307 -0
  648. package/skills/startup-launcher/references/platforms/launchfast.md +560 -0
  649. package/skills/startup-launcher/references/platforms/launchigniter.md +56 -0
  650. package/skills/startup-launcher/references/platforms/launchingnext.md +674 -0
  651. package/skills/startup-launcher/references/platforms/launchit.md +574 -0
  652. package/skills/startup-launcher/references/platforms/launchyourapp.md +677 -0
  653. package/skills/startup-launcher/references/platforms/libhunt.md +220 -0
  654. package/skills/startup-launcher/references/platforms/ltdhunt.md +221 -0
  655. package/skills/startup-launcher/references/platforms/microlaunch.md +45 -0
  656. package/skills/startup-launcher/references/platforms/openalternative.md +195 -0
  657. package/skills/startup-launcher/references/platforms/peerlist.md +56 -0
  658. package/skills/startup-launcher/references/platforms/peerpush.md +64 -0
  659. package/skills/startup-launcher/references/platforms/primeclub.md +282 -0
  660. package/skills/startup-launcher/references/platforms/productcanyon.md +190 -0
  661. package/skills/startup-launcher/references/platforms/producthunt.md +98 -0
  662. package/skills/startup-launcher/references/platforms/rankinpublic.md +315 -0
  663. package/skills/startup-launcher/references/platforms/rockethub.md +374 -0
  664. package/skills/startup-launcher/references/platforms/saasgenius.md +175 -0
  665. package/skills/startup-launcher/references/platforms/saashub.md +205 -0
  666. package/skills/startup-launcher/references/platforms/saasmantra.md +221 -0
  667. package/skills/startup-launcher/references/platforms/saaspirate.md +287 -0
  668. package/skills/startup-launcher/references/platforms/saaswarrior.md +190 -0
  669. package/skills/startup-launcher/references/platforms/saaszilla.md +194 -0
  670. package/skills/startup-launcher/references/platforms/selected.md +925 -0
  671. package/skills/startup-launcher/references/platforms/sideprojectors.md +86 -0
  672. package/skills/startup-launcher/references/platforms/softonic.md +240 -0
  673. package/skills/startup-launcher/references/platforms/sourceforge.md +251 -0
  674. package/skills/startup-launcher/references/platforms/stacksocial.md +244 -0
  675. package/skills/startup-launcher/references/platforms/startupstash.md +326 -0
  676. package/skills/startup-launcher/references/platforms/theresanaiforthat.md +253 -0
  677. package/skills/startup-launcher/references/platforms/tinylaunch.md +70 -0
  678. package/skills/startup-launcher/references/platforms/tinystartups.md +72 -0
  679. package/skills/startup-launcher/references/platforms/toolfolio.md +291 -0
  680. package/skills/startup-launcher/references/platforms/trustmrr.md +194 -0
  681. package/skills/startup-launcher/references/platforms/trylaunch.md +531 -0
  682. package/skills/startup-launcher/references/platforms/uneed.md +57 -0
  683. package/skills/startup-launcher/references/templates/asset-checklist.md +218 -0
  684. package/skills/startup-launcher/references/templates/launch-tracker.md +195 -0
  685. package/skills/startup-launcher/references/templates/product-brief.md +98 -0
  686. package/skills/summarize/.skill-meta.json +13 -0
  687. package/skills/summarize/SKILL.md +170 -0
  688. package/skills/summarize/rules/install.md +157 -0
  689. package/skills/summarize/rules/usage.md +207 -0
  690. package/skills/topical-authority/SKILL.md +307 -0
  691. package/skills/topical-authority/references/jake-ward-framework.md +201 -0
  692. package/skills/topical-authority/references/serp-clustering-algorithm.md +325 -0
  693. package/skills/topical-authority/scripts/orchestrator.js +367 -0
  694. package/skills/topical-authority/scripts/seo/analyze-competitor-coverage.js +3 -0
  695. package/skills/topical-authority/scripts/seo/audit-internal-links.js +3 -0
  696. package/skills/topical-authority/scripts/seo/build-clusters-from-serp.js +3 -0
  697. package/skills/topical-authority/scripts/seo/extract-keywords-from-forums.js +3 -0
  698. package/skills/topical-authority/scripts/seo/extract-paa-questions.js +3 -0
  699. package/skills/topical-authority/scripts/seo/fetch-serp-urls.js +3 -0
  700. package/skills/topical-authority/scripts/seo/gemini-serp-clustering.js +3 -0
  701. package/skills/topical-authority/scripts/seo/identify-content-gaps.js +3 -0
  702. package/skills/topical-authority/scripts/seo/identify-research-gaps.js +3 -0
  703. package/skills/topical-authority/scripts/seo/scrape-quora-questions.js +3 -0
  704. package/skills/topical-authority/scripts/seo/scrape-reddit-pain-points.js +3 -0
  705. package/skills/topical-authority/scripts/seo/weave-internal-links.js +3 -0
  706. package/skills/visual-style/SKILL.md +199 -0
  707. package/skills/voice-brand-alignment/SKILL.md +70 -0
  708. package/skills/voice-brand-alignment/references/ai-slop-patterns.md +405 -0
  709. package/skills/voice-brand-alignment/scripts/validation/gemini-voice-validator.js +96 -0
  710. package/skills/voice-extraction/SKILL.md +234 -0
  711. package/skills/voice-extraction/references/extraction-prompt.md +155 -0
  712. package/skills/voice-extraction/references/voice-dna-template.md +168 -0
  713. package/skills/voice-extraction/references/voice-elements.md +259 -0
  714. package/skills/voice-extraction/scripts/build-corpus.js +120 -0
  715. package/skills/voice-extraction/scripts/collect-sources.sh +168 -0
  716. package/skills/warm-outbound/SKILL.md +299 -0
  717. package/skills/warm-outbound/templates/warm-message.md +39 -0
  718. package/skills/weekly-newsletter-digest/SKILL.md +78 -0
  719. package/skills/x-playwriter/SKILL.md +428 -0
  720. package/skills/x-playwriter/scripts/x-browser.js +185 -0
  721. package/skills/x-post-generator-openclaw/SKILL.md +138 -0
  722. package/skills/x-post-generator-openclaw/scripts/generate-x-post.js +537 -0
  723. package/skills/x-posting-playwriter/SKILL.md +203 -0
  724. package/skills/x-research/SKILL.md +129 -0
  725. package/skills/x-research/x-research.sh +85 -0
  726. package/skills/youtube-summarize/SKILL.md +90 -0
  727. package/skills/youtube-summarize/scripts/youtube-summarize.sh +143 -0
  728. package/src/cli.js +347 -172
  729. package/src/harness/deepseek-adapter.js +102 -0
  730. package/src/harness/deepseek.js +225 -0
  731. package/src/harness/opencode-adapter.js +174 -0
  732. package/src/harness/pi-adapter.js +172 -0
  733. package/src/harness/registry.js +121 -0
  734. package/src/harness/telemetry.js +102 -0
  735. package/src/harness/types.js +165 -0
  736. package/src/interview.js +36 -4
  737. package/src/postinstall.js +10 -12
  738. package/templates/AGENTS.md +17 -17
  739. package/templates/ORG.md +1 -1
  740. package/templates/TOOLS.md +7 -2
  741. package/templates/opencode.json +26 -29
  742. package/wiki/doctor.md +54 -0
  743. package/wiki/inkstone.md +4 -4
  744. package/wiki/opencode.md +3 -3
  745. package/skills/curated.txt +0 -68
package/src/cli.js CHANGED
@@ -1,5 +1,6 @@
1
- import { existsSync, readFileSync, writeFileSync, mkdirSync, readdirSync, statSync, copyFileSync } from "node:fs";
1
+ import { existsSync, readFileSync, writeFileSync, mkdirSync, readdirSync, statSync, copyFileSync, cpSync, rmSync } from "node:fs";
2
2
  import { join, dirname } from "node:path";
3
+ import { homedir } from "node:os";
3
4
  import { fileURLToPath } from "node:url";
4
5
  import { execSync } from "node:child_process";
5
6
  import { runInterview } from "./interview.js";
@@ -7,222 +8,396 @@ import { runInterview } from "./interview.js";
7
8
  const __dirname = dirname(fileURLToPath(import.meta.url));
8
9
  const ROOT = join(__dirname, "..");
9
10
  const PACKAGE_ROOT = ROOT;
11
+ // Sandbox support: HUCKLEBERRY_HOME redirects the state root so tests never touch
12
+ // a real install. HUCKLEBERRY_TEST=1 implies sandbox mode and suppresses launchd.
13
+ const SANDBOX = process.env.HUCKLEBERRY_TEST === "1" || !!process.env.HUCKLEBERRY_HOME;
14
+ const HOME = process.env.HUCKLEBERRY_HOME || homedir();
15
+ const HB = join(HOME, ".huckleberry");
16
+ const SKILLS_TARGET = join(HOME, ".claude", "skills");
10
17
 
11
- const PKG = JSON.parse(
12
- readFileSync(join(PACKAGE_ROOT, "package.json"), "utf-8")
13
- );
18
+ const PKG = JSON.parse(readFileSync(join(PACKAGE_ROOT, "package.json"), "utf-8"));
14
19
  const VERSION = PKG.version;
15
20
  const PKG_NAME = PKG.name;
16
21
 
17
- const commands = { install, update, "install-pack": installPack, interview: runInterview, help, version: () => console.log(`${PKG_NAME} v${VERSION}`) };
22
+ const commands = {
23
+ install,
24
+ update,
25
+ harness,
26
+ golden,
27
+ "install-pack": installPack,
28
+ packs: () => listPacks(),
29
+ doctor,
30
+ cro,
31
+ review,
32
+ interview: runInterview,
33
+ help,
34
+ version: () => console.log(`${PKG_NAME} v${VERSION}`),
35
+ };
18
36
 
19
37
  export async function run(args) {
20
38
  const cmd = args[0];
21
39
  if (!cmd || cmd === "--help" || cmd === "-h") return help();
22
- if (cmd === "--version" || cmd === "-v") return console.log(`${PKG_NAME} v${VERSION}`);
23
- const handler = commands[cmd];
24
- if (!handler) {
25
- console.error(`Unknown command: ${cmd}\nRun 'huckleberry help' for usage.`);
26
- process.exit(1);
27
- }
28
- try { await handler(args.slice(1)); }
40
+ const fn = commands[cmd];
41
+ if (!fn) { console.error(`Unknown command: ${cmd}\nRun 'huckleberry help' for usage.`); process.exit(1); }
42
+ try { await fn(args.slice(1)); }
29
43
  catch (err) { console.error(`[ERROR] ${err.message}`); process.exit(1); }
30
44
  }
31
45
 
32
- async function install() {
33
- console.log(`\n Huckleberry AI System v${VERSION} — Installing...`);
34
- const homeDir = process.env.HOME || process.env.USERPROFILE;
35
- const hbDir = join(homeDir, ".huckleberry");
36
- const templateDir = join(PACKAGE_ROOT, "templates");
37
-
38
- console.log(` [1/8] Platform: ${detectPlatform()}`);
39
- console.log(` [2/8] Priming OmniRoute with free models...`);
40
-
41
- console.log(` [3/8] Creating bootstrap files...`);
42
- mkdirSync(hbDir, { recursive: true });
43
- mkdirSync(join(hbDir, "memory"), { recursive: true });
44
- mkdirSync(join(hbDir, "taskmaster", "tasks"), { recursive: true });
45
- mkdirSync(join(hbDir, "scripts"), { recursive: true });
46
- mkdirSync(join(hbDir, "wiki"), { recursive: true });
47
- mkdirSync(join(hbDir, "agents", "hermes"), { recursive: true });
48
- mkdirSync(join(hbDir, "agents", "hermes", "fix-kimaki"), { recursive: true });
49
-
50
- for (const t of ["SOUL.md","IDENTITY.md","COS_PROTOCOLS.md","TOOLS.md","HEARTBEAT.md","AGENTS.md","MEMORY.md","EXECUTIVE-MODE.md","ORG.md"]) {
51
- const src = join(templateDir, t);
52
- if (existsSync(src)) copyTemplate(src, join(hbDir, t));
53
- }
46
+ function help() {
47
+ console.log(`
48
+ ${PKG_NAME} v${VERSION} — your own AI operations department
54
49
 
55
- // Copy Hermes agent bootstrap files
56
- const hermesSrc = join(PACKAGE_ROOT, "agents", "hermes");
57
- if (existsSync(hermesSrc)) copyDirSync(hermesSrc, join(hbDir, "agents", "hermes"));
58
- // Copy agent configs
59
- if (existsSync(join(PACKAGE_ROOT, "agents", "cos.json"))) copyFileSync(join(PACKAGE_ROOT, "agents", "cos.json"), join(hbDir, "agents", "cos.json"));
60
- if (existsSync(join(PACKAGE_ROOT, "agents", "hermes.json"))) copyFileSync(join(PACKAGE_ROOT, "agents", "hermes.json"), join(hbDir, "agents", "hermes.json"));
61
-
62
- console.log(` [4/8] Setting up ~/.opencode/...`);
63
- const opencodeDir = join(homeDir, ".opencode");
64
- mkdirSync(opencodeDir, { recursive: true });
65
- mkdirSync(join(opencodeDir, "plugin"), { recursive: true });
66
- mkdirSync(join(opencodeDir, "mcp"), { recursive: true });
67
-
68
- const ocConfig = join(templateDir, "opencode.json");
69
- if (existsSync(ocConfig)) {
70
- const config = readFileSync(ocConfig, "utf-8")
71
- .replace(/\{\{USERPROFILE\}\}/g, homeDir.replace(/\\/g, "/"))
72
- .replace(/\{\{HUCKLEBERRY_HOME\}\}/g, hbDir.replace(/\\/g, "/"));
73
- writeFileSync(join(opencodeDir, "opencode.json"), config, "utf-8");
74
- }
50
+ Usage: huckleberry <command>
75
51
 
76
- if (existsSync(join(PACKAGE_ROOT, "plugins"))) copyDirSync(join(PACKAGE_ROOT, "plugins"), join(opencodeDir, "plugin"));
77
- if (existsSync(join(PACKAGE_ROOT, "mcp"))) copyDirSync(join(PACKAGE_ROOT, "mcp"), join(opencodeDir, "mcp"));
52
+ Commands:
53
+ install Full first-time install (stack + core skills)
54
+ install-pack <p> Deploy a skill pack (or "all")
55
+ packs List available skill packs
56
+ doctor Health check — run when anything feels broken
57
+ harness list|set|test List/switch execution harnesses (opencode, deepseek, pi)
58
+ golden run Run golden-set tasks through a harness (telemetry recorded)
59
+ cro <url> CRO audit of a landing page (agent-powered)
60
+ review Weekly self-improvement review (proposals only)
61
+ interview First-run personalization (name, business, tone)
62
+ update Update to the latest version
63
+ help This message
78
64
 
79
- console.log(` [5/8] Deploying skills...`);
80
- const skillsDir = join(homeDir, ".claude", "skills");
81
- mkdirSync(skillsDir, { recursive: true });
82
- const curated = join(PACKAGE_ROOT, "skills", "curated.txt");
83
- if (existsSync(curated)) {
84
- const list = readFileSync(curated, "utf-8").split("\n").filter(Boolean);
85
- console.log(` Skills manifest: ${list.length} skills listed`);
86
- }
65
+ Docs: https://huckleberry.ai
66
+ `);
67
+ }
87
68
 
88
- console.log(` [6/8] Setting up taskmaster...`);
89
- const taskmasterSrc = join(PACKAGE_ROOT, "taskmaster");
90
- if (existsSync(taskmasterSrc)) copyDirSync(taskmasterSrc, join(hbDir, "taskmaster"));
91
- writeFileSync(join(hbDir, "taskmaster", "tasks", "tasks.json"), JSON.stringify({ projects: [], tasks: [] }, null, 2), "utf-8");
92
-
93
- console.log(` [7/10] Writing scripts...`);
94
- if (existsSync(join(PACKAGE_ROOT, "scripts"))) copyDirSync(join(PACKAGE_ROOT, "scripts"), join(hbDir, "scripts"));
95
-
96
- console.log(` [8/10] Writing wiki...`);
97
- if (existsSync(join(PACKAGE_ROOT, "wiki"))) copyDirSync(join(PACKAGE_ROOT, "wiki"), join(hbDir, "wiki"));
98
-
99
- console.log(` [9/10] Installing Inkstone memory system...`);
100
- const inkstoneDir = join(hbDir, "mcp", "inkstone");
101
- mkdirSync(inkstoneDir, { recursive: true });
102
- // Create a standalone package.json that depends on @jairodri/huckleberry-inkstone
103
- writeFileSync(
104
- join(inkstoneDir, "package.json"),
105
- JSON.stringify({
106
- name: "inkstone",
107
- private: true,
108
- version: "1.0.0",
109
- dependencies: { "@jairodri/huckleberry-inkstone": "^1.0.0" },
110
- }, null, 2),
111
- "utf-8"
112
- );
69
+ // ---------- install ----------
70
+
71
+ async function install() {
72
+ console.log(`\n Installing Huckleberry v${VERSION}...\n`);
73
+ const steps = [
74
+ ["Creating ~/.huckleberry...", () => {
75
+ mkdirSync(HB, { recursive: true });
76
+ for (const d of ["logs", "memory", "agents", "scripts", "taskmaster", "kanban", "mcp"]) mkdirSync(join(HB, d), { recursive: true });
77
+ }],
78
+ ["Copying templates (identity, protocols, wiki)...", () => {
79
+ for (const f of ["AGENTS.md", "SOUL.md", "IDENTITY.md", "COS_PROTOCOLS.md", "EXECUTIVE-MODE.md", "HEARTBEAT.md", "TOOLS.md", "MEMORY.md", "ORG.md", "evergreen.md", "business-context-gate.md"]) {
80
+ const src = join(PACKAGE_ROOT, "templates", f);
81
+ if (existsSync(src)) copyFileSync(src, join(HB, f));
82
+ }
83
+ copyDirSync(join(PACKAGE_ROOT, "wiki"), join(HB, "wiki"));
84
+ copyDirSync(join(PACKAGE_ROOT, "agents"), join(HB, "agents"));
85
+ copyDirSync(join(PACKAGE_ROOT, "taskmaster"), join(HB, "taskmaster"));
86
+ copyDirSync(join(PACKAGE_ROOT, "kanban"), join(HB, "kanban"));
87
+ copyDirSync(join(PACKAGE_ROOT, "scripts"), join(HB, "scripts"));
88
+ }],
89
+ ["Deploying skill packs (core + doctor)...", () => {
90
+ deployPack("core");
91
+ deployPack("doctor");
92
+ const count = readdirSync(SKILLS_TARGET).filter((n) => existsSync(join(SKILLS_TARGET, n, "SKILL.md"))).length;
93
+ console.log(` ${count} skills available in ~/.claude/skills`);
94
+ }],
95
+ ["Setting up ~/.opencode/...", () => {
96
+ const oc = join(HOME, ".opencode");
97
+ mkdirSync(join(oc, "plugin"), { recursive: true });
98
+ copyDirSync(join(PACKAGE_ROOT, "plugins"), join(oc, "plugin"));
99
+ writeConfig(oc);
100
+ }],
101
+ ["Installing Inkstone memory system...", () => {
102
+ const d = join(HB, "mcp", "inkstone");
103
+ mkdirSync(d, { recursive: true });
104
+ writeFileSync(join(d, "package.json"), JSON.stringify({ name: "huckleberry-inkstone-host", private: true, type: "module" }, null, 2));
105
+ execSync("npm install @jairodri/huckleberry-inkstone --no-fund --no-audit 2>/dev/null", { cwd: d, stdio: "pipe", timeout: 120000 });
106
+ console.log(` Inkstone installed to ${d}`);
107
+ }],
108
+ ["Installing Jev judgment layer...", () => {
109
+ const d = join(HB, "mcp", "jev-mcp");
110
+ mkdirSync(d, { recursive: true });
111
+ writeFileSync(join(d, "package.json"), JSON.stringify({ name: "huckleberry-jev-host", private: true, type: "module" }, null, 2));
112
+ execSync("npm install @jkudish/jev-mcp --no-fund --no-audit 2>/dev/null", { cwd: d, stdio: "pipe", timeout: 120000 });
113
+ console.log(` Jev installed to ${d}`);
114
+ }],
115
+ ["Setting up kanban workflows...", () => {
116
+ const d = join(HB, "kanban");
117
+ try { execSync("npm install --no-fund --no-audit 2>/dev/null", { cwd: d, stdio: "pipe", timeout: 120000 }); }
118
+ catch { console.log(" Kanban deps skipped (run: cd ~/.huckleberry/kanban && npm install)"); }
119
+ }],
120
+ ["Writing environment template...", () => {
121
+ const env = join(HB, ".env");
122
+ if (!existsSync(env)) {
123
+ writeFileSync(env, [
124
+ "# Huckleberry environment — fill in what you use. Never commit this file.",
125
+ "# Discord bot token (wiki/discord.md has the setup walkthrough)",
126
+ "DISCORD_BOT_TOKEN=",
127
+ "# TypeSafe Jev API key (https://typesafe.ai) — enables judgment tools",
128
+ "TYPESAFE_API_KEY=",
129
+ "# Optional: Discord webhook for doctor alerts + self-improvement reports",
130
+ "DOCTOR_WEBHOOK_URL=",
131
+ "# Optional: channel id where Hermes posts repair reports",
132
+ "DOCTOR_CHANNEL_ID=",
133
+ "# Optional: DeepSeek API key (https://platform.deepseek.com) — enables the deepseek harness",
134
+ "DEEPSEEK_API_KEY=",
135
+ "# Optional: default execution harness override (opencode | deepseek); harness.json wins if set",
136
+ "HUCKLEBERRY_HARNESS=",
137
+ "",
138
+ ].join("\n"));
139
+ }
140
+ }],
141
+ ];
142
+
143
+ steps.forEach(([label, fn], i) => {
144
+ console.log(` [${i + 1}/${steps.length}] ${label}`);
145
+ fn();
146
+ });
147
+
148
+ // Background services (platform-specific, non-fatal)
113
149
  try {
114
- execSync("npm install --production 2>/dev/null", { cwd: inkstoneDir, stdio: "pipe", timeout: 120000 });
115
- console.log(` Inkstone installed to ${inkstoneDir}`);
116
- } catch {
117
- console.error(` Inkstone npm install failed. Run manually: cd ${inkstoneDir} && npm install`);
150
+ if (SANDBOX) throw new Error("sandbox mode — services skipped");
151
+ if (process.platform === "darwin") {
152
+ const env = { ...process.env };
153
+ // Safety: loading launchd services is host-global (ignores HOME). Only load when
154
+ // installing into the real user home AND not explicitly suppressed.
155
+ if (HOME !== join(homedir(), "") || env.HUCKLEBERRY_TEST === "1") {
156
+ env.HUCKLEBERRY_NO_LOAD = "1";
157
+ env.HUCKLEBERRY_TEST_HOME = HOME;
158
+ }
159
+ execSync(`bash "${join(HB, "scripts", "install-services.sh")}" 2>&1`, { env, stdio: "pipe", timeout: 60000 });
160
+ console.log(" Background services installed (launchd). Hermes + doctor watchdog are watching.");
161
+ } else if (process.platform === "win32") {
162
+ execSync(`powershell -ExecutionPolicy Bypass -File "${join(HB, "scripts", "install-services.ps1")}" 2>&1`, { stdio: "pipe", timeout: 60000 });
163
+ console.log(" Background services installed (Task Scheduler).");
164
+ }
165
+ } catch { console.log(" Background services skipped (run manually from ~/.huckleberry/scripts/)"); }
166
+
167
+ console.log(`
168
+ ✓ Huckleberry v${VERSION} installed to ${HB}
169
+ ✓ Skills deployed to ${SKILLS_TARGET}
170
+ ✓ Config: ${join(HOME, ".opencode", "opencode.json")}
171
+
172
+ Next steps:
173
+ 1. npm install -g opencode kimaki (if not installed)
174
+ 2. huckleberry interview (personalize: name, business, tone)
175
+ 3. Add your keys to ~/.huckleberry/.env (Discord token, Jev key)
176
+ 4. huckleberry doctor (verify everything)
177
+ 5. More skills anytime: huckleberry packs && huckleberry install-pack <name>
178
+
179
+ Docs: https://huckleberry.ai
180
+ `);
181
+ }
182
+
183
+ function writeConfig(ocDir) {
184
+ const dst = join(ocDir, "opencode.json");
185
+ const tpl = readFileSync(join(PACKAGE_ROOT, "templates", "opencode.json"), "utf-8");
186
+ const profile = process.platform === "win32" ? process.env.USERPROFILE : HOME;
187
+ let content = tpl.replaceAll("{{USERPROFILE}}", profile.replace(/\\/g, "\\\\"));
188
+ if (existsSync(dst)) {
189
+ // merge: keep user's existing config, fill in missing top-level keys
190
+ try {
191
+ const existing = JSON.parse(readFileSync(dst, "utf-8"));
192
+ const fresh = JSON.parse(content);
193
+ const merged = { ...fresh, ...existing };
194
+ for (const k of Object.keys(fresh)) if (existing[k] === undefined) merged[k] = fresh[k];
195
+ content = JSON.stringify(merged, null, 2);
196
+ } catch { console.log(" Existing opencode.json not valid JSON — template written alongside as opencode.json.huckleberry"); writeFileSync(join(ocDir, "opencode.json.huckleberry"), content); return; }
118
197
  }
198
+ writeFileSync(dst, content);
199
+ }
119
200
 
120
- console.log(` [10/10] Setting up kanban workflows...`);
121
- const kanbanDir = join(hbDir, "kanban");
122
- mkdirSync(kanbanDir, { recursive: true });
123
- mkdirSync(join(kanbanDir, "src"), { recursive: true });
124
- mkdirSync(join(kanbanDir, "templates"), { recursive: true });
125
- const kanbanSrc = join(PACKAGE_ROOT, "kanban");
126
- if (existsSync(kanbanSrc)) copyDirSync(kanbanSrc, kanbanDir);
127
- // Init kanban DB
128
- try {
129
- execSync("node src/cli.mjs init 2>/dev/null", { cwd: kanbanDir, stdio: "pipe", timeout: 30000 });
130
- console.log(` Kanban workflows installed`);
131
- } catch {
132
- console.error(` Kanban init skipped (requires bcrypt-sqlite). Install: cd ${kanbanDir} && npm install`);
201
+ // ---------- skill packs ----------
202
+
203
+ function loadManifest() {
204
+ return JSON.parse(readFileSync(join(PACKAGE_ROOT, "skills", "manifest.json"), "utf-8"));
205
+ }
206
+
207
+ function listPacks() {
208
+ const m = loadManifest();
209
+ console.log("\n Available skill packs:\n");
210
+ for (const [name, skills] of Object.entries(m.packs)) {
211
+ console.log(` ${name.padEnd(16)} ${skills.length} skills — huckleberry install-pack ${name}`);
133
212
  }
213
+ console.log(`\n Install everything: huckleberry install-pack all\n`);
214
+ }
134
215
 
135
- console.log(` [11/12] Setting up background services...`);
136
- const platform = detectPlatform();
137
- const scriptsDir = join(hbDir, "scripts");
138
- if (platform === "Windows" && existsSync(join(scriptsDir, "install-services.ps1"))) {
139
- try {
140
- execSync(`powershell -ExecutionPolicy Bypass -File "${join(scriptsDir, "install-services.ps1")}" 2>&1`, { stdio: "pipe", timeout: 60000 });
141
- console.log(` 12 Windows Scheduled Tasks created`);
142
- } catch {
143
- console.error(` Windows services setup skipped (run manually: install-services.ps1)`);
216
+ function deployPack(packName) {
217
+ const m = loadManifest();
218
+ const names = packName === "all" ? Object.keys(m.packs) : [packName];
219
+ let deployed = 0;
220
+ for (const name of names) {
221
+ const skills = m.packs[name];
222
+ if (!skills) { console.error(`Unknown pack: ${name}\nAvailable: ${Object.keys(m.packs).join(", ")}, all`); process.exit(1); }
223
+ for (const skill of skills) {
224
+ const src = join(PACKAGE_ROOT, "skills", skill);
225
+ if (!existsSync(src)) continue;
226
+ cpSync(src, join(SKILLS_TARGET, skill), { recursive: true });
227
+ deployed++;
144
228
  }
145
- } else if (platform === "macOS" && existsSync(join(scriptsDir, "install-services.sh"))) {
146
- try {
147
- execSync(`bash "${join(scriptsDir, "install-services.sh")}" 2>&1`, { stdio: "pipe", timeout: 30000 });
148
- console.log(` 12 macOS launchd agents installed`);
149
- } catch {
150
- console.error(` macOS services setup skipped (run manually: install-services.sh)`);
151
- }
152
- } else {
153
- console.log(` Service setup skipped for ${platform}`);
154
229
  }
230
+ if (packName !== "core" && packName !== "doctor") console.log(` Deployed ${deployed} skills (${packName})`);
231
+ return deployed;
232
+ }
155
233
 
156
- console.log(` [12/12] Sleep prevention...`);
157
- if (platform === "Windows") {
158
- console.log(` Windows: Huckleberry prevents sleep while running (keep-awake.ps1)`);
159
- console.log(` Disable sleep manually: powercfg -change -standby-timeout-ac 0`);
160
- } else if (platform === "macOS") {
161
- console.log(` macOS: caffeinate prevents sleep while running (keep-awake.sh)`);
162
- }
234
+ async function installPack(args) {
235
+ const packName = args[0];
236
+ if (!packName || packName === "list") return listPacks();
237
+ mkdirSync(SKILLS_TARGET, { recursive: true });
238
+ const n = deployPack(packName);
239
+ console.log(`\n ✓ Pack "${packName}" deployed (${n} skills → ~/.claude/skills)\n Restart opencode sessions to pick them up.\n`);
240
+ }
241
+
242
+ // ---------- doctor ----------
163
243
 
164
- console.log(`\n ✓ Huckleberry v${VERSION} installed to ${hbDir}`);
165
- console.log(` ✓ Config: ${join(opencodeDir, "opencode.json")}`);
166
- console.log(`\n Next steps:`);
167
- console.log(` 1. npm install -g opencode`);
168
- console.log(` 2. npm install -g kimaki`);
169
- console.log(` 3. huckleberry interview`);
170
- console.log(` 4. cd ~/.huckleberry && opencode\n`);
244
+ function check(name, fn) {
245
+ try { const r = fn(); console.log(` ✓ ${name}${r ? ` — ${r}` : ""}`); return true; }
246
+ catch (e) { console.log(` ✗ ${name} — ${e.message}`); return false; }
171
247
  }
172
248
 
173
- async function update() {
174
- console.log(`\n Updating Huckleberry...\n`);
175
- try {
176
- execSync(`npm update -g ${PKG_NAME}`, { stdio: "inherit" });
177
- console.log(` ✓ ${PKG_NAME} updated`);
178
- } catch {
179
- console.error(` ⚠ ${PKG_NAME} update failed. Try: npm install -g ${PKG_NAME}@latest\n`);
249
+ async function doctor() {
250
+ console.log(`\n Huckleberry Doctor v${VERSION}\n`);
251
+ let bad = 0;
252
+ const C = (n, f) => { if (!check(n, f)) bad++; };
253
+
254
+ C("node", () => execSync("node --version", { stdio: "pipe" }).toString().trim());
255
+ C("npm", () => execSync("npm --version", { stdio: "pipe" }).toString().trim());
256
+ C("opencode", () => execSync("opencode --version", { stdio: "pipe" }).toString().trim());
257
+ C("kimaki", () => execSync("kimaki --version", { stdio: "pipe" }).toString().trim());
258
+ C("~/.huckleberry", () => { if (!existsSync(HB)) throw new Error("not installed — run: huckleberry install"); });
259
+ C("opencode config", () => { JSON.parse(readFileSync(join(HOME, ".opencode", "opencode.json"), "utf-8")); });
260
+ C("Inkstone MCP", () => { const p = join(HB, "mcp/inkstone/node_modules/@jairodri/huckleberry-inkstone/dist/mcp/server.js"); if (!existsSync(p)) throw new Error("missing — cd ~/.huckleberry/mcp/inkstone && npm install"); });
261
+ C("Jev MCP", () => { const p = join(HB, "mcp/jev-mcp/node_modules/@jkudish/jev-mcp/dist/index.js"); if (!existsSync(p)) throw new Error("missing — cd ~/.huckleberry/mcp/jev-mcp && npm install"); });
262
+ C("skills", () => { const n = readdirSync(SKILLS_TARGET).filter((s) => existsSync(join(SKILLS_TARGET, s, "SKILL.md"))).length; if (n < 10) throw new Error(`only ${n} skills — huckleberry install-pack all`); return `${n} skills`; });
263
+ C(".env keys", () => {
264
+ const env = join(HB, ".env");
265
+ if (!existsSync(env)) throw new Error("missing — run: huckleberry install");
266
+ const keys = readFileSync(env, "utf-8").split("\n").filter((l) => /^[A-Z_]+=/.test(l) && !l.endsWith("=")).map((l) => l.split("=")[0]);
267
+ if (!keys.length) throw new Error("no keys set yet (~/.huckleberry/.env) — add DISCORD_BOT_TOKEN / TYPESAFE_API_KEY");
268
+ return `set: ${keys.join(", ")}`;
269
+ });
270
+ C("disk", () => {
271
+ const out = execSync(`df -k "${HOME}" | tail -1`, { shell: "/bin/bash", stdio: "pipe" }).toString().trim().split(/\s+/);
272
+ const freeMb = Math.round(parseInt(out[out.length - 4] || "0", 10) / 1024);
273
+ if (freeMb < 2048) throw new Error(`only ${freeMb}MB free`);
274
+ return `${freeMb}MB free`;
275
+ });
276
+
277
+ console.log("");
278
+ if (bad === 0) {
279
+ console.log(" ✓ All checks passing. Your system is healthy.\n");
280
+ return;
180
281
  }
282
+ console.log(` ${bad} check(s) failing.`);
283
+ console.log(" Auto-fix: say \"fix it\" to your Hermes agent, or run:");
284
+ console.log(` opencode run --agent hermes "huckleberry doctor shows failures — diagnose and repair per ~/.huckleberry/agents/hermes/hermes-fixer.md"\n`);
285
+ }
181
286
 
182
- // Update Inkstone independently
183
- const homeDir = process.env.HOME || process.env.USERPROFILE;
184
- const inkstoneDir = join(homeDir, ".huckleberry", "mcp", "inkstone");
185
- if (existsSync(join(inkstoneDir, "package.json"))) {
186
- console.log(` Updating Inkstone memory system...`);
187
- try {
188
- execSync("npm update @jairodri/huckleberry-inkstone 2>/dev/null", { cwd: inkstoneDir, stdio: "pipe", timeout: 60000 });
189
- console.log(` ✓ Inkstone updated`);
190
- } catch {
191
- console.error(` ⚠ Inkstone update failed. Run: cd ${inkstoneDir} && npm install`);
287
+ // ---------- harness ----------
288
+
289
+ async function harness(args) {
290
+ const { describeAdapters, loadDefault, saveDefault, get } = await import("./harness/registry.js");
291
+ const sub = args[0] || "list";
292
+
293
+ if (sub === "list") {
294
+ const { rows, defaultId } = await describeAdapters(HOME);
295
+ console.log(`\n Execution harnesses (default: ${defaultId || "opencode"})\n`);
296
+ for (const r of rows) {
297
+ const flag = r.isDefault ? " ← default" : "";
298
+ const state = r.ready ? "✓ ready" : `✗ ${r.reason}`;
299
+ console.log(` ${r.id.padEnd(10)} ${state}${flag}`);
300
+ console.log(` ${"".padEnd(10)} ${r.label}${r.detail ? ` — ${r.detail}` : ""}`);
301
+ const c = r.caps;
302
+ console.log(` ${"".padEnd(10)} tools:${c.tools ? "yes" : "no"} files:${c.files ? "yes" : "no"} checkpoint:${c.checkpoint ? "yes" : "no"} streaming:${c.streaming ? "yes" : "no"} · ~$${c.costPerMTokIn}/M in · ~$${c.costPerMTokOut}/M out`);
303
+ if (!r.ready && r.detail) console.log(` ${"".padEnd(10)} fix: ${r.detail}`);
304
+ console.log("");
192
305
  }
306
+ console.log(` Switch default: huckleberry harness set <name>`);
307
+ return;
193
308
  }
194
309
 
195
- console.log(`\n ✓ Huckleberry updated\n`);
310
+ if (sub === "set") {
311
+ const id = args[1];
312
+ if (!id) { console.error("Usage: huckleberry harness set <opencode|deepseek>"); process.exit(1); }
313
+ if (!get(id)) { console.error(`Unknown harness: ${id} — run 'huckleberry harness list'`); process.exit(1); }
314
+ saveDefault(id, HOME);
315
+ console.log(`\n ✓ Default harness set to "${id}" — persisted to ${join(HB, "harness.json")}\n`);
316
+ return;
317
+ }
318
+
319
+ if (sub === "test") {
320
+ const id = args[1];
321
+ if (!id || !get(id)) { console.error(`Usage: huckleberry harness test <${"opencode|deepseek"}>`); process.exit(1); }
322
+ const a = get(id);
323
+ const st = await a.status();
324
+ const c = a.capabilities();
325
+ console.log(`\n ${id}: ${st.ready ? "✓ ready" : `✗ ${st.reason}`}${st.detail ? ` — ${st.detail}` : ""}`);
326
+ console.log(` caps: ${JSON.stringify(c)}`);
327
+ console.log(` interface: ${typeof a.submit === "function" && typeof a.stream === "function" && typeof a.checkpoint === "function" && typeof a.resume === "function" && typeof a.cancel === "function" && typeof a.downloadFiles === "function" ? "✓ full HarnessAdapter surface" : "✗ missing methods"}\n`);
328
+ process.exit(st.ready ? 0 : 4);
329
+ }
330
+
331
+ console.error(`Unknown harness subcommand: ${sub} (use list | set | test)`);
332
+ process.exit(1);
196
333
  }
197
334
 
198
- async function installPack(args) {
199
- const packName = args[0];
200
- if (!packName) { console.error("Usage: huckleberry install-pack <pack-name>\nAvailable packs: content-creator, outreach, seo, creative, video"); process.exit(1); }
201
- console.log(`\n Installing pack: ${packName}...\n`);
202
- console.log(` Pack system coming soon — each pack includes: agent config + skills + kanban templates + channel setup\n`);
335
+ // ---------- golden ----------
336
+
337
+ async function golden(args) {
338
+ const sub = args[0] || "run";
339
+ if (sub !== "run") { console.error("Usage: huckleberry golden run --adapter <opencode|deepseek> [--filter id] [--limit N] [--verbose]"); process.exit(1); }
340
+ const runner = join(PACKAGE_ROOT, "tests", "golden", "runner.js");
341
+ if (!existsSync(runner)) { console.error("Golden set not found — tests/golden/ missing"); process.exit(1); }
342
+ const { spawnSync } = await import("node:child_process");
343
+ const rest = args.slice(1);
344
+ const res = spawnSync(process.execPath, [runner, ...rest], { stdio: "inherit", env: { ...process.env, HUCKLEBERRY_HOME: process.env.HUCKLEBERRY_HOME || HOME } });
345
+ process.exit(res.status ?? 1);
203
346
  }
204
347
 
205
- function help() {
206
- console.log(`\n Huckleberry AI System v${VERSION}\n\n Usage: huckleberry <command>\n\n Commands:\n install One-click install\n update Update to latest version\n install-pack Install agent/skill pack\n help Show this help\n version Show version\n\n Packs:\n content-creator Writing + social + content agent\n outreach Sales + cold email + lead management\n seo Keyword research + rankings\n creative Images + branding + design\n video Video production\n`);
348
+ // ---------- cro ----------
349
+
350
+ async function cro(args) {
351
+ const url = args.find((a) => !a.startsWith("-"));
352
+ if (!url) { console.error("Usage: huckleberry cro <url>\nExample: huckleberry cro https://mysite.com/pricing"); process.exit(1); }
353
+ if (!commandExists("opencode")) { console.error("opencode not installed — npm install -g opencode"); process.exit(1); }
354
+ console.log(`\n Running CRO audit of ${url} (agent-powered, may take a few minutes)...\n`);
355
+ execSync(
356
+ `opencode run "Run the page-cro skill audit on ${url}. Score the page, list the top conversion problems in priority order, and give concrete fixes for each. Keep it actionable."`,
357
+ { stdio: "inherit" }
358
+ );
207
359
  }
208
360
 
209
- function detectPlatform() {
210
- const p = process.platform;
211
- return p === "darwin" ? "macOS" : p === "win32" ? "Windows" : p;
361
+ // ---------- review ----------
362
+
363
+ async function review() {
364
+ if (!commandExists("opencode")) { console.error("opencode not installed — npm install -g opencode"); process.exit(1); }
365
+ const dir = join(HB, "logs", "self-improve");
366
+ mkdirSync(dir, { recursive: true });
367
+ const report = join(dir, `${new Date().toISOString().split("T")[0]}.md`);
368
+ console.log(`\n Weekly self-improvement review (proposals only — nothing is auto-changed)...\n`);
369
+ execSync(
370
+ `opencode run "Weekly self-improvement review. 1. Review recent failures/corrections in Inkstone (memory_failures, memory_search). 2. Read ${join(HB, "MEMORY.md")} and ${join(HB, "evergreen.md")}. 3. Propose 2-3 CONCRETE improvements (skill to adjust, repeated mistake to prevent, workflow to automate) with evidence and expected benefit. Do NOT apply changes — proposals only. Write the report to ${report}."`,
371
+ { stdio: "inherit" }
372
+ );
373
+ console.log(`\n Report: ${report}\n`);
374
+ }
375
+
376
+ function commandExists(cmd) {
377
+ try { execSync(`command -v ${cmd}`, { shell: "/bin/bash", stdio: "pipe" }); return true; }
378
+ catch { return false; }
212
379
  }
213
380
 
214
- function copyTemplate(src, dst) {
381
+ // ---------- update ----------
382
+
383
+ async function update() {
384
+ console.log("\n Updating Huckleberry...\n");
385
+ try { execSync(`npm install -g ${PKG_NAME}@latest`, { stdio: "inherit" }); }
386
+ catch { console.error(` ⚠ Update failed. Try: npm install -g ${PKG_NAME}@latest\n`); }
215
387
  try {
216
- let content = readFileSync(src, "utf-8");
217
- content = content.replace(/\{\{VERSION\}\}/g, VERSION).replace(/\{\{INSTALL_DATE\}\}/g, new Date().toISOString().split("T")[0]);
218
- writeFileSync(dst, content, "utf-8");
219
- } catch (err) { console.error(` Failed: ${src} — ${err.message}`); }
388
+ const d = join(HB, "mcp", "inkstone");
389
+ if (existsSync(d)) execSync("npm update @jairodri/huckleberry-inkstone 2>/dev/null", { cwd: d, stdio: "pipe", timeout: 60000 });
390
+ } catch { console.error(" ⚠ Inkstone update failed. Run: cd ~/.huckleberry/mcp/inkstone && npm update"); }
391
+ console.log("");
220
392
  }
221
393
 
394
+ // ---------- helpers ----------
395
+
222
396
  function copyDirSync(src, dst) {
397
+ if (!existsSync(src)) return;
223
398
  mkdirSync(dst, { recursive: true });
224
399
  for (const entry of readdirSync(src)) {
225
- if (entry === ".git" || entry === "node_modules") continue;
400
+ if (entry === ".git" || entry === "node_modules" || entry === "lint-report.txt") continue;
226
401
  const s = join(src, entry), d = join(dst, entry);
227
402
  if (statSync(s).isDirectory()) copyDirSync(s, d); else copyFileSync(s, d);
228
403
  }