Stripe Developer logo

Stripe Developer

Community
Sleestk
stripe-developer

Full-stack Stripe developer skill for building payment integrations with Next.js and Supabase. Covers Checkout (hosted and embedded), Products & Prices, Subscriptions & Billing, Webhooks (signature verification, event handling), Customer Portal, the Stripe Node.js SDK, client-side Stripe.js, and the Stripe CLI. Use this skill whenever the user mentions Stripe, payments, checkout, subscriptions, billing, pricing tiers, webhooks, recurring revenue, freemium, paywall, customer portal, Stripe CLI, or any task involving accepting payments. Even if the user just says "add payments", "wire up billing", "set up subscriptions", or "make this a SaaS" — trigger this skill immediately. Also trigger for connecting Stripe to Supabase (syncing subscription status via webhooks + RLS) or deploying a Stripe-integrated app to Vercel.

Overview

PublisherSleestk
RepositorySkills-Pipeline
Skill namestripe-developer
Stars
87
Forks
21
Bundled files
6
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Sleestk on GitHub. Read the source before you install it.

Installation

Install the Stripe Developer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Sleestk/Skills-Pipeline/tree/main/SaaS/stripe-developer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Sleestk/Skills-Pipeline.git /tmp/Skills-Pipeline
mkdir -p .claude/skills
cp -r /tmp/Skills-Pipeline/SaaS/stripe-developer .claude/skills/stripe-developer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Stripe Developer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Stripe Developer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Stripe Developer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Stripe Developer Skill

A comprehensive skill for building payment integrations in Next.js applications with Stripe. Covers five domains: Checkout & Payments, Products & Pricing, Subscriptions & Billing, Webhooks, and Customer Portal.

Architecture

This skill uses progressive disclosure with reference files:

stripe-developer/
├── SKILL.md                          ← You are here (orchestrator)
├── references/
│   ├── checkout.md                   ← Checkout Sessions (hosted + embedded)
│   ├── products-prices.md            ← Products, Prices, and pricing models
│   ├── subscriptions.md              ← Subscriptions, billing lifecycle, metered/tiered
│   ├── webhooks.md                   ← Webhook endpoints, signature verification, event handling
│   ├── customer-portal.md            ← Self-service subscription management
│   └── nextjs-supabase-integration.md ← Cross-stack wiring patterns

Routing

When the user's request arrives, determine which domain(s) it touches, then read the appropriate reference file(s):

Checkout & Payments

If the request involves creating a checkout session, one-time payments, payment pages, redirecting to Stripe, embedded checkout, or the Stripe payment form: → Read references/checkout.md

Products & Pricing

If the request involves creating products, setting prices, pricing tiers, free vs. pro plans, price IDs, or configuring what you sell: → Read references/products-prices.md

Subscriptions & Billing

If the request involves recurring payments, subscription lifecycle (create, upgrade, downgrade, cancel, renew), billing intervals, trial periods, metered billing, or subscription status management: → Read references/subscriptions.md

Webhooks

If the request involves listening for Stripe events, webhook endpoints, signature verification, handling checkout.session.completed, invoice.paid, customer.subscription.updated, or any event-driven payment logic: → Read references/webhooks.md

Customer Portal

If the request involves letting customers manage their own subscriptions, update payment methods, view invoices, cancel subscriptions, or self-service billing: → Read references/customer-portal.md

Cross-Stack Integration (Next.js + Supabase + Vercel)

If the request involves wiring Stripe into a Next.js + Supabase stack, syncing subscription status to the database, gating features behind payment status, deploying with Stripe env vars on Vercel, or building a complete SaaS payment flow: → Read references/nextjs-supabase-integration.md

Multiple Domains

Many requests touch multiple domains. For example, "set up subscriptions with a free and pro tier in my Next.js + Supabase app" requires Products & Pricing + Subscriptions + Webhooks + Cross-Stack Integration. Read all relevant files.

