/vibe:stripe-expertfrom vibe
Designs payment flows with Stripe Payment Intents, builds subscriptions via Billing APIs, and implements marketplaces with Connect. Handles webhooks idempotently with verified signatures.
Ships in vibe. 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.
None: SKILL.md is the whole skill.
You are an expert in the Stripe API. You design payment flows around the Payment Intents model (single source of truth for a payment lifecycle), build subscriptions with the Billing APIs (Customer → Price → Subscription → Invoice → PaymentIntent), and implement marketplaces with Connect.
You handle webhooks idempotently with verified signatures. You pin the Stripe API version explicitly.
requires_payment_method → requires_confirmation → processing → succeeded2025-06-30.basil or later)Stripe-Signature headercreate callsconfirm call is hopeful; the payment_intent.succeeded webhook is real.event.id).import Stripe from 'stripe';
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, {
apiVersion: '2025-06-30.basil',
});
// Server: create the intent
const intent = await stripe.paymentIntents.create({
amount: 2000, // $20.00
currency: 'usd',
automatic_payment_methods: { enabled: true },
metadata: { orderId: 'ord_123' },
}, { idempotencyKey: 'ord_123:create-pi' });
return Response.json({ clientSecret: intent.client_secret });
// Client: confirm with Payment Element
import { Elements, PaymentElement, useStripe, useElements } from '@stripe/react-stripe-js';
import { loadStripe } from '@stripe/stripe-js';
const stripePromise = loadStripe(process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY!);
function CheckoutForm() {
const stripe = useStripe(); const elements = useElements();
const onSubmit = async (e) => {
e.preventDefault();
const { error } = await stripe!.confirmPayment({
elements: elements!,
confirmParams: { return_url: `${window.location.origin}/order/complete` },
});
if (error) alert(error.message);
};
return (
<form onSubmit={onSubmit}>
<PaymentElement />
<button>Pay</button>
</form>
);
}
// <Elements stripe={stripePromise} options={{ clientSecret }}><CheckoutForm /></Elements>
const customer = await stripe.customers.create({ email: '[email protected]' });
const subscription = await stripe.subscriptions.create({
customer: customer.id,
items: [{ price: 'price_pro_monthly' }],
payment_behavior: 'default_incomplete',
payment_settings: { save_default_payment_method: 'on_subscription' },
expand: ['latest_invoice.confirmation_secret'],
});
const clientSecret =
(subscription.latest_invoice as Stripe.Invoice).confirmation_secret?.client_secret;
return Response.json({ subscriptionId: subscription.id, clientSecret });
The client confirms with confirmPayment using that client secret. The subscription stays incomplete until the first invoice is paid.
// app/api/webhooks/stripe/route.ts (Next.js App Router)
import Stripe from 'stripe';
import { db } from '@/lib/db';
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, { apiVersion: '2025-06-30.basil' });
export async function POST(req: Request) {
const sig = req.headers.get('stripe-signature')!;
const body = await req.text();
let event: Stripe.Event;
try {
event = stripe.webhooks.constructEvent(body, sig, process.env.STRIPE_WEBHOOK_SECRET!);
} catch (e) {
return new Response(`bad sig: ${(e as Error).message}`, { status: 400 });
}
// Idempotency: drop duplicates
const seen = await db.webhookEvent.findUnique({ where: { id: event.id } });
if (seen) return new Response('already processed', { status: 200 });
switch (event.type) {
case 'invoice.paid':
await provisionAccess(event.data.object as Stripe.Invoice);
break;
case 'customer.subscription.deleted':
await revokeAccess((event.data.object as Stripe.Subscription).customer as string);
break;
case 'payment_intent.succeeded':
await markOrderPaid(event.data.object as Stripe.PaymentIntent);
break;
}
await db.webhookEvent.create({ data: { id: event.id, type: event.type } });
return new Response('ok');
}
export const config = { api: { bodyParser: false } }; // Pages Router only; App Router uses raw text by default
const intent = await stripe.paymentIntents.create({
amount: 10000,
currency: 'usd',
application_fee_amount: 1000, // platform takes $10
transfer_data: { destination: 'acct_connected_seller' },
});
const portal = await stripe.billingPortal.sessions.create({
customer: customerId,
return_url: 'https://example.com/account',
});
return Response.redirect(portal.url);
const session = await stripe.checkout.sessions.create({
mode: 'subscription',
line_items: [{ price: 'price_pro_monthly', quantity: 1 }],
success_url: 'https://example.com/success?sid={CHECKOUT_SESSION_ID}',
cancel_url: 'https://example.com/cancel',
customer_email: '[email protected]',
});
return Response.redirect(session.url!);
confirmPayment — async payment methods (SEPA, BACS) settle minutes/days later. Webhooks are the truth.apiVersion — Stripe rolls out account-level versions automatically and breaks deserialization.create calls. A retry creates a duplicate Customer / Subscription / Charge.subscription.update({ items: ..., proration_behavior: 'create_prorations' }) and let Stripe figure it.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job