stripe-refund-auditor
Audits Stripe refunds over a date range to surface anomalies (refund-rate spikes, missing reasons, duplicate refunds). Activates when the user asks to "audit refunds", "check Stripe refund anomalies", or "review refund activity".
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 47
- Forks
- 5
01 前言 Front Matter
- name
- stripe-refund-auditor
- secrets
- [ "STRIPE_API_KEY" ]
- version
- 1.0.0
- mcp-deps
- [ "stripe" ]
- metadata
- { "tags": [ "stripe", "finance", "audit" ], "category": "finance" }
- description
- Audits Stripe refunds over a date range to surface anomalies (refund-rate spikes, missing reasons, duplicate refunds). Activates when the user asks to "audit refunds", "check Stripe refund anomalies", or "review refund activity".
- runtime-pip
- [ "stripe>=8", "pydantic>=2" ]
- allowed-tools
- Bash, Read, Write
- runtime-python
- >=3.10
- integration-file
- tests/integration_test.py
- integration-runner
- pytest
- integration-requires
- [ "STRIPE_API_KEY" ]
02 资源文件 6
- 其他.env.example394 B
- 参考文档evals/evals.json2.1 KB
- 参考文档references/refund-schema.md2.1 KB
- 脚本scripts/audit.py2.9 KB
- 脚本scripts/grader.py2.7 KB
- 脚本tests/integration_test.py2.6 KB
03 SKILL.md 正文
/stripe-refund-auditor
Audit Stripe refunds over a date range to surface anomalies — refund-rate spikes, missing reasons, suspicious duplicates — and emit a markdown report.
When to use
Trigger when the user asks any of:
- "Audit our Stripe refunds for the last 30 days"
- "Check refund anomalies in Stripe"
- "Review refund activity since {date}"
What this skill does
- Read
STRIPE_API_KEYfrom the environment (or.env.localnext to this skill). - Run
scripts/audit.pywith the requested date range. The script paginates through/v1/refundsand emits a JSON record per refund. - Run
scripts/grader.pyover the JSON output to compute a deterministic anomaly score in[0, 1]. - Render a markdown report listing the highest-scoring anomalies with their
id,amount,currency,status, andreason.
Files in this skill
scripts/audit.py— the deterministic refund-pull + anomaly-detection helper.scripts/grader.py— pure-function grader producing a 0..1 numeric score.tests/integration_test.py— pytest integration test (skipped withoutSTRIPE_API_KEY).references/refund-schema.md— Stripe Refund object field reference.evals/evals.json— LLM-judged behavioral evaluation cases..env.example— placeholder template; copy to.env.localand fill in real values.
Preflight
Before invoking, run vskill check stripe-refund-auditor to verify:
- The Stripe MCP server is configured in your Claude config.
STRIPE_API_KEYis resolvable from env or.env.local.- Python
>=3.10is on PATH. pytest --collect-only tests/succeeds.
Step 1 — Pull refunds. Run this immediately:
python3 scripts/audit.py --since "$(date -u -v-30d +%Y-%m-%d)" --until "$(date -u +%Y-%m-%d)" > /tmp/refunds.jsonl
Step 2 — Score anomalies. Run this immediately:
python3 scripts/grader.py /tmp/refunds.jsonl > /tmp/refund-scores.json
Step 3 — Render the report. Run this immediately:
python3 -c "import json,sys; data=json.load(open('/tmp/refund-scores.json')); print(json.dumps({'top_anomalies': data['anomalies'][:10], 'score': data['overall_score']}, indent=2))"
The skill's caller is expected to take the JSON from Step 3 and turn it into
prose. See references/refund-schema.md for the underlying field semantics.
Failure modes
STRIPE_API_KEYmissing →audit.pyexits with code 2 and prints a diagnostic line. Runvskill check stripe-refund-auditorto see which env source is searched.- Empty result set →
grader.pyreturns{"overall_score": 0.0, "anomalies": []}. - Network failure →
audit.pyexits non-zero and the message includes the underlying HTTP status. Re-run after fixing connectivity.
04 同仓库更多 Skills
x-reply-drafts
Find live X threads where a product genuinely fits, and draft truthful, humanized replies for the owner to review and post by hand. Human pace only: max 5 replies a day, never two within 20 minutes, no automated posting. Use when the user asks to 'find threads to reply to', 'draft X replies', 'reply-guy session', 'join trending conversations', 'engage on Twitter about <product>', or wants a daily batch of reply drafts. Not for scheduling original posts (social-media-posting) or bulk publishing (blotato).
hello-world
A tiny test skill used by the 0853 verify-runtime harness. Says hello. No external calls. Use when the user asks for a sanity-check skill in a verify-harness fixture.
existing-skill
Lint markdown files for style and grammar issues.
remotion-best-practices
Best practices for Remotion video creation in React — scaffolding, compositions, animations, transitions — PLUS hard-won rules for high-fidelity product-demo videos: real logos/icons, precise YouTube-reference matching, full-screen camera zooms, click-targets that actually hit, content-tight rectangle highlights, voiceover regeneration discipline, audio-level normalization (no double-boost), per-scene voice-sync math, Studio detail-page mirror patterns, bold-not-subtle connection lines, and the YouTube publication kit (chapters, description, thumbnail, hashtags) that turns a render into a shipped video.
rea
Find out exactly how a feature is implemented in a shipped tool or app you don't have the source for (desktop apps, Electron apps like Claude desktop, native CLIs like Codex, websites, APKs, .NET assemblies) using REA - Reverse Engineer Anything (github.com/morluto/rea). Sets REA up when it is missing (CLI, MCP registration, Hopper or Ghidra), routes the target to the right REA tool, keeps evidence out of the context window, and turns findings into a clean-room spec before any rebuild. Use when the user says 'use REA', 'reverse engineer', 'how does <app> do X', 'how is this feature implemented in <tool>', 'clone this feature', 'decompile', 'look inside the app', or asks how a closed-source competitor works. Skip it when the source is available - read the repo instead.
motion-graphics-promo
After Effects-style motion graphics for short product promos (15-45 s, vertical or landscape), built as code with HyperFrames + GSAP. Covers a story-first brief, motion grammar (energetic entry, one transition per task, spring settle, 2-3 s of stable proof), a 32-second promo timeline, device-frame and kinetic-type recipes, vertical-first composition, evidence rules (real UI only, no fake clicks), music licensing and encoded-frame verification. Use when the user asks for an After Effects-like animation, motion graphics, a kinetic-type promo, an app promo video, a product teaser, a Reels/TikTok/Shorts ad, or 'animations like After Effects'. Also covers short explainers, tutorials and 15-second vertical ads: a design kit (footage beds, condensed caps in a marker box, white device frames, falling stickers, voice-over with music ducking) and HyperFrames render traps that silently break output. Pairs with hyperframes-best-practices (screencast pipeline) and remotion-best-practices.