opencode-skills-antigravity 1.0.4 → 1.0.6

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 (151) hide show
  1. package/bundled-skills/ad-creative/SKILL.md +371 -0
  2. package/bundled-skills/ad-creative/evals/evals.json +90 -0
  3. package/bundled-skills/ad-creative/references/generative-tools.md +637 -0
  4. package/bundled-skills/ad-creative/references/platform-specs.md +213 -0
  5. package/bundled-skills/ai-seo/SKILL.md +407 -0
  6. package/bundled-skills/ai-seo/evals/evals.json +90 -0
  7. package/bundled-skills/ai-seo/references/content-patterns.md +285 -0
  8. package/bundled-skills/ai-seo/references/platform-ranking-factors.md +152 -0
  9. package/bundled-skills/backend-dev-guidelines/SKILL.md +1 -1
  10. package/bundled-skills/cc-skill-security-review/SKILL.md +1 -1
  11. package/bundled-skills/churn-prevention/SKILL.md +433 -0
  12. package/bundled-skills/churn-prevention/evals/evals.json +93 -0
  13. package/bundled-skills/churn-prevention/references/cancel-flow-patterns.md +316 -0
  14. package/bundled-skills/churn-prevention/references/dunning-playbook.md +408 -0
  15. package/bundled-skills/claude-api/LICENSE.txt +202 -0
  16. package/bundled-skills/claude-api/SKILL.md +252 -0
  17. package/bundled-skills/claude-api/csharp/claude-api.md +70 -0
  18. package/bundled-skills/claude-api/curl/examples.md +164 -0
  19. package/bundled-skills/claude-api/go/claude-api.md +146 -0
  20. package/bundled-skills/claude-api/java/claude-api.md +128 -0
  21. package/bundled-skills/claude-api/php/claude-api.md +88 -0
  22. package/bundled-skills/claude-api/python/agent-sdk/README.md +269 -0
  23. package/bundled-skills/claude-api/python/agent-sdk/patterns.md +319 -0
  24. package/bundled-skills/claude-api/python/claude-api/README.md +404 -0
  25. package/bundled-skills/claude-api/python/claude-api/batches.md +182 -0
  26. package/bundled-skills/claude-api/python/claude-api/files-api.md +162 -0
  27. package/bundled-skills/claude-api/python/claude-api/streaming.md +162 -0
  28. package/bundled-skills/claude-api/python/claude-api/tool-use.md +587 -0
  29. package/bundled-skills/claude-api/ruby/claude-api.md +87 -0
  30. package/bundled-skills/claude-api/shared/error-codes.md +205 -0
  31. package/bundled-skills/claude-api/shared/live-sources.md +121 -0
  32. package/bundled-skills/claude-api/shared/models.md +68 -0
  33. package/bundled-skills/claude-api/shared/tool-use-concepts.md +305 -0
  34. package/bundled-skills/claude-api/typescript/agent-sdk/README.md +220 -0
  35. package/bundled-skills/claude-api/typescript/agent-sdk/patterns.md +150 -0
  36. package/bundled-skills/claude-api/typescript/claude-api/README.md +313 -0
  37. package/bundled-skills/claude-api/typescript/claude-api/batches.md +106 -0
  38. package/bundled-skills/claude-api/typescript/claude-api/files-api.md +98 -0
  39. package/bundled-skills/claude-api/typescript/claude-api/streaming.md +178 -0
  40. package/bundled-skills/claude-api/typescript/claude-api/tool-use.md +477 -0
  41. package/bundled-skills/codex-review/SKILL.md +1 -1
  42. package/bundled-skills/cold-email/SKILL.md +167 -0
  43. package/bundled-skills/cold-email/evals/evals.json +94 -0
  44. package/bundled-skills/cold-email/references/benchmarks.md +83 -0
  45. package/bundled-skills/cold-email/references/follow-up-sequences.md +81 -0
  46. package/bundled-skills/cold-email/references/frameworks.md +90 -0
  47. package/bundled-skills/cold-email/references/personalization.md +79 -0
  48. package/bundled-skills/cold-email/references/subject-lines.md +53 -0
  49. package/bundled-skills/content-strategy/SKILL.md +374 -0
  50. package/bundled-skills/content-strategy/evals/evals.json +90 -0
  51. package/bundled-skills/content-strategy/references/headless-cms.md +194 -0
  52. package/bundled-skills/context7-auto-research/SKILL.md +1 -1
  53. package/bundled-skills/dbos-golang/SKILL.md +1 -1
  54. package/bundled-skills/dbos-python/SKILL.md +1 -1
  55. package/bundled-skills/dbos-typescript/SKILL.md +1 -1
  56. package/bundled-skills/debug-buttercup/SKILL.md +1 -1
  57. package/bundled-skills/defuddle/SKILL.md +50 -0
  58. package/bundled-skills/docs/integrations/jetski-cortex.md +3 -3
  59. package/bundled-skills/docs/integrations/jetski-gemini-loader/README.md +1 -1
  60. package/bundled-skills/docs/integrations/jetski-gemini-loader/package.json +1 -0
  61. package/bundled-skills/docs/maintainers/repo-growth-seo.md +3 -3
  62. package/bundled-skills/docs/maintainers/skills-import-2026-03-21.md +81 -0
  63. package/bundled-skills/docs/maintainers/skills-update-guide.md +1 -1
  64. package/bundled-skills/docs/users/bundles.md +1 -1
  65. package/bundled-skills/docs/users/claude-code-skills.md +1 -1
  66. package/bundled-skills/docs/users/gemini-cli-skills.md +1 -1
  67. package/bundled-skills/docs/users/getting-started.md +1 -1
  68. package/bundled-skills/docs/users/kiro-integration.md +1 -1
  69. package/bundled-skills/docs/users/usage.md +4 -4
  70. package/bundled-skills/docs/users/visual-guide.md +4 -4
  71. package/bundled-skills/evaluation/SKILL.md +1 -1
  72. package/bundled-skills/exa-search/SKILL.md +1 -1
  73. package/bundled-skills/firecrawl-scraper/SKILL.md +1 -1
  74. package/bundled-skills/frontend-dev-guidelines/SKILL.md +1 -1
  75. package/bundled-skills/gha-security-review/SKILL.md +2 -1
  76. package/bundled-skills/git-pushing/SKILL.md +1 -1
  77. package/bundled-skills/internal-comms/LICENSE.txt +202 -0
  78. package/bundled-skills/internal-comms/SKILL.md +35 -0
  79. package/bundled-skills/internal-comms/examples/3p-updates.md +47 -0
  80. package/bundled-skills/internal-comms/examples/company-newsletter.md +65 -0
  81. package/bundled-skills/internal-comms/examples/faq-answers.md +30 -0
  82. package/bundled-skills/internal-comms/examples/general-comms.md +16 -0
  83. package/bundled-skills/json-canvas/SKILL.md +253 -0
  84. package/bundled-skills/json-canvas/references/EXAMPLES.md +329 -0
  85. package/bundled-skills/lead-magnets/SKILL.md +319 -0
  86. package/bundled-skills/lead-magnets/references/benchmarks.md +129 -0
  87. package/bundled-skills/lead-magnets/references/format-guide.md +196 -0
  88. package/bundled-skills/memory-systems/SKILL.md +1 -1
  89. package/bundled-skills/obsidian-bases/SKILL.md +506 -0
  90. package/bundled-skills/obsidian-bases/references/FUNCTIONS_REFERENCE.md +173 -0
  91. package/bundled-skills/obsidian-cli/SKILL.md +115 -0
  92. package/bundled-skills/obsidian-markdown/SKILL.md +205 -0
  93. package/bundled-skills/obsidian-markdown/references/CALLOUTS.md +58 -0
  94. package/bundled-skills/obsidian-markdown/references/EMBEDS.md +63 -0
  95. package/bundled-skills/obsidian-markdown/references/PROPERTIES.md +61 -0
  96. package/bundled-skills/product-marketing-context/SKILL.md +250 -0
  97. package/bundled-skills/product-marketing-context/evals/evals.json +85 -0
  98. package/bundled-skills/react-best-practices/SKILL.md +1 -1
  99. package/bundled-skills/revops/SKILL.md +352 -0
  100. package/bundled-skills/revops/evals/evals.json +91 -0
  101. package/bundled-skills/revops/references/automation-playbooks.md +290 -0
  102. package/bundled-skills/revops/references/lifecycle-definitions.md +278 -0
  103. package/bundled-skills/revops/references/routing-rules.md +203 -0
  104. package/bundled-skills/revops/references/scoring-models.md +247 -0
  105. package/bundled-skills/sales-enablement/SKILL.md +358 -0
  106. package/bundled-skills/sales-enablement/evals/evals.json +91 -0
  107. package/bundled-skills/sales-enablement/references/deck-frameworks.md +263 -0
  108. package/bundled-skills/sales-enablement/references/demo-scripts.md +355 -0
  109. package/bundled-skills/sales-enablement/references/objection-library.md +270 -0
  110. package/bundled-skills/sales-enablement/references/one-pager-templates.md +208 -0
  111. package/bundled-skills/seo/SKILL.md +139 -0
  112. package/bundled-skills/seo/references/cwv-thresholds.md +108 -0
  113. package/bundled-skills/seo/references/eeat-framework.md +214 -0
  114. package/bundled-skills/seo/references/quality-gates.md +155 -0
  115. package/bundled-skills/seo/references/schema-types.md +118 -0
  116. package/bundled-skills/seo-competitor-pages/SKILL.md +229 -0
  117. package/bundled-skills/seo-content/SKILL.md +186 -0
  118. package/bundled-skills/seo-dataforseo/SKILL.md +395 -0
  119. package/bundled-skills/seo-geo/SKILL.md +254 -0
  120. package/bundled-skills/seo-hreflang/SKILL.md +209 -0
  121. package/bundled-skills/seo-image-gen/SKILL.md +183 -0
  122. package/bundled-skills/seo-images/SKILL.md +193 -0
  123. package/bundled-skills/seo-page/SKILL.md +103 -0
  124. package/bundled-skills/seo-plan/SKILL.md +136 -0
  125. package/bundled-skills/seo-plan/assets/agency.md +175 -0
  126. package/bundled-skills/seo-plan/assets/ecommerce.md +167 -0
  127. package/bundled-skills/seo-plan/assets/generic.md +144 -0
  128. package/bundled-skills/seo-plan/assets/local-service.md +160 -0
  129. package/bundled-skills/seo-plan/assets/publisher.md +153 -0
  130. package/bundled-skills/seo-plan/assets/saas.md +135 -0
  131. package/bundled-skills/seo-programmatic/SKILL.md +184 -0
  132. package/bundled-skills/seo-schema/SKILL.md +178 -0
  133. package/bundled-skills/seo-sitemap/SKILL.md +129 -0
  134. package/bundled-skills/seo-technical/SKILL.md +175 -0
  135. package/bundled-skills/site-architecture/SKILL.md +366 -0
  136. package/bundled-skills/site-architecture/evals/evals.json +88 -0
  137. package/bundled-skills/site-architecture/references/mermaid-templates.md +216 -0
  138. package/bundled-skills/site-architecture/references/navigation-patterns.md +305 -0
  139. package/bundled-skills/site-architecture/references/site-type-templates.md +293 -0
  140. package/bundled-skills/skill-improver/SKILL.md +1 -1
  141. package/bundled-skills/tavily-web/SKILL.md +1 -1
  142. package/bundled-skills/test-fixing/SKILL.md +1 -1
  143. package/bundled-skills/tool-design/SKILL.md +1 -1
  144. package/bundled-skills/ui-ux-pro-max/SKILL.md +1 -1
  145. package/bundled-skills/verification-before-completion/SKILL.md +1 -1
  146. package/bundled-skills/wiki-changelog/SKILL.md +1 -1
  147. package/bundled-skills/wiki-onboarding/SKILL.md +1 -1
  148. package/bundled-skills/wiki-qa/SKILL.md +1 -1
  149. package/bundled-skills/wiki-researcher/SKILL.md +1 -1
  150. package/bundled-skills/wiki-vitepress/SKILL.md +1 -1
  151. package/package.json +1 -1
