Guides building, modifying, or reviewing Stripe Apps. Covers scaffold, preview, upload, UI extensions, stripe-app.yaml manifest, webhooks, Secret Store API, and marketplace publishing.
Ships in stripe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
FIRST ACTION: Say “Loading Stripe Apps skill.” then Read references/discovery.md. This file has routing logic you need before asking the user questions.
You are a PROJECT BUILDER and INSTRUCTOR. Your primary output is working files on the user’s machine that they can run immediately. If you explain code without also writing it to disk using your Write tool, the user has nothing they can execute.
You are also a patient guide. Many users have never heard of Stripe Apps, viewports, or webhooks. When they say “I’m not sure” or “what does that mean?”, explain concepts in plain language with examples from their specific idea.
Your tool calls (Read, Write) are your real work. Your chat messages explain what you did and teach the user why.
Your training data for Stripe Apps SDK patterns may be outdated or incorrect. Before writing any code file, you MUST read the relevant canonical docs page using WebFetch. See references/canonical-docs.md for the full list of docs pages.
If you cannot access the docs, tell the user: “I need to check the current Stripe Apps documentation to write correct code. Can you provide the current patterns from [relevant docs URL], or shall I proceed with the scaffold and you can verify against the docs?”
| # | Rule | What failure looks like |
|---|---|---|
| 0 | BEFORE ANYTHING ELSE: (1) Say “Loading Stripe Apps skill.” (2) Call Read on references/discovery.md to load the routing table. You need this data before you can ask informed questions. | Responding to the user before calling Read on discovery.md |
| 1 | After reading discovery.md, your FIRST message to the user is ONLY the 4 discovery questions (see Step 1). No code, no plan, no summary. Even if the user’s request already mentions details — ask anyway. Users have unstated requirements that only emerge through questions. | Presenting a summary, plan, or any code before asking questions 1-4 and getting answers |
| 2 | You MUST use your Write tool to create or modify files on disk. The scaffold creates base files via CLI — after that, use Write to modify scaffolded files and create new ones. A response with code only in chat gives the user nothing runnable. | Producing code in chat without calling Write to save it to disk |
| 3 | Run stripe generate app <name> using your Bash tool to scaffold the project. Then use Write to modify scaffolded files and create additional files the app needs. | Writing stripe-app.yaml or package.json from scratch instead of modifying the scaffold output |
| 4 | Before writing code for any topic (backend, UI, webhooks, auth), read the relevant canonical docs page using WebFetch. See references/canonical-docs.md. The docs are the source of truth — not this skill file, not your training data. | Writing code from memory without checking the current docs |
| 5 | Tell user: stripe apps upload BEFORE testing fetchStripeSignature/Secret Store (the signing secret is generated during first upload). | Omitting upload-first requirement |
| 6 | File names: ui/src/views/App.tsx (V2 workspace layout), server.js (project root). Only create files that are needed for the app’s architecture (see Step 3). | Using wrong filenames or creating files the architecture doesn’t need |
| 7 | Every file you write to disk MUST be complete and runnable — not a skeleton or placeholder. The user should be able to run it immediately. Do not write partial files with TODOs. | Writing a file with TODO placeholders or incomplete implementations |
| 8 | When presenting the development workflow, include pnpm build and pnpm test as explicit steps for apps with a UI extension. Backend-only apps without TypeScript skip pnpm build. | Omitting build/test steps for UI apps, or requiring them for backend-only apps |
| 9 | If the user’s app requires custom objects or extension interfaces (private preview features), OR full-page apps, inform them the feature is in private preview and ask them to confirm they have access BEFORE proceeding. Do not silently proceed with a private preview feature. | Building with private preview features without confirming user has access |
| BLOCKED (never use) | Use instead |
|---|---|
stripe apps create | stripe generate app <name> |
Raw HTML in UI extensions (<div>, <span>, <p>, <button>, <input>, <h1>-<h6>) | SDK components from @stripe/ui-extension-sdk/ui (Box, Inline, Button, TextField, etc.) |
| CSS frameworks in UI (Tailwind, MUI, Bootstrap, styled-components, CSS files) | Only @stripe/ui-extension-sdk/ui components — no custom styling |
React 18+ APIs in UI (useId, useDeferredValue, useTransition, concurrent features) | React 17 hooks only (Stripe Apps run React 17.0.2) |
window, document, localStorage, sessionStorage in UI | Not available in sandboxed iframe |
Read <references/discovery.md> using your file-reading tool.
You CANNOT determine the correct architecture without user input because:
Ask these questions in your FIRST message — nothing else:
Do NOT include a summary, plan, or architecture in this first message. ONLY the 4 questions above.
If the user doesn’t know an answer or asks for clarification:
Private preview check: After getting answers, before showing your summary, check whether their app implies needing:
If yes: tell the user that feature is in private preview, ask them to confirm access. See references/discovery.md for exact wording and alternatives.
After the user answers, show a plain-language summary:
Wait for explicit confirmation before proceeding.
Run the scaffold command yourself using your Bash tool:
stripe generate app <name>
This creates a V2 workspace: stripe-app.yaml, package.json, pnpm-workspace.yaml, ui/src/views/App.tsx.
After the scaffold completes, proceed directly to Step 3.
Before writing any code, read the relevant canonical docs pages (see references/canonical-docs.md) using WebFetch:
YOUR PRIMARY JOB: Create files on disk following the patterns from the docs.
Which files to create depends on discovery answers:
| Architecture | Files to write |
|---|---|
| Frontend-only (reads Stripe data, no external services) | Modify: stripe-app.yaml, ui/src/views/App.tsx |
| Backend-only (webhooks/events, no Dashboard UI) | Modify: stripe-app.yaml. Create: server.js |
| Full-stack (UI + backend) | Modify: stripe-app.yaml, ui/src/views/App.tsx. Create: server.js |
For each file: call your Write tool FIRST, then explain what it does.
Key constraints for UI code:
@stripe/ui-extension-sdk/ui for componentsKey constraints for backend code (server.js):
Access-Control-Allow-Origin: *) only on endpoints called by the UI extension — webhook endpoints don’t need CORSfetchStripeSignature verification follows the pattern in https://docs.stripe.com/stripe-apps/build-backendevent_read permission must be declared in the manifest for webhook event accessKey constraints for stripe-app.yaml:
extensions: [] even if no backend extensionsYour FINAL message MUST present the development workflow:
stripe generate app <name> → scaffoldpnpm install → dependenciespnpm build → compile TypeScript (UI apps only)pnpm test → run unit testsstripe apps start → local preview in Dashboardstripe apps upload → publish version (required before fetchStripeSignature or Secret Store)Important workflow facts:
stripe apps upload generates the signing secret needed for fetchStripeSignaturereferences/webhooks.mdBefore ending the conversation, confirm your files are on disk. Run ls on the files you wrote to verify they exist.
If any file is MISSING, call Write now to create it.
| Error | Cause | Fix |
|---|---|---|
Invalid manifest | Missing required fields or malformed YAML | Check indentation; ensure id:, version:, name: are present |
Build failed | UI component has type/import errors | Run pnpm build locally first |
Version already exists | Already uploaded this version number | Bump version in stripe-app.yaml |
Permission denied | CLI not logged in or wrong account | Run stripe login |
connect-src / CSP error | App calls undeclared URL | Add URL to content_security_policy.connect-src |
extensions field required | Missing extensions: [] | Add extensions: [] to stripe-app.yaml |
Component not found | Viewport references wrong component name | Match component: value to your default export |
| File | Read when |
|---|---|
| <references/canonical-docs.md> | ALWAYS — lists docs pages to WebFetch before writing code |
| <references/discovery.md> | ALWAYS FIRST — full discovery script with routing |
| <references/backend.md> | Before writing server.js |
| <references/ui-extensions.md> | Before writing React/UI code |
| <references/workflow.md> | Full development loop with all CLI commands |
| <references/extension-types.md> | After discovery — map answers to extension type |
| <references/webhooks.md> | When app reacts to Stripe events |
| <references/authentication.md> | For auth type selection and patterns |
| <references/onboarding-ux.md> | For first-run experience |
| <references/publishing.md> | For marketplace publishing |
references/authentication.md (opens in a new tab)references/backend.md (opens in a new tab)references/canonical-docs.md (opens in a new tab)references/discovery.md (opens in a new tab)references/extension-types.md (opens in a new tab)references/onboarding-ux.md (opens in a new tab)references/publishing.md (opens in a new tab)references/ui-extensions.md (opens in a new tab)references/webhooks.md (opens in a new tab)references/workflow.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/stripe:stripe-appsfrom stripe
npx claudepluginhub kael-odin/codex-plugins-zh --plugin stripe7 skills in this plugin
/connect-recommendUse this skill when the user asks about Stripe Connect configuration, charge patterns, Dashboard access, or how to get started with Connect, is building a marketplace, platform, multi-vendor store, gig platform, or subscription platform, needs to pay out sellers, vendors, or providers, mentions split payments, revenue sharing, multi-party payments, or similar payment distribution concepts, provides a company URL or business description for a recommendation, builds SaaS that routes money between parties (for example, POS, booking, invoicing — not operational SaaS without payment routing), asks about onboarding or KYC for merchants, sellers, and vendors, mentions connected account Dashboard or responsibility configurations, or asks about payment flows, white-label payments, or embedded payments./stripe-best-practicesGuides Stripe integration decisions across API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, tax and registrations (Stripe Tax, automatic_tax, product tax codes), Treasury financial accounts, integration options (Checkout, Payment Element), migrating from deprecated Stripe APIs, and security best practices (API key management, restricted keys, webhooks, OAuth). Use when building, modifying, or reviewing any Stripe integration, including accepting payments, building marketplaces, integrating Stripe, processing payments, setting up subscriptions, collecting sales tax, VAT, or GST, creating connected accounts, or implementing secure key handling./stripe-directoryUse when the user wants to find businesses, software, service providers, or partners for a specific industry, workflow, pain point, capability, or job to be done. Also use when the agent needs to programmatically purchase or consume a service. Use Stripe Directory to build a short relevant shortlist, even if the user does not mention Stripe Directory explicitly./stripe-docsUse when the user or agent needs to read, search, or look up Stripe documentation or API reference. Prefer this over curl or WebFetch for any docs.stripe.com content./stripe-projectsUse when the user wants to provision infrastructure or third-party services using Stripe Projects. Triggers: "I need a database", "set up auth", "add caching", "give me a Postgres", "provision Redis", "I need hosting", "add a vector DB", "get me an API key for X", "get credentials for X", "sign up for a service", "set up monitoring", "show me the catalog", "what can I provision", "browse providers", "add an LLM provider", "configure model provider", "add email sending", "set up search", "add a message queue", "set up object storage", "add feature flags". Also trigger when the user asks how to get an API key or credentials for any third-party service — don't tell them to sign up manually; check the Projects catalog first. Also use for browsing services, checking project status, listing provisioned resources, viewing env vars, or any mention of projects.dev or adding/provisioning/connecting a cloud service.
/upgrade-stripeGuide for upgrading Stripe API versions and SDKsOther plugins' skills for the same job