Skip to main content
skill Claude Code CX Codex Cursor

billing-automation — Claude Code skill: billing and setup

This skill helps build subscription billing, invoicing, and failed-payment recovery. Use it for SaaS products and services with recurring charges.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add wshobson/agents
/plugin install payment-processing@claude-code-workflows
Open on GitHub

What billing-automation does

billing-automation covers recurring payments, invoice creation and delivery, subscription states, renewals, and dunning. It also explains proration when a customer changes plans, seats, or billing frequency, plus tax calculation for sales tax, VAT, and GST.

The skill lays out billing cycles and subscription transitions from trial to cancellation. It includes retry schedules, customer notifications, grace periods, account restrictions, and a Python example using BillingEngine and Subscription. More detailed patterns are in references/details.md.

Install it when your project needs subscription or usage-based billing. Skip it for a service that only handles one-off payments.

What it helps with

  • design a billing flow for SaaS subscriptions
  • generate and deliver invoices automatically
  • recover failed recurring payments with dunning
  • prorate charges after plan or seat changes
  • handle tax calculations for recurring billing

Example prompts for the agent

  • “Design a SaaS billing flow with trial, active, past_due, and canceled states.”
  • “Add failed-payment recovery with retry schedules, customer notices, and a grace period.”
  • “Calculate proration when a customer changes from plan_basic to plan_pro mid-cycle.”

How to install billing-automation

1Plugin marketplace

/plugin marketplace add wshobson/agents
/plugin install payment-processing@claude-code-workflows

This installs the whole payment-processing plugin with all its skills

2Skills CLI (Vercel)

npx skills add wshobson/agents --skill billing-automation -a claude-code

3Manually: put the files in place

~/.claude/skills/billing-automation/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/billing-automation/

From the same set213

The whole set →
typescript-advanced-types Seth Hobson Guides an agent through advanced TypeScript types, from generics to conditional and mapped types. Use it for typed libraries, API clients, or strict configuration objects. Claude Code CX Codex Cursor 92,169installs tailwind-design-system Seth Hobson Helps build design systems with Tailwind CSS v4, from theme tokens to component variants. Use it when a project needs shared UI patterns. Claude Code CX Codex Cursor 70,180installs brand-landingpage Travis D. Elliott This skill interviews you about the product and its visual direction, then builds a landing page through Stitch. Use it when there’s no established design yet. Claude Code CX Codex Cursor 39,476installs python-testing-patterns Seth Hobson This skill guides Python testing with pytest, fixtures and mocks. Use it when building a test suite or tracking down failing checks. Claude Code CX Codex Cursor 36,943installs python-performance-optimization Seth Hobson This skill profiles Python code to locate CPU and memory bottlenecks. Use it when an application responds slowly or consumes too many resources. Claude Code CX Codex Cursor 35,675installs nextjs-app-router-patterns Seth Hobson This skill covers Next.js App Router patterns for rendering, routing, and data fetching. Use it when starting an App Router project or moving from Pages Router. Claude Code CX Codex Cursor 32,529installs api-design-principles Seth Hobson Use this skill to plan or review REST and GraphQL APIs. It helps when writing a specification or setting API conventions for a team. Claude Code CX Codex Cursor 30,348installs code-review-excellence Seth Hobson This skill guides pull request reviews, catches logic and security issues, and helps teams give specific feedback. Use it for review standards or developer mentoring. Claude Code CX Codex Cursor 30,193installs

Similar

developing-genkit-python official google A skill for building Genkit apps in Python: generation, streaming, tools, flows and agents. Useful when your agent fumbles imports or Genkit API calls. Claude Code Gemini CLI CX Codex 3,600installs developing-genkit-js official google This skill helps build and troubleshoot Genkit AI apps in Node.js and TypeScript. Use it for flows, agents, tools, and Genkit API errors. Claude Code Gemini CLI CX Codex 3,600installs flowstudio-power-automate-mcp official github Connects GitHub Copilot to Power Automate through FlowStudio MCP, with auth setup, tool discovery, and oversized-response handling. GitHub Copilot 4,200installs mcp-builder official anthropics This skill walks through building an MCP server in TypeScript or Python, from reading the protocol spec to writing tests and evaluation questions. Claude Code Claude.ai 130,949installs google-agents-cli-adk-code official Google A reference skill for building ADK agents with tools, callbacks, state, and workflows. Use it when an agent project needs concrete API patterns or code examples. Claude Code CX Codex Cursor +1 511,400installs lark-im larksuite This skill lets an agent work with Lark IM messages, chats, files, and interactive cards. Use it when coding tasks need access to team conversations. Claude Code CX Codex Cursor +1 472,300installs lark-event larksuite Listens to Lark/Feishu events and streams them as NDJSON. Use it for bots, message processing, and long-running subscribers. Claude Code CX Codex Cursor +1 466,200installs caveman-discover JuliusBrussee Finds and labels every LLM workflow in your repository so Caveman Cloud breaks down spend by actual job rather than grouping everything into one bucket. Claude Code CX Codex Cursor +1 103,500installs

Questions about billing-automation

How do I install billing-automation in Claude Code?

Run npx skills add wshobson/agents --skill billing-automation -a claude-code. The skill file will be available at ~/.claude/skills/billing-automation/SKILL.md.

What does billing-automation do?

It guides the design of recurring billing systems with subscriptions, invoices, renewals, dunning, and proration. The use cases include SaaS and usage-based billing.

Which platforms support billing-automation?

The skill is available for Claude Code, Codex, and Cursor. Each platform has its own install command and skill path.

Source text

SKILL.md · MIT
---
name: billing-automation
description: 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.
---

# 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

```python
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.

© Seth Hobson · MIT · wshobson/agents

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor