refund-radar
Scan bank statements to detect recurring charges, flag suspicious transactions, and draft refund requests with interactive HTML reports.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- refund-radar
- description
- Scan bank statements to detect recurring charges, flag suspicious transactions, and draft refund requests with interactive HTML reports.
02 资源文件 13
- 参考文档_meta.json278 B
- 资产文件assets/template.html23.2 KB
- 参考文档CHANGELOG.md1.2 KB
- 参考文档PUBLISH.md1.6 KB
- 参考文档references/detection-rules.md2.5 KB
- 参考文档references/filtering.md10.9 KB
- 参考文档references/importing_exporting.md9.1 KB
- 参考文档references/migration.md8.2 KB
- 参考文档references/refund-templates.md3.3 KB
- 参考文档references/similarity.md11.3 KB
- 参考文档references/sources.md5.5 KB
- 参考文档references/workflows.md12.7 KB
- 脚本scripts/library_search.py19.7 KB
03 SKILL.md 正文
refund-radar
Scan bank statements to detect recurring charges, flag suspicious transactions, identify duplicates and fees, draft refund request templates, and generate an interactive HTML audit report.
Triggers
- "scan my bank statement for refunds"
- "analyze my credit card transactions"
- "find recurring charges in my statement"
- "check for duplicate or suspicious charges"
- "help me dispute a charge"
- "generate a refund request"
- "audit my subscriptions"
Workflow
1. Get Transaction Data
Ask user for bank/card CSV export or pasted text. Common sources:
- Apple Card: Wallet → Card Balance → Export
- Chase: Accounts → Download activity → CSV
- Mint: Transactions → Export
- Any bank: Download as CSV from transaction history
Or accept pasted text format:
2026-01-03 Spotify -11.99 USD
2026-01-15 Salary +4500 USD
2. Parse and Normalize
Run the parser on their data:
python -m refund_radar analyze --csv statement.csv --month 2026-01
Or for pasted text:
python -m refund_radar analyze --stdin --month 2026-01 --default-currency USD
The parser auto-detects:
- Delimiter (comma, semicolon, tab)
- Date format (YYYY-MM-DD, DD/MM/YYYY, MM/DD/YYYY)
- Amount format (single column or debit/credit)
- Currency
3. Review Recurring Charges
Tool identifies recurring subscriptions by:
- Same merchant >= 2 times in 90 days
- Similar amounts (within 5% or $2)
- Consistent cadence (weekly, monthly, yearly)
- Known subscription keywords (Netflix, Spotify, etc.)
Output shows:
- Merchant name
- Average amount and cadence
- Last charge date
- Next expected charge
4. Flag Suspicious Charges
Tool automatically flags:
| Flag Type | Trigger | Severity |
|---|---|---|
| Duplicate | Same merchant + amount within 2 days | HIGH |
| Amount Spike | > 1.8x baseline, delta > $25 | HIGH |
| New Merchant | First time + amount > $30 | MEDIUM |
| Fee-like | Keywords (FEE, ATM, OVERDRAFT) + > $3 | LOW |
| Currency Anomaly | Unusual currency or DCC | LOW |
5. Clarify with User
For flagged items, ask in batches of 5-10:
- Is this charge legitimate?
- Should I mark this merchant as expected?
- Do you want a refund template for this?
Update state based on answers:
python -m refund_radar mark-expected --merchant "Costco"
python -m refund_radar mark-recurring --merchant "Netflix"
6. Generate HTML Report
Report saved to ~/.refund_radar/reports/YYYY-MM.html
Copy template.html structure. Sections:
- Summary: Transaction count, total spent, recurring count, flagged count
- Recurring Charges: Table with merchant, amount, cadence, next expected
- Unexpected Charges: Flagged items with severity and reason
- Duplicates: Same-day duplicate charges
- Fee-like Charges: ATM fees, FX fees, service charges
- Refund Templates: Ready-to-copy email/chat/dispute messages
Features:
- Privacy toggle (blur merchant names)
- Dark/light mode
- Collapsible sections
- Copy buttons on templates
- Auto-hide empty sections
7. Draft Refund Requests
For each flagged charge, generate three template types:
- Email: Formal refund request
- Chat: Quick message for live support
- Dispute: Bank dispute form text
Three tone variants each:
- Concise (default)
- Firm (assertive)
- Friendly (polite)
Templates include:
- Merchant name and date
- Charge amount
- Dispute reason based on flag type
- Placeholders for card last 4, reference number
Important: No apostrophes in any generated text.
CLI Reference
# Analyze statement
python -m refund_radar analyze --csv file.csv --month 2026-01
# Analyze from stdin
python -m refund_radar analyze --stdin --month 2026-01 --default-currency CHF
# Mark merchant as expected
python -m refund_radar mark-expected --merchant "Amazon"
# Mark merchant as recurring
python -m refund_radar mark-recurring --merchant "Netflix"
# List expected merchants
python -m refund_radar expected
# Reset learned state
python -m refund_radar reset-state
# Export month data
python -m refund_radar export --month 2026-01 --out data.json
Files Written
| Path | Purpose |
|---|---|
~/.refund_radar/state.json |
Learned preferences, merchant history |
~/.refund_radar/reports/YYYY-MM.html |
Interactive audit report |
~/.refund_radar/reports/YYYY-MM.json |
Raw analysis data |
Privacy
- No network calls. Everything runs locally.
- No external APIs. No Plaid, no cloud services.
- Your data stays on your machine.
- Privacy toggle in reports. Blur merchant names with one click.
Requirements
- Python 3.9+
- No external dependencies
Repository
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.