@miranda0808/maya-codex 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/README.md +30 -0
  2. package/bin/maya-codex.js +36 -0
  3. package/package.json +19 -0
  4. package/payload/.agents/skills/ab-test-setup/SKILL.md +266 -0
  5. package/payload/.agents/skills/ab-test-setup/evals/evals.json +105 -0
  6. package/payload/.agents/skills/ab-test-setup/references/sample-size-guide.md +263 -0
  7. package/payload/.agents/skills/ab-test-setup/references/test-templates.md +277 -0
  8. package/payload/.agents/skills/ad-creative/SKILL.md +362 -0
  9. package/payload/.agents/skills/ad-creative/evals/evals.json +90 -0
  10. package/payload/.agents/skills/ad-creative/references/generative-tools.md +637 -0
  11. package/payload/.agents/skills/ad-creative/references/platform-specs.md +213 -0
  12. package/payload/.agents/skills/ai-seo/SKILL.md +398 -0
  13. package/payload/.agents/skills/ai-seo/evals/evals.json +90 -0
  14. package/payload/.agents/skills/ai-seo/references/content-patterns.md +285 -0
  15. package/payload/.agents/skills/ai-seo/references/platform-ranking-factors.md +152 -0
  16. package/payload/.agents/skills/analytics-tracking/SKILL.md +309 -0
  17. package/payload/.agents/skills/analytics-tracking/evals/evals.json +90 -0
  18. package/payload/.agents/skills/analytics-tracking/references/event-library.md +260 -0
  19. package/payload/.agents/skills/analytics-tracking/references/ga4-implementation.md +300 -0
  20. package/payload/.agents/skills/analytics-tracking/references/gtm-implementation.md +390 -0
  21. package/payload/.agents/skills/churn-prevention/SKILL.md +424 -0
  22. package/payload/.agents/skills/churn-prevention/evals/evals.json +93 -0
  23. package/payload/.agents/skills/churn-prevention/references/cancel-flow-patterns.md +316 -0
  24. package/payload/.agents/skills/churn-prevention/references/dunning-playbook.md +408 -0
  25. package/payload/.agents/skills/cold-email/SKILL.md +158 -0
  26. package/payload/.agents/skills/cold-email/evals/evals.json +94 -0
  27. package/payload/.agents/skills/cold-email/references/benchmarks.md +83 -0
  28. package/payload/.agents/skills/cold-email/references/follow-up-sequences.md +81 -0
  29. package/payload/.agents/skills/cold-email/references/frameworks.md +90 -0
  30. package/payload/.agents/skills/cold-email/references/personalization.md +79 -0
  31. package/payload/.agents/skills/cold-email/references/subject-lines.md +53 -0
  32. package/payload/.agents/skills/competitor-alternatives/SKILL.md +256 -0
  33. package/payload/.agents/skills/competitor-alternatives/evals/evals.json +93 -0
  34. package/payload/.agents/skills/competitor-alternatives/references/content-architecture.md +271 -0
  35. package/payload/.agents/skills/competitor-alternatives/references/templates.md +223 -0
  36. package/payload/.agents/skills/content-strategy/SKILL.md +359 -0
  37. package/payload/.agents/skills/content-strategy/evals/evals.json +90 -0
  38. package/payload/.agents/skills/copy-editing/SKILL.md +447 -0
  39. package/payload/.agents/skills/copy-editing/evals/evals.json +89 -0
  40. package/payload/.agents/skills/copy-editing/references/plain-english-alternatives.md +394 -0
  41. package/payload/.agents/skills/copywriting/SKILL.md +252 -0
  42. package/payload/.agents/skills/copywriting/evals/evals.json +111 -0
  43. package/payload/.agents/skills/copywriting/references/copy-frameworks.md +344 -0
  44. package/payload/.agents/skills/copywriting/references/natural-transitions.md +272 -0
  45. package/payload/.agents/skills/email-sequence/SKILL.md +309 -0
  46. package/payload/.agents/skills/email-sequence/evals/evals.json +93 -0
  47. package/payload/.agents/skills/email-sequence/references/copy-guidelines.md +113 -0
  48. package/payload/.agents/skills/email-sequence/references/email-types.md +515 -0
  49. package/payload/.agents/skills/email-sequence/references/sequence-templates.md +168 -0
  50. package/payload/.agents/skills/form-cro/SKILL.md +429 -0
  51. package/payload/.agents/skills/form-cro/evals/evals.json +90 -0
  52. package/payload/.agents/skills/free-tool-strategy/SKILL.md +178 -0
  53. package/payload/.agents/skills/free-tool-strategy/evals/evals.json +90 -0
  54. package/payload/.agents/skills/free-tool-strategy/references/tool-types.md +217 -0
  55. package/payload/.agents/skills/launch-strategy/SKILL.md +353 -0
  56. package/payload/.agents/skills/launch-strategy/evals/evals.json +91 -0
  57. package/payload/.agents/skills/marketing-ideas/SKILL.md +167 -0
  58. package/payload/.agents/skills/marketing-ideas/evals/evals.json +90 -0
  59. package/payload/.agents/skills/marketing-ideas/references/ideas-by-category.md +366 -0
  60. package/payload/.agents/skills/marketing-psychology/SKILL.md +455 -0
  61. package/payload/.agents/skills/marketing-psychology/evals/evals.json +88 -0
  62. package/payload/.agents/skills/onboarding-cro/SKILL.md +220 -0
  63. package/payload/.agents/skills/onboarding-cro/evals/evals.json +92 -0
  64. package/payload/.agents/skills/onboarding-cro/references/experiments.md +258 -0
  65. package/payload/.agents/skills/page-cro/SKILL.md +182 -0
  66. package/payload/.agents/skills/page-cro/evals/evals.json +111 -0
  67. package/payload/.agents/skills/page-cro/references/experiments.md +248 -0
  68. package/payload/.agents/skills/paid-ads/SKILL.md +315 -0
  69. package/payload/.agents/skills/paid-ads/evals/evals.json +90 -0
  70. package/payload/.agents/skills/paid-ads/references/ad-copy-templates.md +207 -0
  71. package/payload/.agents/skills/paid-ads/references/audience-targeting.md +243 -0
  72. package/payload/.agents/skills/paid-ads/references/platform-setup-checklists.md +277 -0
  73. package/payload/.agents/skills/paywall-upgrade-cro/SKILL.md +227 -0
  74. package/payload/.agents/skills/paywall-upgrade-cro/evals/evals.json +93 -0
  75. package/payload/.agents/skills/paywall-upgrade-cro/references/experiments.md +164 -0
  76. package/payload/.agents/skills/popup-cro/SKILL.md +453 -0
  77. package/payload/.agents/skills/popup-cro/evals/evals.json +94 -0
  78. package/payload/.agents/skills/pricing-strategy/SKILL.md +231 -0
  79. package/payload/.agents/skills/pricing-strategy/evals/evals.json +90 -0
  80. package/payload/.agents/skills/pricing-strategy/references/research-methods.md +152 -0
  81. package/payload/.agents/skills/pricing-strategy/references/tier-structure.md +232 -0
  82. package/payload/.agents/skills/product-marketing-context/SKILL.md +27 -0
  83. package/payload/.agents/skills/product-marketing-context/evals/evals.json +40 -0
  84. package/payload/.agents/skills/programmatic-seo/SKILL.md +238 -0
  85. package/payload/.agents/skills/programmatic-seo/evals/evals.json +94 -0
  86. package/payload/.agents/skills/programmatic-seo/references/playbooks.md +308 -0
  87. package/payload/.agents/skills/referral-program/SKILL.md +255 -0
  88. package/payload/.agents/skills/referral-program/evals/evals.json +89 -0
  89. package/payload/.agents/skills/referral-program/references/affiliate-programs.md +164 -0
  90. package/payload/.agents/skills/referral-program/references/program-examples.md +143 -0
  91. package/payload/.agents/skills/revops/SKILL.md +343 -0
  92. package/payload/.agents/skills/revops/evals/evals.json +91 -0
  93. package/payload/.agents/skills/revops/references/automation-playbooks.md +290 -0
  94. package/payload/.agents/skills/revops/references/lifecycle-definitions.md +278 -0
  95. package/payload/.agents/skills/revops/references/routing-rules.md +203 -0
  96. package/payload/.agents/skills/revops/references/scoring-models.md +247 -0
  97. package/payload/.agents/skills/sales-enablement/SKILL.md +349 -0
  98. package/payload/.agents/skills/sales-enablement/evals/evals.json +91 -0
  99. package/payload/.agents/skills/sales-enablement/references/deck-frameworks.md +263 -0
  100. package/payload/.agents/skills/sales-enablement/references/demo-scripts.md +355 -0
  101. package/payload/.agents/skills/sales-enablement/references/objection-library.md +270 -0
  102. package/payload/.agents/skills/sales-enablement/references/one-pager-templates.md +208 -0
  103. package/payload/.agents/skills/schema-markup/SKILL.md +179 -0
  104. package/payload/.agents/skills/schema-markup/evals/evals.json +87 -0
  105. package/payload/.agents/skills/schema-markup/references/schema-examples.md +398 -0
  106. package/payload/.agents/skills/seo-audit/SKILL.md +412 -0
  107. package/payload/.agents/skills/seo-audit/evals/evals.json +136 -0
  108. package/payload/.agents/skills/seo-audit/references/ai-writing-detection.md +200 -0
  109. package/payload/.agents/skills/signup-flow-cro/SKILL.md +359 -0
  110. package/payload/.agents/skills/signup-flow-cro/evals/evals.json +88 -0
  111. package/payload/.agents/skills/site-architecture/SKILL.md +357 -0
  112. package/payload/.agents/skills/site-architecture/evals/evals.json +88 -0
  113. package/payload/.agents/skills/site-architecture/references/mermaid-templates.md +216 -0
  114. package/payload/.agents/skills/site-architecture/references/navigation-patterns.md +305 -0
  115. package/payload/.agents/skills/site-architecture/references/site-type-templates.md +293 -0
  116. package/payload/.agents/skills/social-content/SKILL.md +278 -0
  117. package/payload/.agents/skills/social-content/evals/evals.json +92 -0
  118. package/payload/.agents/skills/social-content/references/platforms.md +170 -0
  119. package/payload/.agents/skills/social-content/references/post-templates.md +177 -0
  120. package/payload/.agents/skills/social-content/references/reverse-engineering.md +195 -0
  121. package/payload/.maya/executor.md +79 -0
  122. package/payload/.maya/meta-api-agent.md +48 -0
  123. package/payload/.maya/modes/consult.md +63 -0
  124. package/payload/.maya/modes/task.md +97 -0
  125. package/payload/.maya/planner.md +69 -0
  126. package/payload/.maya/researcher.md +51 -0
  127. package/payload/.maya/templates/plan.md +77 -0
  128. package/payload/.maya/templates/state.md +87 -0
  129. package/payload/.maya/templates/task-packet.md +75 -0
  130. package/payload/MAYA-CATALOG.md +115 -0
  131. package/payload/MAYA-DEPENDENCIES.md +58 -0
  132. package/payload/MAYA.md +151 -0
  133. package/payload/campaigns/README.md +14 -0
  134. package/payload/commands/maya-consult.md +28 -0
  135. package/payload/commands/maya-task.md +38 -0
  136. package/payload/commands/product.md +55 -0
  137. package/payload/research/README.md +14 -0
  138. package/payload/templates/README.md +15 -0
  139. package/payload/templates/plan.md +77 -0
  140. package/payload/templates/state.md +87 -0
  141. package/payload/templates/task-packet.md +75 -0
  142. package/payload/tools/REGISTRY.md +368 -0
  143. package/payload/tools/clis/README.md +187 -0
  144. package/payload/tools/clis/activecampaign.js +435 -0
  145. package/payload/tools/clis/adobe-analytics.js +161 -0
  146. package/payload/tools/clis/ahrefs.js +192 -0
  147. package/payload/tools/clis/amplitude.js +182 -0
  148. package/payload/tools/clis/apollo.js +142 -0
  149. package/payload/tools/clis/beehiiv.js +245 -0
  150. package/payload/tools/clis/brevo.js +368 -0
  151. package/payload/tools/clis/buffer.js +260 -0
  152. package/payload/tools/clis/calendly.js +253 -0
  153. package/payload/tools/clis/clearbit.js +163 -0
  154. package/payload/tools/clis/customer-io.js +205 -0
  155. package/payload/tools/clis/dataforseo.js +257 -0
  156. package/payload/tools/clis/demio.js +149 -0
  157. package/payload/tools/clis/dub.js +158 -0
  158. package/payload/tools/clis/g2.js +186 -0
  159. package/payload/tools/clis/ga4.js +194 -0
  160. package/payload/tools/clis/google-ads.js +189 -0
  161. package/payload/tools/clis/google-search-console.js +166 -0
  162. package/payload/tools/clis/hotjar.js +167 -0
  163. package/payload/tools/clis/hunter.js +249 -0
  164. package/payload/tools/clis/instantly.js +270 -0
  165. package/payload/tools/clis/intercom.js +399 -0
  166. package/payload/tools/clis/keywords-everywhere.js +185 -0
  167. package/payload/tools/clis/kit.js +232 -0
  168. package/payload/tools/clis/klaviyo.js +348 -0
  169. package/payload/tools/clis/lemlist.js +221 -0
  170. package/payload/tools/clis/linkedin-ads.js +185 -0
  171. package/payload/tools/clis/livestorm.js +292 -0
  172. package/payload/tools/clis/mailchimp.js +220 -0
  173. package/payload/tools/clis/mention-me.js +161 -0
  174. package/payload/tools/clis/meta-ads.js +181 -0
  175. package/payload/tools/clis/mixpanel.js +248 -0
  176. package/payload/tools/clis/onesignal.js +241 -0
  177. package/payload/tools/clis/optimizely.js +233 -0
  178. package/payload/tools/clis/paddle.js +385 -0
  179. package/payload/tools/clis/partnerstack.js +382 -0
  180. package/payload/tools/clis/plausible.js +249 -0
  181. package/payload/tools/clis/postmark.js +375 -0
  182. package/payload/tools/clis/resend.js +370 -0
  183. package/payload/tools/clis/rewardful.js +160 -0
  184. package/payload/tools/clis/savvycal.js +223 -0
  185. package/payload/tools/clis/segment.js +192 -0
  186. package/payload/tools/clis/semrush.js +207 -0
  187. package/payload/tools/clis/sendgrid.js +211 -0
  188. package/payload/tools/clis/snov.js +237 -0
  189. package/payload/tools/clis/tiktok-ads.js +190 -0
  190. package/payload/tools/clis/tolt.js +153 -0
  191. package/payload/tools/clis/trustpilot.js +276 -0
  192. package/payload/tools/clis/typeform.js +269 -0
  193. package/payload/tools/clis/wistia.js +256 -0
  194. package/payload/tools/clis/zapier.js +160 -0
  195. package/payload/tools/integrations/activecampaign.md +337 -0
  196. package/payload/tools/integrations/adobe-analytics.md +156 -0
  197. package/payload/tools/integrations/ahrefs.md +142 -0
  198. package/payload/tools/integrations/amplitude.md +135 -0
  199. package/payload/tools/integrations/apollo.md +148 -0
  200. package/payload/tools/integrations/beehiiv.md +157 -0
  201. package/payload/tools/integrations/brevo.md +268 -0
  202. package/payload/tools/integrations/buffer.md +138 -0
  203. package/payload/tools/integrations/calendly.md +161 -0
  204. package/payload/tools/integrations/clearbit.md +142 -0
  205. package/payload/tools/integrations/customer-io.md +187 -0
  206. package/payload/tools/integrations/dataforseo.md +165 -0
  207. package/payload/tools/integrations/demio.md +182 -0
  208. package/payload/tools/integrations/dub-co.md +160 -0
  209. package/payload/tools/integrations/g2.md +179 -0
  210. package/payload/tools/integrations/ga4.md +126 -0
  211. package/payload/tools/integrations/google-ads.md +159 -0
  212. package/payload/tools/integrations/google-search-console.md +147 -0
  213. package/payload/tools/integrations/hotjar.md +147 -0
  214. package/payload/tools/integrations/hubspot.md +178 -0
  215. package/payload/tools/integrations/hunter.md +90 -0
  216. package/payload/tools/integrations/instantly.md +104 -0
  217. package/payload/tools/integrations/intercom.md +292 -0
  218. package/payload/tools/integrations/keywords-everywhere.md +207 -0
  219. package/payload/tools/integrations/kit.md +167 -0
  220. package/payload/tools/integrations/klaviyo.md +228 -0
  221. package/payload/tools/integrations/lemlist.md +110 -0
  222. package/payload/tools/integrations/linkedin-ads.md +164 -0
  223. package/payload/tools/integrations/livestorm.md +313 -0
  224. package/payload/tools/integrations/mailchimp.md +150 -0
  225. package/payload/tools/integrations/mention-me.md +160 -0
  226. package/payload/tools/integrations/meta-ads.md +147 -0
  227. package/payload/tools/integrations/mixpanel.md +137 -0
  228. package/payload/tools/integrations/onesignal.md +229 -0
  229. package/payload/tools/integrations/optimizely.md +171 -0
  230. package/payload/tools/integrations/paddle.md +212 -0
  231. package/payload/tools/integrations/partnerstack.md +222 -0
  232. package/payload/tools/integrations/plausible.md +177 -0
  233. package/payload/tools/integrations/posthog.md +151 -0
  234. package/payload/tools/integrations/postmark.md +234 -0
  235. package/payload/tools/integrations/resend.md +168 -0
  236. package/payload/tools/integrations/rewardful.md +147 -0
  237. package/payload/tools/integrations/salesforce.md +150 -0
  238. package/payload/tools/integrations/savvycal.md +181 -0
  239. package/payload/tools/integrations/segment.md +159 -0
  240. package/payload/tools/integrations/semrush.md +121 -0
  241. package/payload/tools/integrations/sendgrid.md +161 -0
  242. package/payload/tools/integrations/shopify.md +176 -0
  243. package/payload/tools/integrations/snov.md +94 -0
  244. package/payload/tools/integrations/stripe.md +148 -0
  245. package/payload/tools/integrations/tiktok-ads.md +161 -0
  246. package/payload/tools/integrations/tolt.md +144 -0
  247. package/payload/tools/integrations/trustpilot.md +191 -0
  248. package/payload/tools/integrations/typeform.md +190 -0
  249. package/payload/tools/integrations/webflow.md +198 -0
  250. package/payload/tools/integrations/wistia.md +164 -0
  251. package/payload/tools/integrations/wordpress.md +175 -0
  252. package/payload/tools/integrations/zapier.md +150 -0
  253. package/payload/tools/meta/README.md +55 -0
  254. package/payload/tools/meta/meta-cache-schema.md +65 -0
  255. package/payload/tools/meta/meta-fetch.ps1 +324 -0
  256. package/payload/tools/meta/meta-fetch.test.ps1 +38 -0
  257. package/vendor/shared-installer/manifests/claude-files.json +13 -0
  258. package/vendor/shared-installer/manifests/codex-files.json +13 -0
  259. package/vendor/shared-installer/manifests/common-files.json +13 -0
  260. package/vendor/shared-installer/package.json +15 -0
  261. package/vendor/shared-installer/src/bootstrap.js +12 -0
  262. package/vendor/shared-installer/src/cli-options.js +53 -0
  263. package/vendor/shared-installer/src/fs.js +105 -0
  264. package/vendor/shared-installer/src/index.js +44 -0
  265. package/vendor/shared-installer/src/install.js +157 -0
  266. package/vendor/shared-installer/src/manifest.js +52 -0
  267. package/vendor/shared-installer/templates/claude/.claude/skills/.gitkeep +1 -0
  268. package/vendor/shared-installer/templates/claude/CLAUDE.md +27 -0
  269. package/vendor/shared-installer/templates/codex/.agent/skills/.gitkeep +1 -0
  270. package/vendor/shared-installer/templates/codex/AGENTS.md +27 -0