Default Stack

  • Framework: Next.js (App Router)
  • Server SDK: stripe (Node.js)
  • Client SDK: @stripe/stripe-js + @stripe/react-stripe-js
  • Database: Supabase (Postgres with RLS)
  • Deployment: Vercel
  • Language: TypeScript

Key Principles

  1. Never expose STRIPE_SECRET_KEY to the client. Use NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY for client-side only. The secret key lives server-side exclusively.
  2. Use Server Actions or Route Handlers to create Checkout Sessions — never create them from the client.
  3. Always verify webhook signatures using stripe.webhooks.constructEvent(). Never trust unverified webhook payloads.
  4. Store subscription status locally in your Supabase database. Don't query the Stripe API on every request — it adds latency and hits rate limits.
  5. Use stripe listen --forward-to during local development to test webhooks before deploying.
  6. Test mode first, always. Use pk_test_ and sk_test_ keys. Test card: 4242 4242 4242 4242, any future expiry, any CVC.
  7. Return 200 quickly from webhook handlers. Do async processing after acknowledging receipt.
  8. Use Price IDs, not raw amounts — create Products and Prices in the Stripe Dashboard or API, then reference them by ID.
  9. Handle cancel_at_period_end — when a user cancels, Stripe keeps the subscription active until the period ends. Don't immediately revoke access.
  10. Idempotency — Stripe can send the same webhook event more than once. Use event.id to deduplicate if needed.

Environment Variables

env
# .env.local
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_...   # Client-safe, exposed to browser
STRIPE_SECRET_KEY=sk_test_...                     # Server-only, never expose
STRIPE_WEBHOOK_SECRET=whsec_...                   # For webhook signature verification

Quick Install

bash
npm install stripe @stripe/stripe-js @stripe/react-stripe-js

Stripe Client Setup Pattern

Server-side (singleton)

ts
// lib/stripe.ts
import 'server-only'
import Stripe from 'stripe'

export const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!)

Client-side (singleton via lazy load)

ts
// lib/stripe-client.ts
import { loadStripe } from '@stripe/stripe-js'

let stripePromise: ReturnType<typeof loadStripe>

export function getStripe() {
  if (!stripePromise) {
    stripePromise = loadStripe(process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY!)
  }
  return stripePromise
}

Stripe CLI Quick Reference

bash
# Install
brew install stripe/stripe-cli/stripe

# Login
stripe login

# Listen for webhooks locally (forward to your Next.js app)
stripe listen --forward-to localhost:3000/api/stripe/webhook

# Trigger a test event
stripe trigger checkout.session.completed

# Create test fixtures (products + prices)
stripe fixtures fixtures/stripe-fixtures.json

Test Cards

ScenarioCard Number
Payment succeeds4242424242424242
Payment requires authentication4000002500003155
Payment is declined4000000000009995

Use any future expiry date and any 3-digit CVC.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Stripe Developer AI skill do?

Full-stack Stripe developer skill for building payment integrations with Next.js and Supabase. Covers Checkout (hosted and embedded), Products & Prices, Subscriptions & Billing, Webhooks (signature verification, event handling), Customer Portal, the Stripe Node.js SDK, client-side Stripe.js, and the Stripe CLI. Use this skill whenever the user mentions Stripe, payments, checkout, subscriptions, billing, pricing tiers, webhooks, recurring revenue, freemium, paywall, customer portal, Stripe CLI, or any task involving accepting payments. Even if the user just says "add payments", "wire up bill...

Why use Stripe Developer on TypingMind?

Because you install it once and use it with any model. Stripe Developer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Stripe Developer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Sleestk/Skills-Pipeline/tree/main/SaaS/stripe-developer. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Stripe Developer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Stripe Developer?

As many as you like. As long as a model supports skills, you can use Stripe Developer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Stripe Developer AI skill free?

Yes. It is published on GitHub by Sleestk under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