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-automation

Codex

npx degit wshobson/agents/plugins/payment-processing/skills/billing-automation#main ~/.codex/skills/billing-automation

Claude.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.

Related finance skills

  1. Finance Skills

    Pick the right finance skill: ratios, DCF, forecasts (financial-analyst), ARR, churn, CAC, LTV (saas-metrics-coach), month-end-close.

    alirezarezvani/claude-skills★ 30k
  2. Pricing

    When the user wants to set pricing and packaging, or asks what to charge, whether to raise prices, or how to move existing customers:…

    coreyhaines31/marketingskills★ 61k
  3. Invoice Organizer

    Automatically organizes invoices and receipts for tax preparation by reading messy files, extracting key information, renaming them…

    ComposioHQ/awesome-claude-skills★ 80k
  4. Defi Protocol Templates

    Implement DeFi protocols with production-ready templates for staking, AMMs, governance, and flash loans.

    wshobson/agents★ 43k
  5. Paypal Integration

    Integrate PayPal payment processing with support for express checkout, subscriptions, and refund management.

    wshobson/agents★ 43k
  6. Startup Financial Modeling

    Build comprehensive 3-5 year financial models with revenue projections, cost structures, cash flow analysis, and scenario planning for…

    wshobson/agents★ 43k
  7. Stripe Integration

    Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks.

    wshobson/agents★ 43k
  8. Churn Prevention

    Use when designing a cancel flow, save offers, exit surveys or dunning emails, or cutting failed-payment churn.

    alirezarezvani/claude-skills★ 30k
  9. Financial Analyst

    Analyze financial statements, value a company with a DCF, explain budget variance, build rolling forecasts.

    alirezarezvani/claude-skills★ 30k

See all finance skills →

More skills from wshobson

  1. Binary Analysis Patterns

    Master binary analysis patterns including disassembly, decompilation, control flow analysis, and code pattern recognition.

    wshobson/agents★ 43k
  2. Block No Verify Hook

    Configure a PreToolUse hook to prevent AI agents from skipping git pre-commit hooks with --no-verify and other bypass flags.

    wshobson/agents★ 43k
  3. Brand Landingpage

    Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a…

    wshobson/agents★ 43k

All skills by wshobson →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.