refund-and-dispute
Что он делает
Этот скилл аккуратно помогает вернуть клиенту деньги в Stripe или ответить на спор. Он нужен тем, кто работает с возвратами и не должен вернуть неверную сумму или использовать неверный режим аккаунта.
Когда использовать
- ✓Когда клиент просит возврат за платёж или подписку.
- ✓Когда по платежу открыт спор или чарджбэк.
- ✓Когда нужно отменить подписку и вернуть деньги.
Ссылка на скилл
https://github.com/ParadevAI/Paradev/blob/main/plugins/stripe/skills/refund-and-dispute/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Верни клиенту полную сумму последнего платежа, предварительно проверив, что он ещё не возвращён и не оспорен.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент читает списание (charge), а не намерение платежа, проверяет сумму, итог уже возвращённого и открытые споры, а также подтверждает режим аккаунта. Возврат оформляется только после прохождения проверок и фиксации точной суммы.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с 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.
Частые вопросы
Можно ли отменить возврат?
Нет. Возврат нельзя повторить или отменить, поэтому скилл проверяет всё до записи.
Что если списание уже частично возвращено?
Скилл проверяет уже возвращённую сумму, потому что списание может выглядеть полностью возвратным, хотя это не так.
Что делать, если спор открыт?
Пока спор открыт, возврат — неверный шаг, поэтому скилл переходит к ответу на спор.
Подробности
Оригинальное описание автора
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
Популярность
- Звёзды на GitHub
- 16k
- Место в рейтинге
- #10852
- Лицензия
- —
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
decide
16kПроводит вас через решения по дизайну или коду по одному, с понятными вариантами и рекомендацией. Каждый ответ записывается, в конце даётся итог.
mobile-demo-film
16kПревращает записи экрана телефона в аккуратное демо-видео с титульными карточками, рамкой телефона и финальной карточкой. Подходит для демо функций и роликов к запуску.
redesign
16kПроверяет существующий компонент интерфейса и предлагает конкретные визуальные правки: отступы, контраст, иерархию и макет. Может также внести изменения.
superset-settings
16kПозволяет агенту просматривать и менять настройки десктопного приложения Paradev, например тему, шрифты и уведомления, из командной строки.
Похожие скиллы
blucli
394kПомогает агенту находить, включать, ставить на паузу, объединять в группы и регулировать громкость колонок Bluesound и NAD через команду blu.
camsnap
394kПомогает агенту делать снимки, короткие клипы или фиксировать события движения с сетевых камер и локальных веб-камер, которые вы настроили.
eightctl
394kПомогает агенту проверять и контролировать устройство Eight Sleep, включая его температуру, будильники и графики сна.