billing-automation — скилл для Claude Code: биллинг и установка
Скилл помогает проектировать подписочный биллинг, счета и возврат неуспешных платежей. Подойдёт для SaaS и сервисов с регулярными списаниями.
/plugin marketplace add wshobson/agents
/plugin install payment-processing@claude-code-workflowsЧто делает billing-automation
billing-automation разбирает регулярные платежи, выставление и отправку счетов, жизненный цикл подписки и возврат неуспешных списаний. Он также помогает считать пропорциональные суммы при смене тарифа, количества мест или периода оплаты.
Внутри описаны циклы биллинга, состояния подписки от trial до canceled, расписания повторных попыток, уведомления, льготные периоды и ограничения аккаунта. Есть пример на Python с BillingEngine и Subscription, а подробные паттерны находятся в references/details.md.
Скилл стоит поставить командам, которые собирают подписочный или usage-based сервис. Для разовой оплаты без подписок он будет лишним.
Какие задачи решает
- собрать биллинг для SaaS-подписок
- выставлять и отправлять счета автоматически
- обрабатывать просроченные и неуспешные платежи
- пересчитывать сумму при смене тарифа или числа мест
- учитывать налоговые начисления для платежей
Примеры запросов агенту
- «Спроектируй подписочный биллинг для SaaS с состояниями trial, active и past_due»
- «Добавь обработку неуспешного платежа: повторы, уведомление и grace period»
- «Рассчитай proration при переходе с plan_basic на plan_pro в середине цикла»
Как установить billing-automation
1Через маркетплейс плагинов
/plugin marketplace add wshobson/agents/plugin install payment-processing@claude-code-workflowsКоманда ставит плагин payment-processing целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill billing-automation -a claude-code3Вручную: положить файлы
~/.claude/skills/billing-automation/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/billing-automation/
1Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill billing-automation -a codex2Вручную: положить файлы
.agents/skills/billing-automation/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill billing-automation -a cursor2Вручную: положить файлы
.cursor/skills/billing-automation/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install wshobson/agents billing-automation2Вручную: положить файлы
.github/skills/billing-automation/SKILL.mdКомандой платформы
gemini skills install https://github.com/wshobson/agents --path plugins/payment-processing/skills/billing-automationВручную: положить файлы
.devin/skills/billing-automation/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора213
Весь набор →Похожие
Вопросы о billing-automation
Как установить billing-automation в Claude Code?
Выполните npx skills add wshobson/agents --skill billing-automation -a claude-code. Файл скилла появится по пути ~/.claude/skills/billing-automation/SKILL.md.
Что делает billing-automation?
Скилл помогает создавать системы регулярных платежей: подписки, счета, продление, dunning и proration. Он подходит для SaaS, usage-based billing и других сервисов с повторной оплатой.
На каких платформах работает billing-automation?
Скилл предназначен для Claude Code, Codex и Cursor. Для каждой платформы используется отдельная команда установки и путь к файлу скилла.
Исходный текст
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