build-a-stripe-integration
하는 일
이 스킬은 개발자가 최신 문서를 참고해 프로젝트에 Stripe 결제, 청구, 웹훅을 추가하도록 돕습니다. 컴파일만 되는 코드가 아니라 올바르게 작동하는 결제 코드를 원하는 팀을 위한 스킬입니다.
사용하는 경우
- ✓코드베이스에 결제, 청구 또는 구독을 추가할 때.
- ✓Stripe로 웹훅이나 인보이스 기능을 추가할 때.
- ✓Stripe 코드는 컴파일되지만 잘못 작동해서 문서와 대조해야 할 때.
스킬 링크
https://github.com/ParadevAI/Paradev/blob/main/plugins/stripe/skills/build-a-stripe-integration/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Stripe로 제 앱에 구독 결제를 추가해 주세요. 모든 매개변수는 최신 문서로 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 먼저 흐름에 맞는 Stripe 제품, 예를 들어 Checkout이나 Billing을 고른 뒤, 코드를 쓰기 전에 최신 문서를 읽습니다. 사용한 문서를 밝히고, 테스트는 샌드박스에서 진행합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Confirm the API, do not recall it
Stripe's API is large, versioned, and still moving. Model memory of it is a snapshot of whatever was true at training time, and the failure mode is not a compile error: it is a field that is accepted and quietly ignored. Every parameter you write should have come from a tool call in this session.
1. Pick the product before the endpoint
Run stripe_implementation_planner with what the integration has to do. The
first decision is which Stripe product owns the flow, and it is hard to reverse:
- A one-off payment with a page Stripe hosts is Checkout.
- A one-off payment inside your own UI is either embedded Checkout or PaymentIntents with Elements. Pick on how much of the checkout behavior you want Stripe to own, not on where the form renders; staying inside your UI does not oblige you to build the flow yourself.
- Anything recurring is Billing, with prices and subscriptions, not a payment you re-run on a timer.
- Charging after the fact with terms is Invoicing.
Writing a custom recurring charge loop on top of PaymentIntents is the common wrong turn, and it costs retries, proration, tax, and the customer portal.
2. Read the current docs, then cite them
search_stripe_documentation before you write the first line, and link what you
used. If a doc disagrees with what you expected, the doc is right. Watch for
guidance that changed: the parameter that moved, the field that is now a nested
object, the method that is superseded.
3. Get parameters from the schema, never from memory
stripe_api_search finds the method, stripe_api_details gives its real
parameters and types. Do this even for calls you are sure of.
A misspelled parameter is usually the easy case: Stripe answers a name it does
not recognize with an invalid_request_error naming the field, so you normally
find out at once. Normally, not always, because what an endpoint accepts is the
endpoint's business and the docs promise no blanket rule. The expensive case is
a parameter that is real but wrong here, and
it has three shapes. A field that belongs to a sibling endpoint. A field nested
at the wrong level, where Stripe sees the flat name as unknown and the value you
meant never arrives. And a field that is accepted and does something other than
what its name suggests, which no error can catch for you. The schema is what
separates the three.
4. Stay in a sandbox
Create nothing in live mode while building. Use a sandbox account and test cards. For anything time-based, such as a trial ending or a renewal, create a test clock and move it, instead of waiting or faking dates in your own code. Test clocks are the only honest way to prove renewal logic works.
5. Make webhooks the source of truth
A browser returning from Checkout proves the browser came back, nothing more. Fulfilment, entitlement, and subscription state belong to webhook events. Verify the signature, respond quickly, and make the handler idempotent: Stripe retries, and events can arrive out of order. An integration that grants access on a redirect is an integration that grants access to anyone who can replay a URL.
6. Keep keys out of the code
Secret keys live in the environment, never in a repo, a client bundle, or a log line. When adding a new call path, read how the codebase already talks to Stripe and extend that path rather than opening a second one with its own key handling.
Anti-patterns
- Recalling a parameter list. Confirm it. A wrong name errors loudly; a wrong nesting or the right name from the wrong endpoint does not.
- Rolling your own recurring billing. Proration, tax, dunning, and the portal are the product you are skipping.
- Trusting the redirect. The webhook is the event; the redirect is a hint.
- Storing card data. Hand it to Stripe and keep its reference. For a payment
you will make again later that reference is a PaymentMethod saved on a
Customer, set up with a SetupIntent or
setup_future_usage, not a Token: a Token is single use, so reusing one fails on the second charge. Taking card data yourself changes your compliance scope. - Amounts as floats. Stripe takes integers in the smallest currency unit, and currencies with no minor unit break a hardcoded divide by 100.
자주 묻는 질문
문서를 기억에 의존하지 않고 확인하는 이유는 무엇인가요?
Stripe의 API는 바뀌고, 일부 필드는 오류 없이 조용히 무시되기도 합니다. 그래서 이 스킬은 각 매개변수를 먼저 확인합니다.
반복 결제 로직을 직접 만들어야 하나요?
이 스킬은 직접 만든 반복 결제 루프를 권하지 않습니다. Billing이 재시도, 일할 계산, 세금 처리를 이미 해 주기 때문입니다.
실제 계정을 건드리나요?
이 스킬은 에이전트를 샌드박스 안에 두므로, 테스트 작업이 실제 돈에 영향을 주지 않습니다.
상세 정보
작성자의 원본 설명
Write Stripe code against what the API does today — plan the product shape, confirm every parameter from Stripe's own docs and schemas, and keep the agent in a sandbox. Use when adding checkout, billing, subscriptions, invoicing, or webhooks to a codebase, or when debugging Stripe integration code that compiles but behaves wrong.
repo: ParadevAI/Paradev
인기도
- GitHub 스타
- 16k
- 순위
- #10851
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
decide
16k설계나 코드 결정을 하나씩 짚어 가며, 명확한 선택지와 추천을 보여 줍니다. 각 답변은 기록되고, 마지막에 요약이 제공됩니다.
mobile-demo-film
16k휴대폰 화면 녹화를 제목 카드와 휴대폰 프레임이 있는 데모 영상으로 바꿉니다. 기능 시연과 출시 클립에 좋습니다.
redesign
16k기존 인터페이스 구성 요소를 검토해 간격, 대비, 계층, 레이아웃에 대한 구체적인 시각 개선안을 제안합니다. 변경도 적용할 수 있습니다.
superset-settings
16k에이전트가 테마, 글꼴, 알림 같은 Paradev 데스크톱 앱의 설정을 명령줄에서 보고 바꾸도록 돕습니다.
비슷한 스킬
api-connector-builder
280k에이전트가 기존 패턴을 따라 새로운 API 연결을 만들도록 합니다. 새로운 방식을 도입하지 않고 연동을 하나 더 추가할 때 씁니다.
api-design
280k에이전트가 모범 사례에 따라 REST API를 설계하도록 돕습니다. API가 통신하는 방식, 오류를 보여 주는 방식, 데이터를 정리하는 방식을 정하는 데 유용합니다.
backend-patterns
280k에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.