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,399 @@
1
+ #!/usr/bin/env node
2
+
3
+ const API_KEY = process.env.INTERCOM_API_KEY
4
+ const BASE_URL = 'https://api.intercom.io'
5
+
6
+ if (!API_KEY) {
7
+ console.error(JSON.stringify({ error: 'INTERCOM_API_KEY environment variable required' }))
8
+ process.exit(1)
9
+ }
10
+
11
+ async function api(method, path, body) {
12
+ if (args['dry-run']) {
13
+ return { _dry_run: true, method, url: `${BASE_URL}${path}`, headers: { Authorization: '***', 'Content-Type': 'application/json', Accept: 'application/json', 'Intercom-Version': '2.11' }, body: body || undefined }
14
+ }
15
+ const res = await fetch(`${BASE_URL}${path}`, {
16
+ method,
17
+ headers: {
18
+ 'Authorization': `Bearer ${API_KEY}`,
19
+ 'Content-Type': 'application/json',
20
+ 'Accept': 'application/json',
21
+ 'Intercom-Version': '2.11',
22
+ },
23
+ body: body ? JSON.stringify(body) : undefined,
24
+ })
25
+ const text = await res.text()
26
+ try {
27
+ return JSON.parse(text)
28
+ } catch {
29
+ return { status: res.status, body: text }
30
+ }
31
+ }
32
+
33
+ function parseArgs(args) {
34
+ const result = { _: [] }
35
+ for (let i = 0; i < args.length; i++) {
36
+ const arg = args[i]
37
+ if (arg.startsWith('--')) {
38
+ const key = arg.slice(2)
39
+ const next = args[i + 1]
40
+ if (next && !next.startsWith('--')) {
41
+ result[key] = next
42
+ i++
43
+ } else {
44
+ result[key] = true
45
+ }
46
+ } else {
47
+ result._.push(arg)
48
+ }
49
+ }
50
+ return result
51
+ }
52
+
53
+ const args = parseArgs(process.argv.slice(2))
54
+ const [cmd, sub, ...rest] = args._
55
+
56
+ async function main() {
57
+ let result
58
+ const perPage = args['per-page'] ? Number(args['per-page']) : undefined
59
+
60
+ switch (cmd) {
61
+ case 'contacts':
62
+ switch (sub) {
63
+ case 'list': {
64
+ const params = new URLSearchParams()
65
+ if (perPage) params.set('per_page', String(perPage))
66
+ if (args['starting-after']) params.set('starting_after', args['starting-after'])
67
+ const qs = params.toString()
68
+ result = await api('GET', `/contacts${qs ? '?' + qs : ''}`)
69
+ break
70
+ }
71
+ case 'get': {
72
+ const id = args.id
73
+ if (!id) { result = { error: '--id required' }; break }
74
+ result = await api('GET', `/contacts/${id}`)
75
+ break
76
+ }
77
+ case 'create': {
78
+ const email = args.email
79
+ if (!email) { result = { error: '--email required' }; break }
80
+ const body = {
81
+ role: args.role || 'user',
82
+ email,
83
+ }
84
+ if (args.name) body.name = args.name
85
+ if (args.phone) body.phone = args.phone
86
+ result = await api('POST', '/contacts', body)
87
+ break
88
+ }
89
+ case 'update': {
90
+ const id = args.id
91
+ if (!id) { result = { error: '--id required' }; break }
92
+ const body = {}
93
+ if (args.name) body.name = args.name
94
+ if (args.email) body.email = args.email
95
+ if (args.phone) body.phone = args.phone
96
+ if (args.role) body.role = args.role
97
+ result = await api('PUT', `/contacts/${id}`, body)
98
+ break
99
+ }
100
+ case 'search': {
101
+ const field = args.field
102
+ const operator = args.operator || '='
103
+ const value = args.value
104
+ if (!field || !value) { result = { error: '--field and --value required' }; break }
105
+ const body = {
106
+ query: { field, operator, value },
107
+ }
108
+ if (perPage) body.pagination = { per_page: perPage }
109
+ result = await api('POST', '/contacts/search', body)
110
+ break
111
+ }
112
+ case 'delete': {
113
+ const id = args.id
114
+ if (!id) { result = { error: '--id required' }; break }
115
+ result = await api('DELETE', `/contacts/${id}`)
116
+ break
117
+ }
118
+ case 'tag': {
119
+ const id = args.id
120
+ const tagId = args['tag-id']
121
+ if (!id || !tagId) { result = { error: '--id (contact ID) and --tag-id required' }; break }
122
+ result = await api('POST', `/contacts/${id}/tags`, { id: tagId })
123
+ break
124
+ }
125
+ case 'untag': {
126
+ const id = args.id
127
+ const tagId = args['tag-id']
128
+ if (!id || !tagId) { result = { error: '--id (contact ID) and --tag-id required' }; break }
129
+ result = await api('DELETE', `/contacts/${id}/tags/${tagId}`)
130
+ break
131
+ }
132
+ default:
133
+ result = { error: 'Unknown contacts subcommand. Use: list, get, create, update, search, delete, tag, untag' }
134
+ }
135
+ break
136
+
137
+ case 'conversations':
138
+ switch (sub) {
139
+ case 'list': {
140
+ const params = new URLSearchParams()
141
+ if (perPage) params.set('per_page', String(perPage))
142
+ if (args['starting-after']) params.set('starting_after', args['starting-after'])
143
+ const qs = params.toString()
144
+ result = await api('GET', `/conversations${qs ? '?' + qs : ''}`)
145
+ break
146
+ }
147
+ case 'get': {
148
+ const id = args.id
149
+ if (!id) { result = { error: '--id required' }; break }
150
+ result = await api('GET', `/conversations/${id}`)
151
+ break
152
+ }
153
+ case 'search': {
154
+ const field = args.field
155
+ const operator = args.operator || '='
156
+ const value = args.value
157
+ if (!field || value === undefined) { result = { error: '--field and --value required' }; break }
158
+ const body = {
159
+ query: { field, operator, value },
160
+ }
161
+ if (perPage) body.pagination = { per_page: perPage }
162
+ result = await api('POST', '/conversations/search', body)
163
+ break
164
+ }
165
+ case 'reply': {
166
+ const id = args.id
167
+ const body = args.body
168
+ const adminId = args['admin-id']
169
+ if (!id || !body || !adminId) { result = { error: '--id, --body, and --admin-id required' }; break }
170
+ result = await api('POST', `/conversations/${id}/reply`, {
171
+ message_type: 'comment',
172
+ type: 'admin',
173
+ admin_id: adminId,
174
+ body,
175
+ })
176
+ break
177
+ }
178
+ case 'close': {
179
+ const id = args.id
180
+ const adminId = args['admin-id']
181
+ if (!id || !adminId) { result = { error: '--id and --admin-id required' }; break }
182
+ result = await api('POST', `/conversations/${id}/parts`, {
183
+ message_type: 'close',
184
+ type: 'admin',
185
+ admin_id: adminId,
186
+ body: args.body || '',
187
+ })
188
+ break
189
+ }
190
+ default:
191
+ result = { error: 'Unknown conversations subcommand. Use: list, get, search, reply, close' }
192
+ }
193
+ break
194
+
195
+ case 'messages':
196
+ switch (sub) {
197
+ case 'create': {
198
+ const messageType = args.type || 'inapp'
199
+ const body = args.body
200
+ const adminId = args['admin-id']
201
+ const to = args.to
202
+ if (!body || !adminId || !to) { result = { error: '--body, --admin-id, and --to (user ID) required' }; break }
203
+ result = await api('POST', '/messages', {
204
+ message_type: messageType,
205
+ body,
206
+ from: { type: 'admin', id: adminId },
207
+ to: { type: 'user', id: to },
208
+ })
209
+ break
210
+ }
211
+ default:
212
+ result = { error: 'Unknown messages subcommand. Use: create --body <text> --admin-id <id> --to <user_id> [--type inapp|email]' }
213
+ }
214
+ break
215
+
216
+ case 'companies':
217
+ switch (sub) {
218
+ case 'list': {
219
+ const params = new URLSearchParams()
220
+ if (perPage) params.set('per_page', String(perPage))
221
+ if (args.page) params.set('page', args.page)
222
+ const qs = params.toString()
223
+ result = await api('GET', `/companies${qs ? '?' + qs : ''}`)
224
+ break
225
+ }
226
+ case 'get': {
227
+ const id = args.id
228
+ if (!id) { result = { error: '--id required' }; break }
229
+ result = await api('GET', `/companies/${id}`)
230
+ break
231
+ }
232
+ case 'create': {
233
+ const companyId = args['company-id']
234
+ const name = args.name
235
+ if (!companyId) { result = { error: '--company-id required' }; break }
236
+ const body = { company_id: companyId }
237
+ if (name) body.name = name
238
+ if (args.plan) body.plan = args.plan
239
+ if (args.industry) body.industry = args.industry
240
+ result = await api('POST', '/companies', body)
241
+ break
242
+ }
243
+ case 'update': {
244
+ const id = args.id
245
+ if (!id) { result = { error: '--id required' }; break }
246
+ const body = {}
247
+ if (args.name) body.name = args.name
248
+ if (args.plan) body.plan = args.plan
249
+ if (args.industry) body.industry = args.industry
250
+ result = await api('PUT', `/companies/${id}`, body)
251
+ break
252
+ }
253
+ default:
254
+ result = { error: 'Unknown companies subcommand. Use: list, get, create, update' }
255
+ }
256
+ break
257
+
258
+ case 'tags':
259
+ switch (sub) {
260
+ case 'list':
261
+ result = await api('GET', '/tags')
262
+ break
263
+ case 'create': {
264
+ const name = args.name
265
+ if (!name) { result = { error: '--name required' }; break }
266
+ result = await api('POST', '/tags', { name })
267
+ break
268
+ }
269
+ case 'delete': {
270
+ const id = args.id
271
+ if (!id) { result = { error: '--id required' }; break }
272
+ result = await api('DELETE', `/tags/${id}`)
273
+ break
274
+ }
275
+ default:
276
+ result = { error: 'Unknown tags subcommand. Use: list, create, delete' }
277
+ }
278
+ break
279
+
280
+ case 'articles':
281
+ switch (sub) {
282
+ case 'list': {
283
+ const params = new URLSearchParams()
284
+ if (perPage) params.set('per_page', String(perPage))
285
+ if (args.page) params.set('page', args.page)
286
+ const qs = params.toString()
287
+ result = await api('GET', `/articles${qs ? '?' + qs : ''}`)
288
+ break
289
+ }
290
+ case 'get': {
291
+ const id = args.id
292
+ if (!id) { result = { error: '--id required' }; break }
293
+ result = await api('GET', `/articles/${id}`)
294
+ break
295
+ }
296
+ case 'create': {
297
+ const title = args.title
298
+ const authorId = args['author-id']
299
+ if (!title || !authorId) { result = { error: '--title and --author-id required' }; break }
300
+ const body = {
301
+ title,
302
+ author_id: Number(authorId),
303
+ state: args.state || 'draft',
304
+ }
305
+ if (args.body) body.body = args.body
306
+ result = await api('POST', '/articles', body)
307
+ break
308
+ }
309
+ case 'update': {
310
+ const id = args.id
311
+ if (!id) { result = { error: '--id required' }; break }
312
+ const body = {}
313
+ if (args.title) body.title = args.title
314
+ if (args.body) body.body = args.body
315
+ if (args.state) body.state = args.state
316
+ result = await api('PUT', `/articles/${id}`, body)
317
+ break
318
+ }
319
+ case 'delete': {
320
+ const id = args.id
321
+ if (!id) { result = { error: '--id required' }; break }
322
+ result = await api('DELETE', `/articles/${id}`)
323
+ break
324
+ }
325
+ default:
326
+ result = { error: 'Unknown articles subcommand. Use: list, get, create, update, delete' }
327
+ }
328
+ break
329
+
330
+ case 'admins':
331
+ switch (sub) {
332
+ case 'list':
333
+ result = await api('GET', '/admins')
334
+ break
335
+ case 'get': {
336
+ const id = args.id
337
+ if (!id) { result = { error: '--id required' }; break }
338
+ result = await api('GET', `/admins/${id}`)
339
+ break
340
+ }
341
+ default:
342
+ result = { error: 'Unknown admins subcommand. Use: list, get' }
343
+ }
344
+ break
345
+
346
+ case 'events':
347
+ switch (sub) {
348
+ case 'create': {
349
+ const eventName = args.name
350
+ const userId = args['user-id']
351
+ if (!eventName || !userId) { result = { error: '--name and --user-id required' }; break }
352
+ const body = {
353
+ event_name: eventName,
354
+ user_id: userId,
355
+ created_at: args['created-at'] ? Number(args['created-at']) : Math.floor(Date.now() / 1000),
356
+ }
357
+ if (args.metadata) {
358
+ try { body.metadata = JSON.parse(args.metadata) } catch { body.metadata = {} }
359
+ }
360
+ result = await api('POST', '/events', body)
361
+ break
362
+ }
363
+ case 'list': {
364
+ const userId = args['user-id']
365
+ if (!userId) { result = { error: '--user-id required' }; break }
366
+ const params = new URLSearchParams({ type: 'user', user_id: userId })
367
+ if (perPage) params.set('per_page', String(perPage))
368
+ result = await api('GET', `/events?${params}`)
369
+ break
370
+ }
371
+ default:
372
+ result = { error: 'Unknown events subcommand. Use: create, list' }
373
+ }
374
+ break
375
+
376
+ default:
377
+ result = {
378
+ error: 'Unknown command',
379
+ usage: {
380
+ contacts: 'contacts [list | get --id <id> | create --email <email> | update --id <id> | search --field <f> --value <v> | delete --id <id> | tag --id <id> --tag-id <id> | untag --id <id> --tag-id <id>]',
381
+ conversations: 'conversations [list | get --id <id> | search --field <f> --value <v> | reply --id <id> --body <text> --admin-id <id> | close --id <id> --admin-id <id>]',
382
+ messages: 'messages [create --body <text> --admin-id <id> --to <user_id>]',
383
+ companies: 'companies [list | get --id <id> | create --company-id <id> --name <name> | update --id <id>]',
384
+ tags: 'tags [list | create --name <name> | delete --id <id>]',
385
+ articles: 'articles [list | get --id <id> | create --title <title> --author-id <id> | update --id <id> | delete --id <id>]',
386
+ admins: 'admins [list | get --id <id>]',
387
+ events: 'events [create --name <name> --user-id <id> | list --user-id <id>]',
388
+ options: '--per-page <n> --starting-after <cursor> --page <n>',
389
+ }
390
+ }
391
+ }
392
+
393
+ console.log(JSON.stringify(result, null, 2))
394
+ }
395
+
396
+ main().catch(err => {
397
+ console.error(JSON.stringify({ error: err.message }))
398
+ process.exit(1)
399
+ })
@@ -0,0 +1,185 @@
1
+ #!/usr/bin/env node
2
+
3
+ const API_KEY = process.env.KEYWORDS_EVERYWHERE_API_KEY
4
+ const BASE_URL = 'https://api.keywordseverywhere.com/v1'
5
+
6
+ if (!API_KEY) {
7
+ console.error(JSON.stringify({ error: 'KEYWORDS_EVERYWHERE_API_KEY environment variable required' }))
8
+ process.exit(1)
9
+ }
10
+
11
+ async function api(method, path, body) {
12
+ const headers = {
13
+ 'Authorization': `Bearer ${API_KEY}`,
14
+ 'Content-Type': 'application/json',
15
+ 'Accept': 'application/json',
16
+ }
17
+ if (args['dry-run']) {
18
+ return { _dry_run: true, method, url: `${BASE_URL}${path}`, headers: { ...headers, Authorization: '***' }, body: body || undefined }
19
+ }
20
+ const res = await fetch(`${BASE_URL}${path}`, {
21
+ method,
22
+ headers,
23
+ body: body ? JSON.stringify(body) : undefined,
24
+ })
25
+ const text = await res.text()
26
+ try {
27
+ return JSON.parse(text)
28
+ } catch {
29
+ return { status: res.status, body: text }
30
+ }
31
+ }
32
+
33
+ function parseArgs(args) {
34
+ const result = { _: [] }
35
+ for (let i = 0; i < args.length; i++) {
36
+ const arg = args[i]
37
+ if (arg.startsWith('--')) {
38
+ const key = arg.slice(2)
39
+ const next = args[i + 1]
40
+ if (next && !next.startsWith('--')) {
41
+ result[key] = next
42
+ i++
43
+ } else {
44
+ result[key] = true
45
+ }
46
+ } else {
47
+ result._.push(arg)
48
+ }
49
+ }
50
+ return result
51
+ }
52
+
53
+ const args = parseArgs(process.argv.slice(2))
54
+ const [cmd, sub, ...rest] = args._
55
+
56
+ async function main() {
57
+ let result
58
+ const country = args.country || 'us'
59
+ const currency = args.currency || 'USD'
60
+ const dataSource = args['data-source'] || 'gkp'
61
+
62
+ switch (cmd) {
63
+ case 'keywords':
64
+ switch (sub) {
65
+ case 'data': {
66
+ const kw = args.kw?.split(',')
67
+ if (!kw) { result = { error: '--kw required (comma-separated keywords, max 100)' }; break }
68
+ result = await api('POST', '/get_keyword_data', { country, currency, dataSource, kw })
69
+ break
70
+ }
71
+ case 'related': {
72
+ const kw = args.kw?.split(',')
73
+ if (!kw) { result = { error: '--kw required (comma-separated keywords)' }; break }
74
+ result = await api('POST', '/get_related_keywords', { country, currency, dataSource, kw })
75
+ break
76
+ }
77
+ case 'pasf': {
78
+ const kw = args.kw?.split(',')
79
+ if (!kw) { result = { error: '--kw required (comma-separated keywords)' }; break }
80
+ result = await api('POST', '/get_pasf_keywords', { country, currency, dataSource, kw })
81
+ break
82
+ }
83
+ default:
84
+ result = { error: 'Unknown keywords subcommand. Use: data, related, pasf' }
85
+ }
86
+ break
87
+
88
+ case 'domain':
89
+ switch (sub) {
90
+ case 'keywords': {
91
+ const domain = args.domain
92
+ if (!domain) { result = { error: '--domain required' }; break }
93
+ result = await api('POST', '/get_domain_keywords', { country, currency, domain })
94
+ break
95
+ }
96
+ case 'traffic': {
97
+ const domain = args.domain
98
+ if (!domain) { result = { error: '--domain required' }; break }
99
+ result = await api('POST', '/get_domain_traffic', { country, domain })
100
+ break
101
+ }
102
+ case 'backlinks': {
103
+ const domain = args.domain
104
+ if (!domain) { result = { error: '--domain required' }; break }
105
+ result = await api('POST', '/get_domain_backlinks', { domain })
106
+ break
107
+ }
108
+ case 'unique-backlinks': {
109
+ const domain = args.domain
110
+ if (!domain) { result = { error: '--domain required' }; break }
111
+ result = await api('POST', '/get_unique_domain_backlinks', { domain })
112
+ break
113
+ }
114
+ default:
115
+ result = { error: 'Unknown domain subcommand. Use: keywords, traffic, backlinks, unique-backlinks' }
116
+ }
117
+ break
118
+
119
+ case 'url':
120
+ switch (sub) {
121
+ case 'keywords': {
122
+ const url = args.url
123
+ if (!url) { result = { error: '--url required' }; break }
124
+ result = await api('POST', '/get_url_keywords', { country, currency, url })
125
+ break
126
+ }
127
+ case 'traffic': {
128
+ const url = args.url
129
+ if (!url) { result = { error: '--url required' }; break }
130
+ result = await api('POST', '/get_url_traffic', { country, url })
131
+ break
132
+ }
133
+ case 'backlinks': {
134
+ const url = args.url
135
+ if (!url) { result = { error: '--url required' }; break }
136
+ result = await api('POST', '/get_page_backlinks', { url })
137
+ break
138
+ }
139
+ case 'unique-backlinks': {
140
+ const url = args.url
141
+ if (!url) { result = { error: '--url required' }; break }
142
+ result = await api('POST', '/get_unique_page_backlinks', { url })
143
+ break
144
+ }
145
+ default:
146
+ result = { error: 'Unknown url subcommand. Use: keywords, traffic, backlinks, unique-backlinks' }
147
+ }
148
+ break
149
+
150
+ case 'account':
151
+ switch (sub) {
152
+ case 'credits':
153
+ result = await api('GET', '/get_credits')
154
+ break
155
+ case 'countries':
156
+ result = await api('GET', '/get_countries')
157
+ break
158
+ case 'currencies':
159
+ result = await api('GET', '/get_currencies')
160
+ break
161
+ default:
162
+ result = { error: 'Unknown account subcommand. Use: credits, countries, currencies' }
163
+ }
164
+ break
165
+
166
+ default:
167
+ result = {
168
+ error: 'Unknown command',
169
+ usage: {
170
+ keywords: 'keywords [data|related|pasf] --kw <kw1,kw2,...>',
171
+ domain: 'domain [keywords|traffic|backlinks|unique-backlinks] --domain <domain>',
172
+ url: 'url [keywords|traffic|backlinks|unique-backlinks] --url <url>',
173
+ account: 'account [credits|countries|currencies]',
174
+ options: '--country <us> --currency <USD> --data-source <gkp>',
175
+ }
176
+ }
177
+ }
178
+
179
+ console.log(JSON.stringify(result, null, 2))
180
+ }
181
+
182
+ main().catch(err => {
183
+ console.error(JSON.stringify({ error: err.message }))
184
+ process.exit(1)
185
+ })