From personal
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".
How this skill is triggered — by the user, by Claude, or both
Slash command
/personal:stripe-refund-auditorThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Audit Stripe refunds over a date range to surface anomalies — refund-rate spikes,
Audit Stripe refunds over a date range to surface anomalies — refund-rate spikes, missing reasons, suspicious duplicates — and emit a markdown report.
Trigger when the user asks any of:
STRIPE_API_KEY from the environment (or .env.local next to this skill).scripts/audit.py with the requested date range. The script paginates
through /v1/refunds and emits a JSON record per refund.scripts/grader.py over the JSON output to compute a deterministic
anomaly score in [0, 1].id, amount, currency, status, and reason.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 without STRIPE_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.local and fill in real values.Before invoking, run vskill check stripe-refund-auditor to verify:
STRIPE_API_KEY is resolvable from env or .env.local.>=3.10 is on PATH.pytest --collect-only tests/ succeeds.python3 scripts/audit.py --since "$(date -u -v-30d +%Y-%m-%d)" --until "$(date -u +%Y-%m-%d)" > /tmp/refunds.jsonl
python3 scripts/grader.py /tmp/refunds.jsonl > /tmp/refund-scores.json
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.
STRIPE_API_KEY missing → audit.py exits with code 2 and prints a
diagnostic line. Run vskill check stripe-refund-auditor to see which env
source is searched.grader.py returns {"overall_score": 0.0, "anomalies": []}.audit.py exits non-zero and the message includes the
underlying HTTP status. Re-run after fixing connectivity.npx claudepluginhub adam-s-tech/vskill --plugin personalCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.