build-a-stripe-integration
Ce qu’il fait
Cette skill aide les développeurs à ajouter le paiement, la facturation ou les webhooks Stripe à un projet à partir de la documentation actuelle. Elle s'adresse aux équipes qui veulent un code de paiement au comportement correct, et pas seulement un code qui compile.
Quand l’utiliser
- ✓Quand vous ajoutez un paiement, une facturation ou des abonnements à une base de code.
- ✓Quand vous ajoutez des webhooks ou la facturation avec Stripe.
- ✓Quand le code Stripe compile mais se comporte mal et que vous devez le vérifier avec la documentation.
Lien du skill
https://github.com/ParadevAI/Paradev/blob/main/plugins/stripe/skills/build-a-stripe-integration/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Ajoute un paiement d'abonnement avec Stripe à mon application, et vérifie chaque paramètre dans la documentation actuelle.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent choisit d'abord le produit Stripe adapté au parcours, comme Checkout ou Billing, puis lit la documentation actuelle avant d'écrire le code. Il cite les documents utilisés et réalise ses tests dans un environnement bac à sable.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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.
Questions fréquentes
Pourquoi vérifier la documentation plutôt que se fier à la mémoire ?
L'API de Stripe évolue, et certains champs sont acceptés mais ignorés sans avertissement, la skill confirme donc chaque paramètre au préalable.
Faut-il gérer soi-même les prélèvements récurrents ?
La skill déconseille une boucle de prélèvement récurrent maison, car Billing gère déjà les nouvelles tentatives, la proratisation et la taxe.
Touche-t-elle à un compte réel ?
La skill garde l'agent dans un bac à sable, donc les tests n'affectent pas de vrai argent.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 16k
- Position au classement
- #10851
- Licence
- —
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
decide
16kVous guide pas à pas dans les décisions de conception ou de code, avec des options claires et une recommandation. Chaque réponse est enregistrée, puis un résumé final est fourni.
mobile-demo-film
16kTransforme les enregistrements d'écran de téléphone en vidéo de démonstration soignée, avec cartes de titre, cadre de téléphone et carte de fin. Idéal pour les démonstrations de fonctionnalités et les vidéos de lancement.
redesign
16kExamine un composant d'interface existant et propose des corrections visuelles concrètes pour l'espacement, le contraste, la hiérarchie et la mise en page. Elle peut aussi appliquer les modifications.
superset-settings
16kPermet à votre agent de consulter et de modifier les paramètres de l'application de bureau Paradev, comme le thème, les polices et les notifications, depuis la ligne de commande.
Skills similaires
api-connector-builder
280kPermet à votre agent de créer de nouvelles connexions API en suivant le modèle existant. À utiliser pour ajouter une intégration sans inventer une nouvelle façon de faire.
api-design
280kAide votre agent à concevoir des API REST selon les bonnes pratiques. Utile pour définir la communication entre API, l'affichage des erreurs et l'organisation des données.
backend-patterns
280kAide votre agent avec les architectures côté serveur et l'optimisation des bases de données. Utile pour créer ou relire du code qui s'exécute sur le serveur.