arkaos 4.26.0 → 4.28.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 (412) hide show
  1. package/README.md +7 -5
  2. package/THE-ARKAOS-GUIDE.md +7 -7
  3. package/VERSION +1 -1
  4. package/arka/SKILL.md +1 -1
  5. package/arka/skills/human-writing/SKILL.md +106 -0
  6. package/arka/skills/human-writing/references/anti-slop-phrases.md +131 -0
  7. package/arka/skills/human-writing/references/checklist.md +66 -0
  8. package/arka/skills/human-writing/references/content-refresh.md +38 -0
  9. package/arka/skills/human-writing/references/plain-english-alternatives.md +394 -0
  10. package/arka/skills/human-writing/references/pt-pt-anti-slop.md +82 -0
  11. package/arka/skills/human-writing/references/stop-slop.LICENSE +21 -0
  12. package/arka/skills/human-writing/references/structural-patterns.md +151 -0
  13. package/config/claude-agents/content-marketer.md +1 -1
  14. package/config/claude-agents/content-strategist.md +1 -1
  15. package/config/claude-agents/eduardo-copy.md +13 -0
  16. package/config/claude-agents/lifecycle-marketer.md +50 -0
  17. package/config/claude-agents/pr-partnerships.md +50 -0
  18. package/config/claude-agents/product-marketer.md +50 -0
  19. package/config/claude-agents/repurpose-distributor.md +1 -1
  20. package/config/claude-agents/sales-copywriter.md +1 -1
  21. package/config/claude-agents/scriptwriter.md +1 -1
  22. package/config/claude-agents/viral-engineer.md +1 -1
  23. package/config/evals/community.yaml +137 -0
  24. package/config/evals/content.yaml +298 -0
  25. package/config/evals/landing.yaml +927 -0
  26. package/config/evals/marketing.yaml +3836 -0
  27. package/config/evals/saas.yaml +616 -0
  28. package/config/evals/sales.yaml +437 -0
  29. package/config/skills-curated.yaml +2 -2
  30. package/config/skills-provenance.yaml +194 -21
  31. package/core/registry/generator.py +7 -0
  32. package/departments/community/SKILL.md +1 -0
  33. package/departments/community/skills/community-marketing/SKILL.md +200 -0
  34. package/departments/content/SKILL.md +1 -0
  35. package/departments/content/agents/content-strategist.yaml +1 -0
  36. package/departments/content/agents/repurpose-distributor.yaml +1 -0
  37. package/departments/content/agents/scriptwriter.yaml +1 -0
  38. package/departments/content/agents/viral-engineer.yaml +1 -0
  39. package/departments/content/skills/image-create/SKILL.md +375 -0
  40. package/departments/content/skills/image-create/references/ai-image-prompting.md +229 -0
  41. package/departments/content/skills/video-produce/SKILL.md +220 -0
  42. package/departments/content/skills/video-produce/references/ai-video-prompting.md +175 -0
  43. package/departments/content/skills/video-produce/references/edit-anatomy.md +84 -0
  44. package/departments/landing/SKILL.md +3 -0
  45. package/departments/landing/agents/sales-copywriter.yaml +1 -0
  46. package/departments/landing/skills/affiliate-bridge/SKILL.md +291 -5
  47. package/departments/landing/skills/affiliate-bridge/references/affiliate-programs.md +167 -0
  48. package/departments/landing/skills/affiliate-bridge/references/program-examples.md +143 -0
  49. package/departments/landing/skills/copy-framework/SKILL.md +241 -0
  50. package/departments/landing/skills/copy-framework/references/copy-frameworks.md +344 -0
  51. package/departments/landing/skills/copy-framework/references/natural-transitions.md +272 -0
  52. package/departments/landing/skills/lead-magnet/SKILL.md +337 -0
  53. package/departments/landing/skills/lead-magnet/references/benchmarks.md +129 -0
  54. package/departments/landing/skills/lead-magnet/references/format-guide.md +196 -0
  55. package/departments/landing/skills/offer-create/SKILL.md +105 -8
  56. package/departments/landing/skills/offer-create/references/bonus-stacking.md +150 -0
  57. package/departments/landing/skills/offer-create/references/examples.md +215 -0
  58. package/departments/landing/skills/offer-create/references/guarantee-design.md +172 -0
  59. package/departments/landing/skills/offer-create/references/offer-anatomy.md +203 -0
  60. package/departments/landing/skills/offer-create/references/offer-formats.md +240 -0
  61. package/departments/landing/skills/offer-create/references/scarcity-urgency.md +175 -0
  62. package/departments/landing/skills/offer-create/references/value-equation.md +134 -0
  63. package/departments/landing/skills/optimize-page/SKILL.md +185 -4
  64. package/departments/landing/skills/optimize-page/references/experiments.md +248 -0
  65. package/departments/landing/skills/optimize-page/references/form.md +422 -0
  66. package/departments/landing/skills/page-architect/SKILL.md +373 -5
  67. package/departments/landing/skills/page-architect/references/mermaid-templates.md +216 -0
  68. package/departments/landing/skills/page-architect/references/navigation-patterns.md +305 -0
  69. package/departments/landing/skills/page-architect/references/site-type-templates.md +293 -0
  70. package/departments/landing/skills/popup-design/SKILL.md +481 -0
  71. package/departments/landing/skills/signup-optimize/SKILL.md +385 -0
  72. package/departments/marketing/SKILL.md +22 -1
  73. package/departments/marketing/agents/content-marketer.yaml +1 -0
  74. package/departments/marketing/agents/growth-marketing/lifecycle-marketer.yaml +75 -0
  75. package/departments/marketing/agents/growth-marketing/pr-partnerships.yaml +74 -0
  76. package/departments/marketing/agents/growth-marketing/product-marketer.yaml +79 -0
  77. package/departments/marketing/agents/marketing-director.yaml +1 -0
  78. package/departments/marketing/skills/ab-test/SKILL.md +322 -3
  79. package/departments/marketing/skills/ab-test/references/sample-size-guide.md +263 -0
  80. package/departments/marketing/skills/ab-test/references/test-templates.md +277 -0
  81. package/departments/marketing/skills/ad-creative/SKILL.md +451 -0
  82. package/departments/marketing/skills/ad-creative/references/creative-review-page.md +106 -0
  83. package/departments/marketing/skills/ad-creative/references/creative-roadmap.md +118 -0
  84. package/departments/marketing/skills/ad-creative/references/generative-tools.md +637 -0
  85. package/departments/marketing/skills/ad-creative/references/hook-system.md +115 -0
  86. package/departments/marketing/skills/ad-creative/references/imessage-video-ads.md +201 -0
  87. package/departments/marketing/skills/ad-creative/references/motion-video-ads.md +126 -0
  88. package/departments/marketing/skills/ad-creative/references/platform-specs.md +213 -0
  89. package/departments/marketing/skills/ad-creative/references/static-ad-templates.md +200 -0
  90. package/departments/marketing/skills/ai-seo/SKILL.md +520 -0
  91. package/departments/marketing/skills/ai-seo/references/citations-vs-recommendations.md +85 -0
  92. package/departments/marketing/skills/ai-seo/references/content-patterns.md +287 -0
  93. package/departments/marketing/skills/ai-seo/references/content-types.md +71 -0
  94. package/departments/marketing/skills/ai-seo/references/okf.md +104 -0
  95. package/departments/marketing/skills/ai-seo/references/platform-ranking-factors.md +154 -0
  96. package/departments/marketing/skills/analytics-report/SKILL.md +310 -1
  97. package/departments/marketing/skills/analytics-report/references/event-library.md +260 -0
  98. package/departments/marketing/skills/analytics-report/references/ga4-implementation.md +300 -0
  99. package/departments/marketing/skills/analytics-report/references/gtm-implementation.md +390 -0
  100. package/departments/marketing/skills/aso/SKILL.md +336 -0
  101. package/departments/marketing/skills/aso/references/apple-specs.md +107 -0
  102. package/departments/marketing/skills/aso/references/benchmarks.md +129 -0
  103. package/departments/marketing/skills/aso/references/google-play-specs.md +131 -0
  104. package/departments/marketing/skills/aso/references/report-template.md +213 -0
  105. package/departments/marketing/skills/aso/references/scoring-criteria.md +213 -0
  106. package/departments/marketing/skills/co-marketing/SKILL.md +316 -0
  107. package/departments/marketing/skills/cold-email/SKILL.md +80 -0
  108. package/departments/marketing/skills/cold-email/references/benchmarks.md +83 -0
  109. package/departments/marketing/skills/cold-email/references/follow-up-sequences.md +81 -0
  110. package/departments/marketing/skills/cold-email/references/frameworks.md +90 -0
  111. package/departments/marketing/skills/cold-email/references/personalization.md +79 -0
  112. package/departments/marketing/skills/cold-email/references/subject-lines.md +53 -0
  113. package/departments/marketing/skills/competitor-analysis/SKILL.md +262 -5
  114. package/departments/marketing/skills/competitor-analysis/references/content-architecture.md +271 -0
  115. package/departments/marketing/skills/competitor-analysis/references/templates.md +223 -0
  116. package/departments/marketing/skills/competitor-profile/SKILL.md +447 -0
  117. package/departments/marketing/skills/competitor-profile/references/templates.md +167 -0
  118. package/departments/marketing/skills/competitor-profile/references/tool-reference.md +179 -0
  119. package/departments/marketing/skills/content-strategy/SKILL.md +398 -0
  120. package/departments/marketing/skills/content-strategy/references/headless-cms.md +194 -0
  121. package/departments/marketing/skills/council/SKILL.md +185 -0
  122. package/departments/marketing/skills/council/references/advisor-template.md +51 -0
  123. package/departments/marketing/skills/council/references/advisors/alex-hormozi.md +43 -0
  124. package/departments/marketing/skills/council/references/advisors/ann-handley.md +43 -0
  125. package/departments/marketing/skills/council/references/advisors/april-dunford.md +41 -0
  126. package/departments/marketing/skills/council/references/advisors/byron-sharp.md +43 -0
  127. package/departments/marketing/skills/council/references/advisors/claude-hopkins.md +42 -0
  128. package/departments/marketing/skills/council/references/advisors/david-ogilvy.md +42 -0
  129. package/departments/marketing/skills/council/references/advisors/eugene-schwartz.md +42 -0
  130. package/departments/marketing/skills/council/references/advisors/gary-halbert.md +43 -0
  131. package/departments/marketing/skills/council/references/advisors/gary-vaynerchuk.md +43 -0
  132. package/departments/marketing/skills/council/references/advisors/rory-sutherland.md +42 -0
  133. package/departments/marketing/skills/council/references/advisors/russell-brunson.md +43 -0
  134. package/departments/marketing/skills/council/references/advisors/seth-godin.md +43 -0
  135. package/departments/marketing/skills/customer-research/SKILL.md +318 -0
  136. package/departments/marketing/skills/customer-research/references/source-guides.md +401 -0
  137. package/departments/marketing/skills/directory-submit/SKILL.md +409 -0
  138. package/departments/marketing/skills/directory-submit/references/directory-list.md +477 -0
  139. package/departments/marketing/skills/directory-submit/references/positioning-variations.md +232 -0
  140. package/departments/marketing/skills/directory-submit/references/submission-tracker-template.csv +266 -0
  141. package/departments/marketing/skills/email-sequence/SKILL.md +309 -2
  142. package/departments/marketing/skills/email-sequence/references/copy-guidelines.md +113 -0
  143. package/departments/marketing/skills/email-sequence/references/email-types.md +515 -0
  144. package/departments/marketing/skills/email-sequence/references/sequence-templates.md +168 -0
  145. package/departments/marketing/skills/free-tools/SKILL.md +203 -0
  146. package/departments/marketing/skills/free-tools/references/tool-types.md +217 -0
  147. package/departments/marketing/skills/marketing-ideas/SKILL.md +191 -0
  148. package/departments/marketing/skills/marketing-ideas/references/ideas-by-category.md +366 -0
  149. package/departments/marketing/skills/marketing-loops/SKILL.md +136 -0
  150. package/departments/marketing/skills/marketing-loops/references/loop-catalog.md +687 -0
  151. package/departments/marketing/skills/marketing-loops/references/loop-guardrails.md +73 -0
  152. package/departments/marketing/skills/marketing-loops/references/loop-orchestration.md +69 -0
  153. package/departments/marketing/skills/marketing-loops/references/loop-state.md +67 -0
  154. package/departments/marketing/skills/marketing-loops/references/loop-template.md +79 -0
  155. package/departments/marketing/skills/marketing-plan/SKILL.md +302 -0
  156. package/departments/marketing/skills/marketing-plan/references/aarrr-framework.md +180 -0
  157. package/departments/marketing/skills/marketing-plan/references/budget-planning.md +168 -0
  158. package/departments/marketing/skills/marketing-plan/references/client-types.md +373 -0
  159. package/departments/marketing/skills/marketing-plan/references/current-state-rubric.md +255 -0
  160. package/departments/marketing/skills/marketing-plan/references/example-quietude.md +972 -0
  161. package/departments/marketing/skills/marketing-plan/references/funding-stage-unlocks.md +230 -0
  162. package/departments/marketing/skills/marketing-plan/references/growth-patterns.md +148 -0
  163. package/departments/marketing/skills/marketing-plan/references/idea-cross-reference.md +265 -0
  164. package/departments/marketing/skills/marketing-plan/references/measurement-framework.md +213 -0
  165. package/departments/marketing/skills/marketing-plan/references/methodology.md +363 -0
  166. package/departments/marketing/skills/marketing-plan/references/ops-stack-mapping.md +197 -0
  167. package/departments/marketing/skills/marketing-plan/references/plan-template.md +494 -0
  168. package/departments/marketing/skills/marketing-plan/references/team-and-agency-model.md +278 -0
  169. package/departments/marketing/skills/marketing-psychology/SKILL.md +479 -0
  170. package/departments/marketing/skills/paid-campaign/SKILL.md +452 -3
  171. package/departments/marketing/skills/paid-campaign/references/abm-playbook.md +93 -0
  172. package/departments/marketing/skills/paid-campaign/references/ad-copy-templates.md +207 -0
  173. package/departments/marketing/skills/paid-campaign/references/audience-targeting.md +243 -0
  174. package/departments/marketing/skills/paid-campaign/references/b2b-paid-playbook.md +115 -0
  175. package/departments/marketing/skills/paid-campaign/references/conversion-tracking.md +361 -0
  176. package/departments/marketing/skills/paid-campaign/references/google-search-playbook.md +120 -0
  177. package/departments/marketing/skills/paid-campaign/references/linkedin-b2b-playbook.md +107 -0
  178. package/departments/marketing/skills/paid-campaign/references/meta-decision-system.md +143 -0
  179. package/departments/marketing/skills/paid-campaign/references/platform-setup-checklists.md +277 -0
  180. package/departments/marketing/skills/paid-campaign/references/rsa-output-spec.md +88 -0
  181. package/departments/marketing/skills/product-marketing/SKILL.md +141 -0
  182. package/departments/marketing/skills/programmatic-seo/SKILL.md +74 -3
  183. package/departments/marketing/skills/programmatic-seo/references/playbooks.md +308 -0
  184. package/departments/marketing/skills/public-relations/SKILL.md +167 -0
  185. package/departments/marketing/skills/public-relations/references/journalist-pitching.md +368 -0
  186. package/departments/marketing/skills/public-relations/references/media-outlets.md +207 -0
  187. package/departments/marketing/skills/public-relations/references/newsjacking.md +218 -0
  188. package/departments/marketing/skills/public-relations/references/press-platforms.md +188 -0
  189. package/departments/marketing/skills/schema-markup/SKILL.md +203 -0
  190. package/departments/marketing/skills/schema-markup/references/schema-examples.md +398 -0
  191. package/departments/marketing/skills/seo-audit/SKILL.md +470 -1
  192. package/departments/marketing/skills/seo-audit/references/ai-writing-detection.md +200 -0
  193. package/departments/marketing/skills/seo-audit/references/international-seo.md +230 -0
  194. package/departments/marketing/skills/sms-campaign/SKILL.md +363 -0
  195. package/departments/marketing/skills/sms-campaign/references/compliance.md +202 -0
  196. package/departments/marketing/skills/sms-campaign/references/platforms.md +318 -0
  197. package/departments/marketing/skills/sms-campaign/references/sequence-templates.md +282 -0
  198. package/departments/marketing/skills/social-strategy/SKILL.md +414 -3
  199. package/departments/marketing/skills/social-strategy/references/carousel-frameworks.md +141 -0
  200. package/departments/marketing/skills/social-strategy/references/listening-sources-template.md +123 -0
  201. package/departments/marketing/skills/social-strategy/references/listening.md +283 -0
  202. package/departments/marketing/skills/social-strategy/references/platform-limits.md +110 -0
  203. package/departments/marketing/skills/social-strategy/references/platforms.md +170 -0
  204. package/departments/marketing/skills/social-strategy/references/post-templates.md +179 -0
  205. package/departments/marketing/skills/social-strategy/references/reverse-engineering.md +195 -0
  206. package/departments/marketing/skills/social-strategy/references/short-form-video.md +237 -0
  207. package/departments/marketing/squad.yaml +10 -1
  208. package/departments/marketing/tools/LICENSE +21 -0
  209. package/departments/marketing/tools/REGISTRY.md +590 -0
  210. package/departments/marketing/tools/clis/README.md +198 -0
  211. package/departments/marketing/tools/clis/activecampaign.js +435 -0
  212. package/departments/marketing/tools/clis/adobe-analytics.js +161 -0
  213. package/departments/marketing/tools/clis/ahrefs.js +192 -0
  214. package/departments/marketing/tools/clis/airops.js +163 -0
  215. package/departments/marketing/tools/clis/amplitude.js +182 -0
  216. package/departments/marketing/tools/clis/apollo.js +142 -0
  217. package/departments/marketing/tools/clis/beehiiv.js +245 -0
  218. package/departments/marketing/tools/clis/brevo.js +368 -0
  219. package/departments/marketing/tools/clis/buffer.js +260 -0
  220. package/departments/marketing/tools/clis/calendly.js +253 -0
  221. package/departments/marketing/tools/clis/clay.js +159 -0
  222. package/departments/marketing/tools/clis/clearbit.js +163 -0
  223. package/departments/marketing/tools/clis/close.js +232 -0
  224. package/departments/marketing/tools/clis/coupler.js +173 -0
  225. package/departments/marketing/tools/clis/crossbeam.js +193 -0
  226. package/departments/marketing/tools/clis/customer-io.js +205 -0
  227. package/departments/marketing/tools/clis/dataforseo.js +257 -0
  228. package/departments/marketing/tools/clis/demio.js +149 -0
  229. package/departments/marketing/tools/clis/dub.js +158 -0
  230. package/departments/marketing/tools/clis/exa.js +147 -0
  231. package/departments/marketing/tools/clis/g2.js +186 -0
  232. package/departments/marketing/tools/clis/ga4.js +194 -0
  233. package/departments/marketing/tools/clis/github-prospects.js +257 -0
  234. package/departments/marketing/tools/clis/google-ads.js +189 -0
  235. package/departments/marketing/tools/clis/google-search-console.js +166 -0
  236. package/departments/marketing/tools/clis/hotjar.js +167 -0
  237. package/departments/marketing/tools/clis/hunter.js +249 -0
  238. package/departments/marketing/tools/clis/instantly.js +270 -0
  239. package/departments/marketing/tools/clis/intercom.js +399 -0
  240. package/departments/marketing/tools/clis/keywords-everywhere.js +185 -0
  241. package/departments/marketing/tools/clis/kit.js +232 -0
  242. package/departments/marketing/tools/clis/klaviyo.js +348 -0
  243. package/departments/marketing/tools/clis/lemlist.js +221 -0
  244. package/departments/marketing/tools/clis/linkedin-ads.js +185 -0
  245. package/departments/marketing/tools/clis/livestorm.js +292 -0
  246. package/departments/marketing/tools/clis/mailchimp.js +220 -0
  247. package/departments/marketing/tools/clis/mention-me.js +161 -0
  248. package/departments/marketing/tools/clis/meta-ads.js +181 -0
  249. package/departments/marketing/tools/clis/mixpanel.js +248 -0
  250. package/departments/marketing/tools/clis/onesignal.js +241 -0
  251. package/departments/marketing/tools/clis/optimizely.js +233 -0
  252. package/departments/marketing/tools/clis/outreach.js +213 -0
  253. package/departments/marketing/tools/clis/paddle.js +385 -0
  254. package/departments/marketing/tools/clis/partnerstack.js +382 -0
  255. package/departments/marketing/tools/clis/pendo.js +221 -0
  256. package/departments/marketing/tools/clis/plausible.js +249 -0
  257. package/departments/marketing/tools/clis/postmark.js +375 -0
  258. package/departments/marketing/tools/clis/rankparse.js +196 -0
  259. package/departments/marketing/tools/clis/resend.js +370 -0
  260. package/departments/marketing/tools/clis/rewardful.js +160 -0
  261. package/departments/marketing/tools/clis/savvycal.js +223 -0
  262. package/departments/marketing/tools/clis/segment.js +192 -0
  263. package/departments/marketing/tools/clis/semrush.js +207 -0
  264. package/departments/marketing/tools/clis/sendgrid.js +211 -0
  265. package/departments/marketing/tools/clis/similarweb.js +214 -0
  266. package/departments/marketing/tools/clis/snov.js +237 -0
  267. package/departments/marketing/tools/clis/supermetrics.js +169 -0
  268. package/departments/marketing/tools/clis/tiktok-ads.js +190 -0
  269. package/departments/marketing/tools/clis/tolt.js +153 -0
  270. package/departments/marketing/tools/clis/trustpilot.js +276 -0
  271. package/departments/marketing/tools/clis/typeform.js +269 -0
  272. package/departments/marketing/tools/clis/wistia.js +301 -0
  273. package/departments/marketing/tools/clis/zapier.js +165 -0
  274. package/departments/marketing/tools/clis/zoominfo.js +223 -0
  275. package/departments/marketing/tools/composio/README.md +105 -0
  276. package/departments/marketing/tools/composio/marketing-tools.md +91 -0
  277. package/departments/marketing/tools/integrations/activecampaign.md +337 -0
  278. package/departments/marketing/tools/integrations/adobe-analytics.md +156 -0
  279. package/departments/marketing/tools/integrations/ahrefs.md +142 -0
  280. package/departments/marketing/tools/integrations/airops.md +128 -0
  281. package/departments/marketing/tools/integrations/amplitude.md +135 -0
  282. package/departments/marketing/tools/integrations/apollo.md +148 -0
  283. package/departments/marketing/tools/integrations/attentive.md +152 -0
  284. package/departments/marketing/tools/integrations/audiencetap.md +125 -0
  285. package/departments/marketing/tools/integrations/beehiiv.md +157 -0
  286. package/departments/marketing/tools/integrations/brevo.md +268 -0
  287. package/departments/marketing/tools/integrations/browserbase.md +111 -0
  288. package/departments/marketing/tools/integrations/buffer.md +138 -0
  289. package/departments/marketing/tools/integrations/calendly.md +161 -0
  290. package/departments/marketing/tools/integrations/clay.md +149 -0
  291. package/departments/marketing/tools/integrations/clearbit.md +142 -0
  292. package/departments/marketing/tools/integrations/close.md +191 -0
  293. package/departments/marketing/tools/integrations/cogny.md +153 -0
  294. package/departments/marketing/tools/integrations/composio.md +190 -0
  295. package/departments/marketing/tools/integrations/contentful.md +160 -0
  296. package/departments/marketing/tools/integrations/coupler.md +142 -0
  297. package/departments/marketing/tools/integrations/crossbeam.md +137 -0
  298. package/departments/marketing/tools/integrations/customer-io.md +187 -0
  299. package/departments/marketing/tools/integrations/dataforseo.md +165 -0
  300. package/departments/marketing/tools/integrations/demio.md +182 -0
  301. package/departments/marketing/tools/integrations/dub-co.md +160 -0
  302. package/departments/marketing/tools/integrations/exa.md +145 -0
  303. package/departments/marketing/tools/integrations/firecrawl.md +144 -0
  304. package/departments/marketing/tools/integrations/firehose.md +159 -0
  305. package/departments/marketing/tools/integrations/g2.md +179 -0
  306. package/departments/marketing/tools/integrations/ga4.md +126 -0
  307. package/departments/marketing/tools/integrations/github.md +182 -0
  308. package/departments/marketing/tools/integrations/gong.md +144 -0
  309. package/departments/marketing/tools/integrations/google-ads.md +159 -0
  310. package/departments/marketing/tools/integrations/google-search-console.md +147 -0
  311. package/departments/marketing/tools/integrations/heygen.md +126 -0
  312. package/departments/marketing/tools/integrations/hotjar.md +147 -0
  313. package/departments/marketing/tools/integrations/hubspot.md +178 -0
  314. package/departments/marketing/tools/integrations/hunter.md +90 -0
  315. package/departments/marketing/tools/integrations/hyperframes.md +180 -0
  316. package/departments/marketing/tools/integrations/instantly.md +104 -0
  317. package/departments/marketing/tools/integrations/intercom.md +292 -0
  318. package/departments/marketing/tools/integrations/introw.md +182 -0
  319. package/departments/marketing/tools/integrations/keywords-everywhere.md +207 -0
  320. package/departments/marketing/tools/integrations/kit.md +167 -0
  321. package/departments/marketing/tools/integrations/klaviyo.md +228 -0
  322. package/departments/marketing/tools/integrations/lemlist.md +110 -0
  323. package/departments/marketing/tools/integrations/linkedin-ads.md +164 -0
  324. package/departments/marketing/tools/integrations/livestorm.md +313 -0
  325. package/departments/marketing/tools/integrations/mailchimp.md +150 -0
  326. package/departments/marketing/tools/integrations/mention-me.md +160 -0
  327. package/departments/marketing/tools/integrations/meta-ads.md +147 -0
  328. package/departments/marketing/tools/integrations/mixpanel.md +137 -0
  329. package/departments/marketing/tools/integrations/nitrosend.md +113 -0
  330. package/departments/marketing/tools/integrations/onesignal.md +229 -0
  331. package/departments/marketing/tools/integrations/optimizely.md +171 -0
  332. package/departments/marketing/tools/integrations/outreach.md +172 -0
  333. package/departments/marketing/tools/integrations/paddle.md +212 -0
  334. package/departments/marketing/tools/integrations/partnerstack.md +222 -0
  335. package/departments/marketing/tools/integrations/pendo.md +208 -0
  336. package/departments/marketing/tools/integrations/plausible.md +177 -0
  337. package/departments/marketing/tools/integrations/plivo.md +140 -0
  338. package/departments/marketing/tools/integrations/posthog.md +151 -0
  339. package/departments/marketing/tools/integrations/postmark.md +234 -0
  340. package/departments/marketing/tools/integrations/postscript.md +126 -0
  341. package/departments/marketing/tools/integrations/rankparse.md +257 -0
  342. package/departments/marketing/tools/integrations/rb2b.md +110 -0
  343. package/departments/marketing/tools/integrations/resend.md +212 -0
  344. package/departments/marketing/tools/integrations/rewardful.md +147 -0
  345. package/departments/marketing/tools/integrations/salesforce.md +150 -0
  346. package/departments/marketing/tools/integrations/sanity.md +148 -0
  347. package/departments/marketing/tools/integrations/savvycal.md +181 -0
  348. package/departments/marketing/tools/integrations/segment.md +159 -0
  349. package/departments/marketing/tools/integrations/semrush.md +121 -0
  350. package/departments/marketing/tools/integrations/sendgrid.md +161 -0
  351. package/departments/marketing/tools/integrations/sequenzy.md +306 -0
  352. package/departments/marketing/tools/integrations/shopify.md +176 -0
  353. package/departments/marketing/tools/integrations/similarweb.md +150 -0
  354. package/departments/marketing/tools/integrations/snov.md +94 -0
  355. package/departments/marketing/tools/integrations/sparktoro.md +127 -0
  356. package/departments/marketing/tools/integrations/strapi.md +167 -0
  357. package/departments/marketing/tools/integrations/stripe.md +148 -0
  358. package/departments/marketing/tools/integrations/supermetrics.md +145 -0
  359. package/departments/marketing/tools/integrations/tiktok-ads.md +161 -0
  360. package/departments/marketing/tools/integrations/tolt.md +144 -0
  361. package/departments/marketing/tools/integrations/truelist.md +184 -0
  362. package/departments/marketing/tools/integrations/trustpilot.md +191 -0
  363. package/departments/marketing/tools/integrations/twilio.md +152 -0
  364. package/departments/marketing/tools/integrations/typeform.md +190 -0
  365. package/departments/marketing/tools/integrations/webflow.md +198 -0
  366. package/departments/marketing/tools/integrations/wistia.md +164 -0
  367. package/departments/marketing/tools/integrations/wordpress.md +175 -0
  368. package/departments/marketing/tools/integrations/zapier.md +244 -0
  369. package/departments/marketing/tools/integrations/zoominfo.md +191 -0
  370. package/departments/quality/agents/copy-director.yaml +1 -0
  371. package/departments/saas/SKILL.md +1 -0
  372. package/departments/saas/skills/churn-analysis/SKILL.md +421 -4
  373. package/departments/saas/skills/churn-analysis/references/cancel-flow-patterns.md +316 -0
  374. package/departments/saas/skills/churn-analysis/references/dunning-playbook.md +408 -0
  375. package/departments/saas/skills/launch-execute/SKILL.md +346 -4
  376. package/departments/saas/skills/onboarding-optimize/SKILL.md +218 -4
  377. package/departments/saas/skills/onboarding-optimize/references/experiments.md +258 -0
  378. package/departments/saas/skills/paywall-design/SKILL.md +256 -0
  379. package/departments/saas/skills/paywall-design/references/experiments.md +164 -0
  380. package/departments/saas/skills/pricing-strategy/SKILL.md +224 -0
  381. package/departments/saas/skills/pricing-strategy/references/research-methods.md +152 -0
  382. package/departments/saas/skills/pricing-strategy/references/tier-structure.md +232 -0
  383. package/departments/sales/SKILL.md +3 -0
  384. package/departments/sales/skills/prospecting/SKILL.md +297 -0
  385. package/departments/sales/skills/prospecting/references/b2b-prospecting.md +106 -0
  386. package/departments/sales/skills/prospecting/references/compliance.md +123 -0
  387. package/departments/sales/skills/prospecting/references/data-sources.md +287 -0
  388. package/departments/sales/skills/prospecting/references/demand-signals.md +129 -0
  389. package/departments/sales/skills/prospecting/references/local-prospecting.md +165 -0
  390. package/departments/sales/skills/prospecting/references/saas-prospecting.md +123 -0
  391. package/departments/sales/skills/revops/SKILL.md +379 -0
  392. package/departments/sales/skills/revops/references/automation-playbooks.md +290 -0
  393. package/departments/sales/skills/revops/references/lifecycle-definitions.md +278 -0
  394. package/departments/sales/skills/revops/references/routing-rules.md +203 -0
  395. package/departments/sales/skills/revops/references/scoring-models.md +247 -0
  396. package/departments/sales/skills/sales-enablement/SKILL.md +396 -0
  397. package/departments/sales/skills/sales-enablement/references/deck-frameworks.md +263 -0
  398. package/departments/sales/skills/sales-enablement/references/demo-scripts.md +355 -0
  399. package/departments/sales/skills/sales-enablement/references/objection-library.md +270 -0
  400. package/departments/sales/skills/sales-enablement/references/one-pager-templates.md +208 -0
  401. package/harness/codex/AGENTS.md +8 -8
  402. package/harness/copilot/copilot-instructions.md +8 -8
  403. package/harness/cursor/rules/arkaos.mdc +9 -9
  404. package/harness/gemini/GEMINI.md +8 -8
  405. package/harness/opencode/AGENTS.md +8 -8
  406. package/harness/zed/.rules +8 -8
  407. package/knowledge/agents-registry-v2.json +170 -8
  408. package/knowledge/commands-registry.json +693 -99
  409. package/knowledge/skills-manifest.json +459 -20
  410. package/package.json +1 -1
  411. package/pyproject.toml +1 -1
  412. package/scripts/tools/evals_import.py +183 -0
