billing-automation – Agents & Automation skill for AI agents
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.
Install the billing-automation skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/billing-automation-a4c0b.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /billing-automation – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/billing-automation-a4c0b.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $billing-automation – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/billing-automation-a4c0b.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /billing-automation – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/billing-automation-a4c0b.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /billing-automation – then describe the task you want done.
SKILL.md content
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 → resumed3. 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.
Related skills
- ai-agents-architect – Expert in designing and building autonomous AI agents. Masters tool use, memory systems…
- block-no-verify-hook – Configure a PreToolUse hook to prevent AI agents from skipping git pre-commit hooks with…
- ar-resume – Resume a paused experiment. Checkout the experiment branch, read results history…
- ar-run – Run a single experiment iteration. Edit the target file, evaluate, keep or discard. Use…
- ai-dev-jobs-mcp – Search indexed AI and ML jobs, inspect listings and employers, match roles, and view…
- ai-engineer – Build production-ready LLM applications, advanced RAG systems, and intelligent agents…
- changelog-automation – Automate changelog generation from commits, PRs, and releases following Keep a Changelog…
- ar-status – Show experiment dashboard with results, active loops, and progress. Use when the user…