Agent skill · Backend & API

api-commerce-stripe

Stripe payment processing — Checkout Sessions, Payment Intents, subscriptions, webhooks, Connect, customer management, error handling

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill api-commerce-stripe --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 13 KB
Bundled scripts: none
Path: skills/api/api-commerce-stripe/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Stripe Patterns > **Quick Guide:** Use the `stripe` npm package for all server-side Stripe operations. Always verify webhook signatures with `constructEvent()` using the raw request body, never the parsed body. Use idempotency keys on all mutating requests. Keep the secret key server-side only. Handle errors with `instanceof Stripe.errors.StripeError`. Amounts are always in the smallest currency unit (e.g., cents for USD). --- <critical_requirements> ## CRITICAL: Before Using This Skill > **All code must follow project conventions in CLAUDE.md** (kebab-case, named exports, import ordering, `import type`, named constants) **(You MUST NEVER expose `STRIPE_SECRET_KEY` in client-side code — it stays on the server only)** **(You MUST verify webhook signatures with `stripe.webhooks.constructEvent()` using the RAW request body — never parsed JSON)** **(You MUST use idempotency keys on all mutating (POST) requests to prevent duplicate charges)** **(You MUST handle all Stripe errors with `instanceof Stripe.errors.StripeError` — never swallow payment errors)** **(You MUST express monetary amounts in the smallest currency unit — cents for USD, not dollars)** </critical_requirements> --- **A

What's inside
Steps it walks through
  1. CRITICAL: Before Using This Skill
  2. Philosophy
  3. Core Patterns
  4. Pattern 1: Stripe Client Initialization
  5. Pattern 2: Checkout Sessions
  6. Pattern 3: Payment Intents (Custom Flows)
  7. Pattern 4: Customer Management
  8. Pattern 5: Products and Prices
  9. Pattern 6: Refunds
  10. Pattern 7: Error Handling
  11. RED FLAGS
  12. CRITICAL REMINDERS
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the api-commerce-stripe skill do?

Stripe payment processing — Checkout Sessions, Payment Intents, subscriptions, webhooks, Connect, customer management, error handling

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill api-commerce-stripe --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going