dispute-evidence
БесплатноБез исполняемых скриптовНе проверенWhen you want to add dispute/chargeback/refund evidence logging to an app (sign-in logs, access/download events, checkout ToS consent, policy versioning…
от coreyhaines31★ 965 звёзд на GitHubОб этом скилле
/dispute-evidence — Instrument an app so you can fight chargebacks
Turn "the buyer never used it" into rows: sign-ins, content views, downloads, checkout consent, mail delivery, and a support alert when a dispute opens. Evidence is read-only for a human. Nothing in this skill submits evidence to Stripe or changes a dispute's status.
Reference stack is Next.js + Prisma + Auth.js + Stripe + Resend (or similar). Adapt table/hook names to Rails, Laravel, etc. The checklist stays the same.
Worked example: Swipe Files draft PR conversionfactory/swipefiles-nextjs#97. Details in references/worked-example-swipefiles.md. Printable audit list in references/checklist.md.
Hard rules (never skip)
- Never auto-submit evidence to Stripe. Assemble a summary and alert a human. The human decides what to upload.
- Never change published refund policy windows without an explicit product decision. If membership says 2 days and a course page says 30, flag it and leave both alone until the owner picks.
- Evidence writes are best-effort. A failed AuthEvent / view / download / SentEmail write must never block sign-in, checkout, fulfilment, or mail send. Log and continue.
- New tables help only after deploy. No backfill of past disputes. Say that clearly in the PR.
- Don't buy a log-drain vendor without the owner's OK. Recommend options with retention ≥ ~120 days.
Step 0 — Scope the target app
Confirm with the user:
- Which repo / production app.
- Payment provider (Stripe Card disputes, PayPal, etc.).
- Auth strategy (JWT sessions with no server session table? Cookie sessions? Devise?).
- Whether an admin surface already exists.
- Support alert destination (team inbox, Slack, both).
Read CLAUDE.md / AGENTS.md if present for stack defaults. Then load references/checklist.md.
Step 1 — Audit for evidence gaps
Walk the app and score each row green / yellow / missing:
| Area | What "green" looks like |
|---|---|
| Auth | Successful sign-ins persisted with method, IP, user agent |
| Content access | First + last view on lessons/pages; separate download events for files |
| Checkout consent | Payment provider requires ToS acceptance; Purchase/Order stores acceptance time, buyer IP/UA, policy version |
| Policies | Refund/terms links resolve; product-specific vs membership policies are clear; conflicting windows flagged to a human |
| Provider message id stored per send; open/click tracking documented (off by default for magic links) | |
| Dispute webhook | charge.dispute.created (or equivalent) alerts support with a read-only evidence summary |
| Admin export | Buyer timeline + CSV/JSON shaped for Stripe access_activity_log; admin-only |
| Log retention | Runtime logs kept ≥ ~120 days, or a drain recommended (not purchased) |
Show the gap table to the user before writing code. Prefer small issues or one PR covering the missing rows.
Step 2 — Implement (stack-appropriate)
Order that usually unblocks evidence fastest:
- AuthEvent (or equivalent) — on successful sign-in, record
userId, method (magic_link,oauth:google, …), IP, UA, timestamp. Cap IP/UA strings (~500 chars). Prefer request headersx-forwarded-for(first hop) thenx-real-ip. - Content access — on lesson/page load: set
firstViewedAtonce, always bumplastViewedAt. Do not mark complete. Downloads get their own event rows (slug, format, IP, UA), not a generic activity dump. - Checkout consent — Stripe:
consent_collection.terms_of_service = "required"pluscustom_text.terms_of_service_acceptancelinking terms and refund policy. Stamp Purchase/Order withtermsAcceptedAt,buyerIp,buyerUserAgent,policyVersion. Pass IP/UA/version through checkout metadata if fulfilment is async. Off-session one-click upsells: stamp IP/UA/version from the buyer's request; leavetermsAcceptedAtnull if no checkbox was shown. - Policy versioning — one constant (e.g.
CHECKOUT_POLICY_VERSIONdate string) stamped on every new purchase. Bump whenever terms or refund copy changes. Fix broken refund links / redirects. Quote existing policy wording on product-specific pages; don't invent new day windows. - SentEmail — after the provider accepts the message, persist
to,subject, provider,messageId, optionaluserId. Document open/click tracking caveats: click rewriting can burn single-use sign-in links; prefer open-only for transactional mail, or keep tracking off and look up delivery in the provider dashboard viamessageId. - Dispute webhook — on
charge.dispute.created: resolve buyer (PaymentIntent → Purchase, then charge metadatauserId, then billing email), load the evidence bundle, email/Slack support with dispute id, amount, reason, due date, customer email, counts, UTC timeline, and admin deep link. Failed alert → non-2xx so the provider retries. **No S
Установить dispute-evidence в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл dispute-evidence?
When you want to add dispute/chargeback/refund evidence logging to an app (sign-in logs, access/download events, checkout ToS consent, policy versioning, email delivery tracking, dispute webhook alerts, admin evidence export, log retention). Triggers on "dispute evidence," "chargeback evidence," "refund evidence," "fight chargebacks," "access activity log." Product instrumentation, not marketing copy — marketingskills refunds/paywalls write offers; this records proof of access. Load references/checklist.md and references/worked-example-swipefiles.md.
Как установить скилл dispute-evidence?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dispute-evidence запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic