> ## Documentation Index
> Fetch the complete documentation index at: https://commet.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Subscription Patterns Skill

> Universal subscription billing patterns for trials, proration, dunning, and more.

The Subscription Patterns skill provides AI agents with universal patterns for the full subscription lifecycle. It covers trials, intro offers, upgrades, downgrades, proration, dunning, cancellation flows, and add-ons.

## Installation

Install the skill using the following command:

```bash theme={null}
npx skills add commet-labs/subscription-patterns
```

## Advantages

* **Free trials and intro offers**: Trial setup, conversion flows, discounted first cycles, eligibility rules.
* **Upgrades and downgrades**: When to apply immediately vs at renewal, feature access during transition.
* **Proration logic**: Time-based credit formula, edge cases, multiple changes in the same period.
* **Dunning and retries**: Failed payment recovery, retry schedules, grace period access, notification patterns.
* **Cancellation flows**: Immediate vs end-of-period, save offers, reactivation, data retention.
* **Add-ons**: Purchasable feature extensions, prorated activation, consumption model compatibility.

## Learn More

> [card] [View on GitHub](https://github.com/commet-labs/subscription-patterns)
>
> See the full source code and documentation.

> [card] [View on skills.sh](https://skills.sh/commet-labs/subscription-patterns)
>
> Installation stats and security audits.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.