What problem does it solve?
Billing work in cmux spans Stripe Checkout, Stack authentication, webhook handling, and entitlement metadata, and mistakes in any of these paths can break payments or grant incorrect Pro access. This Skill provides the architecture map, dev workflow, and production runbook needed to change billing code safely.
Core Features & Use Cases
- Architecture Map: Documents the checkout, portal, subscription, and webhook API routes plus the shared idempotent purchase recorder and entitlement resolution logic.
- Dev Workflow: Covers the dev-stack script, per-branch Docker Postgres ports, fake payment paths via dev-grant or the CMUXDEV100 promotion code, and dogfooding reset procedures.
- Production Runbook: Details live provisioning, Vercel environment setup, staged database migrations, and feature flag gating for the Pro upgrade UI.
- Use Case: When adding a new yearly pricing tier, follow the Skill to create the Stripe price, update checkout routing, test with a 100%-off promotion code in test mode, and run the staged migration sequence before production deploy.
Quick Start
Read the cmux-billing skill before modifying any Stripe checkout, webhook, subscription, or Pro entitlement code in the cmux repository.