본문으로 건너뛰기
Skillpedia
기타16k · #10852

refund-and-dispute

하는 일

이 스킬은 Stripe에서 고객에게 돈을 신중하게 돌려주거나 분쟁에 대응하도록 돕습니다. 잘못된 금액을 환불하거나 잘못된 계정 모드를 쓰면 안 되는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓고객이 결제나 구독에 대해 환불을 요청할 때.
  • ✓청구에 열린 분쟁이나 차지백이 있을 때.
  • ✓구독을 취소하고 환불해야 할 때.

스킬 링크

https://github.com/ParadevAI/Paradev/blob/main/plugins/stripe/skills/refund-and-dispute/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/ParadevAI/Paradev/blob/main/plugins/stripe/skills/refund-and-dispute/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“고객의 마지막 결제를 전액 환불해 주세요. 이미 환불되었거나 분쟁 중인지 먼저 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 결제 인텐트가 아니라 청구를 읽고, 금액, 이미 환불된 합계, 열린 분쟁이 있는지 확인하며 계정 모드도 확인합니다. 모든 확인을 통과하고 정확한 금액이 정해진 뒤에만 환불을 실행합니다.

기술 내용 (원본 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:

  • amount and currency: the only authority for what can be refunded.
  • amount_refunded: a charge refunded in part looks fully refundable from a dashboard glance.
  • status and refunded: 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
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