billing-automation
Automated billing systems for SaaS subscription management, invoicing, and payment recovery. Use when implementing recurring billing, automating invoice generation, or handling failed payment dunning. Covers proration calculations, billing cycle management, usage-based billing, and tax compliance (VAT/GST).
Why use this skill?
Master recurring billing, proration, and dunning management. Automate invoice generation, tax compliance, and subscription lifecycles for your SaaS platform.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/anton-abyzov/sw-billing-automationWhat This Skill Does
The billing-automation skill is a robust toolkit designed to handle the complex lifecycle of SaaS recurring revenue. It provides an abstraction layer for managing subscription states, calculating prorated plan adjustments, and executing dunning workflows when payments fail. By integrating this skill, your OpenClaw agent gains the ability to calculate taxes (VAT/GST) based on customer location, manage billing cycle anchors, and automate the transition between trial, active, and past-due statuses. It serves as the primary engine for any application requiring sophisticated revenue management.
Installation
To install this skill, run the following command in your terminal:
clawhub install openclaw/skills/skills/anton-abyzov/sw-billing-automation
Ensure your development environment is authorized to pull from the openclaw/skills repository before running the installation command.
Use Cases
- Automated Invoicing: Trigger invoice generation the moment a subscription cycle renews.
- SaaS Plan Management: Handle mid-cycle upgrades or downgrades by calculating the exact monetary proration for the remaining balance of the period.
- Dunning Management: Configure automated retry schedules for failed credit card charges to recover lost revenue without manual intervention.
- Usage-Based Billing: Calculate billing totals based on external usage data, such as API calls or seat counts, and append these to the recurring monthly invoice.
- Tax Compliance: Automatically calculate and apply necessary VAT or GST rates based on the customer’s configured tax profile.
Example Prompts
- "Calculate the proration credit for a customer upgrading from the Basic plan ($20) to the Pro plan ($50) with 10 days remaining in their monthly cycle."
- "Set up a dunning workflow for user 'cus_999' that retries failed payments every 3 days, three times, before changing the status to 'past_due'."
- "Generate an invoice for subscription 'sub_abc' and include an additional usage fee of $15.50 for data storage overages."
Tips & Limitations
- Data Integrity: Always ensure that customer billing anchors are correctly set during subscription creation to avoid off-cycle charges.
- State Transitions: Do not manually update the 'status' variable; always use the built-in methods provided by the BillingEngine to ensure proper state management and logging.
- Limitations: This skill is focused on the logic of billing. You must integrate a separate payment gateway (e.g., Stripe, Braintree) to execute the actual financial transactions against credit card providers.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-anton-abyzov-sw-billing-automation": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution, external-api
Related Skills
network-engineer
Cloud network architect for VPC design, service mesh, zero-trust networking, load balancers, and CDN optimization. Use for network troubleshooting or connectivity issues.
jira-multi-project-mapper
Expert in mapping SpecWeave specs to multiple JIRA projects with intelligent project detection and cross-project coordination. Use when syncing to multiple JIRA projects (project-per-team, component-based), or managing bidirectional sync across team boundaries.
helm-chart-scaffolding
Design, organize, and manage Helm charts for templating and packaging Kubernetes applications with reusable configurations. Use when creating Helm charts, packaging Kubernetes applications, or implementing templated deployments.
performance-optimization
React Native performance with Hermes V1, FlashList, expo-image v2, concurrent rendering. Use for slow app, memory leaks, or FPS issues.
release-strategy-advisor
Release strategy advisor - detects brownfield patterns (tags, CI/CD, changelogs), recommends versioning strategy based on architecture. Creates release-strategy.md.