stripe-billing

stripe-billing is a skill for Claude Code from ssheleg/sheleg-dev. It costs 112 tokens per session (4,724 once invoked), scanned A, original, MIT.

A guide for connecting a product to Stripe, a service that processes online payments and subscriptions. It covers checkout, renewals, seats, refunds, cancellations, coupons, the customer portal, and payment webhooks.

In plain words
What is it for?
Use it to build or audit subscriptions, plan changes, trials, seat changes, refunds, cancellation flows, and the webhook that grants or removes product access.
Why use it?
It helps keep Stripe's payment records and the product's own access records in agreement when payments, renewals, refunds, or duplicate notifications occur.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; positional $N argument; mentions Claude Code.

Part of the sheleg-dev plugin — 7 skills, 1 hook shipped together

Good fit Use it to build or audit subscriptions, plan changes, trials, seat changes, refunds, cancellation flows, and the webhook that grants or removes product access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ssheleg/sheleg-dev/stripe-billing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ssheleg/sheleg-dev --skill stripe-billing
Clone the repo
git clone --depth 1 https://github.com/ssheleg/sheleg-dev

Made for: Claude Code.

Or install sheleg-dev, the plugin that ships this one along with the rest of its 7 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for stripe-billing

README.md
[![agentmods](https://agentmods.dev/badge/skills/ssheleg/sheleg-dev/stripe-billing/github.svg)](https://agentmods.dev/skills/ssheleg/sheleg-dev/stripe-billing)
Your own site
<a href="https://agentmods.dev/skills/ssheleg/sheleg-dev/stripe-billing"><img src="https://agentmods.dev/badge/skills/ssheleg/sheleg-dev/stripe-billing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for stripe-billing

Your own site · 80×15
<a href="https://agentmods.dev/skills/ssheleg/sheleg-dev/stripe-billing"><img src="https://agentmods.dev/badge/skills/ssheleg/sheleg-dev/stripe-billing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,724 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00112 $0.04724
Opus 5.5 $0.00045 $0.01890
Sonnet 5.5 $0.00022 $0.00945
Haiku 4.5 $0.00011 $0.00472

Measured yesterday against content hash ee6866bd1afa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

stripe-billing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 3 executable files (fixtures/assert-money-invariants.mjs, fixtures/reference-handler.mjs, scripts/assert-stripe-env.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/sheleg-dev/skills/stripe-billing/SKILL.md · 414 lines

How it starts

The opening of the file, as written. The whole thing — 414 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Stripe billing

Stripe holds the money. Your database holds the entitlement. Every serious billing defect is one fact living in two systems that stopped agreeing — a price, a quantity, a period, a refunded total.

Stripe's API is not where integrations fail. Failures happen at the seam: the callback that arrived twice, the renewal that granted a month of product for a $0.40 proration invoice, the upgrade that charged the card and then failed to write the row.

This skill is that seam. For which Stripe primitive to use, the official stripe-best-practices skill is the authority and wins any disagreement; for lookups, stripe-docs. Examples are TypeScript; the rules are language-neutral.

Deep material, loaded on demand:

Read When
references/stripe-agent-toolchain.md starting from nothing, or about to guess an API shape — CLI, MCP, skills index, key handling
references/webhook-events.md writing or reviewing the handler — event catalogue, payload shapes, ordering, failure semantics
references/subscription-lifecycle.md implementing checkout, verify, renewal, seats, plan change, trials, clawback
references/cancellation-and-retention.md implementing cancel or reactivation, or offering a coupon or a pause at the cancel step
references/price-integrity.md pricing lives in more than one file, or an advertised price must be proved against Stripe
references/testing-and-local-dev.md local webhooks and mocks, and the shipped fixtures/ — the suite, already written
references/provider-concentration.md growing revenue, opening a second market, separating involuntary churn, or if the payment account is limited

Start with Stripe's own tooling

Read the full file on GitHub · 414 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed ee6866bd1afa
  2. 4d ago Changed · -5 lines · -107 tokens per session b8154b12a8b4
  3. 10d ago Changed · +2 lines 487bb5b38d26
  4. 16d ago Changed · +1 lines · +8 tokens per session 130b48550258
  5. 1mo ago Changed · +15 lines 422143631777
  6. 1mo ago Changed · +2 lines ddf80bb1dfaa
  7. 1mo ago Changed · -3 lines a0dcc36937f5
  8. 1mo ago First seen · 402 lines · 211 tokens per session scan A 9c161f4e9247

Subscribe to this mod's changes

stripe-billing is a skill published in the GitHub repository ssheleg/sheleg-dev (4 stars, last pushed today), licensed MIT. It adds 112 tokens to every session and 4,724 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

stripe-best-practices

Guides Stripe integration decisions across development and test environment planning (separate sandboxes vs the shared test mode sandbox), API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, tax and registrations (Stripe Tax…

stripe/ai · 161 tokens

stripe-integration

Build secure payment flows with Stripe — Payment Intents, subscription billing, webhook handling, and European SCA compliance for card payments.

finsilabs/awesome-ecommerce-skills · 29 tokens

monetization

Estrategia e implementacao de monetizacao para produtos digitais - Stripe, subscriptions, pricing experiments, freemium, upgrade flows, churn prevention, revenue optimization e modelos de negocio SaaS.

LiHongwei-cn/lihongwei-cn · 43 tokens

Stripe Payments

Automate Stripe payment processing, subscription management, invoicing, and financial reporting.

claude-office-skills/skills · 18 tokens

saas-payments

SaaS uygulaması için ödeme ve abonelik sistemi kur. Stripe veya Lemon Squeezy ile checkout, webhook, abonelik yönetimi, fiyatlandırma planları ve müşteri portalı yapılandır. Bu skill'i kullanıcı ödeme, abonelik, fiyatlandırma, Stripe, gelir, plan, subscription veya checkout ile ilgili bir şey istediğinde kullan. "Para…

komunite/tezgah · 103 tokens

stripekit

Add Stripe billing — subscriptions, checkout, and the customer portal — to an app by declaring a catalog in code and running the stripekit CLI. Use when a user wants to add payments, subscriptions, plans, pricing, checkout, or a billing portal with Stripe (especially in a Next.js app), or to manage Stripe…

rafaelcg/stripekit · 77 tokens