stripe-refund-auditor

Audit Stripe refunds over a date range and generate an anomaly score report.

43|6|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/anton-abyzov/vskill --skill stripe-refund-auditor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stripe-refund-auditor
Source: https://github.com/anton-abyzov/vskill/tree/main/plugins/personal/skills/stripe-refund-auditor
Command: npx skills add https://github.com/anton-abyzov/vskill --skill stripe-refund-auditor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires stripe, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Audits Stripe refunds over a date range to surface anomalies such as refund-rate spikes, missing reasons, and duplicate refunds, and emits a markdown report.

Core Features & Use Cases

  • Pull refunds from Stripe over a date window using scripts/audit.py to generate a per-refund JSON record.
  • Use scripts/grader.py to compute a deterministic anomaly score and produce an anomalies list with an overall score.
  • Render a human-readable markdown report focusing on the highest-scoring anomalies, including id, amount, currency, status, and reason.
  • Preflight and integration checks ensure STRIPE_API_KEY availability and safe operation in test mode.

Quick Start

Run python3 scripts/audit.py --since "YYYY-MM-DD" --until "YYYY-MM-DD" to generate refunds.jsonl, then run python3 scripts/grader.py refunds.jsonl to produce the anomaly report.

Frequently Asked Questions about stripe-refund-auditor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit Stripe refunds for anomalies over a specific date range?

To audit Stripe refunds for anomalies, run the audit script with --since and --until date arguments to pull per-refund data into a JSONL file, then run the grader script to compute an overall anomaly score and generate a markdown report highlighting refund-rate spikes, missing reasons, and duplicates.

What types of refund anomalies can I detect in my Stripe transaction data?

Stripe refund anomaly detection surfaces refund-rate spikes, missing refund reasons, and duplicate refunds. The grader computes a deterministic anomaly score per refund and outputs a markdown report listing the highest-scoring anomalies with details like id, amount, currency, status, and reason.

Do I need a Stripe API key and Python environment to run a refund audit?

Yes, auditing Stripe refunds requires a STRIPE_API_KEY set in the environment or a .env.local file, along with Python 3.10 or higher. Preflight and integration checks verify API key availability and ensure safe operation in Stripe test mode before executing the audit.

What's the best way to generate a markdown report from Stripe refund data?

Generating a markdown report from Stripe refund data involves running the audit script to produce a per-refund JSONL file, followed by the grader script which computes deterministic anomaly scores and renders a human-readable markdown report focusing on the highest-scoring refund anomalies.

Can I compare Stripe refund activity across different time periods?

Comparing Stripe refund activity across periods is supported by the audit script, which accepts --since and --until date parameters to define the refund window. Running audits on separate date ranges produces individual JSONL files and anomaly scores for period-over-period comparison.

Why does my Stripe refund audit need to run in test mode?

Stripe refund audit preflight checks enforce test mode to ensure safe operation, preventing unintended live transaction modifications during anomaly detection. This safeguard verifies the STRIPE_API_KEY environment configuration before the audit and grader scripts pull refund data and compute anomaly scores.