---
title: "継続課金を自動化する（エージェント用スキル） | Orchestor"
description: "継続決済、請求書発行、サブスクリプションのライフサイクル、支払い督促を自動化する課金システムを構築します。サブスクリプション課金の実装、請求書発行の自動化、継続決済システムの管理に使用します。wshobson/agents が公開している「継続課金を自動化する」の使い方を確認できます。"
canonical_url: "https://www.orchestor.io/ja/skills/wshobson/agents/billing-automation"
markdown_url: "https://www.orchestor.io/ja/skills/wshobson/agents/billing-automation.md"
---

[c96b5f6](https://github.com/wshobson/agents/commit/c96b5f6552dba32e4492307493ee613581430715)[原文を開く](https://github.com/wshobson/agents/blob/c96b5f6552dba32e4492307493ee613581430715/plugins/payment-processing/skills/billing-automation/SKILL.md)

wshobson2026/11/24

原文 (選択中)

未翻訳

プレビュー (選択中)

79 行（空行を除く 55 行） · 1.85 KB原文

```yaml
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 details.md. Read that file when the navigation tier above is insufficient.

## Structured data

```json
[
  [
    {
      "@context": "https://schema.org",
      "@type": "Organization",
      "name": "Orchestor",
      "url": "https://www.orchestor.io",
      "sameAs": [
        "https://orchestor.io",
        "https://www.orchestor.io",
        "https://docs.orchestor.io"
      ],
      "@id": "https://www.orchestor.io/#organization",
      "alternateName": [
        "オーケスター"
      ],
      "logo": "https://www.orchestor.io/images/common/ogp/orchestor-ogp.png",
      "parentOrganization": {
        "@type": "Organization",
        "name": "ドットメディア株式会社",
        "url": "https://www.dotmedia.co.jp"
      }
    },
    {
      "@context": "https://schema.org",
      "@type": "WebSite",
      "url": "https://www.orchestor.io",
      "name": "Orchestor",
      "description": "Orchestor で画像・動画・音声を作り、参照素材を Remix できます。",
      "@id": "https://www.orchestor.io/#website",
      "alternateName": [
        "オーケスター"
      ],
      "inLanguage": "ja",
      "publisher": {
        "@id": "https://www.orchestor.io/#organization"
      }
    }
  ],
  {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "@id": "https://www.orchestor.io/skills/wshobson/agents/billing-automation#breadcrumb",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Orchestor",
        "item": "https://www.orchestor.io/"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "スキル",
        "item": "https://www.orchestor.io/skills"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "継続課金を自動化する",
        "item": "https://www.orchestor.io/skills/wshobson/agents/billing-automation"
      }
    ]
  }
]
```

---

[Documentation index](https://www.orchestor.io/llms.txt)
