Evaluates whether a Stripe dispute is economical to contest, then gathers evidence and submits only when approved. Requires Stripe secret key and optional database connection.
Ships in openclaudia-openclaudia-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Evaluate the economics first. When contesting is justified and approved, build an evidence package and submit it to Stripe. Works for any SaaS using Stripe and a user database with login or usage logs.
Use this skill when the user:
du_*) and asks to "counter" / "rebut" / "fight" itfraudulent, product_not_received, product_unacceptable, or subscription_canceledSTRIPE_SECRET_KEY=sk_live_... # Stripe restricted/secret key with disputes:write scope
DATABASE_URL=postgres://... # READ-ONLY connection to your app's user database (optional but recommended)
TERMS_URL=https://yoursite.com/terms # URL to your published cancellation/refund policy
EVIDENCE_DIR=~/disputes # Where to save the per-customer evidence folders
Database safety: all queries are SELECT-only. Never let this skill issue UPDATE/DELETE/INSERT.
The user provides any of:
du_xxxxx) — preferredch_xxxxx or py_xxxxx)Accepting a dispute can be the correct outcome. Never submit evidence merely because a case exists.
evidence_details.submission_count > 0. Separate initial purchases
from renewals and narrow to the same reason when the sample permits. Report wins,
losses, open cases, and sample size. State when no exact-match precedent exists.curl -s -u "$STRIPE_SECRET_KEY:" \
"https://api.stripe.com/v1/disputes/$DISPUTE_ID" | python3 -m json.tool
Extract: amount, reason, charge, evidence_details.due_by, evidence_details.submission_count, status.
If submission_count > 0 the dispute has already been countered — STOP and warn the user.
# Charge → tells you the payment method, risk score, billing details, customer ID
curl -s -u "$STRIPE_SECRET_KEY:" "https://api.stripe.com/v1/charges/$CHARGE_ID"
# Customer → name, email, default payment source
curl -s -u "$STRIPE_SECRET_KEY:" "https://api.stripe.com/v1/customers/$CUSTOMER_ID"
# All invoices for the customer → look for previously-undisputed payments
curl -s -u "$STRIPE_SECRET_KEY:" \
"https://api.stripe.com/v1/invoices?customer=$CUSTOMER_ID&limit=100"
# Subscription (if recurring)
curl -s -u "$STRIPE_SECRET_KEY:" "https://api.stripe.com/v1/subscriptions/$SUB_ID"
Prior undisputed payments on the same card are useful corroboration for fraudulent
claims. Always count them, but do not treat them as proof by themselves.
Adapt these queries to your schema. A useful evidence shape:
-- User profile and self-reported cancel reason
SELECT id, email, created_at, plan_tier, stripe_customer_id,
cancel_reason, cancelled_at, delete_reason
FROM users WHERE email ILIKE :email;
-- Login activity (timestamps + country + device)
SELECT created_at, country_code, device
FROM user_activity WHERE user_id = :uid ORDER BY created_at;
-- Things the customer created/used in your product
SELECT name, type, created_at, updated_at
FROM projects WHERE user_id = :uid AND deleted = false ORDER BY created_at;
-- Checkout / payment-related actions (proves intent)
SELECT timestamp, endpoint, payload FROM action_logs
WHERE user_id = :uid
AND endpoint ~* '(subscribe|checkout|stripe|upgrade|pay)'
ORDER BY timestamp DESC;
For product_not_received claims, check the user's self-reported cancel_reason. If they
cancelled citing "Poor user experience" or anything admitting use, that field directly
contradicts the claim. Quote it verbatim, but do not infer a win rate from one fact.
FOLDER="$EVIDENCE_DIR/$(echo $CUSTOMER_NAME | tr '[:upper:] ' '[:lower:]-')-$(date +%Y-%m)"
mkdir -p "$FOLDER"
# Invoice PDFs (URLs come from the Stripe invoice objects)
curl -sL "$INVOICE_PDF_URL" -o "$FOLDER/invoice.pdf"
Using Playwright (Node):
node -e "
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
const page = await browser.newPage({ viewport: { width: 1280, height: 900 } });
await page.goto(process.env.TERMS_URL, { waitUntil: 'networkidle' });
await page.pdf({ path: process.argv[1], format: 'A4', printBackground: true });
await browser.close();
})();
" "$FOLDER/cancellation_policy.pdf"
Build a concise, reviewable HTML activity log, then convert it to PDF with WeasyPrint:
from weasyprint import HTML
HTML('activity_log.html').write_pdf('activity_log.pdf')
HTML must include <meta charset="UTF-8"> to avoid mangled characters in customer names/addresses.
A reviewable layout:
fraudulent by extension)cancel_reason against the stated dispute reason, if they contradict.Prefer concrete numbers over adjectives. "29 login sessions, 3 named projects, 29,960 credits consumed" is more useful than "used extensively."
open "$FOLDER"
Display the rebuttal text, the evidence files, and your win-probability assessment. Wait for explicit user approval.
Files go to files.stripe.com, NOT api.stripe.com — different host:
curl -s -u "$STRIPE_SECRET_KEY:" \
-F "purpose=dispute_evidence" \
-F "file=@$FOLDER/activity_log.pdf" \
https://files.stripe.com/v1/files
Returns {"id": "file_xxx", ...}. Capture the id — that's what you reference in evidence fields.
One file_id per dispute. Stripe rejects with 400 "That file is already attached to something else" if you try to reuse a file_id across disputes (especially for service_documentation). When fighting N disputes for the same customer, upload N copies of every shared PDF — same content, fresh file_id each time.
submit=true is final)curl -s -u "$STRIPE_SECRET_KEY:" \
-X POST "https://api.stripe.com/v1/disputes/$DISPUTE_ID" \
-d "evidence[uncategorized_text]=$REBUTTAL_TEXT" \
-d "evidence[uncategorized_file]=$ACTIVITY_LOG_FILE_ID" \
-d "evidence[receipt]=$INVOICE_FILE_ID" \
-d "evidence[cancellation_policy]=$TERMS_FILE_ID" \
-d "evidence[cancellation_policy_disclosure]=$CANCEL_DISCLOSURE_TEXT" \
-d "evidence[refund_policy]=$TERMS_FILE_ID" \
-d "evidence[refund_policy_disclosure]=$REFUND_DISCLOSURE_TEXT" \
-d "evidence[cancellation_rebuttal]=$CANCEL_REBUTTAL_TEXT" \
-d "evidence[access_activity_log]=$ACCESS_LOG_SUMMARY" \
-d "evidence[service_date]=$SERVICE_START_DATE" \
-d "evidence[product_description]=$PRODUCT_DESCRIPTION" \
-d "evidence[customer_email_address]=$CUSTOMER_EMAIL" \
-d "evidence[customer_name]=$CUSTOMER_NAME" \
-d "evidence[customer_purchase_ip]=$PURCHASE_IP" \
-d "evidence[billing_address]=$BILLING_ADDRESS" \
-d "submit=true" \
"https://api.stripe.com/v1/disputes/$DISPUTE_ID"
Verify the response:
status should be under_reviewevidence_details.has_evidence should be trueevidence_details.submission_count should be 1fraudulentGoal: prove the cardholder made the purchase.
normalproduct_not_receivedGoal: prove delivery + use.
product_unacceptableGoal: show the product matched its description and the customer used it.
product_not_received PLUS your terms-of-service language about quality / refund policysubscription_canceledGoal: prove the customer never cancelled (or cancelled after the renewal).
cancel_at_period_end=false at the renewal dateuncategorized_text[Customer name] created a [Product name] account on [date] via [auth method] and subscribed to [plan] ($[amount]/[interval]) using the same [card brand]. The first [N] payment(s) were never disputed. The customer actively used the service: [N] login sessions from [country] on [device], [N] items created ([list]), and [N] [units] consumed. The disputed charge is the [renewal/initial] payment on [date]. The subscription was [status] and remains [active/cancelled]. The customer never contacted support to cancel or request a refund. Our cancellation and refund policies are published at [TERMS_URL]. This is not a fraudulent transaction — it is a legitimate purchase from the cardholder who [made/has made] [N] other undisputed payments on this account.
cancellation_policy_disclosureOur cancellation policy is disclosed at [TERMS_URL]. Subscribers may cancel at any time and retain access through the end of their billing cycle. This customer never cancelled.
refund_policy_disclosureOur refund policy is disclosed at [TERMS_URL]. We offer a [N]-day money-back guarantee. The customer did not request a refund within that window, nor at any time.
files.stripe.com, NOT api.stripe.comsubmit=true is finalevidence_details.due_by (unix timestamp). After that you can no longer submitCustomer signs up, uses product briefly, cancels within hours citing "Poor user experience" in your in-app cancel form, then files a chargeback days later claiming "product not received."
The cancel form's reason directly contradicts the chargeback claim. Quote it word-for-word in the rebuttal, while still applying the fee and historical-outcome decision gate.
Always check users.cancel_reason (or your equivalent) FIRST when the dispute reason is product_not_received or product_unacceptable.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/openclaudia-openclaudia-skills:stripe-disputefrom openclaudia-openclaudia-skills
openclaudia-openclaudia-skills@cascade-communication is listed by joshuarweaver/cascade-communication — review the source before installing
npx claudepluginhub joshuarweaver/cascade-communication --plugin openclaudia-openclaudia-skills78 skills in this plugin
/ab-test-setupDesign, plan, and analyze A/B tests with statistical rigor. Use when the user asks about A/B testing, split testing, experiment design, statistical significance, sample size calculation, test duration, multivariate testing, or conversion experiments. Trigger phrases include "A/B test", "split test", "experiment", "statistical significance", "sample size", "test duration", "which version wins", "conversion experiment", "hypothesis test", "variant testing"./affiliate-marketingBuild and manage an affiliate marketing program. Use when the user says "affiliate program", "affiliate marketing", "affiliate partners", "referral commissions", "affiliate network", "partner program", "affiliate tracking", or asks about creating, managing, or growing an affiliate or partner program./ahrefs-pythonManages Ahrefs API usage in Python using `ahrefs-python` library. Use when working with SEO / marketing related tasks or with data including backlinks, keywords, domain ratings, organic traffic, site audits, rank tracking, and brand monitoring. Covers `ahrefs-python` usage including AhrefsClient / AsyncAhrefsClient, typed request/response models, error handling, and all API sections./ai-citations-reportGenerate an AI Citations Report (GEO) for a domain — which AI-search prompts cite the site across Google AI Overview and ChatGPT, plus organic-traffic context and per-article citation coverage. Use when the user asks for an 'AI citations report', 'GEO citations report', or 'which AI prompts cite <domain>'./generate-imageGenerate images using AI (OpenAI GPT Image or Stability AI). Use when the user asks to generate an image, create an AI image, make an illustration, or produce artwork from a text prompt./apollo-outreachResearch and enrich B2B leads using the Apollo.io API. Use when the user says "find leads", "prospect research", "company enrichment", "find decision makers", "B2B leads", "lead research", "enrich contacts", "find VP of marketing at", or asks about finding people at specific companies or in specific roles.2 plugins ship this exact skill · first indexed Aug 25, 2026
Other plugins' skills for the same job