trace-a-payment
Skill này làm gì
Skill này đọc các bản ghi liên kết trong Stripe để giải thích một khoản thanh toán, hóa đơn hoặc đăng ký. Dành cho người cần câu trả lời chính xác về tiền thay vì một con số tổng trên bảng điều khiển.
Khi nào nên dùng
- ✓Khi bạn có một ID Stripe và muốn biết nó chỉ đến điều gì.
- ✓Khi một khoản thanh toán thất bại và bạn cần lý do thật.
- ✓Khi bạn muốn biết khách hàng đang trả gì hoặc hóa đơn đang ở trạng thái nào.
Liên kết skill
https://github.com/ParadevAI/Paradev/blob/main/plugins/stripe/skills/trace-a-payment/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Vì sao khoản thanh toán Stripe này thất bại? Đây là ID thanh toán.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent xác nhận nó đang đọc tài khoản và chế độ nào, rồi đi theo chuỗi từ khoản thanh toán đến giao dịch thu tiền. Nó đọc mã từ chối và các trường kết quả để giải thích lỗi bằng lời dễ hiểu.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Read the chain, not one object
A Stripe answer is only as good as the objects it was read from. Every question about money that already moved has an exact object chain behind it, and the chain is short. Walk it.
1. Say which account and which mode you are in
Start with get_stripe_account_info. Live mode and a sandbox are separate
worlds that share nothing: an id created in one returns "No such charge" in the
other, which reads like a deleted record rather than a wrong environment. Name
the account and the mode in your answer so the user can tell whether you looked
where they meant.
2. Let the id prefix tell you what you are holding
Stripe ids are typed. ch_ is a charge, pi_ a PaymentIntent, cus_ a
customer, in_ an invoice, sub_ a subscription, cs_ a Checkout Session,
re_ a refund, dp_ a dispute, po_ a payout, txn_ a balance transaction.
Use stripe_api_search to find the right method, stripe_api_details to get
its real parameters, then stripe_api_read. Never invent a field name: the
details tool exists so you do not have to.
3. For a failure, read the decline, not the status
status: "requires_payment_method" says nothing a user can act on. The cause
lives in two places:
- The PaymentIntent's
last_payment_error: the decline code and message. - The charge's
outcome:network_status,reason,risk_level,seller_message, which is the sentence written for you to pass on, andadvice_code.
Read the retry decision off advice_code, not off the decline code. It has three
values and each is Stripe's advice rather than a verdict: try_again_later means
a retry may work, do_not_try_again means Stripe advises against reusing the card
for this transaction, and confirm_card_data means some of the submitted card
details are wrong and the customer should check them against the card. Stale
details on a stored payment method trigger that one as readily as a typo does.
The decline code answers a different question, and most of them are
vague on purpose: do_not_honor and generic_decline both mean "the issuer
declined and did not say why", so calling either permanent is a guess the advice
code already settles.
To tell an issuer decline from a payment Stripe Radar blocked before the issuer
ever saw it, read outcome.type: blocked with a reason such as
highest_risk_level is Radar. A network_status of not_sent_to_network says
only that the network never saw it, and a risk_level is attached to payments
Radar allowed as well, so neither one attributes the failure on its own.
4. Follow the chain the question actually asks about
- "Why this amount?" is invoice to subscription to price to product, plus
discountandtaxon the invoice. The number on the invoice is the end of a chain, not a fact in itself. - "What did we keep?" is charge to
balance_transaction, which carriesfeeandnet. The charge amount is not revenue, and thatnetis not the end of it either: a refund and a dispute each create their own balance transaction, so a refunded charge still reports the originalnet. Net off its refunds and disputes before reporting a figure, and page the refund list to the end: the charge embeds only the first ten, so a charge refunded in many parts overstates what you kept untilhas_moreis false. - "Where is the money?" is
get_balance_summaryor payout to balance transactions, not the sum of recent charges. - "Is this customer current?" is subscription
statuspluscurrent_period_endpluscancel_at_period_end. An active subscription withcancel_at_period_end: trueis a churn you would otherwise report as healthy.
5. Convert amounts deliberately
Stripe amounts are integers in the smallest currency unit. amount: 2000 in
USD is $20.00, but JPY has no minor unit, so amount: 2000 is 2000 yen, and
dividing by 100 would under-report it by a hundredfold. Read the currency
field, then convert. State the currency in every figure you report.
6. Answer with ids, mode, and the window
Quote the id of every object you read, the mode you read it in, and the time
window for anything aggregated. For a count or a rate, prefer stripe_analytics
over paging a list yourself: a list request defaults to 10 items and newest
first, so "I found 10 charges" is a page size, not a finding.
Anti-patterns
- Mixing modes. A sandbox id in a live-mode question returns a clean, confident 404. Check the mode before you b
Câu hỏi thường gặp
Vì sao chế độ tài khoản quan trọng?
Dữ liệu thật và dữ liệu sandbox tách biệt nhau, nên một ID từ chế độ này có thể trông như không tồn tại ở chế độ kia.
Làm sao nó biết một ID là gì?
ID Stripe bắt đầu bằng tiền tố cho biết loại đối tượng, như ch cho giao dịch thu tiền hoặc pi cho payment intent.
Nó có đoán tên trường không?
Không. Nó tra cứu tham số thật của từng phương thức trước khi đọc, nên không tự bịa ra trường nào.
Chi tiết
Mô tả gốc của tác giả
Answer a question about money that already moved in Stripe — why a charge failed, what a customer was billed, where an invoice or payout stands — by reading the object chain instead of guessing from a dashboard total. Use when the user pastes a Stripe id, asks why a payment failed, asks what a customer is paying, or wants revenue, invoice, or subscription state.
repo: ParadevAI/Paradev
Độ phổ biến
- Sao GitHub
- 16k
- Vị trí xếp hạng
- #10853
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
decide
16kHướng dẫn bạn từng quyết định về thiết kế hoặc code, mỗi lần một việc, có lựa chọn rõ ràng và khuyến nghị. Ghi lại mọi câu trả lời và đưa ra bản tóm tắt cuối.
mobile-demo-film
16kBiến video quay màn hình điện thoại thành video demo gọn gàng, có thẻ tiêu đề, khung điện thoại và thẻ kết thúc. Hợp với demo tính năng và clip ra mắt.
redesign
16kXem xét một thành phần giao diện và đề xuất cách sửa cụ thể về khoảng cách, độ tương phản, thứ bậc và bố cục. Cũng có thể áp dụng thay đổi.
superset-settings
16kCho phép agent xem và thay đổi cài đặt ứng dụng desktop Paradev, như giao diện, phông chữ và thông báo, từ dòng lệnh.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.