billing-automation – skill Agent & Tự động hóa cho agent AI
Xây dựng hệ thống thanh toán tự động cho thanh toán định kỳ, hóa đơn, vòng đời subscription và quản lý dunning. Dùng khi triển khai billing theo subscription, tự động hóa hóa đơn, hoặc quản lý hệ thống thanh toán định kỳ.
Cài skill billing-automation bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/billing-automation-a4c0b.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /billing-automation – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/billing-automation-a4c0b.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $billing-automation – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/billing-automation-a4c0b.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /billing-automation – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/billing-automation-a4c0b.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /billing-automation – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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 → resumed3. 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.
Skill liên quan
- ai-agents-architect – Chuyên gia thiết kế và xây dựng AI agent tự trị. Thành thạo sử dụng công cụ, hệ thống bộ…
- block-no-verify-hook – Cấu hình PreToolUse hook để ngăn AI agent bỏ qua git pre-commit hook bằng --no-verify và…
- ar-resume – Tiếp tục một thí nghiệm đang tạm dừng. Checkout nhánh thí nghiệm, đọc lịch sử kết quả và…
- ar-run – Chạy một vòng lặp thí nghiệm. Sửa file mục tiêu, đánh giá, rồi giữ hoặc loại bỏ kết quả…
- ai-dev-jobs-mcp – Tìm kiếm việc làm AI và ML đã được lập chỉ mục, xem tin tuyển dụng và nhà tuyển dụng…
- ai-engineer – Xây dựng ứng dụng LLM sẵn sàng production, hệ thống RAG nâng cao và agent thông minh…
- changelog-automation – Tự động tạo changelog từ commit, PR và release theo định dạng Keep a Changelog. Dùng khi…
- ar-status – Hiển thị bảng điều khiển thử nghiệm với kết quả, vòng lặp đang chạy và tiến độ. Dùng khi…