refund-and-dispute
Ce qu’il fait
Cette skill vous aide à rembourser un client dans Stripe, ou à répondre à un litige, avec précaution. Elle s'adresse aux personnes qui gèrent les remboursements et ne doivent pas rembourser le mauvais montant ni utiliser le mauvais mode de compte.
Quand l’utiliser
- ✓Quand un client demande un remboursement sur un paiement ou un abonnement.
- ✓Quand un paiement fait l'objet d'un litige ou d'une contestation en cours.
- ✓Quand vous devez résilier un abonnement et le rembourser.
Lien du skill
https://github.com/ParadevAI/Paradev/blob/main/plugins/stripe/skills/refund-and-dispute/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
“Rembourse le dernier paiement du client en totalité, après avoir vérifié qu'il n'a pas déjà été remboursé ou contesté.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent lit le paiement (charge) plutôt que l'intention de paiement, vérifie le montant, le total déjà remboursé et tout litige en cours, puis confirme le mode du compte. Il n'effectue le remboursement qu'une fois les vérifications passées et le montant exact défini.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
A refund is not a retryable call
Every other Stripe read can be run again for free. A refund cannot. Treat the write as the last step of a short checklist, never as the first attempt at understanding the request.
1. Read the charge before you touch it
The checks live on the charge, so a pi_ id is not where this starts: read
the PaymentIntent, follow latest_charge, and read that charge. Skipping the hop
is how an agent misses an open dispute, because refunded, amount_refunded,
and disputed are not PaymentIntent fields and reading them off one yields
undefined rather than an error.
A latest_charge of null ends the job rather than starting it: the
PaymentIntent was never confirmed, or no attempt produced a charge, so there is
nothing to refund. Say that and stop.
On the charge, check four fields:
amountandcurrency: the only authority for what can be refunded.amount_refunded: a charge refunded in part looks fully refundable from a dashboard glance.statusandrefunded: a failed or already-refunded charge needs a different answer, not a write.disputed: if a dispute is open, refunding is the wrong instrument. See step 5.
Confirm the mode with get_stripe_account_info first. A live-mode refund issued
because the id was assumed to be a sandbox id cannot be undone.
2. Fix the amount in the smallest currency unit, explicitly
Omitting amount refunds the whole charge. A partial refund takes an integer in
the smallest unit of the charge's currency, so a $12.34 refund is 1234 and a
1234 yen refund is 1234. Never derive the figure from a human-readable total
in the conversation when the charge object is one read away, and say the figure
and currency back to the user before writing.
3. State the intent, then write once
Before calling stripe_api_write, tell the user in one line what you are about
to do: the charge id, the amount, the currency, the mode, and the reason
(duplicate, fraudulent, or requested_by_customer). The reason is not
decoration; fraudulent affects how Stripe treats the customer later, so do not
pick it for a routine cancellation.
4. Expect Stripe's confirmation step and let the human do it
Stripe requires human confirmation before it performs certain writes, refunds among them. The call comes back with a confirmation URL instead of a refund. When that happens:
- Pass the URL to the user and stop. They review the real amount on Stripe's own page and approve it there.
- The approval expires after 24 hours.
- After they approve, retry the same call once. Approval alone does not perform the refund.
Do not loop retrying while you wait, and do not route around the step by asking for an API key. The confirmation is the control that makes an agent with write access safe.
If a write errors ambiguously, list the charge's refunds before retrying and check whether one already landed. Reporting a refund that did not happen and issuing a second one are both worse than a slow answer.
5. A dispute is not a refund
A chargeback is the issuer taking the money back on the customer's word. Opening
a refund on a disputed charge can cost you the amount twice and still lose the
dispute. Read the dispute, then either submit evidence by updating its evidence
fields (with submit: true), or accept it deliberately by closing it in the
Dashboard; the MCP server cannot close a dispute. Say which one you did and why.
6. Report what actually changed
The refund id, the amount and currency, the status (pending and succeeded
mean different things to the customer), and the mode. Tell the user the money
typically reaches the customer in five to ten business days, because the next
question is always when it arrives.
Anti-patterns
- Refunding to make a dispute go away. It does not, and it can double the loss.
- "Refund the last payment." Name the charge you picked and why, or the user cannot catch you picking the wrong one.
- Guessing a partial amount from the thread. Read the charge.
- Running the checklist against a PaymentIntent. The refund and dispute
fields live on the charge; a PaymentIntent answers those questions with
undefined, which reads like "no". - Treating a confirmation URL as an error. It is the system working.
- Refunding when the user asked to cancel. Cancelling a subscription stops future invoices and refunds nothing. Do the one that was asked for, and say which.
Questions fréquentes
Un remboursement peut-il être annulé ?
Non. Un remboursement ne peut ni être relancé ni être inversé, la skill vérifie donc tout avant l'écriture.
Que se passe-t-il si le paiement a déjà été partiellement remboursé ?
La skill vérifie le montant déjà remboursé, car un paiement peut sembler entièrement remboursable au premier coup d'œil alors qu'il ne l'est pas.
Que faire si un litige est ouvert ?
Rembourser est alors la mauvaise étape, la skill passe donc à la réponse au litige.
Détails
Description originale de l’auteur
Move money back to a customer in Stripe, or respond to a dispute, with the checks that belong in front of an irreversible write — read the charge first, fix the exact amount, and clear Stripe's human confirmation step. Use when the user asks to refund a payment, cancel and refund a subscription, or handle a chargeback or dispute.
repo: ParadevAI/Paradev
Popularité
- Étoiles GitHub
- 16k
- Position au classement
- #10852
- 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
blucli
394kAide votre agent à trouver, lancer, mettre en pause, regrouper et régler le volume des enceintes Bluesound et NAD grâce à la commande blu.
camsnap
394kAide votre agent à prendre des instantanés, de courts extraits vidéo ou des événements de mouvement depuis les caméras réseau et webcams locales que vous avez configurées.
eightctl
394kAide votre agent à consulter et contrôler un boîtier Eight Sleep, y compris sa température, ses alarmes et ses programmes de sommeil.