Skills · Business & ops

Billing Automation

Unverified30/40

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.

Originally by wshobson · MIT

Claude CodePartialHas SKILL.md but declares no allowed-tools — Claude Code will ask for permission each time
CursorPartialPlain prose you can paste in — but no Cursor rules file
CodexPartialPlain prose you can paste in — but no AGENTS.md
Gemini CLIPartialPlain prose you can paste in
CopilotPartialPlain prose you can paste in — but no Copilot instructions file
npx agentalley add billing-automation

This command does not work yet — the CLI is still being built. Until then, use Raw in the reader below to take the file.

Who is stuck, and on what

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.

The whole source

No sign-in, no blur, nothing truncated
billing-automation/SKILL.md80 lines1.9 KBRawView on GitHub
Frontmatter — 2 properties
namebilling-automation
descriptionBuild automated billing systems for recurring payments, invoicing, subscription lifecycle, and dunning management. Use when implementing subscription billing, automating invoicing, or managing recurring payment systems.
1---
2name: billing-automation
3description: 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.
4---A5No allowed-tools declared — no way to tell what this skill may touch
5 
6# Billing Automation
7 
8Master automated billing systems including recurring billing, invoice generation, dunning management, proration, and tax calculation.
9 
10## When to Use This Skill
11 
12- Implementing SaaS subscription billing
13- Automating invoice generation and delivery
14- Managing failed payment recovery (dunning)
15- Calculating prorated charges for plan changes
16- Handling sales tax, VAT, and GST
17- Processing usage-based billing
18- Managing billing cycles and renewals
19 
20## Core Concepts
21 
22### 1. Billing Cycles
23 
24**Common Intervals:**
25 
26- Monthly (most common for SaaS)
27- Annual (discounted long-term)
28- Quarterly
29- Weekly
30- Custom (usage-based, per-seat)
31 
32### 2. Subscription States
33 
34```
35trial → active → past_due → canceled
36 → paused → resumed
37```
38 
39### 3. Dunning Management
40 
41Automated process to recover failed payments through:
42 
43- Retry schedules
44- Customer notifications
45- Grace periods
46- Account restrictions
47 
48### 4. Proration
49 
50Adjusting charges when:
51 
52- Upgrading/downgrading mid-cycle
53- Adding/removing seats
54- Changing billing frequency
55 
56## Quick Start
57 
58```python
59from billing import BillingEngine, Subscription
60 
61# Initialize billing engine
62billing = BillingEngine()
63 
64# Create subscription
65subscription = billing.create_subscription(
66 customer_id="cus_123",
67 plan_id="plan_pro_monthly",
68 billing_cycle_anchor=datetime.now(),
69 trial_days=14
70)
71 
72# Process billing cycle
73billing.process_billing_cycle(subscription.id)
74```
75 
76## Detailed patterns and worked examples
77 
78Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.
79 
80 

Reviews

Installed this one?Write the first review and take the Trailblazer badge.

Reviews only open after a real install, so this is empty — and we leave it empty rather than invent one.

Alternatives

Also in Business & ops