stripekit

stripekit is a skill for Claude Code, Codex from rafaelcg/stripekit. It costs 77 tokens per session (975 once invoked), scanned A, a copy of stripekit, MIT.

A command-line tool for adding Stripe payments to a Next.js app, including subscriptions, checkout, and a customer portal. Stripe is a service that handles online payments and billing.

In plain words
What is it for?
Use it to set up or update subscription plans, pricing, checkout pages, customer self-service billing, and Stripe event handling in a Next.js App Router application.
Why use it?
It avoids manually creating matching products, prices, webhooks, and billing code in separate places. A configuration file describes the catalog, and the tool syncs it with Stripe and adds the needed app code.

Skill for Claude CodeCodex

Part of the stripekit plugin — 2 skills, 1 MCP server shipped together

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.

agentmods
npx agentmods add skills/rafaelcg/stripekit/public
Any agent
npx skills add rafaelcg/stripekit --skill public
Clone the repo
git clone --depth 1 https://github.com/rafaelcg/stripekit

Made for: Claude Code, Codex.

Or install stripekit, the plugin that ships this one along with the rest of its 2 skills, 1 MCP server.

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 stripekit

README.md
[![agentmods](https://agentmods.dev/badge/skills/rafaelcg/stripekit/public.svg)](https://agentmods.dev/skills/rafaelcg/stripekit/public)
Your own site
<a href="https://agentmods.dev/skills/rafaelcg/stripekit/public"><img src="https://agentmods.dev/badge/skills/rafaelcg/stripekit/public.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 975 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00077 $0.00975
Opus 5 $0.00039 $0.00487
Sonnet 5 $0.00015 $0.00195
Haiku 4.5 $0.00008 $0.00097

Measured 4d ago against content hash c61ee88e3f79, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

stripekit 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (_worker.js), 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.

Origin

This is a copy

100% identical to stripekit — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

docs/public/SKILL.md · 72 lines

How it starts

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

Using stripekit

stripekit is a CLI that (1) reconciles a declarative stripe.config.ts into the user's own Stripe account and (2) scaffolds correct billing code into a Next.js App Router app. It's plain Stripe underneath — no hosted service, no runtime dependency.

Install-free: every command runs via npx stripekit@latest <command>. Always check npm for the latest version.

Prerequisites

  • Node.js 20+.
  • A Stripe test secret key (sk_test_…) available as STRIPE_SECRET_KEY in the environment or .env.local. Never enter real keys on the user's behalf — ask them to add it.

Full setup in a Next.js app

  1. npx stripekit@latest init — detects the framework + auth library, writes stripe.config.ts, and scaffolds lib/stripe/* (client, sync, customer helpers, storage adapter) and app/api/stripe/* (webhook, checkout, portal). Flags: --adapter kv|drizzle, --auth clerk|authjs|better-auth|none, --yes.
  2. Edit stripe.config.ts to define products, prices, and features.
  3. npx stripekit plan — preview what will change on the Stripe account (read-only).
  4. npx stripekit push — create/update products, prices, webhook endpoint, and portal; writes STRIPE_WEBHOOK_SECRET and STRIPE_PORTAL_CONFIGURATION_ID back to .env.local.
  5. npx stripekit dev — forward Stripe webhooks to localhost during development (wraps stripe listen).
  6. npx stripekit check — verify keys, config, drift, and webhook/portal wiring.

Any stack (catalog only)

Running init in a non-Next.js project sets up only stripe.config.ts. Use plan / push / pull to manage the catalog from any stack.

Config shape

import { defineConfig } from 'stripekit'

export default defineConfig({
  products: {
    pro: {
      name: 'Pro',
      prices: {
        monthly: { amount: 2000, currency: 'usd', interval: 'month' }, // amount in cents
        yearly: { amount: 19200, currency: 'usd', interval: 'year' },
      },
      features: { seats: 5, projects: 'unlimited' },
    },
  },
  portal: { cancellations: true, planSwitching: true },
  webhooks: { path: '/api/stripe/webhook' },
})

Read the full file on GitHub · 72 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 72 lines · 77 tokens per session scan A c61ee88e3f79

Subscribe to this mod's changes

stripekit is a skill published in the GitHub repository rafaelcg/stripekit (2 stars, last pushed 27d ago), licensed MIT. It adds 77 tokens to every session and 975 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to stripekit, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

Stripe Payments

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

claude-office-skills/skills · 18 tokens

tiun-sdk

Use when integrating or debugging the tiun SDK (@tiun/sdk), tiun's JavaScript library for authentication, subscription billing, one-time purchases, and time-based paywalls. Triggers on imports of @tiun/sdk, calls like tiun.init, tiun.checkout, tiun.login, tiun.start, or questions about tiun products, entitlements…

SunrisesIllNeverSee/sigrank-app · 98 tokens

Billing Manager

Manage billing operations including invoice generation, payment tracking, and subscription lifecycle.

eddiebelaval/squire · 16 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

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

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