Billing Automation skill for Claude
Build automated billing systems for recurring payments, invoicing, subscription lifecycle, and dunning management.
When Claude uses it
Use when implementing subscription billing, automating invoicing, or managing recurring payment systems.
Billing Automation SKILL.md
The full skill file from wshobson/agents (MIT).
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
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.
How to install Billing Automation
Claude Code
Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):
npx degit wshobson/agents/plugins/payment-processing/skills/billing-automation#main ~/.claude/skills/billing-automationCodex
npx degit wshobson/agents/plugins/payment-processing/skills/billing-automation#main ~/.codex/skills/billing-automationClaude.ai and Claude Desktop
Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.
Frequently asked questions
+What does the Billing Automation skill do?
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.
+How do I install Billing Automation in Claude Code?
Copy the skill folder into ~/.claude/skills/billing-automation, for example with "npx degit wshobson/agents/plugins/payment-processing/skills/billing-automation#main ~/.claude/skills/billing-automation". Claude Code loads it automatically and uses it when a task matches.
+Does Billing Automation work with ChatGPT or Codex?
Yes. Billing Automation uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/billing-automation. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.
+Is Billing Automation free?
Billing Automation is published on GitHub by wshobson under the MIT license, which allows free use.