@@ -0,0 +1,205 @@
1
+ #!/usr/bin/env node
2
+
3
+ const APP_KEY = process.env.CUSTOMERIO_APP_KEY
4
+ const SITE_ID = process.env.CUSTOMERIO_SITE_ID
5
+ const API_KEY = process.env.CUSTOMERIO_API_KEY
6
+
7
+ const TRACK_URL = 'https://track.customer.io/api/v1'
8
+ const APP_URL = 'https://api.customer.io/v1'
9
+
10
+ const hasTrackAuth = SITE_ID && API_KEY
11
+ const hasAppAuth = APP_KEY
12
+
13
+ if (!hasTrackAuth && !hasAppAuth) {
14
+ console.error(JSON.stringify({ error: 'CUSTOMERIO_APP_KEY (for App API) or CUSTOMERIO_SITE_ID + CUSTOMERIO_API_KEY (for Track API) environment variables required' }))
15
+ process.exit(1)
16
+ }
17
+
18
+ const basicAuth = hasTrackAuth ? Buffer.from(`${SITE_ID}:${API_KEY}`).toString('base64') : null
19
+
20
+ async function trackApi(method, path, body) {
21
+ if (!hasTrackAuth) {
22
+ return { error: 'Track API requires CUSTOMERIO_SITE_ID and CUSTOMERIO_API_KEY environment variables' }
23
+ }
24
+ if (args['dry-run']) {
25
+ return { _dry_run: true, method, url: `${TRACK_URL}${path}`, headers: { Authorization: '***', 'Content-Type': 'application/json' }, body: body || undefined }
26
+ }
27
+ const res = await fetch(`${TRACK_URL}${path}`, {
28
+ method,
29
+ headers: {
30
+ 'Authorization': `Basic ${basicAuth}`,
31
+ 'Content-Type': 'application/json',
32
+ },
33
+ body: body ? JSON.stringify(body) : undefined,
34
+ })
35
+ const text = await res.text()
36
+ try {
37
+ return JSON.parse(text)
38
+ } catch {
39
+ return { status: res.status, body: text }
40
+ }
41
+ }
42
+
43
+ async function appApi(method, path, body) {
44
+ if (!hasAppAuth) {
45
+ return { error: 'App API requires CUSTOMERIO_APP_KEY environment variable' }
46
+ }
47
+ if (args['dry-run']) {
48
+ return { _dry_run: true, method, url: `${APP_URL}${path}`, headers: { Authorization: '***', 'Content-Type': 'application/json' }, body: body || undefined }
49
+ }
50
+ const res = await fetch(`${APP_URL}${path}`, {
51
+ method,
52
+ headers: {
53
+ 'Authorization': `Bearer ${APP_KEY}`,
54
+ 'Content-Type': 'application/json',
55
+ },
56
+ body: body ? JSON.stringify(body) : undefined,
57
+ })
58
+ const text = await res.text()
59
+ try {
60
+ return JSON.parse(text)
61
+ } catch {
62
+ return { status: res.status, body: text }
63
+ }
64
+ }
65
+
66
+ function parseArgs(args) {
67
+ const result = { _: [] }
68
+ for (let i = 0; i < args.length; i++) {
69
+ const arg = args[i]
70
+ if (arg.startsWith('--')) {
71
+ const key = arg.slice(2)
72
+ const next = args[i + 1]
73
+ if (next && !next.startsWith('--')) {
74
+ result[key] = next
75
+ i++
76
+ } else {
77
+ result[key] = true
78
+ }
79
+ } else {
80
+ result._.push(arg)
81
+ }
82
+ }
83
+ return result
84
+ }
85
+
86
+ const args = parseArgs(process.argv.slice(2))
87
+ const [cmd, sub, ...rest] = args._
88
+
89
+ async function main() {
90
+ let result
91
+
92
+ switch (cmd) {
93
+ case 'customers':
94
+ switch (sub) {
95
+ case 'identify': {
96
+ const customerId = rest[0] || args.id
97
+ if (!customerId) { result = { error: 'Customer ID required (positional arg or --id)' }; break }
98
+ const body = {}
99
+ if (args.email) body.email = args.email
100
+ if (args['first-name']) body.first_name = args['first-name']
101
+ if (args['last-name']) body.last_name = args['last-name']
102
+ if (args['created-at']) body.created_at = parseInt(args['created-at'])
103
+ if (args.plan) body.plan = args.plan
104
+ if (args.data) Object.assign(body, JSON.parse(args.data))
105
+ result = await trackApi('PUT', `/customers/${customerId}`, body)
106
+ break
107
+ }
108
+ case 'get': {
109
+ const customerId = rest[0] || args.id
110
+ if (!customerId) { result = { error: 'Customer ID required (positional arg or --id)' }; break }
111
+ result = await appApi('GET', `/customers/${customerId}/attributes`)
112
+ break
113
+ }
114
+ case 'delete': {
115
+ const customerId = rest[0] || args.id
116
+ if (!customerId) { result = { error: 'Customer ID required (positional arg or --id)' }; break }
117
+ result = await trackApi('DELETE', `/customers/${customerId}`)
118
+ break
119
+ }
120
+ case 'track-event': {
121
+ const customerId = rest[0] || args.id
122
+ if (!customerId) { result = { error: 'Customer ID required (positional arg or --id)' }; break }
123
+ if (!args.name) { result = { error: '--name required (event name)' }; break }
124
+ const body = { name: args.name }
125
+ if (args.data) body.data = JSON.parse(args.data)
126
+ result = await trackApi('POST', `/customers/${customerId}/events`, body)
127
+ break
128
+ }
129
+ default:
130
+ result = { error: 'Unknown customers subcommand. Use: identify, get, delete, track-event' }
131
+ }
132
+ break
133
+
134
+ case 'campaigns':
135
+ switch (sub) {
136
+ case 'list':
137
+ result = await appApi('GET', '/campaigns')
138
+ break
139
+ case 'get': {
140
+ const campaignId = rest[0] || args.id
141
+ if (!campaignId) { result = { error: 'Campaign ID required (positional arg or --id)' }; break }
142
+ result = await appApi('GET', `/campaigns/${campaignId}`)
143
+ break
144
+ }
145
+ case 'metrics': {
146
+ const campaignId = rest[0] || args.id
147
+ if (!campaignId) { result = { error: 'Campaign ID required (positional arg or --id)' }; break }
148
+ result = await appApi('GET', `/campaigns/${campaignId}/metrics`)
149
+ break
150
+ }
151
+ case 'trigger': {
152
+ const campaignId = rest[0] || args.id
153
+ if (!campaignId) { result = { error: 'Campaign ID required (positional arg or --id)' }; break }
154
+ const body = {}
155
+ if (args.emails) body.emails = args.emails.split(',')
156
+ if (args.ids) body.ids = args.ids.split(',')
157
+ if (args.data) body.data = JSON.parse(args.data)
158
+ result = await appApi('POST', `/campaigns/${campaignId}/triggers`, body)
159
+ break
160
+ }
161
+ default:
162
+ result = { error: 'Unknown campaigns subcommand. Use: list, get, metrics, trigger' }
163
+ }
164
+ break
165
+
166
+ case 'send':
167
+ switch (sub) {
168
+ case 'email': {
169
+ const body = {
170
+ transactional_message_id: args['message-id'],
171
+ to: args.to,
172
+ identifiers: {},
173
+ }
174
+ if (args['identifier-id']) body.identifiers.id = args['identifier-id']
175
+ if (args['identifier-email']) body.identifiers.email = args['identifier-email']
176
+ if (args.data) body.message_data = JSON.parse(args.data)
177
+ if (args.from) body.from = args.from
178
+ if (args.subject) body.subject = args.subject
179
+ if (args.body) body.body = args.body
180
+ result = await appApi('POST', '/send/email', body)
181
+ break
182
+ }
183
+ default:
184
+ result = { error: 'Unknown send subcommand. Use: email' }
185
+ }
186
+ break
187
+
188
+ default:
189
+ result = {
190
+ error: 'Unknown command',
191
+ usage: {
192
+ customers: 'customers [identify|get|delete|track-event] <customer_id> [--email <email>] [--first-name <name>] [--plan <plan>] [--data <json>] [--name <event>]',
193
+ campaigns: 'campaigns [list|get|metrics|trigger] [campaign_id] [--emails <e1,e2>] [--ids <id1,id2>] [--data <json>]',
194
+ send: 'send email --message-id <id> --to <email> [--identifier-id <id>] [--identifier-email <email>] [--data <json>]',
195
+ }
196
+ }
197
+ }
198
+
199
+ console.log(JSON.stringify(result, null, 2))
200
+ }
201
+
202
+ main().catch(err => {
203
+ console.error(JSON.stringify({ error: err.message }))
204
+ process.exit(1)
205
+ })
@@ -0,0 +1,257 @@
1
+ #!/usr/bin/env node
2
+
3
+ const LOGIN = process.env.DATAFORSEO_LOGIN
4
+ const PASSWORD = process.env.DATAFORSEO_PASSWORD
5
+ const BASE_URL = 'https://api.dataforseo.com/v3'
6
+
7
+ if (!LOGIN || !PASSWORD) {
8
+ console.error(JSON.stringify({ error: 'DATAFORSEO_LOGIN and DATAFORSEO_PASSWORD environment variables required' }))
9
+ process.exit(1)
10
+ }
11
+
12
+ const AUTH = 'Basic ' + Buffer.from(`${LOGIN}:${PASSWORD}`).toString('base64')
13
+
14
+ async function api(method, path, body) {
15
+ if (args['dry-run']) {
16
+ return { _dry_run: true, method, url: `${BASE_URL}${path}`, headers: { Authorization: '***', 'Content-Type': 'application/json' }, body: body || undefined }
17
+ }
18
+ const res = await fetch(`${BASE_URL}${path}`, {
19
+ method,
20
+ headers: {
21
+ 'Authorization': AUTH,
22
+ 'Content-Type': 'application/json',
23
+ },
24
+ body: body ? JSON.stringify(body) : undefined,
25
+ })
26
+ const text = await res.text()
27
+ try {
28
+ return JSON.parse(text)
29
+ } catch {
30
+ return { status: res.status, body: text }
31
+ }
32
+ }
33
+
34
+ function parseArgs(args) {
35
+ const result = { _: [] }
36
+ for (let i = 0; i < args.length; i++) {
37
+ const arg = args[i]
38
+ if (arg.startsWith('--')) {
39
+ const key = arg.slice(2)
40
+ const next = args[i + 1]
41
+ if (next && !next.startsWith('--')) {
42
+ result[key] = next
43
+ i++
44
+ } else {
45
+ result[key] = true
46
+ }
47
+ } else {
48
+ result._.push(arg)
49
+ }
50
+ }
51
+ return result
52
+ }
53
+
54
+ const args = parseArgs(process.argv.slice(2))
55
+ const [cmd, sub, ...rest] = args._
56
+
57
+ async function main() {
58
+ let result
59
+ const location = args.location || 'United States'
60
+ const locationCode = args['location-code'] ? Number(args['location-code']) : 2840
61
+ const language = args.language || 'English'
62
+ const languageCode = args['language-code'] || 'en'
63
+ const limit = args.limit ? Number(args.limit) : 100
64
+
65
+ switch (cmd) {
66
+ case 'serp':
67
+ switch (sub) {
68
+ case 'google': {
69
+ const keyword = args.keyword
70
+ if (!keyword) { result = { error: '--keyword required' }; break }
71
+ result = await api('POST', '/serp/google/organic/live/regular', [{
72
+ keyword,
73
+ location_name: location,
74
+ language_name: language,
75
+ }])
76
+ break
77
+ }
78
+ case 'locations':
79
+ result = await api('GET', '/serp/google/locations')
80
+ break
81
+ case 'languages':
82
+ result = await api('GET', '/serp/google/languages')
83
+ break
84
+ default:
85
+ result = { error: 'Unknown serp subcommand. Use: google, locations, languages' }
86
+ }
87
+ break
88
+
89
+ case 'keywords':
90
+ switch (sub) {
91
+ case 'volume': {
92
+ const keywords = args.keywords?.split(',')
93
+ if (!keywords) { result = { error: '--keywords required (comma-separated)' }; break }
94
+ result = await api('POST', '/keywords_data/google_ads/search_volume/live', [{
95
+ keywords,
96
+ location_code: locationCode,
97
+ language_code: languageCode,
98
+ }])
99
+ break
100
+ }
101
+ case 'for-site': {
102
+ const target = args.target
103
+ if (!target) { result = { error: '--target required (domain)' }; break }
104
+ result = await api('POST', '/keywords_data/google_ads/keywords_for_site/live', [{
105
+ target,
106
+ location_code: locationCode,
107
+ language_code: languageCode,
108
+ }])
109
+ break
110
+ }
111
+ case 'for-keywords': {
112
+ const keywords = args.keywords?.split(',')
113
+ if (!keywords) { result = { error: '--keywords required (comma-separated)' }; break }
114
+ result = await api('POST', '/keywords_data/google_ads/keywords_for_keywords/live', [{
115
+ keywords,
116
+ location_code: locationCode,
117
+ language_code: languageCode,
118
+ }])
119
+ break
120
+ }
121
+ case 'trends': {
122
+ const keywords = args.keywords?.split(',')
123
+ if (!keywords) { result = { error: '--keywords required (comma-separated)' }; break }
124
+ result = await api('POST', '/keywords_data/google_trends/explore/live', [{
125
+ keywords,
126
+ location_code: locationCode,
127
+ language_code: languageCode,
128
+ }])
129
+ break
130
+ }
131
+ default:
132
+ result = { error: 'Unknown keywords subcommand. Use: volume, for-site, for-keywords, trends' }
133
+ }
134
+ break
135
+
136
+ case 'backlinks':
137
+ switch (sub) {
138
+ case 'summary': {
139
+ const target = args.target
140
+ if (!target) { result = { error: '--target required' }; break }
141
+ result = await api('POST', '/backlinks/summary/live', [{
142
+ target,
143
+ backlinks_status_type: 'live',
144
+ }])
145
+ break
146
+ }
147
+ case 'list': {
148
+ const target = args.target
149
+ if (!target) { result = { error: '--target required' }; break }
150
+ result = await api('POST', '/backlinks/backlinks/live', [{
151
+ target,
152
+ mode: args.mode || 'as_is',
153
+ limit,
154
+ backlinks_status_type: 'live',
155
+ }])
156
+ break
157
+ }
158
+ case 'refdomains': {
159
+ const target = args.target
160
+ if (!target) { result = { error: '--target required' }; break }
161
+ result = await api('POST', '/backlinks/referring_domains/live', [{
162
+ target,
163
+ limit,
164
+ }])
165
+ break
166
+ }
167
+ case 'anchors': {
168
+ const target = args.target
169
+ if (!target) { result = { error: '--target required' }; break }
170
+ result = await api('POST', '/backlinks/anchors/live', [{
171
+ target,
172
+ limit,
173
+ }])
174
+ break
175
+ }
176
+ case 'index':
177
+ result = await api('GET', '/backlinks/index')
178
+ break
179
+ default:
180
+ result = { error: 'Unknown backlinks subcommand. Use: summary, list, refdomains, anchors, index' }
181
+ }
182
+ break
183
+
184
+ case 'onpage':
185
+ switch (sub) {
186
+ case 'audit': {
187
+ const url = args.url
188
+ if (!url) { result = { error: '--url required' }; break }
189
+ result = await api('POST', '/on_page/instant_pages', [{
190
+ url,
191
+ enable_javascript: args['no-js'] ? false : true,
192
+ }])
193
+ break
194
+ }
195
+ default:
196
+ result = { error: 'Unknown onpage subcommand. Use: audit' }
197
+ }
198
+ break
199
+
200
+ case 'labs':
201
+ switch (sub) {
202
+ case 'competitors': {
203
+ const target = args.target
204
+ if (!target) { result = { error: '--target required' }; break }
205
+ result = await api('POST', '/dataforseo_labs/google/competitors_domain/live', [{
206
+ target,
207
+ location_code: locationCode,
208
+ language_code: languageCode,
209
+ limit,
210
+ }])
211
+ break
212
+ }
213
+ case 'ranked-keywords': {
214
+ const target = args.target
215
+ if (!target) { result = { error: '--target required' }; break }
216
+ result = await api('POST', '/dataforseo_labs/google/ranked_keywords/live', [{
217
+ target,
218
+ location_code: locationCode,
219
+ language_code: languageCode,
220
+ limit,
221
+ }])
222
+ break
223
+ }
224
+ case 'domain-intersection': {
225
+ const targets = args.targets?.split(',')
226
+ if (!targets || targets.length < 2) { result = { error: '--targets required (comma-separated, at least 2 domains)' }; break }
227
+ const payload = { location_code: locationCode, language_code: languageCode, limit }
228
+ targets.forEach((t, i) => { payload[`target${i + 1}`] = t })
229
+ result = await api('POST', '/dataforseo_labs/google/domain_intersection/live', [payload])
230
+ break
231
+ }
232
+ default:
233
+ result = { error: 'Unknown labs subcommand. Use: competitors, ranked-keywords, domain-intersection' }
234
+ }
235
+ break
236
+
237
+ default:
238
+ result = {
239
+ error: 'Unknown command',
240
+ usage: {
241
+ serp: 'serp [google --keyword <kw> | locations | languages]',
242
+ keywords: 'keywords [volume --keywords <kw1,kw2> | for-site --target <domain> | for-keywords --keywords <kw1,kw2> | trends --keywords <kw1,kw2>]',
243
+ backlinks: 'backlinks [summary --target <domain> | list --target <domain> | refdomains --target <domain> | anchors --target <domain> | index]',
244
+ onpage: 'onpage [audit --url <url>]',
245
+ labs: 'labs [competitors --target <domain> | ranked-keywords --target <domain> | domain-intersection --targets <d1,d2>]',
246
+ options: '--location-code <code> --language-code <code> --limit <n>',
247
+ }
248
+ }
249
+ }
250
+
251
+ console.log(JSON.stringify(result, null, 2))
252
+ }
253
+
254
+ main().catch(err => {
255
+ console.error(JSON.stringify({ error: err.message }))
256
+ process.exit(1)
257
+ })
@@ -0,0 +1,149 @@
1
+ #!/usr/bin/env node
2
+
3
+ const API_KEY = process.env.DEMIO_API_KEY
4
+ const API_SECRET = process.env.DEMIO_API_SECRET
5
+ const BASE_URL = 'https://my.demio.com/api/v1'
6
+
7
+ if (!API_KEY) {
8
+ console.error(JSON.stringify({ error: 'DEMIO_API_KEY environment variable required' }))
9
+ process.exit(1)
10
+ }
11
+
12
+ if (!API_SECRET) {
13
+ console.error(JSON.stringify({ error: 'DEMIO_API_SECRET environment variable required' }))
14
+ process.exit(1)
15
+ }
16
+
17
+ async function api(method, path, body) {
18
+ if (args['dry-run']) {
19
+ return { _dry_run: true, method, url: `${BASE_URL}${path}`, headers: { 'Api-Key': '***', 'Api-Secret': '***', 'Content-Type': 'application/json', Accept: 'application/json' }, body: body || undefined }
20
+ }
21
+ const res = await fetch(`${BASE_URL}${path}`, {
22
+ method,
23
+ headers: {
24
+ 'Api-Key': API_KEY,
25
+ 'Api-Secret': API_SECRET,
26
+ 'Content-Type': 'application/json',
27
+ 'Accept': 'application/json',
28
+ },
29
+ body: body ? JSON.stringify(body) : undefined,
30
+ })
31
+ const text = await res.text()
32
+ try {
33
+ return JSON.parse(text)
34
+ } catch {
35
+ return { status: res.status, body: text }
36
+ }
37
+ }
38
+
39
+ function parseArgs(args) {
40
+ const result = { _: [] }
41
+ for (let i = 0; i < args.length; i++) {
42
+ const arg = args[i]
43
+ if (arg.startsWith('--')) {
44
+ const key = arg.slice(2)
45
+ const next = args[i + 1]
46
+ if (next && !next.startsWith('--')) {
47
+ result[key] = next
48
+ i++
49
+ } else {
50
+ result[key] = true
51
+ }
52
+ } else {
53
+ result._.push(arg)
54
+ }
55
+ }
56
+ return result
57
+ }
58
+
59
+ const args = parseArgs(process.argv.slice(2))
60
+ const [cmd, sub, ...rest] = args._
61
+
62
+ async function main() {
63
+ let result
64
+
65
+ switch (cmd) {
66
+ case 'ping':
67
+ result = await api('GET', '/ping')
68
+ break
69
+
70
+ case 'events':
71
+ switch (sub) {
72
+ case 'list': {
73
+ const type = args.type
74
+ let qs = ''
75
+ if (type) qs = `?type=${encodeURIComponent(type)}`
76
+ result = await api('GET', `/events${qs}`)
77
+ break
78
+ }
79
+ case 'get': {
80
+ const id = args.id
81
+ if (!id) { result = { error: '--id required' }; break }
82
+ result = await api('GET', `/event/${id}`)
83
+ break
84
+ }
85
+ case 'date': {
86
+ const eventId = args['event-id']
87
+ const dateId = args['date-id']
88
+ if (!eventId) { result = { error: '--event-id required' }; break }
89
+ if (!dateId) { result = { error: '--date-id required' }; break }
90
+ result = await api('GET', `/event/${eventId}/date/${dateId}`)
91
+ break
92
+ }
93
+ default:
94
+ result = { error: 'Unknown events subcommand. Use: list, get, date' }
95
+ }
96
+ break
97
+
98
+ case 'register':
99
+ switch (sub) {
100
+ case 'create': {
101
+ const id = args.id || args['event-id']
102
+ const name = args.name
103
+ const email = args.email
104
+ if (!id) { result = { error: '--id (event id) required' }; break }
105
+ if (!name) { result = { error: '--name required' }; break }
106
+ if (!email) { result = { error: '--email required' }; break }
107
+ const payload = { id, name, email }
108
+ if (args['date-id']) payload.date_id = args['date-id']
109
+ if (args['ref-url']) payload.ref_url = args['ref-url']
110
+ result = await api('POST', '/event/register', payload)
111
+ break
112
+ }
113
+ default:
114
+ result = { error: 'Unknown register subcommand. Use: create' }
115
+ }
116
+ break
117
+
118
+ case 'participants':
119
+ switch (sub) {
120
+ case 'list': {
121
+ const dateId = args['date-id']
122
+ if (!dateId) { result = { error: '--date-id required' }; break }
123
+ result = await api('GET', `/date/${dateId}/participants`)
124
+ break
125
+ }
126
+ default:
127
+ result = { error: 'Unknown participants subcommand. Use: list' }
128
+ }
129
+ break
130
+
131
+ default:
132
+ result = {
133
+ error: 'Unknown command',
134
+ usage: {
135
+ ping: 'ping',
136
+ events: 'events [list --type <upcoming|past|all> | get --id <id> | date --event-id <id> --date-id <id>]',
137
+ register: 'register [create --id <event_id> --name <name> --email <email> --date-id <date_id>]',
138
+ participants: 'participants [list --date-id <id>]',
139
+ }
140
+ }
141
+ }
142
+
143
+ console.log(JSON.stringify(result, null, 2))
144
+ }
145
+
146
+ main().catch(err => {
147
+ console.error(JSON.stringify({ error: err.message }))
148
+ process.exit(1)
149
+ })