@@ -0,0 +1,408 @@
1
+ # Dunning Playbook
2
+
3
+ Complete guide to recovering failed payments and reducing involuntary churn.
4
+
5
+ ---
6
+
7
+ ## Why Dunning Matters
8
+
9
+ - Failed payments cause 30-50% of all subscription churn
10
+ - Most failed payments are recoverable with the right strategy
11
+ - Subscription businesses lose an estimated $129 billion annually to involuntary churn
12
+ - Effective dunning recovers 50-60% of failed payments
13
+
14
+ ---
15
+
16
+ ## The Dunning Timeline
17
+
18
+ ```
19
+ Day -30 to -7: Pre-dunning (prevent failures)
20
+ Day 0: Payment fails → Smart retry #1 + Email #1
21
+ Day 1-3: Smart retry #2 + Email #2
22
+ Day 3-5: Smart retry #3
23
+ Day 5-7: Smart retry #4 + Email #3
24
+ Day 7-10: Final retry + Email #4 (final warning)
25
+ Day 10-14: Grace period ends → Account paused/cancelled
26
+ Day 14+: Win-back sequence begins
27
+ ```
28
+
29
+ ---
30
+
31
+ ## Pre-Dunning: Prevent Failures Before They Happen
32
+
33
+ ### Card Expiry Management
34
+
35
+ | Timing | Action |
36
+ |--------|--------|
37
+ | 30 days before expiry | Email: "Your card ending in 4242 expires next month" |
38
+ | 15 days before expiry | Email: "Update your payment method to avoid interruption" |
39
+ | 7 days before expiry | Email: "Your card expires in 7 days — update now" |
40
+ | 3 days before expiry | In-app banner: "Payment method expiring soon" |
41
+
42
+ **Email template — Card expiring:**
43
+ ```
44
+ Subject: Your card ending in 4242 expires soon
45
+
46
+ Hi [Name],
47
+
48
+ The card on file for your [Product] subscription expires on [date].
49
+
50
+ Update your payment method now to avoid any interruption:
51
+
52
+ [Update Payment Method →]
53
+
54
+ This takes less than 30 seconds.
55
+
56
+ — [Product] Team
57
+ ```
58
+
59
+ ### Card Updater Services
60
+
61
+ Major card networks offer automatic card update programs:
62
+
63
+ | Service | Network | What It Does |
64
+ |---------|---------|--------------|
65
+ | Visa Account Updater (VAU) | Visa | Auto-updates stored card numbers and expiry dates |
66
+ | Mastercard Automatic Billing Updater (ABU) | Mastercard | Same for Mastercard |
67
+ | Amex Cardrefresher | American Express | Same for Amex |
68
+
69
+ **Impact:** Reduces hard declines from expired/replaced cards by 30-50%.
70
+
71
+ **How to enable:**
72
+ - **Stripe**: Automatic — enabled by default
73
+ - **Chargebee**: Enabled through gateway settings
74
+ - **Recurly**: Built-in, enabled by default
75
+ - **Braintree**: Contact processor to enable
76
+
77
+ ### Backup Payment Methods
78
+
79
+ Prompt for a second payment method:
80
+ - During signup: "Add a backup payment method" (low conversion)
81
+ - After first successful payment: "Protect your account with a backup card" (better timing)
82
+ - After a failed payment is recovered: "Add a backup to prevent future interruptions" (best timing — they felt the pain)
83
+
84
+ ### Pre-Billing Notifications
85
+
86
+ For annual plans or high-value subscriptions:
87
+ - Email 7 days before renewal with amount and date
88
+ - Include link to update payment method
89
+ - Show what's included in the renewal
90
+ - Required by some regulations for auto-renewals
91
+
92
+ ---
93
+
94
+ ## Smart Retry Strategy
95
+
96
+ ### Decline Type Classification
97
+
98
+ | Code | Type | Meaning | Retry? |
99
+ |------|------|---------|--------|
100
+ | `insufficient_funds` | Soft | Temporarily low balance | Yes — retry in 2-3 days |
101
+ | `card_declined` (generic) | Soft | Various temporary reasons | Yes — retry 3-4 times |
102
+ | `processing_error` | Soft | Gateway/network issue | Yes — retry within 24h |
103
+ | `expired_card` | Hard | Card is expired | No — request new card |
104
+ | `stolen_card` | Hard | Card reported stolen | No — request new card |
105
+ | `do_not_honor` | Soft/Hard | Bank refused (ambiguous) | Try once more, then ask for new card |
106
+ | `authentication_required` | Auth | SCA/3DS needed | Send customer to authenticate |
107
+
108
+ ### Retry Schedule by Provider
109
+
110
+ **Stripe (Smart Retries — recommended):**
111
+ - Enable "Smart Retries" in Stripe Dashboard → Billing → Settings
112
+ - Stripe's ML model picks optimal retry timing based on billions of transactions
113
+ - Typically 4-8 retry attempts over 3-4 weeks
114
+ - Recovers ~15% more than fixed-schedule retries
115
+
116
+ **Manual retry schedule (if no smart retries):**
117
+
118
+ | Retry | Timing | Best Day/Time |
119
+ |-------|--------|--------------|
120
+ | 1 | Day 1 (24h after failure) | Morning, same day of week as original |
121
+ | 2 | Day 3 | Try a different time of day |
122
+ | 3 | Day 5 | After typical payday (1st, 15th) |
123
+ | 4 | Day 7 | Morning of the next business day |
124
+ | 5 (final) | Day 10 | Last attempt before grace period ends |
125
+
126
+ **Retry timing insights:**
127
+ - Retry on the same day of month the original payment succeeded
128
+ - Retry after common paydays (1st and 15th of the month)
129
+ - Avoid retrying on weekends (lower approval rates)
130
+ - Morning retries (8-10am local time) perform slightly better
131
+
132
+ ---
133
+
134
+ ## Dunning Email Sequence
135
+
136
+ ### Email 1: Payment Failed (Day 0)
137
+
138
+ **Tone:** Friendly, matter-of-fact. No alarm.
139
+
140
+ ```
141
+ Subject: Action needed — your payment didn't go through
142
+
143
+ Hi [Name],
144
+
145
+ We tried to charge your [card type] ending in [last 4] for your
146
+ [Product] subscription ($[amount]), but it didn't go through.
147
+
148
+ This happens sometimes — usually a quick card update fixes it.
149
+
150
+ [Update Payment Method →]
151
+
152
+ Your access isn't affected yet. We'll retry automatically, but
153
+ updating your card is the fastest fix.
154
+
155
+ Need help? Just reply to this email.
156
+
157
+ — [Product] Team
158
+ ```
159
+
160
+ ### Email 2: Reminder (Day 3)
161
+
162
+ **Tone:** Helpful, slightly more urgent.
163
+
164
+ ```
165
+ Subject: Quick reminder — update your payment for [Product]
166
+
167
+ Hi [Name],
168
+
169
+ Just a heads-up — we still haven't been able to process your
170
+ $[amount] payment for [Product].
171
+
172
+ [Update Payment Method →]
173
+
174
+ Takes less than 30 seconds. Your [data/projects/team access]
175
+ is safe, but we'll need a valid payment method to keep your
176
+ account active.
177
+
178
+ Questions? Reply here and we'll help.
179
+
180
+ — [Product] Team
181
+ ```
182
+
183
+ ### Email 3: Urgency (Day 7)
184
+
185
+ **Tone:** Direct, clear consequences.
186
+
187
+ ```
188
+ Subject: Your [Product] account will be paused in 3 days
189
+
190
+ Hi [Name],
191
+
192
+ We've tried to process your payment several times, but your
193
+ [card type] ending in [last 4] keeps getting declined.
194
+
195
+ If we don't receive payment by [date], your account will be
196
+ paused and you'll lose access to:
197
+
198
+ • [Key feature/data they use]
199
+ • [Their projects/workspace]
200
+ • [Team access for X members]
201
+
202
+ [Update Payment Method Now →]
203
+
204
+ Your data won't be deleted — you can reactivate anytime by
205
+ updating your payment method.
206
+
207
+ — [Product] Team
208
+ ```
209
+
210
+ ### Email 4: Final Warning (Day 10)
211
+
212
+ **Tone:** Final, clear, no guilt.
213
+
214
+ ```
215
+ Subject: Last chance to keep your [Product] account active
216
+
217
+ Hi [Name],
218
+
219
+ This is our last reminder. Your payment of $[amount] is past
220
+ due, and your account will be paused tomorrow ([date]).
221
+
222
+ [Update Payment Method →]
223
+
224
+ After pausing:
225
+ • Your data is saved for [90 days]
226
+ • You can reactivate anytime
227
+ • Just update your card to restore access
228
+
229
+ If you intended to cancel, no action needed — your account
230
+ will be paused automatically.
231
+
232
+ — [Product] Team
233
+ ```
234
+
235
+ ---
236
+
237
+ ## Grace Period Management
238
+
239
+ ### What Happens During Grace Period
240
+
241
+ | Setting | Recommendation |
242
+ |---------|---------------|
243
+ | Duration | 7-14 days after final retry |
244
+ | Access | Degraded (read-only) or full access |
245
+ | Visibility | In-app banner: "Payment past due — update to continue" |
246
+ | Retry | Continue background retries during grace |
247
+ | Communication | Dunning emails continue |
248
+
249
+ ### Access Degradation Options
250
+
251
+ **Option A: Full access during grace (recommended for B2B)**
252
+ - Lower friction, customer feels respected
253
+ - Higher recovery rate (they still see value)
254
+ - Risk: some customers exploit the grace period
255
+
256
+ **Option B: Read-only access (recommended for B2C)**
257
+ - Can view but not create/edit
258
+ - Creates urgency without data loss fear
259
+ - Clear message: "Update payment to resume full access"
260
+
261
+ **Option C: Immediate lockout (not recommended)**
262
+ - Aggressive, damages relationship
263
+ - Lower recovery rate
264
+ - Only appropriate for very low-cost plans
265
+
266
+ ### Post-Grace Period
267
+
268
+ | Timing | Action |
269
+ |--------|--------|
270
+ | Grace period ends | Pause account (not delete) |
271
+ | Day 1 post-pause | "Your account has been paused" email |
272
+ | Day 7 post-pause | "Your data is still here" reminder |
273
+ | Day 30 post-pause | Win-back attempt with new offer |
274
+ | Day 60 post-pause | Final win-back |
275
+ | Day 90 post-pause | Data deletion warning (if applicable) |
276
+
277
+ ---
278
+
279
+ ## Provider-Specific Setup
280
+
281
+ ### Stripe
282
+
283
+ **Enable Smart Retries:**
284
+ 1. Dashboard → Settings → Billing → Subscriptions and emails
285
+ 2. Enable "Smart Retries" under retry rules
286
+ 3. Set failed payment emails in Dashboard → Settings → Emails
287
+
288
+ **Custom retry rules (if not using Smart Retries):**
289
+ ```
290
+ Retry 1: 3 days after failure
291
+ Retry 2: 5 days after failure
292
+ Retry 3: 7 days after failure
293
+ Final: Mark subscription as unpaid after last retry
294
+ ```
295
+
296
+ **Webhook events to handle:**
297
+ - `invoice.payment_failed` — trigger dunning
298
+ - `invoice.paid` — cancel dunning, restore access
299
+ - `customer.subscription.updated` — status changes
300
+ - `customer.subscription.deleted` — final cancellation
301
+
302
+ ### Chargebee
303
+
304
+ **Built-in dunning:**
305
+ 1. Settings → Configure Chargebee → Retry Settings
306
+ 2. Configure retry attempts and intervals
307
+ 3. Settings → Configure Chargebee → Email Notifications → Dunning
308
+
309
+ **Dunning options:**
310
+ - Automatic retries with configurable schedule
311
+ - Built-in dunning emails (customizable templates)
312
+ - Grace period configuration per plan
313
+
314
+ ### Paddle
315
+
316
+ **Managed dunning:**
317
+ - Paddle handles retries and dunning automatically
318
+ - Limited customization (Paddle manages the relationship)
319
+ - Webhook: `subscription.payment_failed`, `subscription.cancelled`
320
+ - Best for hands-off approach
321
+
322
+ ### Recurly
323
+
324
+ **Revenue Recovery:**
325
+ 1. Configuration → Dunning Management
326
+ 2. Set retry schedule per plan
327
+ 3. Configure grace period and final action (pause vs cancel)
328
+
329
+ **Advanced features:**
330
+ - Machine-learning retry optimization
331
+ - Per-plan dunning schedules
332
+ - Built-in Account Updater
333
+
334
+ ---
335
+
336
+ ## In-App Dunning
337
+
338
+ Don't rely on email alone. Show payment failures in the app:
339
+
340
+ ### Banner Pattern
341
+ ```
342
+ ┌──────────────────────────────────────────────────────┐
343
+ │ ⚠ Your payment of $29 failed. Update your card to │
344
+ │ avoid losing access. [Update Payment →] [Dismiss] │
345
+ └──────────────────────────────────────────────────────┘
346
+ ```
347
+
348
+ **Rules:**
349
+ - Show on every page load during dunning period
350
+ - Allow dismiss (but show again next session)
351
+ - Direct link to payment update (fewest clicks possible)
352
+ - Don't block the product — let them continue using it
353
+
354
+ ### Modal Pattern (for final warning)
355
+ ```
356
+ ┌─────────────────────────────────────┐
357
+ │ │
358
+ │ Your account will be paused │
359
+ │ on [date] │
360
+ │ │
361
+ │ Update your payment method to │
362
+ │ keep access to your [X] projects │
363
+ │ and [Y] team members. │
364
+ │ │
365
+ │ [Update Payment Method] │
366
+ │ [Remind Me Later] │
367
+ │ │
368
+ └─────────────────────────────────────┘
369
+ ```
370
+
371
+ ---
372
+
373
+ ## Measuring Dunning Performance
374
+
375
+ ### Key Metrics
376
+
377
+ | Metric | How to Calculate | Target |
378
+ |--------|-----------------|--------|
379
+ | Recovery rate | Recovered payments / Total failed | 50-60% |
380
+ | Recovery rate by decline type | Recovered / Failed per type | Soft: 70%+, Hard: 40%+ |
381
+ | Time to recovery | Days from failure to successful payment | <5 days |
382
+ | Pre-dunning prevention rate | Prevented failures / Expected failures | 20-30% |
383
+ | Dunning email open rate | Opens / Sent per email | 60%+ |
384
+ | Dunning email click rate | Clicks / Opens per email | 30%+ |
385
+ | Revenue recovered (monthly) | Sum of recovered payment amounts | Track trend |
386
+ | Revenue lost to involuntary churn | Sum of failed + unrecovered amounts | Track trend |
387
+
388
+ ### Benchmarking
389
+
390
+ **By company stage:**
391
+
392
+ | Stage | Typical Involuntary Churn | Target After Optimization |
393
+ |-------|--------------------------|--------------------------|
394
+ | Early (< $1M ARR) | 3-5% of MRR/month | 1-2% |
395
+ | Growth ($1-10M ARR) | 2-4% of MRR/month | 0.5-1.5% |
396
+ | Scale ($10M+ ARR) | 1-3% of MRR/month | 0.3-0.8% |
397
+
398
+ ### ROI Calculation
399
+
400
+ ```
401
+ Monthly failed payment MRR: $10,000
402
+ Current recovery rate: 30% ($3,000 recovered)
403
+ Target recovery rate: 60% ($6,000 recovered)
404
+ Monthly improvement: $3,000/month
405
+ Annual improvement: $36,000/year
406
+ Cost of dunning optimization: ~$200-500/month (tooling)
407
+ ROI: 6-15x
408
+ ```
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.