Universal subscription billing patterns for SaaS products. How proration works, how to implement free trials, when to apply plan changes, how to handle failed payments, and more.
Framework-agnostic patterns with @commet/node code examples.
npx skills add commet-labs/subscription-patterns| Pattern | Description |
|---|---|
| Trials & Intro Offers | Free trials, discounted first cycles, conversion to paid |
| Upgrades & Downgrades | Plan changes, when to apply immediately vs at renewal |
| Proration Logic | Mid-cycle credits and charges, time-based calculation |
| Dunning & Retries | Failed payment handling, retry schedules, grace periods |
| Cancellation Flows | Immediate vs end-of-period, reactivation, save offers |
| Add-ons & Extras | Feature extensions, mid-cycle activation, consumption matching |
Every subscription change follows one rule:
| Change Type | When Applied |
|---|---|
| Benefits customer | Immediately |
| Hurts customer | At renewal |
Upgrades are immediate with proration. Downgrades wait until the period ends. Price increases take effect at renewal. This principle drives every pattern in this skill.
- Commet — Billing and payments for SaaS
- Commet SDK — SDKs and libraries
- Commet Skills — Full Commet agent skills
MIT