@@ -0,0 +1,424 @@
1
+ ---
2
+ name: churn-prevention
3
+ description: "When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause subscription,' 'involuntary churn,' 'people keep canceling,' 'churn rate is too high,' 'how do I keep users,' or 'customers are leaving.' Use this whenever someone is losing subscribers or wants to build systems to prevent it. For post-cancel win-back email sequences, see email-sequence. For in-app upgrade paywalls, see paywall-upgrade-cro."
4
+ metadata:
5
+ version: 1.1.0
6
+ ---
7
+
8
+ # Churn Prevention
9
+
10
+ You are an expert in SaaS retention and churn prevention. Your goal is to help reduce both voluntary churn (customers choosing to cancel) and involuntary churn (failed payments) through well-designed cancel flows, dynamic save offers, proactive retention, and dunning strategies.
11
+
12
+ ## Before Starting
13
+
14
+ **Use approved context inputs first:**
15
+ In Maya task workflows, start with the approved `TASK-PACKET.md` inputs and listed brand sections. If `PRODUCT.md` is explicitly provided or the work is being done in consult-style standalone usage, read `PRODUCT.md` before asking questions. If `PRODUCT.md` is missing, do not pretend the output is fully brand-calibrated.
16
+
17
+ Gather this context (ask if not provided):
18
+
19
+ ### 1. Current Churn Situation
20
+ - What's your monthly churn rate? (Voluntary vs. involuntary if known)
21
+ - How many active subscribers?
22
+ - What's the average MRR per customer?
23
+ - Do you have a cancel flow today, or does cancel happen instantly?
24
+
25
+ ### 2. Billing & Platform
26
+ - What billing provider? (Stripe, Chargebee, Paddle, Recurly, Braintree)
27
+ - Monthly, annual, or both billing intervals?
28
+ - Do you support plan pausing or downgrades?
29
+ - Any existing retention tooling? (Churnkey, ProsperStack, Raaft)
30
+
31
+ ### 3. Product & Usage Data
32
+ - Do you track feature usage per user?
33
+ - Can you identify engagement drop-offs?
34
+ - Do you have cancellation reason data from past churns?
35
+ - What's your activation metric? (What do retained users do that churned users don't?)
36
+
37
+ ### 4. Constraints
38
+ - B2B or B2C? (Affects flow design)
39
+ - Self-serve cancellation required? (Some regulations mandate easy cancel)
40
+ - Brand tone for offboarding? (Empathetic, direct, playful)
41
+
42
+ ---
43
+
44
+ ## How This Skill Works
45
+
46
+ Churn has two types requiring different strategies:
47
+
48
+ | Type | Cause | Solution |
49
+ |------|-------|----------|
50
+ | **Voluntary** | Customer chooses to cancel | Cancel flows, save offers, exit surveys |
51
+ | **Involuntary** | Payment fails | Dunning emails, smart retries, card updaters |
52
+
53
+ Voluntary churn is typically 50-70% of total churn. Involuntary churn is 30-50% but is often easier to fix.
54
+
55
+ This skill supports three modes:
56
+
57
+ 1. **Build a cancel flow** — Design from scratch with survey, save offers, and confirmation
58
+ 2. **Optimize an existing flow** — Analyze cancel data and improve save rates
59
+ 3. **Set up dunning** — Failed payment recovery with retries and email sequences
60
+
61
+ ---
62
+
63
+ ## Cancel Flow Design
64
+
65
+ ### The Cancel Flow Structure
66
+
67
+ Every cancel flow follows this sequence:
68
+
69
+ ```
70
+ Trigger → Survey → Dynamic Offer → Confirmation → Post-Cancel
71
+ ```
72
+
73
+ **Step 1: Trigger**
74
+ Customer clicks "Cancel subscription" in account settings.
75
+
76
+ **Step 2: Exit Survey**
77
+ Ask why they're cancelling. This determines which save offer to show.
78
+
79
+ **Step 3: Dynamic Save Offer**
80
+ Present a targeted offer based on their reason (discount, pause, downgrade, etc.)
81
+
82
+ **Step 4: Confirmation**
83
+ If they still want to cancel, confirm clearly with end-of-billing-period messaging.
84
+
85
+ **Step 5: Post-Cancel**
86
+ Set expectations, offer easy reactivation path, trigger win-back sequence.
87
+
88
+ ### Exit Survey Design
89
+
90
+ The exit survey is the foundation. Good reason categories:
91
+
92
+ | Reason | What It Tells You |
93
+ |--------|-------------------|
94
+ | Too expensive | Price sensitivity, may respond to discount or downgrade |
95
+ | Not using it enough | Low engagement, may respond to pause or onboarding help |
96
+ | Missing a feature | Product gap, show roadmap or workaround |
97
+ | Switching to competitor | Competitive pressure, understand what they offer |
98
+ | Technical issues / bugs | Product quality, escalate to support |
99
+ | Temporary / seasonal need | Usage pattern, offer pause |
100
+ | Business closed / changed | Unavoidable, learn and let go gracefully |
101
+ | Other | Catch-all, include free text field |
102
+
103
+ **Survey best practices:**
104
+ - 1 question, single-select with optional free text
105
+ - 5-8 reason options max (avoid decision fatigue)
106
+ - Put most common reasons first (review data quarterly)
107
+ - Don't make it feel like a guilt trip
108
+ - "Help us improve" framing works better than "Why are you leaving?"
109
+
110
+ ### Dynamic Save Offers
111
+
112
+ The key insight: **match the offer to the reason.** A discount won't save someone who isn't using the product. A feature roadmap won't save someone who can't afford it.
113
+
114
+ **Offer-to-reason mapping:**
115
+
116
+ | Cancel Reason | Primary Offer | Fallback Offer |
117
+ |---------------|---------------|----------------|
118
+ | Too expensive | Discount (20-30% for 2-3 months) | Downgrade to lower plan |
119
+ | Not using it enough | Pause (1-3 months) | Free onboarding session |
120
+ | Missing feature | Roadmap preview + timeline | Workaround guide |
121
+ | Switching to competitor | Competitive comparison + discount | Feedback session |
122
+ | Technical issues | Escalate to support immediately | Credit + priority fix |
123
+ | Temporary / seasonal | Pause subscription | Downgrade temporarily |
124
+ | Business closed | Skip offer (respect the situation) | — |
125
+
126
+ ### Save Offer Types
127
+
128
+ **Discount**
129
+ - 20-30% off for 2-3 months is the sweet spot
130
+ - Avoid 50%+ discounts (trains customers to cancel for deals)
131
+ - Time-limit the offer ("This offer expires when you leave this page")
132
+ - Show the dollar amount saved, not just the percentage
133
+
134
+ **Pause subscription**
135
+ - 1-3 month pause maximum (longer pauses rarely reactivate)
136
+ - 60-80% of pausers eventually return to active
137
+ - Auto-reactivation with advance notice email
138
+ - Keep their data and settings intact
139
+
140
+ **Plan downgrade**
141
+ - Offer a lower tier instead of full cancellation
142
+ - Show what they keep vs. what they lose
143
+ - Position as "right-size your plan" not "downgrade"
144
+ - Easy path back up when ready
145
+
146
+ **Feature unlock / extension**
147
+ - Unlock a premium feature they haven't tried
148
+ - Extend trial of a higher tier
149
+ - Works best for "not getting enough value" reasons
150
+
151
+ **Personal outreach**
152
+ - For high-value accounts (top 10-20% by MRR)
153
+ - Route to customer success for a call
154
+ - Personal email from founder for smaller companies
155
+
156
+ ### Cancel Flow UI Patterns
157
+
158
+ ```
159
+ ┌─────────────────────────────────────┐
160
+ │ We're sorry to see you go │
161
+ │ │
162
+ │ What's the main reason you're │
163
+ │ cancelling? │
164
+ │ │
165
+ │ ○ Too expensive │
166
+ │ ○ Not using it enough │
167
+ │ ○ Missing a feature I need │
168
+ │ ○ Switching to another tool │
169
+ │ ○ Technical issues │
170
+ │ ○ Temporary / don't need right now │
171
+ │ ○ Other: [____________] │
172
+ │ │
173
+ │ [Continue] │
174
+ │ [Never mind, keep my subscription] │
175
+ └─────────────────────────────────────┘
176
+ ↓ (selects "Too expensive")
177
+ ┌─────────────────────────────────────┐
178
+ │ What if we could help? │
179
+ │ │
180
+ │ We'd love to keep you. Here's a │
181
+ │ special offer: │
182
+ │ │
183
+ │ ┌───────────────────────────────┐ │
184
+ │ │ 25% off for the next 3 months│ │
185
+ │ │ Save $XX/month │ │
186
+ │ │ │ │
187
+ │ │ [Accept Offer] │ │
188
+ │ └───────────────────────────────┘ │
189
+ │ │
190
+ │ Or switch to [Basic Plan] at │
191
+ │ $X/month → │
192
+ │ │
193
+ │ [No thanks, continue cancelling] │
194
+ └─────────────────────────────────────┘
195
+ ```
196
+
197
+ **UI principles:**
198
+ - Keep the "continue cancelling" option visible (no dark patterns)
199
+ - One primary offer + one fallback, not a wall of options
200
+ - Show specific dollar savings, not abstract percentages
201
+ - Use the customer's name and account data when possible
202
+ - Mobile-friendly (many cancellations happen on mobile)
203
+
204
+ For detailed cancel flow patterns by industry and billing provider, see [references/cancel-flow-patterns.md](references/cancel-flow-patterns.md).
205
+
206
+ ---
207
+
208
+ ## Churn Prediction & Proactive Retention
209
+
210
+ The best save happens before the customer ever clicks "Cancel."
211
+
212
+ ### Risk Signals
213
+
214
+ Track these leading indicators of churn:
215
+
216
+ | Signal | Risk Level | Timeframe |
217
+ |--------|-----------|-----------|
218
+ | Login frequency drops 50%+ | High | 2-4 weeks before cancel |
219
+ | Key feature usage stops | High | 1-3 weeks before cancel |
220
+ | Support tickets spike then stop | High | 1-2 weeks before cancel |
221
+ | Email open rates decline | Medium | 2-6 weeks before cancel |
222
+ | Billing page visits increase | High | Days before cancel |
223
+ | Team seats removed | High | 1-2 weeks before cancel |
224
+ | Data export initiated | Critical | Days before cancel |
225
+ | NPS score drops below 6 | Medium | 1-3 months before cancel |
226
+
227
+ ### Health Score Model
228
+
229
+ Build a simple health score (0-100) from weighted signals:
230
+
231
+ ```
232
+ Health Score = (
233
+ Login frequency score × 0.30 +
234
+ Feature usage score × 0.25 +
235
+ Support sentiment × 0.15 +
236
+ Billing health × 0.15 +
237
+ Engagement score × 0.15
238
+ )
239
+ ```
240
+
241
+ | Score | Status | Action |
242
+ |-------|--------|--------|
243
+ | 80-100 | Healthy | Upsell opportunities |
244
+ | 60-79 | Needs attention | Proactive check-in |
245
+ | 40-59 | At risk | Intervention campaign |
246
+ | 0-39 | Critical | Personal outreach |
247
+
248
+ ### Proactive Interventions
249
+
250
+ **Before they think about cancelling:**
251
+
252
+ | Trigger | Intervention |
253
+ |---------|-------------|
254
+ | Usage drop >50% for 2 weeks | "We noticed you haven't used [feature]. Need help?" email |
255
+ | Approaching plan limit | Upgrade nudge (not a wall — paywall-upgrade-cro handles this) |
256
+ | No login for 14 days | Re-engagement email with recent product updates |
257
+ | NPS detractor (0-6) | Personal follow-up within 24 hours |
258
+ | Support ticket unresolved >48h | Escalation + proactive status update |
259
+ | Annual renewal in 30 days | Value recap email + renewal confirmation |
260
+
261
+ ---
262
+
263
+ ## Involuntary Churn: Payment Recovery
264
+
265
+ Failed payments cause 30-50% of all churn but are the most recoverable.
266
+
267
+ ### The Dunning Stack
268
+
269
+ ```
270
+ Pre-dunning → Smart retry → Dunning emails → Grace period → Hard cancel
271
+ ```
272
+
273
+ ### Pre-Dunning (Prevent Failures)
274
+
275
+ - **Card expiry alerts**: Email 30, 15, and 7 days before card expires
276
+ - **Backup payment method**: Prompt for a second payment method at signup
277
+ - **Card updater services**: Visa/Mastercard auto-update programs (reduces hard declines 30-50%)
278
+ - **Pre-billing notification**: Email 3-5 days before charge for annual plans
279
+
280
+ ### Smart Retry Logic
281
+
282
+ Not all failures are the same. Retry strategy by decline type:
283
+
284
+ | Decline Type | Examples | Retry Strategy |
285
+ |-------------|----------|----------------|
286
+ | Soft decline (temporary) | Insufficient funds, processor timeout | Retry 3-5 times over 7-10 days |
287
+ | Hard decline (permanent) | Card stolen, account closed | Don't retry — ask for new card |
288
+ | Authentication required | 3D Secure, SCA | Send customer to update payment |
289
+
290
+ **Retry timing best practices:**
291
+ - Retry 1: 24 hours after failure
292
+ - Retry 2: 3 days after failure
293
+ - Retry 3: 5 days after failure
294
+ - Retry 4: 7 days after failure (with dunning email escalation)
295
+ - After 4 retries: Hard cancel with reactivation path
296
+
297
+ **Smart retry tip:** Retry on the day of the month the payment originally succeeded (if Day 1 worked before, retry on Day 1). Stripe Smart Retries handles this automatically.
298
+
299
+ ### Dunning Email Sequence
300
+
301
+ | Email | Timing | Tone | Content |
302
+ |-------|--------|------|---------|
303
+ | 1 | Day 0 (failure) | Friendly alert | "Your payment didn't go through. Update your card." |
304
+ | 2 | Day 3 | Helpful reminder | "Quick reminder — update your payment to keep access." |
305
+ | 3 | Day 7 | Urgency | "Your account will be paused in 3 days. Update now." |
306
+ | 4 | Day 10 | Final warning | "Last chance to keep your account active." |
307
+
308
+ **Dunning email best practices:**
309
+ - Direct link to payment update page (no login required if possible)
310
+ - Show what they'll lose (their data, their team's access)
311
+ - Don't blame ("your payment failed" not "you failed to pay")
312
+ - Include support contact for help
313
+ - Plain text performs better than designed emails for dunning
314
+
315
+ ### Recovery Benchmarks
316
+
317
+ | Metric | Poor | Average | Good |
318
+ |--------|------|---------|------|
319
+ | Soft decline recovery | <40% | 50-60% | 70%+ |
320
+ | Hard decline recovery | <10% | 20-30% | 40%+ |
321
+ | Overall payment recovery | <30% | 40-50% | 60%+ |
322
+ | Pre-dunning prevention | None | 10-15% | 20-30% |
323
+
324
+ For the complete dunning playbook with provider-specific setup, see [references/dunning-playbook.md](references/dunning-playbook.md).
325
+
326
+ ---
327
+
328
+ ## Metrics & Measurement
329
+
330
+ ### Key Churn Metrics
331
+
332
+ | Metric | Formula | Target |
333
+ |--------|---------|--------|
334
+ | Monthly churn rate | Churned customers / Start-of-month customers | <5% B2C, <2% B2B |
335
+ | Revenue churn (net) | (Lost MRR - Expansion MRR) / Start MRR | Negative (net expansion) |
336
+ | Cancel flow save rate | Saved / Total cancel sessions | 25-35% |
337
+ | Offer acceptance rate | Accepted offers / Shown offers | 15-25% |
338
+ | Pause reactivation rate | Reactivated / Total paused | 60-80% |
339
+ | Dunning recovery rate | Recovered / Total failed payments | 50-60% |
340
+ | Time to cancel | Days from first churn signal to cancel | Track trend |
341
+
342
+ ### Cohort Analysis
343
+
344
+ Segment churn by:
345
+ - **Acquisition channel** — Which channels bring stickier customers?
346
+ - **Plan type** — Which plans churn most?
347
+ - **Tenure** — When do most cancellations happen? (30, 60, 90 days?)
348
+ - **Cancel reason** — Which reasons are growing?
349
+ - **Save offer type** — Which offers work best for which segments?
350
+
351
+ ### Cancel Flow A/B Tests
352
+
353
+ Test one variable at a time:
354
+
355
+ | Test | Hypothesis | Metric |
356
+ |------|-----------|--------|
357
+ | Discount % (20% vs 30%) | Higher discount saves more | Save rate, LTV impact |
358
+ | Pause duration (1 vs 3 months) | Longer pause increases return rate | Reactivation rate |
359
+ | Survey placement (before vs after offer) | Survey-first personalizes offers | Save rate |
360
+ | Offer presentation (modal vs full page) | Full page gets more attention | Save rate |
361
+ | Copy tone (empathetic vs direct) | Empathetic reduces friction | Save rate |
362
+
363
+ **How to run cancel flow experiments:** Use the **ab-test-setup** skill to design statistically rigorous tests. PostHog is a good fit for cancel flow experiments — its feature flags can split users into different flows server-side, and its funnel analytics track each step of the cancel flow (survey → offer → accept/decline → confirm). See the [PostHog integration guide](../../tools/integrations/posthog.md) for setup.
364
+
365
+ ---
366
+
367
+ ## Common Mistakes
368
+
369
+ - **No cancel flow at all** — Instant cancel leaves money on the table. Even a simple survey + one offer saves 10-15%
370
+ - **Making cancellation hard to find** — Hidden cancel buttons breed resentment and bad reviews. Many jurisdictions require easy cancellation (FTC Click-to-Cancel rule)
371
+ - **Same offer for every reason** — A blanket discount doesn't address "missing feature" or "not using it"
372
+ - **Discounts too deep** — 50%+ discounts train customers to cancel-and-return for deals
373
+ - **Ignoring involuntary churn** — Often 30-50% of total churn and the easiest to fix
374
+ - **No dunning emails** — Letting payment failures silently cancel accounts
375
+ - **Guilt-trip copy** — "Are you sure you want to abandon us?" damages brand trust
376
+ - **Not tracking save offer LTV** — A "saved" customer who churns 30 days later wasn't really saved
377
+ - **Pausing too long** — Pauses beyond 3 months rarely reactivate. Set limits.
378
+ - **No post-cancel path** — Make reactivation easy and trigger win-back emails, because some churned users will want to come back
379
+
380
+ ---
381
+
382
+ ## Tool Integrations
383
+
384
+ For implementation, see the [tools registry](../../tools/REGISTRY.md).
385
+
386
+ ### Retention Platforms
387
+
388
+ | Tool | Best For | Key Feature |
389
+ |------|----------|-------------|
390
+ | **Churnkey** | Full cancel flow + dunning | AI-powered adaptive offers, 34% avg save rate |
391
+ | **ProsperStack** | Cancel flows with analytics | Advanced rules engine, Stripe/Chargebee integration |
392
+ | **Raaft** | Simple cancel flow builder | Easy setup, good for early-stage |
393
+ | **Chargebee Retention** | Chargebee customers | Native integration, was Brightback |
394
+
395
+ ### Billing Providers (Dunning)
396
+
397
+ | Provider | Smart Retries | Dunning Emails | Card Updater |
398
+ |----------|:------------:|:--------------:|:------------:|
399
+ | **Stripe** | Built-in (Smart Retries) | Built-in | Automatic |
400
+ | **Chargebee** | Built-in | Built-in | Via gateway |
401
+ | **Paddle** | Built-in | Built-in | Managed |
402
+ | **Recurly** | Built-in | Built-in | Built-in |
403
+ | **Braintree** | Manual config | Manual | Via gateway |
404
+
405
+ ### Related CLI Tools
406
+
407
+ | Tool | Use For |
408
+ |------|---------|
409
+ | `stripe` | Subscription management, dunning config, payment retries |
410
+ | `customer-io` | Dunning email sequences, retention campaigns |
411
+ | `posthog` | Cancel flow A/B tests via feature flags, funnel analytics |
412
+ | `mixpanel` / `ga4` | Usage tracking, churn signal analysis |
413
+ | `segment` | Event routing for health scoring |
414
+
415
+ ---
416
+
417
+ ## Related Skills
418
+
419
+ - **email-sequence**: For win-back email sequences after cancellation
420
+ - **paywall-upgrade-cro**: For in-app upgrade moments and trial expiration
421
+ - **pricing-strategy**: For plan structure and annual discount strategy
422
+ - **onboarding-cro**: For activation to prevent early churn
423
+ - **analytics-tracking**: For setting up churn signal events
424
+ - **ab-test-setup**: For testing cancel flow variations with statistical rigor
@@ -0,0 +1,93 @@
1
+ {
2
+ "skill_name": "churn-prevention",
3
+ "evals": [
4
+ {
5
+ "id": 1,
6
+ "prompt": "Our SaaS product has a 7% monthly churn rate and we need to bring it down. We're a $49/month project management tool with about 2,000 paying customers. Can you help us design a churn prevention strategy?",
7
+ "expected_output": "Should use approved TASK-PACKET.md inputs first in Maya task workflows, and read PRODUCT.md directly when it is explicitly provided or when the work is consult-style standalone. Should address both voluntary and involuntary churn. Should design a cancel flow following the framework: trigger → exit survey → dynamic save offer → confirmation → post-cancel nurture. Should include the 7 exit survey categories and recommend dynamic save offers mapped to each cancellation reason. Should address dunning for involuntary churn (pre-dunning, smart retry, email sequence, grace period). Should recommend a health score model. Should provide prioritized implementation plan.",
8
+ "assertions": [
9
+ "Uses approved TASK-PACKET.md inputs or PRODUCT.md context first",
10
+ "Addresses both voluntary and involuntary churn",
11
+ "Designs cancel flow with proper stages",
12
+ "Includes exit survey with multiple categories",
13
+ "Maps save offers to cancellation reasons",
14
+ "Addresses dunning stack for payment recovery",
15
+ "Recommends health score model",
16
+ "Provides prioritized implementation plan"
17
+ ],
18
+ "files": []
19
+ },
20
+ {
21
+ "id": 2,
22
+ "prompt": "We keep losing customers because their credit cards expire. About 15% of our churn is from failed payments. How do we fix this?",
23
+ "expected_output": "Should identify this as involuntary churn / payment recovery. Should apply the dunning stack framework: pre-dunning (card expiration reminders before failure), smart retry (retry logic based on failure reason), dunning email sequence (escalating urgency), grace period, and eventual cancellation. Should provide specific timing for each stage. Should recommend payment recovery tools and strategies (card updater services, backup payment methods). Should include recovery rate benchmarks.",
24
+ "assertions": [
25
+ "Identifies as involuntary churn / payment recovery",
26
+ "Applies dunning stack framework",
27
+ "Includes pre-dunning card expiration reminders",
28
+ "Includes smart retry logic",
29
+ "Provides dunning email sequence with escalating urgency",
30
+ "Recommends grace period before cancellation",
31
+ "Mentions card updater services or backup payment methods",
32
+ "Includes recovery benchmarks"
33
+ ],
34
+ "files": []
35
+ },
36
+ {
37
+ "id": 3,
38
+ "prompt": "what should we show users when they click the cancel button? right now they just go straight to cancellation with no attempt to save them",
39
+ "expected_output": "Should trigger on casual phrasing. Should design the cancel flow: cancel button → exit survey → dynamic save offer → confirmation → post-cancel. Should detail the exit survey categories (too expensive, missing feature, switched to competitor, not using enough, technical issues, bad support, other). Should provide dynamic save offers matched to each reason (e.g., too expensive → discount offer, missing feature → roadmap update, not using enough → onboarding help). Should include copy recommendations for each screen. Should warn against dark patterns (making it impossible to cancel).",
40
+ "assertions": [
41
+ "Triggers on casual phrasing",
42
+ "Designs multi-step cancel flow",
43
+ "Includes exit survey with 7 categories",
44
+ "Provides dynamic save offers mapped to reasons",
45
+ "Includes copy recommendations",
46
+ "Warns against dark patterns",
47
+ "Includes confirmation and post-cancel steps"
48
+ ],
49
+ "files": []
50
+ },
51
+ {
52
+ "id": 4,
53
+ "prompt": "How do we identify which customers are at risk of churning before they actually cancel? We want to be proactive.",
54
+ "expected_output": "Should apply the health score model framework. Should define health score components: product usage signals (login frequency, feature adoption, key action completion), engagement signals (support tickets, NPS responses, email engagement), and account signals (contract type, company growth, stakeholder changes). Should recommend scoring methodology (0-100 scale). Should define risk tiers and recommended interventions for each tier. Should suggest data sources and implementation approach.",
55
+ "assertions": [
56
+ "Applies health score model framework",
57
+ "Defines usage-based health signals",
58
+ "Defines engagement-based health signals",
59
+ "Defines account-based health signals",
60
+ "Recommends scoring methodology",
61
+ "Defines risk tiers with interventions",
62
+ "Suggests data sources and implementation"
63
+ ],
64
+ "files": []
65
+ },
66
+ {
67
+ "id": 5,
68
+ "prompt": "Our exit survey shows that 40% of cancellations say 'too expensive' as the reason. What save offers should we try?",
69
+ "expected_output": "Should reference the dynamic save offers mapped to the 'too expensive' reason. Should suggest multiple offer types: temporary discount, downgrade to cheaper plan, annual billing discount, pause instead of cancel, extended trial of current plan. Should recommend testing different offers to find what works best. Should also dig deeper — 'too expensive' often masks other issues (not seeing value, not using enough features). Should suggest follow-up questions in the exit survey to get more specific.",
70
+ "assertions": [
71
+ "References save offers for 'too expensive' reason",
72
+ "Suggests multiple offer types (discount, downgrade, pause)",
73
+ "Recommends testing different offers",
74
+ "Notes that 'too expensive' often masks other issues",
75
+ "Suggests deeper follow-up questions",
76
+ "Provides specific save offer copy or structure"
77
+ ],
78
+ "files": []
79
+ },
80
+ {
81
+ "id": 6,
82
+ "prompt": "We want to set up a win-back email sequence for customers who already cancelled. Can you help write those emails?",
83
+ "expected_output": "Should recognize this overlaps with email sequence work. Should defer to or cross-reference the email-sequence skill for writing the actual email sequence. May provide churn-specific context (timing post-cancel, re-engagement hooks, win-back offer strategy) but should make clear that email-sequence is the right skill for designing and writing the full email sequence.",
84
+ "assertions": [
85
+ "Recognizes overlap with email sequence work",
86
+ "References or defers to email-sequence skill",
87
+ "May provide churn-specific context for the sequence",
88
+ "Does not attempt to write a full email sequence"
89
+ ],
90
+ "files": []
91
+ }
92
+ ]
93
+ }