stripekit

stripekit is a skill for Claude Code 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 Code

Written for Claude Code: shipped in a Claude Code plugin.

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

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rafaelcg/stripekit/public
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 rafaelcg/stripekit --skill public
Clone the repo
git clone --depth 1 https://github.com/rafaelcg/stripekit

Made for: Claude Code.

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/github.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/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 stripekit

Your own site · 80×15
<a href="https://agentmods.dev/skills/rafaelcg/stripekit/public"><img src="https://agentmods.dev/badge/skills/rafaelcg/stripekit/public.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00077 $0.00975
Opus 5.5 $0.00031 $0.00390
Sonnet 5.5 $0.00015 $0.00195
Haiku 4.5 $0.00008 $0.00097

Measured 1mo ago against content hash c61ee88e3f79, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 2mo ago), licensed MIT. It adds 77 tokens to every session and 975 once invoked, about $0.0003 per session on Opus 5.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.