billing-automation
できること
このツールは、サブスクリプションなど、定期的な支払いを行う自動課金システムの作成に役立ちます。請求書の発行、支払いに失敗した場合の対応、プランを変更したときの日割り計算などを処理します。
使う場面
- ✓オンラインサービスのサブスクリプションの仕組みを構築するとき。
- ✓請求書を顧客に自動で送信したいとき。
- ✓支払いに失敗した場合のリカバリーが必要なとき。
スキルのリンク
https://github.com/wshobson/agents/blob/main/plugins/payment-processing/skills/billing-automation/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“月額課金で、請求書をメールで送信するストリーミングサービス向けの課金システムを構築してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このツールは、請求サイクル(月次、年次など)を整理し、サブスクリプションの状態(有効、解約済みなど)を管理します。また、支払いに失敗した場合の回収処理を自動化し、契約期間の途中で顧客がプランを変更した場合には請求額を調整します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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.
よくある質問
「ダニング管理」とは何ですか?
支払いに失敗した際に、支払いの再試行と顧客への通知を自動で行う処理のことです。
「日割り計算(プロレーション)」とは何ですか?
顧客が請求期間の途中でプランやサービスの数量を変更したときに、期間に応じて按分した金額を計算することです。
請求サイクルにはどのような種類がありますか?
利用状況に応じて、月次、年次、四半期、週次、またはカスタムの周期を設定できます。
詳細
作者による元の説明
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.
repo: wshobson/agents
人気
- GitHubのスター
- 41k
- ランキング
- #6744
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
screen-reader-testing
41kエージェントにスクリーンリーダーを使ってWebサイトをテストさせ、アクセシビリティを確認します。
wcag-audit-patterns
41kエージェントがWebサイトのアクセシビリティを監査し、WCAGガイドラインに沿って問題を修正できるようにします。
multi-reviewer-patterns
41kエージェントが複数のコードレビューを並行して調整できるようにします。指摘事項の重複を排除し、レポートにまとめます。
parallel-debugging
41kエージェントが並行調査と根本原因分析を使って、複雑な問題をデバッグできるようにします。