billing-automation — Claude Code skill: billing and setup
This skill helps build subscription billing, invoicing, and failed-payment recovery. Use it for SaaS products and services with recurring charges.
/plugin marketplace add wshobson/agents
/plugin install payment-processing@claude-code-workflowsWhat billing-automation does
billing-automation covers recurring payments, invoice creation and delivery, subscription states, renewals, and dunning. It also explains proration when a customer changes plans, seats, or billing frequency, plus tax calculation for sales tax, VAT, and GST.
The skill lays out billing cycles and subscription transitions from trial to cancellation. It includes retry schedules, customer notifications, grace periods, account restrictions, and a Python example using BillingEngine and Subscription. More detailed patterns are in references/details.md.
Install it when your project needs subscription or usage-based billing. Skip it for a service that only handles one-off payments.
What it helps with
- design a billing flow for SaaS subscriptions
- generate and deliver invoices automatically
- recover failed recurring payments with dunning
- prorate charges after plan or seat changes
- handle tax calculations for recurring billing
Example prompts for the agent
- “Design a SaaS billing flow with trial, active, past_due, and canceled states.”
- “Add failed-payment recovery with retry schedules, customer notices, and a grace period.”
- “Calculate proration when a customer changes from plan_basic to plan_pro mid-cycle.”
How to install billing-automation
1Plugin marketplace
/plugin marketplace add wshobson/agents/plugin install payment-processing@claude-code-workflowsThis installs the whole payment-processing plugin with all its skills
2Skills CLI (Vercel)
npx skills add wshobson/agents --skill billing-automation -a claude-code3Manually: put the files in place
~/.claude/skills/billing-automation/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/billing-automation/
1Skills CLI (Vercel)
npx skills add wshobson/agents --skill billing-automation -a codex2Manually: put the files in place
.agents/skills/billing-automation/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add wshobson/agents --skill billing-automation -a cursor2Manually: put the files in place
.cursor/skills/billing-automation/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install wshobson/agents billing-automation2Manually: put the files in place
.github/skills/billing-automation/SKILL.mdPlatform CLI
gemini skills install https://github.com/wshobson/agents --path plugins/payment-processing/skills/billing-automationManually: put the files in place
.devin/skills/billing-automation/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set213
The whole set →Similar
Questions about billing-automation
How do I install billing-automation in Claude Code?
Run npx skills add wshobson/agents --skill billing-automation -a claude-code. The skill file will be available at ~/.claude/skills/billing-automation/SKILL.md.
What does billing-automation do?
It guides the design of recurring billing systems with subscriptions, invoices, renewals, dunning, and proration. The use cases include SaaS and usage-based billing.
Which platforms support billing-automation?
The skill is available for Claude Code, Codex, and Cursor. Each platform has its own install command and skill path.
Source text
SKILL.md · MIT
---
name: billing-automation
description: Build automated billing systems for recurring payments, invoicing, subscription lifecycle, and dunning management. Use when implementing subscription billing, automating invoicing, or managing recurring payment systems.
---
# Billing Automation
Master automated billing systems including recurring billing, invoice generation, dunning management, proration, and tax calculation.
## When to Use This Skill
- Implementing SaaS subscription billing
- Automating invoice generation and delivery
- Managing failed payment recovery (dunning)
- Calculating prorated charges for plan changes
- Handling sales tax, VAT, and GST
- Processing usage-based billing
- Managing billing cycles and renewals
## Core Concepts
### 1. Billing Cycles
**Common Intervals:**
- Monthly (most common for SaaS)
- Annual (discounted long-term)
- Quarterly
- Weekly
- Custom (usage-based, per-seat)
### 2. Subscription States
```
trial → active → past_due → canceled
→ paused → resumed
```
### 3. Dunning Management
Automated process to recover failed payments through:
- Retry schedules
- Customer notifications
- Grace periods
- Account restrictions
### 4. Proration
Adjusting charges when:
- Upgrading/downgrading mid-cycle
- Adding/removing seats
- Changing billing frequency
## Quick Start
```python
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 patterns and worked examples
Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.
© Seth Hobson · MIT · wshobson/agents