Skip to main content

usage-based-billing

Designs and audits usage-based/metered Stripe billing -- meters, usage records, tiered pricing, and credit burn-down. Use when the user mentions "usage-based billing", "metered billing", "pay per use", "meters", "credits", "consumption pricing", or "overage". For flat recurring, see pricing-products-audit.

跳到安装

来源信息

仓库
appeeky/stripe-skills
最近来源活动
2026年7月19日 10:10
检测到的 SKILL.md 语言
英语
星标
5
分支
1

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
usage-based-billing
description
Designs and audits usage-based/metered Stripe billing -- meters, usage records, tiered pricing, and credit burn-down. Use when the user mentions "usage-based billing", "metered billing", "pay per use", "meters", "credits", "consumption pricing", or "overage". For flat recurring, see pricing-products-audit.
metadata
{"version":"1.0.0"}
# Usage-Based Billing ## Stripe MCP Setup Requires **Stripe MCP** (https://docs.stripe.com/mcp). `GetMcpTools` before `CallMcpTool`. Paginate all lists (`limit: 100`, `starting_after` while `has_more`). Amounts in **cents**. Read-only for audits; confirm before writes. ## Concepts | Model | Setup | |-------|-------| | Pure metered | Meter + usage-based price; bill actual usage | | Prepaid credits | Credit grant burns down with usage | | Hybrid | Base subscription + overage above included quota | Modern Stripe uses **Meters** + **Meter Events** (`billing/meter-events`), replacing legacy usage records. ## Workflow 1. Review prices: `GetPrices` -- look for metered usage_type / meter-linked 2. Check meter definitions (Dashboard -> Billing -> Meters) 3. Verify usage reporting path in code (meter events sent on each usage) ## Design Checklist - [ ] Meter defined with aggregation (sum/count/last) - [ ] Price linked to meter - [ ] Usage events sent reliably (idempotent, retried) - [ ] Included quota vs overage tiers defined - [ ] Customer-facing usage visibility ## Output Template ``` Usage Billing Audit Metered prices: [n] Meters: [list + aggregation] Usage reporting: [reliable / gaps] Model: [pure metered / credits / hybrid] Recommendation: [tiering / quota / reliability fix] ``` For complex credit/commit models, note Metronome + Stripe pattern (see Stripe docs).
在 GitHub 查看