> ## 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.

# Billing Best Practices Skill

> Comprehensive guide for building production-ready billing systems with AI agents.

The Billing Best Practices skill provides AI agents with comprehensive knowledge for building production-ready billing integrations. It covers subscription lifecycle, failed payments, proration, multi-currency, tax compliance, and invoicing.

## Installation

Install the skill using the following command:

```bash theme={null}
npx skills add commet-labs/billing-best-practices
```

## Advantages

* **Subscription lifecycle management**: Patterns for handling every state transition from trial to cancellation.
* **Failed payment recovery**: Dunning flows, retry schedules, grace periods, and involuntary churn prevention.
* **Proration logic**: How mid-cycle upgrades, downgrades, and plan changes affect invoicing.
* **Multi-currency support**: Currency Pricing, request-country Markets, zero-decimal currencies.
* **Tax compliance**: Merchant of Record model, automatic tax calculation, when you need MoR vs DIY.
* **Pre-launch checklist**: Step-by-step verification before going live with billing.

## Learn More

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

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


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