
Handles the gnarly parts of subscription billing that everyone underestimates. Generates invoices with proper proration when customers upgrade mid-cycle, manages dunning workflows with configurable retry schedules for failed payments, and processes billing cycles with tax calculations. The subscription state machine covers trial to active to past due transitions cleanly. Most useful when you're building SaaS billing from scratch or replacing a brittle homegrown system. The dunning management alone will save you from manually chasing down failed credit cards, and the proration logic handles edge cases like leap years and month-end billing anchors that break naive implementations.
$ npx -y skills add wshobson/agents --skill billing-automation --agent claude-codeInstalls into .claude/skills of the current project.
Master automated billing systems including recurring billing, invoice generation, dunning management, proration, and tax calculation.
Common Intervals:
trial → active → past_due → canceled
→ paused → resumed
Automated process to recover failed payments through:
Adjusting charges when:
from billing import BillingEngine, Subscription
# Initialize billing engine
billing = BillingEngine()
# Create subscription
subscription = billing.create_subscription(
customer_id="cus_123",
plan_id="plan_pro_monthly",
billing_cycle_anchor=datetime.now(),
trial_days=14
)
# Process billing cycle
billing.process_billing_cycle(subscription.id)
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
Sponsors