@stacksjs/defaults 0.75.515 → 0.75.519

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 (435) hide show
  1. package/ai/AGENTS.md +2 -2
  2. package/ai/skills/stacks-buddy/SKILL.md +1 -1
  3. package/ai/skills/stacks-build/SKILL.md +10 -0
  4. package/ai/skills/stacks-chief-of-staff/NOTICE.md +2 -2
  5. package/ai/skills/stacks-chief-of-staff/PLAYBOOK.md +32 -2
  6. package/ai/skills/stacks-codebase-design/DESIGN-IT-TWICE.md +1 -2
  7. package/ai/skills/stacks-codebase-design/NOTICE.md +2 -2
  8. package/ai/skills/stacks-docs/SKILL.md +78 -80
  9. package/ai/skills/stacks-domain-modeling/NOTICE.md +2 -2
  10. package/ai/skills/stacks-flow/ENGINEERING.md +3 -0
  11. package/ai/skills/stacks-flow/NOTICE.md +2 -2
  12. package/ai/skills/stacks-flow/upstream-skills.json +121 -90
  13. package/ai/skills/stacks-git/NOTICE.md +2 -2
  14. package/ai/skills/stacks-grill-with-docs/NOTICE.md +2 -2
  15. package/ai/skills/stacks-grilling/NOTICE.md +4 -4
  16. package/ai/skills/stacks-guard/NOTICE.md +2 -2
  17. package/ai/skills/stacks-handoff/NOTICE.md +4 -4
  18. package/ai/skills/stacks-implement/NOTICE.md +2 -2
  19. package/ai/skills/stacks-implement-spec/NOTICE.md +2 -2
  20. package/ai/skills/stacks-implement-spec/PLAYBOOK.md +4 -2
  21. package/ai/skills/stacks-improve-codebase-architecture/NOTICE.md +2 -2
  22. package/ai/skills/stacks-improve-codebase-architecture/PLAYBOOK.md +1 -1
  23. package/ai/skills/stacks-investigate/NOTICE.md +2 -2
  24. package/ai/skills/stacks-loop/NOTICE.md +2 -2
  25. package/ai/skills/stacks-marketing/CATALOG.md +5 -2
  26. package/ai/skills/stacks-marketing/NOTICE.md +2 -2
  27. package/ai/skills/stacks-marketing/SKILL.md +1 -1
  28. package/ai/skills/stacks-marketing-ab-testing/NOTICE.md +2 -2
  29. package/ai/skills/stacks-marketing-ab-testing/PLAYBOOK.md +9 -4
  30. package/ai/skills/stacks-marketing-ab-testing/SKILL.md +1 -1
  31. package/ai/skills/stacks-marketing-ab-testing/references/sample-size-guide.md +42 -27
  32. package/ai/skills/stacks-marketing-ad-creative/NOTICE.md +2 -2
  33. package/ai/skills/stacks-marketing-ad-creative/PLAYBOOK.md +41 -11
  34. package/ai/skills/stacks-marketing-ad-creative/SKILL.md +1 -1
  35. package/ai/skills/stacks-marketing-ad-creative/evals/evals.json +1 -1
  36. package/ai/skills/stacks-marketing-ad-creative/references/generative-tools.md +47 -51
  37. package/ai/skills/stacks-marketing-ad-creative/references/hook-system.md +7 -0
  38. package/ai/skills/stacks-marketing-ad-creative/references/imessage-video-ads.md +2 -2
  39. package/ai/skills/stacks-marketing-ads/NOTICE.md +2 -2
  40. package/ai/skills/stacks-marketing-ads/PLAYBOOK.md +37 -28
  41. package/ai/skills/stacks-marketing-ads/SKILL.md +1 -1
  42. package/ai/skills/stacks-marketing-ads/evals/evals.json +53 -0
  43. package/ai/skills/stacks-marketing-ads/references/abm-playbook.md +1 -1
  44. package/ai/skills/stacks-marketing-ads/references/audit-guardrails.md +11 -1
  45. package/ai/skills/stacks-marketing-ads/references/creative-research-automation.md +19 -0
  46. package/ai/skills/stacks-marketing-ads/references/google-ads-audit-checklist.md +35 -2
  47. package/ai/skills/stacks-marketing-ads/references/google-search-playbook.md +4 -0
  48. package/ai/skills/stacks-marketing-ads/references/linkedin-b2b-playbook.md +2 -0
  49. package/ai/skills/stacks-marketing-ads/references/meta-andromeda-playbook.md +33 -0
  50. package/ai/skills/stacks-marketing-ads/references/operating-check.md +75 -0
  51. package/ai/skills/stacks-marketing-ads/references/reading-google-ads-data.md +1 -1
  52. package/ai/skills/stacks-marketing-ai-seo/NOTICE.md +2 -2
  53. package/ai/skills/stacks-marketing-ai-seo/PLAYBOOK.md +32 -30
  54. package/ai/skills/stacks-marketing-ai-seo/SKILL.md +1 -1
  55. package/ai/skills/stacks-marketing-ai-seo/evals/evals.json +27 -0
  56. package/ai/skills/stacks-marketing-ai-seo/references/agent-defaults.md +79 -0
  57. package/ai/skills/stacks-marketing-ai-seo/references/agent-readiness.md +61 -11
  58. package/ai/skills/stacks-marketing-ai-seo/references/ai-attribution.md +54 -0
  59. package/ai/skills/stacks-marketing-ai-seo/references/answer-accuracy.md +84 -0
  60. package/ai/skills/stacks-marketing-ai-seo/references/citations-vs-recommendations.md +32 -1
  61. package/ai/skills/stacks-marketing-ai-seo/references/content-patterns.md +24 -0
  62. package/ai/skills/stacks-marketing-ai-seo/references/multilingual-and-commerce.md +55 -0
  63. package/ai/skills/stacks-marketing-ai-seo/references/platform-ranking-factors.md +31 -11
  64. package/ai/skills/stacks-marketing-ai-seo/references/prompt-portfolio.md +97 -0
  65. package/ai/skills/stacks-marketing-analytics/NOTICE.md +2 -2
  66. package/ai/skills/stacks-marketing-analytics/PLAYBOOK.md +74 -15
  67. package/ai/skills/stacks-marketing-analytics/SKILL.md +1 -1
  68. package/ai/skills/stacks-marketing-analytics/references/event-library.md +2 -2
  69. package/ai/skills/stacks-marketing-analytics/references/ga4-implementation.md +3 -3
  70. package/ai/skills/stacks-marketing-aso/NOTICE.md +2 -2
  71. package/ai/skills/stacks-marketing-aso/SKILL.md +1 -1
  72. package/ai/skills/stacks-marketing-aso/references/apple-specs.md +1 -1
  73. package/ai/skills/stacks-marketing-aso/references/scoring-criteria.md +3 -3
  74. package/ai/skills/stacks-marketing-attribution/NOTICE.md +2 -2
  75. package/ai/skills/stacks-marketing-attribution/PLAYBOOK.md +11 -11
  76. package/ai/skills/stacks-marketing-attribution/SKILL.md +1 -1
  77. package/ai/skills/stacks-marketing-attribution/references/by-business-type.md +1 -1
  78. package/ai/skills/stacks-marketing-attribution/references/measurement-paradigms.md +4 -3
  79. package/ai/skills/stacks-marketing-churn-prevention/NOTICE.md +2 -2
  80. package/ai/skills/stacks-marketing-churn-prevention/PLAYBOOK.md +14 -4
  81. package/ai/skills/stacks-marketing-churn-prevention/SKILL.md +1 -1
  82. package/ai/skills/stacks-marketing-churn-prevention/references/dunning-playbook.md +10 -7
  83. package/ai/skills/stacks-marketing-co-marketing/NOTICE.md +2 -2
  84. package/ai/skills/stacks-marketing-co-marketing/PLAYBOOK.md +4 -4
  85. package/ai/skills/stacks-marketing-co-marketing/SKILL.md +1 -1
  86. package/ai/skills/stacks-marketing-co-marketing/references/partnership-types.md +2 -2
  87. package/ai/skills/stacks-marketing-cold-email/NOTICE.md +2 -2
  88. package/ai/skills/stacks-marketing-cold-email/PLAYBOOK.md +6 -6
  89. package/ai/skills/stacks-marketing-cold-email/SKILL.md +1 -1
  90. package/ai/skills/stacks-marketing-cold-email/references/deliverability.md +1 -1
  91. package/ai/skills/stacks-marketing-cold-email/references/follow-up-sequences.md +1 -1
  92. package/ai/skills/stacks-marketing-cold-email/references/multichannel-cadence.md +1 -1
  93. package/ai/skills/stacks-marketing-cold-email/references/outbound-plays.md +1 -1
  94. package/ai/skills/stacks-marketing-cold-email/references/personalization.md +1 -1
  95. package/ai/skills/stacks-marketing-community-marketing/NOTICE.md +2 -2
  96. package/ai/skills/stacks-marketing-community-marketing/PLAYBOOK.md +1 -1
  97. package/ai/skills/stacks-marketing-community-marketing/SKILL.md +1 -1
  98. package/ai/skills/stacks-marketing-community-marketing/references/community-models.md +2 -2
  99. package/ai/skills/stacks-marketing-competitor-profiling/NOTICE.md +2 -2
  100. package/ai/skills/stacks-marketing-competitor-profiling/PLAYBOOK.md +2 -0
  101. package/ai/skills/stacks-marketing-competitor-profiling/SKILL.md +1 -1
  102. package/ai/skills/stacks-marketing-competitors/NOTICE.md +1 -1
  103. package/ai/skills/stacks-marketing-competitors/SKILL.md +1 -1
  104. package/ai/skills/stacks-marketing-content-strategy/NOTICE.md +2 -2
  105. package/ai/skills/stacks-marketing-content-strategy/PLAYBOOK.md +4 -1
  106. package/ai/skills/stacks-marketing-content-strategy/SKILL.md +1 -1
  107. package/ai/skills/stacks-marketing-content-strategy/references/headless-cms.md +3 -3
  108. package/ai/skills/stacks-marketing-conversion-tracking/LICENSE +21 -0
  109. package/ai/skills/stacks-marketing-conversion-tracking/NOTICE.md +12 -0
  110. package/ai/skills/stacks-marketing-conversion-tracking/PLAYBOOK.md +164 -0
  111. package/ai/skills/stacks-marketing-conversion-tracking/SKILL.md +16 -0
  112. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/README.md +61 -0
  113. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-acuity-scheduling.json +160 -0
  114. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-cal-com.json +141 -0
  115. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-calendly.json +122 -0
  116. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-contact-form-7.json +103 -0
  117. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-divi-forms.json +103 -0
  118. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-elementor-forms.json +103 -0
  119. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-file-download.json +81 -0
  120. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-fluent-forms.json +104 -0
  121. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-formidable-forms.json +103 -0
  122. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-forminator.json +103 -0
  123. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-framer-forms.json +103 -0
  124. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-generic-ajax-form.json +81 -0
  125. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-gravity-forms.json +103 -0
  126. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-hubspot-forms.json +103 -0
  127. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-jotform.json +103 -0
  128. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-ninja-forms.json +103 -0
  129. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-phone-click.json +81 -0
  130. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-squarespace-forms.json +122 -0
  131. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-tally.json +122 -0
  132. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-thank-you-page.json +81 -0
  133. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-typeform.json +122 -0
  134. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-webflow-forms.json +103 -0
  135. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-wix-forms.json +103 -0
  136. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-wix-scheduling.json +103 -0
  137. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-wpforms.json +103 -0
  138. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-ws-form.json +103 -0
  139. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/event-map.json +132 -0
  140. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/ga4.json +58 -0
  141. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/google-ads.json +76 -0
  142. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/linkedin.json +128 -0
  143. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/meta.json +128 -0
  144. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/microsoft.json +128 -0
  145. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/tiktok.json +128 -0
  146. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/README.md +112 -0
  147. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/acuity-scheduling-field.html +28 -0
  148. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/acuity-scheduling.js +75 -0
  149. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/cal-com.js +134 -0
  150. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/calendly.js +113 -0
  151. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/contact-form-7.js +101 -0
  152. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/divi-forms.js +54 -0
  153. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/elementor-forms.js +54 -0
  154. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/file-download.js +96 -0
  155. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/fluent-forms.js +103 -0
  156. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/formidable-forms.js +203 -0
  157. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/forminator.js +65 -0
  158. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/framer-forms.js +96 -0
  159. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/generic-ajax-form.js +165 -0
  160. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/gravity-forms.js +234 -0
  161. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/hubspot-forms.js +162 -0
  162. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/jotform.js +32 -0
  163. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/ninja-forms.js +154 -0
  164. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/phone-click.js +71 -0
  165. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/squarespace-forms.js +428 -0
  166. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/tally.js +167 -0
  167. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/thank-you-page.js +87 -0
  168. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/typeform.js +147 -0
  169. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/webflow-forms.js +57 -0
  170. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/wix-forms.js +232 -0
  171. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/wix-scheduling.js +80 -0
  172. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/wpforms.js +198 -0
  173. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/ws-form.js +57 -0
  174. package/ai/skills/stacks-marketing-conversion-tracking/evals/evals.json +264 -0
  175. package/ai/skills/stacks-marketing-conversion-tracking/references/audit-playbook.md +106 -0
  176. package/ai/skills/stacks-marketing-conversion-tracking/references/browser-side.md +424 -0
  177. package/ai/skills/stacks-marketing-conversion-tracking/references/conversion-moments.md +318 -0
  178. package/ai/skills/stacks-marketing-conversion-tracking/references/discrepancies.md +136 -0
  179. package/ai/skills/stacks-marketing-conversion-tracking/references/ecommerce-platforms.md +71 -0
  180. package/ai/skills/stacks-marketing-conversion-tracking/references/google-ads.md +316 -0
  181. package/ai/skills/stacks-marketing-conversion-tracking/references/meta.md +202 -0
  182. package/ai/skills/stacks-marketing-conversion-tracking/references/other-platforms.md +201 -0
  183. package/ai/skills/stacks-marketing-conversion-tracking/references/server-side.md +167 -0
  184. package/ai/skills/stacks-marketing-conversion-tracking/scripts/build-recipe.ts +140 -0
  185. package/ai/skills/stacks-marketing-copy-editing/NOTICE.md +2 -2
  186. package/ai/skills/stacks-marketing-copy-editing/PLAYBOOK.md +3 -1
  187. package/ai/skills/stacks-marketing-copy-editing/SKILL.md +1 -1
  188. package/ai/skills/stacks-marketing-copy-editing/evals/evals.json +13 -0
  189. package/ai/skills/stacks-marketing-copy-editing/references/checklist.md +24 -0
  190. package/ai/skills/stacks-marketing-copywriting/NOTICE.md +2 -2
  191. package/ai/skills/stacks-marketing-copywriting/PLAYBOOK.md +55 -2
  192. package/ai/skills/stacks-marketing-copywriting/SKILL.md +1 -1
  193. package/ai/skills/stacks-marketing-copywriting/evals/evals.json +14 -0
  194. package/ai/skills/stacks-marketing-copywriting/references/ai-tells.md +48 -0
  195. package/ai/skills/stacks-marketing-copywriting/references/copy-frameworks.md +1 -1
  196. package/ai/skills/stacks-marketing-council/NOTICE.md +1 -1
  197. package/ai/skills/stacks-marketing-council/SKILL.md +1 -1
  198. package/ai/skills/stacks-marketing-cro/NOTICE.md +1 -1
  199. package/ai/skills/stacks-marketing-cro/PLAYBOOK.md +1 -1
  200. package/ai/skills/stacks-marketing-cro/SKILL.md +1 -1
  201. package/ai/skills/stacks-marketing-customer-research/NOTICE.md +2 -2
  202. package/ai/skills/stacks-marketing-customer-research/PLAYBOOK.md +1 -1
  203. package/ai/skills/stacks-marketing-customer-research/SKILL.md +1 -1
  204. package/ai/skills/stacks-marketing-customer-research/references/source-guides.md +1 -1
  205. package/ai/skills/stacks-marketing-directory-submissions/NOTICE.md +2 -2
  206. package/ai/skills/stacks-marketing-directory-submissions/PLAYBOOK.md +6 -5
  207. package/ai/skills/stacks-marketing-directory-submissions/SKILL.md +1 -1
  208. package/ai/skills/stacks-marketing-directory-submissions/evals/evals.json +14 -2
  209. package/ai/skills/stacks-marketing-directory-submissions/references/directory-list.md +4 -4
  210. package/ai/skills/stacks-marketing-directory-submissions/references/positioning-variations.md +1 -1
  211. package/ai/skills/stacks-marketing-directory-submissions/references/submission-tracker-template.csv +1 -1
  212. package/ai/skills/stacks-marketing-emails/NOTICE.md +2 -2
  213. package/ai/skills/stacks-marketing-emails/PLAYBOOK.md +9 -7
  214. package/ai/skills/stacks-marketing-emails/SKILL.md +1 -1
  215. package/ai/skills/stacks-marketing-events/NOTICE.md +1 -1
  216. package/ai/skills/stacks-marketing-events/SKILL.md +1 -1
  217. package/ai/skills/stacks-marketing-free-tools/NOTICE.md +2 -2
  218. package/ai/skills/stacks-marketing-free-tools/PLAYBOOK.md +6 -5
  219. package/ai/skills/stacks-marketing-free-tools/SKILL.md +1 -1
  220. package/ai/skills/stacks-marketing-free-tools/evals/evals.json +3 -2
  221. package/ai/skills/stacks-marketing-free-tools/references/tool-benchmarks.md +24 -23
  222. package/ai/skills/stacks-marketing-ideas/NOTICE.md +2 -2
  223. package/ai/skills/stacks-marketing-ideas/PLAYBOOK.md +1 -0
  224. package/ai/skills/stacks-marketing-ideas/SKILL.md +1 -1
  225. package/ai/skills/stacks-marketing-image/NOTICE.md +2 -2
  226. package/ai/skills/stacks-marketing-image/PLAYBOOK.md +6 -6
  227. package/ai/skills/stacks-marketing-image/SKILL.md +1 -1
  228. package/ai/skills/stacks-marketing-image/references/ai-image-prompting.md +5 -5
  229. package/ai/skills/stacks-marketing-influencer-marketing/NOTICE.md +2 -2
  230. package/ai/skills/stacks-marketing-influencer-marketing/PLAYBOOK.md +11 -4
  231. package/ai/skills/stacks-marketing-influencer-marketing/SKILL.md +1 -1
  232. package/ai/skills/stacks-marketing-influencer-marketing/evals/evals.json +14 -0
  233. package/ai/skills/stacks-marketing-influencer-marketing/references/newsletter-sponsorships.md +76 -0
  234. package/ai/skills/stacks-marketing-influencer-marketing/references/paid-ads-creator-program.md +79 -0
  235. package/ai/skills/stacks-marketing-influencer-marketing/references/telegram-channels.md +111 -0
  236. package/ai/skills/stacks-marketing-launch/NOTICE.md +1 -1
  237. package/ai/skills/stacks-marketing-launch/PLAYBOOK.md +1 -1
  238. package/ai/skills/stacks-marketing-launch/SKILL.md +1 -1
  239. package/ai/skills/stacks-marketing-launch/references/site-launch-qa.md +2 -2
  240. package/ai/skills/stacks-marketing-lead-magnets/NOTICE.md +2 -2
  241. package/ai/skills/stacks-marketing-lead-magnets/PLAYBOOK.md +1 -2
  242. package/ai/skills/stacks-marketing-lead-magnets/SKILL.md +1 -1
  243. package/ai/skills/stacks-marketing-link-building/LICENSE +21 -0
  244. package/ai/skills/stacks-marketing-link-building/NOTICE.md +8 -0
  245. package/ai/skills/stacks-marketing-link-building/PLAYBOOK.md +167 -0
  246. package/ai/skills/stacks-marketing-link-building/SKILL.md +16 -0
  247. package/ai/skills/stacks-marketing-link-building/evals/evals.json +71 -0
  248. package/ai/skills/stacks-marketing-link-building/references/prospecting-and-outreach.md +114 -0
  249. package/ai/skills/stacks-marketing-link-building/references/risk-policy.md +56 -0
  250. package/ai/skills/stacks-marketing-link-building/references/tactics.md +106 -0
  251. package/ai/skills/stacks-marketing-loops/NOTICE.md +2 -2
  252. package/ai/skills/stacks-marketing-loops/PLAYBOOK.md +3 -2
  253. package/ai/skills/stacks-marketing-loops/SKILL.md +2 -2
  254. package/ai/skills/stacks-marketing-loops/references/loop-catalog.md +131 -14
  255. package/ai/skills/stacks-marketing-loops/references/loop-orchestration.md +2 -2
  256. package/ai/skills/stacks-marketing-loops/references/loop-state.md +21 -0
  257. package/ai/skills/stacks-marketing-loops/references/seo-operator.md +1 -1
  258. package/ai/skills/stacks-marketing-offers/NOTICE.md +2 -2
  259. package/ai/skills/stacks-marketing-offers/PLAYBOOK.md +1 -1
  260. package/ai/skills/stacks-marketing-offers/SKILL.md +1 -1
  261. package/ai/skills/stacks-marketing-offers/evals/evals.json +13 -0
  262. package/ai/skills/stacks-marketing-offers/references/offer-formats.md +1 -1
  263. package/ai/skills/stacks-marketing-onboarding/NOTICE.md +2 -2
  264. package/ai/skills/stacks-marketing-onboarding/PLAYBOOK.md +10 -4
  265. package/ai/skills/stacks-marketing-onboarding/SKILL.md +1 -1
  266. package/ai/skills/stacks-marketing-onboarding/evals/evals.json +2 -2
  267. package/ai/skills/stacks-marketing-onboarding/references/activation-models.md +4 -1
  268. package/ai/skills/stacks-marketing-paywalls/NOTICE.md +2 -2
  269. package/ai/skills/stacks-marketing-paywalls/PLAYBOOK.md +3 -0
  270. package/ai/skills/stacks-marketing-paywalls/SKILL.md +1 -1
  271. package/ai/skills/stacks-marketing-paywalls/evals/evals.json +15 -0
  272. package/ai/skills/stacks-marketing-paywalls/references/experiments.md +7 -3
  273. package/ai/skills/stacks-marketing-paywalls/references/mobile-subscription-paywalls.md +69 -0
  274. package/ai/skills/stacks-marketing-plan/NOTICE.md +2 -2
  275. package/ai/skills/stacks-marketing-plan/PLAYBOOK.md +5 -0
  276. package/ai/skills/stacks-marketing-plan/SKILL.md +1 -1
  277. package/ai/skills/stacks-marketing-popups/NOTICE.md +2 -2
  278. package/ai/skills/stacks-marketing-popups/PLAYBOOK.md +1 -2
  279. package/ai/skills/stacks-marketing-popups/SKILL.md +1 -1
  280. package/ai/skills/stacks-marketing-pricing/NOTICE.md +2 -2
  281. package/ai/skills/stacks-marketing-pricing/SKILL.md +1 -1
  282. package/ai/skills/stacks-marketing-pricing/references/research-methods.md +12 -2
  283. package/ai/skills/stacks-marketing-product-marketing/NOTICE.md +2 -2
  284. package/ai/skills/stacks-marketing-product-marketing/PLAYBOOK.md +72 -7
  285. package/ai/skills/stacks-marketing-product-marketing/SKILL.md +1 -1
  286. package/ai/skills/stacks-marketing-product-marketing/references/brand-voice.md +103 -0
  287. package/ai/skills/stacks-marketing-programmatic-seo/NOTICE.md +2 -2
  288. package/ai/skills/stacks-marketing-programmatic-seo/PLAYBOOK.md +1 -1
  289. package/ai/skills/stacks-marketing-programmatic-seo/SKILL.md +1 -1
  290. package/ai/skills/stacks-marketing-programmatic-seo/references/implementation-platforms.md +2 -2
  291. package/ai/skills/stacks-marketing-programmatic-seo/references/playbooks.md +1 -1
  292. package/ai/skills/stacks-marketing-prospecting/NOTICE.md +2 -2
  293. package/ai/skills/stacks-marketing-prospecting/PLAYBOOK.md +18 -18
  294. package/ai/skills/stacks-marketing-prospecting/SKILL.md +1 -1
  295. package/ai/skills/stacks-marketing-prospecting/evals/evals.json +28 -0
  296. package/ai/skills/stacks-marketing-prospecting/references/data-sources.md +12 -12
  297. package/ai/skills/stacks-marketing-prospecting/references/enrichment-playbook.md +1 -1
  298. package/ai/skills/stacks-marketing-prospecting/references/signal-plays.md +44 -2
  299. package/ai/skills/stacks-marketing-psychology/NOTICE.md +1 -1
  300. package/ai/skills/stacks-marketing-psychology/SKILL.md +1 -1
  301. package/ai/skills/stacks-marketing-public-relations/NOTICE.md +2 -2
  302. package/ai/skills/stacks-marketing-public-relations/PLAYBOOK.md +3 -0
  303. package/ai/skills/stacks-marketing-public-relations/SKILL.md +1 -1
  304. package/ai/skills/stacks-marketing-referrals/NOTICE.md +2 -2
  305. package/ai/skills/stacks-marketing-referrals/PLAYBOOK.md +8 -8
  306. package/ai/skills/stacks-marketing-referrals/SKILL.md +1 -1
  307. package/ai/skills/stacks-marketing-referrals/references/affiliate-programs.md +1 -1
  308. package/ai/skills/stacks-marketing-referrals/references/program-examples.md +9 -2
  309. package/ai/skills/stacks-marketing-referrals/references/review-programs.md +1 -1
  310. package/ai/skills/stacks-marketing-reverse-engineer-marketing/LICENSE +21 -0
  311. package/ai/skills/stacks-marketing-reverse-engineer-marketing/NOTICE.md +8 -0
  312. package/ai/skills/stacks-marketing-reverse-engineer-marketing/PLAYBOOK.md +312 -0
  313. package/ai/skills/stacks-marketing-reverse-engineer-marketing/SKILL.md +21 -0
  314. package/ai/skills/stacks-marketing-reverse-engineer-marketing/evals/evals.json +242 -0
  315. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/content-teardown.md +97 -0
  316. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/data-sources.md +147 -0
  317. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/funnel-hack.md +96 -0
  318. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/go-inside.md +107 -0
  319. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/hidden-signals.md +78 -0
  320. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/agencies-b2b-services.md +84 -0
  321. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/automotive.md +86 -0
  322. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/care-services.md +83 -0
  323. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/consumer-hardware.md +87 -0
  324. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/cpg-food-beverage.md +85 -0
  325. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/crypto-web3.md +86 -0
  326. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/ecommerce-dtc.md +93 -0
  327. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/education.md +86 -0
  328. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/events-entertainment.md +88 -0
  329. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/finance.md +92 -0
  330. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/fitness-wellness.md +86 -0
  331. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/franchising.md +84 -0
  332. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/gambling-betting.md +85 -0
  333. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/games-pc-console.md +84 -0
  334. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/govtech-public-sector.md +86 -0
  335. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/healthcare.md +88 -0
  336. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/hospitality-travel.md +86 -0
  337. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/insurance.md +87 -0
  338. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/legal-professional-services.md +86 -0
  339. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/local-services.md +88 -0
  340. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/logistics-transportation.md +87 -0
  341. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/manufacturing-industrial.md +84 -0
  342. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/marketplaces.md +85 -0
  343. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/media-creators.md +85 -0
  344. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/mobile-apps-games.md +96 -0
  345. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/nonprofit.md +84 -0
  346. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/real-estate.md +87 -0
  347. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/regulated-goods.md +88 -0
  348. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/retail.md +88 -0
  349. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/saas.md +91 -0
  350. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/solar-home-energy.md +84 -0
  351. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/landscape.md +85 -0
  352. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/play-routing.md +73 -0
  353. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/playbook-template.md +133 -0
  354. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/team-voices.md +71 -0
  355. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/timeline-analysis.md +62 -0
  356. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/weak-spots.md +70 -0
  357. package/ai/skills/stacks-marketing-revops/NOTICE.md +2 -2
  358. package/ai/skills/stacks-marketing-revops/PLAYBOOK.md +14 -14
  359. package/ai/skills/stacks-marketing-revops/SKILL.md +1 -1
  360. package/ai/skills/stacks-marketing-revops/references/automation-playbooks.md +3 -3
  361. package/ai/skills/stacks-marketing-revops/references/inbound-routing.md +1 -1
  362. package/ai/skills/stacks-marketing-revops/references/lifecycle-definitions.md +2 -0
  363. package/ai/skills/stacks-marketing-revops/references/scoring-models.md +14 -13
  364. package/ai/skills/stacks-marketing-sales-enablement/NOTICE.md +1 -1
  365. package/ai/skills/stacks-marketing-sales-enablement/PLAYBOOK.md +2 -2
  366. package/ai/skills/stacks-marketing-sales-enablement/SKILL.md +1 -1
  367. package/ai/skills/stacks-marketing-sales-enablement/references/cold-call-scripts.md +1 -1
  368. package/ai/skills/stacks-marketing-schema/NOTICE.md +1 -1
  369. package/ai/skills/stacks-marketing-schema/SKILL.md +1 -1
  370. package/ai/skills/stacks-marketing-seo-audit/NOTICE.md +2 -2
  371. package/ai/skills/stacks-marketing-seo-audit/PLAYBOOK.md +5 -4
  372. package/ai/skills/stacks-marketing-seo-audit/SKILL.md +1 -1
  373. package/ai/skills/stacks-marketing-seo-audit/references/international-seo.md +3 -1
  374. package/ai/skills/stacks-marketing-seo-audit/references/rankings-push.md +1 -1
  375. package/ai/skills/stacks-marketing-signup/NOTICE.md +1 -1
  376. package/ai/skills/stacks-marketing-signup/PLAYBOOK.md +1 -1
  377. package/ai/skills/stacks-marketing-signup/SKILL.md +1 -1
  378. package/ai/skills/stacks-marketing-site-architecture/NOTICE.md +1 -1
  379. package/ai/skills/stacks-marketing-site-architecture/SKILL.md +1 -1
  380. package/ai/skills/stacks-marketing-site-architecture/references/platforms-and-migration.md +1 -1
  381. package/ai/skills/stacks-marketing-sms/NOTICE.md +1 -1
  382. package/ai/skills/stacks-marketing-sms/PLAYBOOK.md +9 -9
  383. package/ai/skills/stacks-marketing-sms/SKILL.md +1 -1
  384. package/ai/skills/stacks-marketing-social/NOTICE.md +2 -2
  385. package/ai/skills/stacks-marketing-social/PLAYBOOK.md +5 -4
  386. package/ai/skills/stacks-marketing-social/SKILL.md +1 -1
  387. package/ai/skills/stacks-marketing-social/references/listening.md +13 -0
  388. package/ai/skills/stacks-marketing-social/references/platforms.md +37 -1
  389. package/ai/skills/stacks-marketing-social/references/short-form-video.md +51 -6
  390. package/ai/skills/stacks-marketing-video/NOTICE.md +2 -2
  391. package/ai/skills/stacks-marketing-video/PLAYBOOK.md +35 -18
  392. package/ai/skills/stacks-marketing-video/SKILL.md +1 -1
  393. package/ai/skills/stacks-marketing-video/evals/evals.json +27 -0
  394. package/ai/skills/stacks-marketing-video/references/code-rendered-product-films.md +119 -0
  395. package/ai/skills/stacks-native/CATALOG.md +6 -6
  396. package/ai/skills/stacks-pr/NOTICE.md +2 -2
  397. package/ai/skills/stacks-prototype/NOTICE.md +2 -2
  398. package/ai/skills/stacks-research/NOTICE.md +2 -2
  399. package/ai/skills/stacks-research/PLAYBOOK.md +1 -1
  400. package/ai/skills/stacks-retro/NOTICE.md +2 -2
  401. package/ai/skills/stacks-review/NOTICE.md +2 -2
  402. package/ai/skills/stacks-scaffold-exercises/NOTICE.md +2 -2
  403. package/ai/skills/stacks-setup-deep-modules/NOTICE.md +2 -2
  404. package/ai/skills/stacks-setup-engineering/NOTICE.md +2 -2
  405. package/ai/skills/stacks-setup-engineering/PLAYBOOK.md +3 -1
  406. package/ai/skills/stacks-setup-engineering/issue-tracker-github.md +8 -4
  407. package/ai/skills/stacks-setup-engineering/issue-tracker-gitlab.md +3 -3
  408. package/ai/skills/stacks-software-factory/EXAMPLE-TASKS.md +80 -0
  409. package/ai/skills/stacks-software-factory/GIT-HOSTS.md +84 -0
  410. package/ai/skills/stacks-software-factory/LICENSE +21 -0
  411. package/ai/skills/stacks-software-factory/NOTICE.md +8 -0
  412. package/ai/skills/stacks-software-factory/OBSERVABILITY-PLATFORMS.md +75 -0
  413. package/ai/skills/stacks-software-factory/PLAYBOOK.md +95 -0
  414. package/ai/skills/stacks-software-factory/RUNNERS.md +94 -0
  415. package/ai/skills/stacks-software-factory/SKILL.md +21 -0
  416. package/ai/skills/stacks-software-factory/TICKET-TRACKERS.md +85 -0
  417. package/ai/skills/stacks-tdd/NOTICE.md +2 -2
  418. package/ai/skills/stacks-teach/NOTICE.md +2 -2
  419. package/ai/skills/stacks-test-fixtures/NOTICE.md +2 -2
  420. package/ai/skills/stacks-to-questionnaire/NOTICE.md +2 -2
  421. package/ai/skills/stacks-to-spec/NOTICE.md +2 -2
  422. package/ai/skills/stacks-to-tickets/NOTICE.md +2 -2
  423. package/ai/skills/stacks-triage/NOTICE.md +2 -2
  424. package/ai/skills/stacks-wait-what/NOTICE.md +2 -2
  425. package/ai/skills/stacks-wayfinder/NOTICE.md +2 -2
  426. package/ai/skills/stacks-wayfinder/PLAYBOOK.md +1 -1
  427. package/ai/skills/stacks-wizard/NOTICE.md +2 -2
  428. package/ai/skills/stacks-writing-beats/NOTICE.md +2 -2
  429. package/ai/skills/stacks-writing-for-agents/NOTICE.md +2 -2
  430. package/ai/skills/stacks-writing-for-agents/SKILL.md +1 -1
  431. package/ai/skills/stacks-writing-fragments/NOTICE.md +2 -2
  432. package/ai/skills/stacks-writing-shape/NOTICE.md +2 -2
  433. package/app/Actions/UnsubscribeAction.ts +1 -0
  434. package/ide/vscode/package.json +1 -1
  435. package/package.json +3 -3
