A skill your agent uses when designing or implementing API monetization strategies - usage-based pricing, rate limiting, developer tier management, Stripe metering integration, or API billing systems.
Install the "api-monetization" agent skill from https://github.com/majiayu000/claude-skill-registry/tree/main/skills/business/api-monetization into .claude/skills/api-monetization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-monetization", then confirm the skill loads.
Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
skills CLI
$ npx skills add majiayu000/claude-skill-registry --skill api-monetization -a codex
Project install goes to .agents/skills/; add -g for ~/.codex/skills/.
Install the "api-monetization" agent skill from https://github.com/majiayu000/claude-skill-registry/tree/main/skills/business/api-monetization into .agents/skills/api-monetization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-monetization", then confirm the skill loads.
Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add majiayu000/claude-skill-registry --skill api-monetization -a cursor
Project install goes to .agents/skills/; add -g for ~/.cursor/skills/.
Install the "api-monetization" agent skill from https://github.com/majiayu000/claude-skill-registry/tree/main/skills/business/api-monetization into .cursor/skills/api-monetization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-monetization", then confirm the skill loads.
Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
skills CLI
$ npx skills add majiayu000/claude-skill-registry --skill api-monetization -a gemini-cli
Project install goes to .agents/skills/; add -g for ~/.gemini/skills/.
Install the "api-monetization" agent skill from https://github.com/majiayu000/claude-skill-registry/tree/main/skills/business/api-monetization into .gemini/skills/api-monetization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-monetization", then confirm the skill loads.
Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
skills CLI
$ npx skills add majiayu000/claude-skill-registry --skill api-monetization -a github-copilot
Project install goes to .agents/skills/; add -g for ~/.copilot/skills/.
Install the "api-monetization" agent skill from https://github.com/majiayu000/claude-skill-registry/tree/main/skills/business/api-monetization into .github/skills/api-monetization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-monetization", then confirm the skill loads.
GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add majiayu000/claude-skill-registry --skill api-monetization -a opencode
OpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
Install the "api-monetization" agent skill from https://github.com/majiayu000/claude-skill-registry/tree/main/skills/business/api-monetization into .opencode/skills/api-monetization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-monetization", then confirm the skill loads.
OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Facts
Skill name
api-monetization
GitHub stars
666
Used in
1 other repo
Token cost
~3.5k tokens
SKILL.md length
1,223 words
Files
2
Skills in repo
1,273
Repo updated
First seen
Licence
MIT
At a glance
A skill your agent uses when designing or implementing API monetization strategies - usage-based pricing, rate limiting, developer tier management, Stripe metering integration, or API billing systems.
Works in 5 steps: Meter before you bill - Never charge for… → Tiers define the product, not just the… → Rate limits are a feature, not just… → …
Implementing API monetization strategies - usage-based pricing
SKILL.md covers When to use this skill, Key principles, Core concepts and Common tasks, plus 4 more sections
Needs STRIPE_SECRET_KEY
What it does
API Monetization is an agent skill from majiayu000/claude-skill-registry. Use this skill when designing or implementing API monetization strategies - usage-based pricing, rate limiting, developer tier management, Stripe metering integration, or API billing systems. Triggers on tasks involving API pricing models, metered billing, per-request charging, quota enforcement, developer portal tiers, overage handling, and Stripe usage records.
Its SKILL.md is about 3.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `metadata.json`).
It sits in Backend & APIs, covering Pricing strategy, Rate limiting and Payments and billing. It works with Stripe. The repository describes itself as: Searchable Claude Code skills catalog with source-linked guides and generated registry artifacts. The licence is MIT.
When your agent uses it
Implementing API monetization strategies - usage-based pricing
Developer tier management
Stripe metering integration
API billing systems
Example prompts
“/api-monetization”
Requirements
A credential in STRIPE_SECRET_KEY
Workflow steps
5 steps, taken from the first numbered list in SKILL.md.
1Meter before you bill - Never charge for usage you cannot accurately measure. Instrument every billable endpoint with reliable counters…
2Tiers define the product, not just the price - Each developer tier should differ in meaningful capabilities (rate limits, endpoints…
3Rate limits are a feature, not just protection - Rate limits serve dual duty: they protect infrastructure AND enforce tier boundaries…
4Idempotent usage reporting - Usage records must be idempotent. Network retries, duplicate webhook deliveries, and reprocessed queues…
5Graceful degradation over hard cutoffs - When a customer hits a quota, prefer throttling or overage billing over immediately blocking…
What it can do on your machine
Read from SKILL.md and the folder at commit 2d14a69. It shows what the files ask for, not the result of running them.
Tool permissions
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Runs code
No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript and yaml).
From the folder's file list and the shell code blocks in SKILL.md.
Network
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Credentials
Names these keys or tokens, usually read from environment variables:
STRIPE_SECRET_KEY
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Context cost
API Monetization loads about 3.5k tokens when it runs. Until then it costs about 96 tokens; SKILL.md has 1,223 words of instructions outside code blocks.
Always· name and description, kept in context so the agent knows when to use it
~96
When it runs· the whole SKILL.md, loaded when a task matches
~3.5k
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
Safety
Auto-check passed
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
Download SKILL.mdSave it as .claude/skills/api-monetization/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
api-monetization
description
Use this skill when designing or implementing API monetization strategies - usage-based pricing, rate limiting, developer tier management, Stripe metering integration, or API billing systems. Triggers on tasks involving API pricing models, metered billing, per-request charging, quota enforcement, developer portal tiers, overage handling, and Stripe usage records.
When this skill is activated, always start your first response with the 🧢 emoji.
API Monetization
API monetization is the practice of turning API usage into a revenue stream
through pricing models, metering, and billing infrastructure. It spans from
defining developer tiers and rate limits to integrating with payment providers
like Stripe for usage-based billing. This skill covers the full stack: pricing
model design, quota enforcement, metered usage tracking, and Stripe integration
for automated invoicing.
When to use this skill
Trigger this skill when the user:
Wants to design a pricing model for a public or partner API
Needs to implement usage-based or metered billing for API calls
Asks about rate limiting strategies tied to paid tiers
Wants to integrate Stripe metering or usage records into an API
Needs to build a developer tier system (free, pro, enterprise)
Asks about tracking API consumption per customer
Wants to handle overage billing or throttling for quota breaches
Needs to design a developer portal with tiered access
Do NOT trigger this skill for:
General Stripe payments unrelated to API billing (use a Stripe skill)
API gateway configuration without a monetization component
Key principles
Meter before you bill - Never charge for usage you cannot accurately measure. Instrument every billable endpoint with reliable counters before enabling paid tiers. Lost meter events mean lost revenue or customer disputes.
Tiers define the product, not just the price - Each developer tier should differ in meaningful capabilities (rate limits, endpoints available, SLA, support level), not just volume. This prevents a race-to-the-bottom on price.
Rate limits are a feature, not just protection - Rate limits serve dual duty: they protect infrastructure AND enforce tier boundaries. Design them as a first-class part of the product, with clear headers and upgrade paths.
Idempotent usage reporting - Usage records must be idempotent. Network retries, duplicate webhook deliveries, and reprocessed queues should never double-count usage. Use idempotency keys on every usage report call.
Graceful degradation over hard cutoffs - When a customer hits a quota, prefer throttling or overage billing over immediately blocking access. Hard cutoffs break production systems and destroy trust.
Core concepts
Pricing models fall into three categories: flat-rate (fixed monthly fee per tier), usage-based (pay per API call or resource unit), and hybrid (base fee plus usage overage). Most successful API businesses use hybrid pricing because it provides revenue predictability while rewarding growth.
Metering is the infrastructure that counts billable events. A meter sits between the API gateway and the billing system. It must be durable (no lost events), idempotent (no double-counts), and near-real-time (customers see current usage). Common implementations use a message queue (Kafka, SQS) feeding an aggregation service that reports to Stripe.
Developer tiers are named bundles of quotas, rate limits, and feature flags. A typical structure is Free (heavily rate-limited, basic endpoints), Pro (higher limits, all endpoints, email support), and Enterprise (custom limits, SLA, dedicated support). Each tier maps to a Stripe Price with optional metered components.
Rate limiting enforces tier boundaries at the API gateway level. The standard approach is token bucket or sliding window per API key, returning 429 Too Many Requests with Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers.
Stripe metering connects API usage to invoices. The flow is: create a metered Price on a Product, subscribe customers, then report usage via stripe.subscriptionItems.createUsageRecord(). Stripe aggregates usage and generates invoices at the billing cycle end.
Common tasks
Design a tier structure
Define tiers based on target customer segments. Each tier needs: a name, monthly base price, included API calls, rate limit (requests/minute), overage rate, and available endpoints.
Creates enormous Stripe API load, risks rate limiting from Stripe itself
Batch usage reports hourly or daily
Gotchas
In-memory usage buffers are lost on process restart - Buffering usage counts in a Map or similar in-process store means any crash or deploy loses that billing period's data. Use a durable queue (SQS, Redis with AOF, Kafka) as the write-ahead log before aggregating and reporting to Stripe.
action: 'set' on retried Stripe usage reports silently under-bills - If a usage record POST fails and you retry with action: 'set', the retry sets the total to the retry value, discarding any usage already recorded in the current billing period. Always use action: 'increment' so retries are safe.
Redis sorted set race condition in sliding window rate limiter - The ZREMRANGEBYSCORE + ZCARD + ZADD sequence is not atomic. Under high concurrency, two requests can both pass the check before either adds their entry, allowing a brief burst over the limit. Use a Lua script or MULTI/EXEC transaction to make the check-and-increment atomic.
Free tier users who never convert still cost infrastructure - A free tier with no rate limits or usage caps can be abused as free compute. Define hard rate limits even on the free tier, and implement API key rotation or abuse detection before going public.
Stripe metered price aggregate_usage cannot be changed after creation - If you create a metered price with aggregate_usage: 'sum' and later want 'max', you must create a new price and migrate subscribers. Plan the aggregation model before creating prices in production.
References
For detailed content on specific sub-domains, read the relevant file
from the references/ folder:
references/stripe-metering.md - Deep dive into Stripe metered billing setup, tiered pricing, and invoice lifecycle
Only load a references file if the current task requires it - they are
long and will consume context.
Companion check
On first activation of this skill in a conversation: check which companion skills are installed by running ls ~/.claude/skills/ ~/.agent/skills/ ~/.agents/skills/ .claude/skills/ .agent/skills/ .agents/skills/ 2>/dev/null. Compare the results against the recommended_skills field in this file's frontmatter. For any that are missing, mention them once and offer to install:
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in majiayu000/claude-skill-registry, which our catalogue first saw on October 8, 2026.
API Monetization next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
API Monetization compared with similar skills
Skill
Stars
Used in
Tokens
Auto-check
Licence
Repo updated
API Monetization this skillmajiayu000/claude-skill-registry
Guides Stripe integration decisions across development and test environment planning (separate sandboxes vs the shared test mode sandbox), API selection (Checkout Sessions vs PaymentIntents)…
Runbook for the cmux billing code: Stripe Checkout, customer portal, subscription changes, webhooks and how Pro plan entitlement is resolved from Stack metadata.
Connects a small business to QuickBooks Online for customers, estimates, invoices and payments, using Intuit OAuth 2.0 with token refresh and sandbox or production setups.
A skill your agent uses when designing or implementing API monetization strategies - usage-based pricing, rate limiting, developer tier management, Stripe metering integration, or API billing systems. API Monetization is an agent skill from majiayu000/claude-skill-registry. Use this skill when designing or implementing API monetization strategies - usage-based pricing, rate limiting, developer tier management, Stripe metering integration, or API billing systems.
When should I use API Monetization?
API Monetization fits situations like: implementing API monetization strategies - usage-based pricing; developer tier management; stripe metering integration; API billing systems.
How do I install API Monetization in Claude Code?
Run `npx skills add majiayu000/claude-skill-registry --skill api-monetization -a claude-code`. Or copy the skill folder (skills/business/api-monetization in majiayu000/claude-skill-registry) into .claude/skills/api-monetization in your project. Claude Code loads it when a task matches its description.
How do I install API Monetization in Codex?
Run `npx skills add majiayu000/claude-skill-registry --skill api-monetization -a codex`. Or copy the skill folder (skills/business/api-monetization in majiayu000/claude-skill-registry) into .agents/skills/api-monetization in your project. Codex loads it when a task matches its description.
Can I use API Monetization in Cursor, Gemini CLI or GitHub Copilot?
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add majiayu000/claude-skill-registry --skill api-monetization -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/api-monetization, .gemini/skills/api-monetization, .github/skills/api-monetization and .opencode/skills/api-monetization in your project.
What does API Monetization need to run?
Going by SKILL.md and its folder, API Monetization needs credentials named STRIPE_SECRET_KEY. Our summary lists: A credential in STRIPE_SECRET_KEY.
Does API Monetization access the network?
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Is API Monetization safe to install?
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
What licence does API Monetization use?
API Monetization is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
How many tokens does API Monetization use?
About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
What are the alternatives to API Monetization?
Skills that share tags, products or a category with API Monetization: Stripe Best Practices (fossasia/eventyay, 1.7k stars), cmux Billing Runbook (manaflow-ai/cmux, 28k stars), QuickBooks Online Integration (hewi333/Mom-n-Pop-Skills, 122 stars) and Payram Payment Integration (PayRam/payram-mcp, 158 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Who maintains API Monetization?
majiayu000 (a GitHub user) maintains it in majiayu000/claude-skill-registry, which has 666 GitHub stars. The repository holds 1,273 skills in this directory. The repository was last updated on October 7, 2026.