Skip to content
Business
Skill

/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,\"

From plugin
makerskills
92426 skills

Claude Code

$ npx -y skills add coreyhaines31/makerskills --skill dispute-evidence --agent claude-code

SKILL.md

dispute-evidence.SKILL.md
name: dispute-evidence
description: "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."
metadata:
  version: 0.1.0

/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](https://github.com/conversionfactory/swipefiles-nextjs/pull/97). Details in `references/worked-example-swipefiles.md`. Printable audit list in `references/checklist.md`.

Hard rules (never skip)

1. **Never auto-submit evidence to Stripe.** Assemble a summary and alert a human. The human decides what to upload. 2. **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. 3. **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. 4. **New tables help only after deploy.** No backfill of past disputes. Say that clearly in the PR. 5. **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 | | **Mail** | 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:

1. **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 headers `x-forwarded-for` (first hop) then `x-real-ip`. 2. **Content access** — on lesson/page load: set `firstViewedAt` once, always bump `lastViewedAt`. Do **not** mark complete. Downloads get their own event rows (slug, format, IP, UA), not a generic activity dump. 3. **Checkout consent** — Stripe: `consent_collection.terms_of_service = "required"` plus `custom_text.terms_of_service_acceptance` linking terms **and** refund policy. Stamp Purchase/Order with `termsAcceptedAt`, `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; leave `termsAcceptedAt` null if no checkbox was shown. 4. **Policy versioning** — one constant (e.g. `CHECKOUT_POLICY_VERSION` date 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. 5. **SentEmail** — after the provider accepts the message, persist `to`, `subject`, provider, `messageId`, optional `userId`. 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 via `messageId`. 6. **Dispute webhook** — on `charge.dispute.created`: resolve buyer (PaymentIntent → Purchase, then charge metadata `userId`, 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 Stripe evidence submit.** 7. **Admin buyer record** — search by email; detail page merges purchases, entitlements/access, progress, auth events, downloads, emails into one timeline. CSV export columns `at,kind,detail` for Stripe's access activity log. JSON for the full bundle. Admin-only (404 otherwise). Keep URLs out of marketing analytics if possible. 8. *

Read more
@coreyhaines31-2
Ships withmakerskills

AI agent skills for the personal operator's craft. Decisions, research, second-brain workflows, content rotation, scenario modeling, CFO cadence, domain hunts, and the meta-skills to author more. Built for founders and indie operators.

Stars on GitHub

Momentum

stars in total
924
Star history of coreyhaines31/makerskills on GitHub, a chart by star-history.com

Other skills on makerskills.

castmate

castmate

When you want to pull in the right AI model for the right job: hand a task to another agent CLI (Codex, Claude, Gemini, Grok,…

ci-audit

ci-audit

When you want to cut GitHub Actions minutes and wait time across one repo or a whole portfolio. Measures queue, setup and run…

company-brain

company-brain

Your team's shared, AI-ready knowledge base — people, companies, meetings, SOPs, and decisions structured so an agent can answer…

company-cfo

company-cfo

Monthly CFO workflow for a company or agency — pull raw data from bank + payment processor + payroll + expense management,…

decide

decide

When you have a decision to make and want a structured workflow that picks the load-bearing questions, walks through them,…

More skills from other plugins.

opc-asset-ops

opc-asset-ops

Turn repeatable outputs of a one-person company into compounding assets. Use when Codex needs to explain asset-compounding…

@easychen@easychenInstall Skill
dbs

dbs

dontbesilent 商业工具箱的技能调度台,根据当前问题和反馈选择下一步,在对话中直接执行、澄清、组合或对照尝试 Skill。用户不知道从哪里开始、需要调整处理方法、第一次使用…

dbs11d11k
@dontbesilent2025@dontbesilent2025Install Skill

Questions about dispute-evidence.

Which coding agents can use dispute-evidence?
dispute-evidence installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.