All skills
wshobson avatar

/billing-automation

@be57c0b
by Seth Hobsonwshobson/agents40k stars
4,281

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.

Use this Skill: https://skilld.dev/gh/wshobson/agents/billing-automation

This session only. Nothing lands on disk.

SKILL.md

≈60 tokens always: the name and description. ≈408 when used: this file. ≈3.9k more on demand in 1 file.

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.

Source: SKILL.md on GitHub

1 warning16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill provides guidelines and reference implementations for building automated billing systems, including subscription lifecycle management, dunning processes, and tax calculation. No security concerns or malicious patterns were detected.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: MEDIUM · 1 issue

  • Runlayer6mo

    1 file scanned · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at be57c0b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 4 months ago
  • billing
  • subscriptions
  • invoicing
  • payments
  • dunning
  • saas
  • recurring
  • tax
  • proration

README badge

README badge for wshobson/agents/billing-automation

Builds automated billing systems for recurring payments, invoicing, subscription lifecycle management, and failed payment recovery. Covers SaaS subscription billing, invoice generation, dunning (payment retry), proration for plan changes, and tax calculation across multiple billing cycles.

Generated from the current SKILL.md.

What programming languages does this skill support?
The skill includes Python examples in the quick start, but the SKILL.md does not specify language constraints or examples for other languages.
Does this skill handle tax calculation?
Yes. The skill mentions handling sales tax, VAT, and GST as part of its core concepts, though specific implementation details are in the referenced details.md file.
Can this skill manage usage-based billing?
Yes. Usage-based billing is listed as a use case, and custom billing cycles are mentioned as an option alongside monthly, annual, quarterly, and weekly intervals.
Does this skill support dunning (failed payment recovery)?
Yes. Dunning management is a core concept that includes retry schedules, customer notifications, grace periods, and account restrictions for recovering failed payments.
Can this handle prorated charges for mid-cycle changes?
Yes. The skill includes proration for plan upgrades/downgrades mid-cycle, seat additions/removals, and billing frequency changes.

Generated from the current SKILL.md. These answers refresh after source changes.