본문으로 건너뛰기
cccskills
무료GitHub에 공개

stripe-integration-expert

Implement Stripe integrations for SaaS billing: subscriptions, checkout, proration, usage- based billing, idempotent webhooks, customer portal, dunning, and SCA. Use when building billing, handling webhooks, or testing with Stripe CLI.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Stripe
설치 방법 보기

포함된 파일(8)

  • SKILL.md6.2 KB
  • references/payment-flows.md4.5 KB
  • references/subscriptions.md8.3 KB
  • references/testing-and-troubleshooting.md4.7 KB
  • references/webhooks.md6.4 KB
  • scripts/checkout_scaffolder.py24.7 KB
  • scripts/integration_auditor.py15.7 KB
  • scripts/webhook_validator.py15.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Stripe Integration Expert

The agent builds production-grade Stripe integrations for SaaS billing: subscription lifecycle management with trials and proration, idempotent webhook handlers, usage-based metered billing, Checkout sessions, Customer Portal, dunning recovery, and SCA/3D Secure compliance. Provides patterns for Next.js, Express, and Django with emphasis on real-world edge cases.

Core Capabilities

  • Checkout & client setup — pinned-version Stripe client, centralized plan config, Checkout sessions with trials, tax collection, and promo codes
  • Subscription lifecycle — a state machine covering trialing → active → past_due → canceled, plus upgrades/downgrades with proration previews and reactivation
  • Idempotent webhooks — signature verification, event dedup, re-fetch-from-API handlers, and retry-safe processing
  • Usage-based billing & gating — metered usage records, feature gating by plan, and grace-period access logic
  • Dunning & SCA — payment-failure email sequences and PSD2 / 3D Secure authentication flows
  • Local testing — Stripe CLI webhook forwarding, event triggers, and test card matrix

When to Use

  • Building SaaS subscription billing from scratch on Next.js, Express, or Django
  • Adding plan upgrades/downgrades with correct proration behavior
  • Hardening or debugging a webhook endpoint for idempotency and retry safety
  • Implementing metered/usage-based billing or feature gating by plan
  • Adding dunning recovery or European SCA/3D Secure compliance

Clarify First

Before building the integration, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • Framework — Next.js / Express / Django (the handler and client patterns differ per stack)
  • Billing model — flat subscription / metered usage-based / trials + proration (shapes the subscription state machine and code)
  • Scope — which piece: Checkout, idempotent webhooks, dunning, or SCA/3D Secure (selects the reference and code generated)

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

References

Load the reference that matches the task — keep this file lean and pull detail on demand:

  • references/payment-flows.md — Stripe client setup, plan config, Checkout sessions, Customer Portal, and SCA/3D Secure. Read when wiring up the client or building the checkout/portal redirects.
  • references/subscriptions.md — lifecycle state-machine diagram, upgrade/downgrade/preview/cancel code, usage-based billing, feature gating, and the Prisma schema. Read when modeling subscription state or implementing plan changes.
  • references/webhooks.md — the full idempotent webhook handler with signature verification and every event handler. Read when building or auditing the webhook endpoint.
  • references/testing-and-troubleshooting.md — Stripe CLI testing, common pitfalls, troubleshooting table, and success criteria. Read when testing locally or diagnosing a billing bug.

Related Skills

SkillUse When
ab-test-setupTesting pricing page variants and checkout flows
analytics-trackingTracking checkout and subscription conversion events
email-template-builderBuilding dunning and billing notification emails
api-design-reviewerReviewing your billing API endpoints

Scope & Limitations

This skill covers:

  • Stripe Checkout, Subscriptions, and Customer Portal integration for SaaS billing
  • Webhook handling with idempotency, signature verification, and retry safety
  • Usage-based (metered) billing, proration previews, and plan change workflows
  • SCA/3D Secure compliance for European payment regulations (PSD2)

This skill does NOT cover:

  • Stripe Connect (marketplace payouts, multi-party payments) -- see platform-specific Stripe Connect documentation
  • One-time payment flows without subscriptions (e.g., e-commerce product purchases)
  • Tax calculation and remittance (Stripe Tax configuration, VAT/GST filing) -- see ra-qm-team/ compliance skills for regulatory guidance
  • Payment fraud detection and dispute management (Stripe Radar rules, chargeback workflows) -- see skill-security-auditor for security review patterns

Integration Points

SkillIntegrationData Flow
api-design-reviewerReview billing API endpoints for REST conventions, error handling, and rate limitingBilling route definitions --> API review checklist --> validated endpoint contracts
database-schema-designerDesign and validate the Prisma schema for Stripe customer, subscription, and event tracking tablesSchema requirements --> normalized table design --> migration files
observability-designerInstrument webhook handlers and checkout flows with structured logging, metrics, and alertingWebhook events --> OpenTelemetry traces --> dashboard alerts on failure spikes
env-secrets-managerManage Stripe API keys, webhook secrets, and price IDs across dev/staging/productionSecret definitions --> encrypted vault storage --> runtime injection via env vars
ci-cd-pipeline-builderAutomate Stripe CLI webhook testing in CI and validate integration before deploymentTest triggers --> stripe listen in CI --> webhook handler assertions
runbook-generatorCreate operational runbooks for billing incidents: failed webhooks, mass payment failures, subscription reconciliationIncident scenarios --> step-by-step remediation --> escalation paths

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

This skill should be used when the user asks to "check accessibility", "audit WCAG compliance", "scan HTML for a11y issues", "check color contrast", or "find accessibility violations in web pages".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9622026년 10월 7일 업데이트

Design and run statistically rigorous A/B tests and experiments. Use when planning experiments, calculating sample sizes, designing test variants, selecting metrics, analyzing results, or when someone says "let's test that."

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9622026년 10월 7일 업데이트

Design and analyze A/B tests: sample size, test duration, and statistical significance for conversion experiments. Use when setting up an A/B test, calculating sample size, designing an experiment, or analyzing results.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9622026년 10월 7일 업데이트

Sales execution across pipeline, discovery, demos, negotiation, and closing. Use when qualifying opportunities, running MEDDIC discovery, building account plans, handling objections, structuring proposals, or forecasting pipeline.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9622026년 10월 7일 업데이트

Design ad creative across Google, Meta, LinkedIn, Twitter/X, and TikTok with platform format specs, headline formulas, and A/B testing. Use when writing ad copy, generating headline variations, creating ad sets, or validating creative.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9622026년 10월 7일 업데이트

aeo

무료

Answer Engine Optimization (AEO): optimize content to be cited by LLMs (ChatGPT, Claude, Perplexity, Gemini) in their answers. Use when designing content for LLM citation, auditing citability, or structuring Q&A schema.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

borghei/Claude-Skills9622026년 10월 7일 업데이트

borghei의 스킬 모두 보기

이 스킬의 문제 신고