billing-automation
Automate subscription billing workflows
Recurring billing systems are complex to design and maintain. This skill provides clear patterns for subscriptions, invoicing, dunning, proration, and taxes.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Test it
Using "billing-automation". Create a billing cycle workflow for monthly subscriptions with dunning.
Expected outcome:
- Check if billing period ended and generate invoice
- Attempt payment and mark invoice paid on success
- On failure, mark past due and start retry schedule
- Send notifications and cancel after final retry
Using "billing-automation". How do I calculate proration when a customer upgrades mid-month?
Expected outcome:
- Calculate days used on current plan
- Calculate remaining days in billing period
- Credit unused portion of old plan
- Charge prorated amount for new plan
- Apply net difference to next invoice
Using "billing-automation". What tax rates apply to EU customers versus US customers?
Expected outcome:
- EU: VAT rates by country (GB 20%, DE 19%, FR 20%)
- US: State-level sales tax (CA 7.25%, NY 4%)
- AU: GST at 10%
- Non-listed regions: No tax calculation
Security Audit
SafePure documentation skill containing only SKILL.md with billing patterns and sample code. No executable scripts, file system access, environment variable reading, or actual network calls. All 47 static findings are false positives: markdown code block backticks misidentified as Ruby execution, basic arithmetic misidentified as weak crypto, placeholder URLs in templates, and billing state management misidentified as reconnaissance.
Risk Factors
🌐 Network access (2)
⚙️ External commands (17)
Quality Score
What You Can Build
Launch subscriptions
Set up basic subscription billing, trials, and renewals for a new product.
Improve dunning
Design a retry schedule and notifications for failed payments.
Model proration
Estimate credits and charges for mid-cycle plan changes.
Try These Prompts
Design a subscription lifecycle with trial, active, past due, and canceled states. Include key transitions and required data fields.
Outline invoice generation steps with line items, tax, and totals. Include data inputs and validation checks.
Propose a dunning schedule with retries and email notifications. Explain how to handle recovery and cancellation.
Describe how to track usage events and calculate tiered pricing charges for a billing period.
Best Practices
- Keep an audit trail of billing events
- Notify customers at each billing change
- Validate tax rules by jurisdiction
Avoid
- Hardcoding billing dates and intervals
- Canceling after a single failed payment
- Skipping proration when plans change mid-cycle
Frequently Asked Questions
Is this compatible with Claude, Codex, and Claude Code?
What are the limits of the provided code?
Can I integrate it with Stripe or other processors?
Does it access or store sensitive data?
What if my billing cycle is custom?
How does it compare to a full billing platform?
Developer Details
Author
wshobsonLicense
MIT
Repository
https://github.com/wshobson/agents/tree/main/plugins/payment-processing/skills/billing-automationRef
main
File structure
📄 SKILL.md