@@ -0,0 +1,147 @@
1
+ // Upstream GTM Custom HTML asset: retain ES5 syntax and callback signatures.
2
+ /* eslint-disable prefer-const, pickier/no-unused-vars */
3
+ /*! Typeform conversion detection (MIT)
4
+ * Detects: form submission. Pushes dataLayer event: typeform_form_submitted
5
+ * From the conversion-tracking skill in Marketing Skills */
6
+ (function () {
7
+ 'use strict';
8
+
9
+ // Shared recipe/template install guard. Keep this exact name so both
10
+ // installation paths attach one message listener.
11
+ if (window.__ctDetectTypeform) return;
12
+ window.__ctDetectTypeform = true;
13
+ window.dataLayer = window.dataLayer || [];
14
+
15
+ var ORIGIN_PATTERN = /(^|\.)typeform\.com$/;
16
+ var TYPEFORM_IFRAME_SELECTOR = 'iframe[src^="https://"][src*=".typeform.com/to/"],iframe[src^="https://typeform.com/to/"]';
17
+ var accepted = Object.create(null);
18
+ var trackedFrames = [];
19
+
20
+ function isSafeId(value) {
21
+ return typeof value === 'string' && /^[A-Za-z0-9_-]{1,128}$/.test(value);
22
+ }
23
+
24
+ // Match a public form ID against the URL path using CSS selectors. Do not
25
+ // fetch, parse, retain, or serialize the iframe src; its query can contain
26
+ // prefilled respondent data.
27
+ function hasFormPath(iframe, formId, host) {
28
+ if (!isSafeId(formId) || !host || !iframe || typeof iframe.matches !== 'function') return false;
29
+ var prefix = 'iframe[src^="https://' + host + '/to/' + formId;
30
+ var selectors = [
31
+ 'iframe[src="https://' + host + '/to/' + formId + '"]',
32
+ prefix + '?"]',
33
+ prefix + '#"]',
34
+ prefix + '/"]'
35
+ ];
36
+ for (var i = 0; i < selectors.length; i++) {
37
+ try {
38
+ if (iframe.matches(selectors[i])) return true;
39
+ } catch (e) {
40
+ return false;
41
+ }
42
+ }
43
+ return false;
44
+ }
45
+
46
+ function isTypeformFrame(iframe) {
47
+ if (!iframe || typeof iframe.matches !== 'function') return false;
48
+ try { return iframe.matches(TYPEFORM_IFRAME_SELECTOR); } catch (e) { return false; }
49
+ }
50
+
51
+ function track(iframe) {
52
+ if (!isTypeformFrame(iframe)) return;
53
+ for (var i = 0; i < trackedFrames.length; i++) {
54
+ if (trackedFrames[i].iframe === iframe) return;
55
+ }
56
+ try {
57
+ trackedFrames.push({ iframe: iframe, source: iframe.contentWindow });
58
+ } catch (e) {
59
+ // If a browser denies the WindowProxy reference, fail closed for this frame.
60
+ }
61
+ }
62
+
63
+ function scan(root) {
64
+ if (!root || typeof root.querySelectorAll !== 'function') return;
65
+ var frames;
66
+ try { frames = root.querySelectorAll(TYPEFORM_IFRAME_SELECTOR); } catch (e) { return; }
67
+ for (var i = 0; i < frames.length; i++) track(frames[i]);
68
+ }
69
+
70
+ function trackedSourceForForm(source, formId, host) {
71
+ scan(document);
72
+ for (var i = 0; i < trackedFrames.length; i++) {
73
+ var tracked = trackedFrames[i];
74
+ try {
75
+ if (tracked.source === source && hasFormPath(tracked.iframe, formId, host)) return true;
76
+ } catch (e) {
77
+ // A browser may deny access to a detached frame; ignore that frame.
78
+ }
79
+ }
80
+ return false;
81
+ }
82
+
83
+ function ownDataValue(object, key) {
84
+ if (!object || typeof object !== 'object') return undefined;
85
+ var descriptor;
86
+ try { descriptor = Object.getOwnPropertyDescriptor(object, key); } catch (e) { return undefined; }
87
+ return descriptor && Object.prototype.hasOwnProperty.call(descriptor, 'value')
88
+ ? descriptor.value
89
+ : undefined;
90
+ }
91
+
92
+ function onMessage(event) {
93
+ if (!event || !event.source || event.source === window) return;
94
+ var origin = event.origin;
95
+ if (typeof origin !== 'string') return;
96
+ var match = /^https:\/\/([^/:?#]+)$/.exec(origin);
97
+ if (!match || !ORIGIN_PATTERN.test(match[1])) return;
98
+
99
+ var data = event.data;
100
+ if (!data || typeof data !== 'object') return;
101
+
102
+ // Only the historically captured canonical success message is accepted.
103
+ // Public Typeform docs document onSubmit, not raw postMessage aliases.
104
+ if (ownDataValue(data, 'type') !== 'form-submit') return;
105
+ var formId = ownDataValue(data, 'formId');
106
+ var responseId = ownDataValue(data, 'responseId');
107
+ if (!isSafeId(formId) || !isSafeId(responseId)) return;
108
+ if (!trackedSourceForForm(event.source, formId, match[1])) return;
109
+
110
+ var key = formId + '\u0000' + responseId;
111
+ if (accepted[key]) return;
112
+ accepted[key] = true;
113
+ window.dataLayer.push({
114
+ event: 'typeform_form_submitted',
115
+ form_id: formId,
116
+ response_id: responseId
117
+ });
118
+ }
119
+
120
+ scan(document);
121
+ if (typeof MutationObserver !== 'undefined' && document.documentElement) {
122
+ var observer = new MutationObserver(function (mutations) {
123
+ for (var i = 0; i < mutations.length; i++) {
124
+ var mutation = mutations[i];
125
+ if (mutation.type === 'attributes') {
126
+ track(mutation.target);
127
+ continue;
128
+ }
129
+ var nodes = mutation.addedNodes || [];
130
+ for (var j = 0; j < nodes.length; j++) {
131
+ var node = nodes[j];
132
+ if (!node) continue;
133
+ if (node.tagName === 'IFRAME') track(node);
134
+ else scan(node);
135
+ }
136
+ }
137
+ });
138
+ observer.observe(document.documentElement, {
139
+ childList: true,
140
+ subtree: true,
141
+ attributes: true,
142
+ attributeFilter: ['src']
143
+ });
144
+ }
145
+
146
+ window.addEventListener('message', onMessage, false);
147
+ })();
@@ -0,0 +1,57 @@
1
+ // Upstream GTM Custom HTML asset: retain ES5 syntax and callback signatures.
2
+ /* eslint-disable prefer-const, pickier/no-unused-vars */
3
+ /*! Webflow Forms conversion detection (MIT)
4
+ * Detects: form submission. Pushes dataLayer event: webflow_form_submitted
5
+ * From the conversion-tracking skill in Marketing Skills */
6
+ (function () {
7
+ if (window.__ctWebflowForms) return;
8
+ window.__ctWebflowForms = true;
9
+ window.dataLayer = window.dataLayer || [];
10
+ var listeners = [], timeout = 30000;
11
+ window.__ctWebflowSubscribe = function (listener) {
12
+ if (listener && typeof listener === 'object') listeners.push(listener);
13
+ };
14
+ function isForm(form) {
15
+ try { return !!(form && String(form.tagName || '').toLowerCase() === 'form' && form.closest && form.closest('.w-form')); }
16
+ catch (e) { return false; }
17
+ }
18
+ function notify(phase, form, candidate) {
19
+ var handled = false;
20
+ for (var i=0;i<listeners.length;i++) {
21
+ try { var fn=listeners[i] && listeners[i][phase]; if (typeof fn==='function' && fn(form,candidate)===true) handled=true; } catch(e) {}
22
+ }
23
+ return handled;
24
+ }
25
+ function visible(el) { try { return !!el && window.getComputedStyle(el).display !== 'none'; } catch(e) { return false; } }
26
+ function emit(form) {
27
+ var name=''; try { name=form.getAttribute('data-name') || form.id || ''; } catch(e) {}
28
+ if (!notify('onCandidate', form, true)) window.dataLayer.push({event:'webflow_form_submitted',form_name:name});
29
+ }
30
+ function submit(event) {
31
+ try {
32
+ var form=event.target; if (!isForm(form)) return;
33
+ notify('beforeAttempt', form, false);
34
+ var wrap=form.closest('.w-form'), done=wrap.querySelector('.w-form-done'), fail=wrap.querySelector('.w-form-fail');
35
+ if (!done) return;
36
+ var old=form.__ctWebflowWatch;
37
+ if (old) { notify('onOverlap', form, false); old.cancel(false); form.__ctWebflowWatch=null; }
38
+ var staleFail=visible(fail), settled=false, observer=null, poll=null, kill=null, jq=window.jQuery;
39
+ function stop(rejected) { if(settled)return; settled=true; if(observer)try{observer.disconnect();}catch(e){} if(jq)jq(document).off('ajaxComplete',check); if(poll)clearInterval(poll); if(kill)clearTimeout(kill); if(form.__ctWebflowWatch===state)form.__ctWebflowWatch=null; if(rejected)notify('onRejected',form,false); }
40
+ var state={cancel:function(){stop(false);}};
41
+ function check() {
42
+ if(settled)return;
43
+ // Webflow sets success only after its server accepts the form. A redirect
44
+ // skips the success box, so check that state after its AJAX callback.
45
+ var wf=jq && jq(form).data('.w-form');
46
+ if(wf && wf.form && wf.form[0]===form && wf.redirect && wf.success===true){ stop(); emit(form); return; }
47
+ if(visible(done)){ stop(); emit(form); return; }
48
+ if(!visible(fail)){staleFail=false;return;}
49
+ if(!staleFail)stop(true);
50
+ }
51
+ if(typeof MutationObserver==='function'){observer=new MutationObserver(check);observer.observe(wrap,{attributes:true,attributeFilter:['style','class'],subtree:true,childList:true});}
52
+ if(jq)jq(document).on('ajaxComplete',check);
53
+ poll=setInterval(check,300); kill=setTimeout(function(){stop(true);},timeout); form.__ctWebflowWatch=state;
54
+ } catch(e) {}
55
+ }
56
+ if(typeof document!=='undefined'&&document.addEventListener)document.addEventListener('submit',submit,true);
57
+ })();
@@ -0,0 +1,232 @@
1
+ // Upstream GTM Custom HTML asset: retain ES5 syntax and callback signatures.
2
+ /* eslint-disable prefer-const, pickier/no-unused-vars */
3
+ /*! Wix Forms conversion detection (MIT)
4
+ * Detects: form submission. Pushes dataLayer event: wix_form_submitted
5
+ * From the conversion-tracking skill in Marketing Skills */
6
+ (function () {
7
+ if (window.__ctDetectWixForms) return;
8
+ window.__ctDetectWixForms = true;
9
+ window.dataLayer = window.dataLayer || [];
10
+
11
+ // Wait for Wix's inline confirmation without reading form answers.
12
+ var SUCCESS_WINDOW_MS = 60000;
13
+
14
+ function fireConversion(formId) {
15
+ window.dataLayer.push({
16
+ event: 'wix_form_submitted',
17
+ form_id: formId || ''
18
+ });
19
+ }
20
+
21
+ // ---- Form detection ----
22
+
23
+ // New Wix Forms carry data-hook markers: the form itself is
24
+ // data-hook="form-<uuid>", fields are wrapped in
25
+ // data-hook="form-field-...", and the submit control is
26
+ // data-hook="submit-button".
27
+ function isNewWixForm(root) {
28
+ if (!root) return false;
29
+ try {
30
+ var hook = root.getAttribute ? root.getAttribute('data-hook') : null;
31
+ if (hook && hook.indexOf('form-') === 0 && hook.indexOf('form-field-') !== 0) {
32
+ return true;
33
+ }
34
+ if (root.querySelector &&
35
+ (root.querySelector('[data-hook^="form-field-"]') ||
36
+ root.querySelector('[data-hook="submit-button"]'))) {
37
+ return true;
38
+ }
39
+ } catch (e) {
40
+ // fall through
41
+ }
42
+ return false;
43
+ }
44
+
45
+ // Legacy Forms have no observed accepted-only browser verdict in this pack.
46
+ // Their native submit event is an attempt, so coverage is deliberately withheld.
47
+
48
+ // New Wix Forms arm on a click and confirm with Wix's success marker.
49
+
50
+ // Watchers currently in flight, keyed by form root, so duplicate click
51
+ // events Wix emits for a single Submit press don't arm two watchers. A
52
+ // re-click on a watched root REFRESHES the existing watcher instead of
53
+ // being dropped, so a visitor who fails validation, fixes a field, and
54
+ // clicks again inside the window gets a fresh verdict.
55
+ var activeWatchers = [];
56
+
57
+ function findWatcher(root) {
58
+ for (var w = 0; w < activeWatchers.length; w++) {
59
+ if (activeWatchers[w].root === root) return activeWatchers[w];
60
+ }
61
+ return null;
62
+ }
63
+
64
+ function findNewFormRoot(btn) {
65
+ var root = btn.closest ? btn.closest('form') : null;
66
+ if (root && isNewWixForm(root)) return root;
67
+ if (btn.closest) {
68
+ var alt = btn.closest('[data-hook="form-root"]') || btn.closest('[data-hook^="form-"]');
69
+ if (alt && isNewWixForm(alt)) return alt;
70
+ }
71
+ return null;
72
+ }
73
+
74
+ // Wix FormViewerWidget renders this hook after its submission action
75
+ // returns a submission. Generic classes and navigation are not acceptance.
76
+ function classifySuccessNode(node) {
77
+ if (!node || node.nodeType !== 1) return null;
78
+ return node.getAttribute &&
79
+ node.getAttribute('data-hook') === 'submit-form-success-message'
80
+ ? 'structural' : null;
81
+ }
82
+
83
+ function isNodeHidden(el) {
84
+ try {
85
+ if (el.hidden) return true;
86
+ if (el.getAttribute && el.getAttribute('aria-hidden') === 'true') return true;
87
+ var view = el.ownerDocument && el.ownerDocument.defaultView;
88
+ if (view && view.getComputedStyle) {
89
+ var cs = view.getComputedStyle(el);
90
+ if (cs && (cs.display === 'none' || cs.visibility === 'hidden')) return true;
91
+ }
92
+ } catch (e) {
93
+ // fall through
94
+ }
95
+ return false;
96
+ }
97
+
98
+ // Ancestor-aware hiding check, capped at the observed container.
99
+ function isConcealed(el, stopAt) {
100
+ var node = el;
101
+ var depth = 0;
102
+ while (node && node.nodeType === 1 && depth < 12) {
103
+ if (isNodeHidden(node)) return true;
104
+ if (node === stopAt) break;
105
+ node = node.parentNode;
106
+ depth++;
107
+ }
108
+ return false;
109
+ }
110
+
111
+ function watchForSuccess(root, formId) {
112
+ var entry = { root: root, refresh: refresh, cancel: cleanup };
113
+ activeWatchers.push(entry);
114
+
115
+ var fired = false;
116
+ var timer = null;
117
+ var observer = null;
118
+ function startTimer() {
119
+ if (timer) clearTimeout(timer);
120
+ timer = setTimeout(function() {
121
+ if (!fired) cleanup(); // No success signal within the window.
122
+ }, SUCCESS_WINDOW_MS);
123
+ }
124
+
125
+ // A later click on the same root can be a duplicate click event for one
126
+ // press, or a real re-submit after the visitor corrected a failed
127
+ // field. Everything reflects the LATEST attempt.
128
+ function refresh(nextFormId) {
129
+ if (fired) return;
130
+ formId = nextFormId;
131
+ startTimer();
132
+ }
133
+
134
+ function cleanup() {
135
+ if (timer) { clearTimeout(timer); timer = null; }
136
+ if (observer) { try { observer.disconnect(); } catch (e) {} observer = null; }
137
+ var idx = activeWatchers.indexOf(entry);
138
+ if (idx !== -1) activeWatchers.splice(idx, 1);
139
+ discardMethod2(formId, root);
140
+ }
141
+
142
+ function fire() {
143
+ if (fired) return;
144
+ fired = true;
145
+ var handled = false;
146
+ try {
147
+ if (typeof window.__ctWixMethod2Emit === 'function') {
148
+ handled = window.__ctWixMethod2Emit(formId, root) === true;
149
+ }
150
+ } catch (e) {}
151
+ if (!handled) fireConversion(formId);
152
+ cleanup();
153
+ }
154
+
155
+ function noteEvidence(node) {
156
+ if (!node || node === scope) return false;
157
+ if (classifySuccessNode(node) === 'structural' && !isConcealed(node, scope)) {
158
+ fire();
159
+ return true;
160
+ }
161
+ if (node.querySelectorAll) {
162
+ var markers = node.querySelectorAll('[data-hook="submit-form-success-message"]');
163
+ for (var i = 0; i < markers.length; i++) {
164
+ if (noteEvidence(markers[i])) return true;
165
+ }
166
+ }
167
+ return false;
168
+ }
169
+
170
+ function onMutations(muts) {
171
+ if (fired) return;
172
+ for (var i = 0; i < muts.length; i++) {
173
+ var added = muts[i].addedNodes || [];
174
+ for (var j = 0; j < added.length; j++) {
175
+ var node = added[j];
176
+ if (noteEvidence(node)) return;
177
+ }
178
+ }
179
+ }
180
+
181
+ // The inline confirmation belongs to this form only.
182
+ var scope = root;
183
+ try {
184
+ observer = new MutationObserver(onMutations);
185
+ observer.observe(scope, {
186
+ childList: true,
187
+ subtree: true
188
+ });
189
+ } catch (e) {
190
+ // Without observation, no conversion is inferred.
191
+ }
192
+
193
+ startTimer();
194
+ }
195
+
196
+ function handleClick(event) {
197
+ try {
198
+ var target = event.target;
199
+ if (!target || !target.closest) return;
200
+
201
+ var btn = target.closest('[data-hook="submit-button"]');
202
+ if (!btn) return;
203
+
204
+ var root = findNewFormRoot(btn);
205
+ if (!root) return;
206
+
207
+ var formId = root.getAttribute ? (root.getAttribute('data-hook') || root.id || '') : (root.id || '');
208
+
209
+ var existing = findWatcher(root);
210
+ if (existing) {
211
+ existing.refresh(formId);
212
+ return;
213
+ }
214
+
215
+ watchForSuccess(root, formId);
216
+ } catch (e) {
217
+ // Never throw back into Wix's own click handling.
218
+ }
219
+ }
220
+
221
+ if (typeof document !== 'undefined' && document.addEventListener) {
222
+ document.addEventListener('click', handleClick, true); // NEW forms
223
+ }
224
+
225
+ function discardMethod2(formId, root) {
226
+ try {
227
+ if (typeof window.__ctWixMethod2Discard === 'function') {
228
+ window.__ctWixMethod2Discard(formId, root);
229
+ }
230
+ } catch (e) {}
231
+ }
232
+ })();
@@ -0,0 +1,80 @@
1
+ // Upstream GTM Custom HTML asset: retain ES5 syntax and callback signatures.
2
+ /* eslint-disable prefer-const, pickier/no-unused-vars */
3
+ /*! Wix Bookings conversion detection (MIT)
4
+ * Detects: booking made. Pushes dataLayer event: wix_appointment_scheduled
5
+ * From the conversion-tracking skill in Marketing Skills */
6
+ (function () {
7
+ if (window.__ctDetectWixScheduling) return;
8
+ window.__ctDetectWixScheduling = true;
9
+ window.dataLayer = window.dataLayer || [];
10
+
11
+ // Wix Bookings checks out through Wix eCommerce. Once the order exists,
12
+ // the shared Thank You page reports a Purchase through Wix's own site
13
+ // analytics stream (window.wixDevelopersAnalytics). Its line items name
14
+ // the Wix app that sold them, so a booking is an item from Wix Bookings
15
+ // and a Wix Stores order is not. Only the event name, the line items'
16
+ // app IDs and the order ID are read, never the buyer's details.
17
+ var BOOKINGS_APP_ID = '13d21c63-b5ec-5912-8397-c3a5ddb27a97';
18
+ var LISTENER_ID = 'ctRecipeWixScheduling';
19
+ var seen = {};
20
+ var registered = false;
21
+
22
+ function isBookingsItem(item) {
23
+ try {
24
+ return !!item && typeof item === 'object' && !!item.catalogReference &&
25
+ item.catalogReference.appId === BOOKINGS_APP_ID;
26
+ } catch (e) {
27
+ return false;
28
+ }
29
+ }
30
+
31
+ function orderIdOf(params) {
32
+ var id = params.orderId;
33
+ if (typeof id !== 'string' || !id) id = params.id;
34
+ return typeof id === 'string' && /^[A-Za-z0-9-]{1,64}$/.test(id) ? id : '';
35
+ }
36
+
37
+ function onWixEvent(name, params) {
38
+ try {
39
+ if (name !== 'Purchase' || !params || typeof params !== 'object') return;
40
+ var items = params.contents;
41
+ if (!items || typeof items.length !== 'number') return;
42
+ var booking = false;
43
+ for (var i = 0; i < items.length; i++) {
44
+ if (isBookingsItem(items[i])) { booking = true; break; }
45
+ }
46
+ if (!booking) return;
47
+ var orderId = orderIdOf(params);
48
+ if (!orderId || seen[orderId]) return;
49
+ seen[orderId] = true;
50
+ window.dataLayer.push({
51
+ event: 'wix_appointment_scheduled',
52
+ booking_id: orderId
53
+ });
54
+ } catch (e) {
55
+ // Never throw back into Wix's analytics.
56
+ }
57
+ }
58
+
59
+ // Wix doesn't replay earlier events to a late listener, so register as
60
+ // soon as the stream exists.
61
+ function register() {
62
+ if (registered) return true;
63
+ var wda = window.wixDevelopersAnalytics;
64
+ if (!wda || typeof wda.register !== 'function') return false;
65
+ try {
66
+ wda.register(LISTENER_ID, onWixEvent);
67
+ registered = true;
68
+ } catch (e) {}
69
+ return registered;
70
+ }
71
+
72
+ if (!register()) {
73
+ try { window.addEventListener('wixDevelopersAnalyticsReady', register); } catch (e) {}
74
+ var tries = 0;
75
+ var timer = setInterval(function () {
76
+ tries++;
77
+ if (register() || tries > 300) clearInterval(timer);
78
+ }, 100);
79
+ }
80
+ })();