Universal subscription billing patterns for Claude Code
npx claudepluginhub commet-labs/subscription-patternsUniversal subscription billing patterns — free trials, proration, plan changes, dunning, cancellation flows, and add-ons. Framework-agnostic patterns with Commet code examples.
Share bugs, ideas, or general feedback.
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.
MIT