Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/peerjakobsen/smartspender/spending-analysisnpx skills add peerjakobsen/smartspender --skill spending-analysisgit clone --depth 1 https://github.com/peerjakobsen/smartspenderWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/peerjakobsen/smartspender/spending-analysis)<a href="https://agentmods.dev/skills/peerjakobsen/smartspender/spending-analysis"><img src="https://agentmods.dev/badge/skills/peerjakobsen/smartspender/spending-analysis.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00033 | $0.02196 |
| Opus 5 | $0.00016 | $0.01098 |
| Sonnet 5 | $0.00007 | $0.00439 |
| Haiku 4.5 | $0.00003 | $0.00220 |
Grade A, and why
spending-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 246 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Spending Analysis
Purpose
Provides rules for analyzing categorized transaction data — aggregating spending by category, comparing month-over-month, detecting unusual transactions, and generating savings recommendations.
Category Aggregation
For a given month, aggregate all categorized transactions:
- Group transactions by
category - For each category, compute:
total: Sum of all transaction amounts (absolute values for expenses)transaction_count: Number of transactionsavg_transaction:total / transaction_count
- Calculate each category's percentage of total spending:
category_total / total_spending × 100 - Sort categories by total (highest first)
Write results to monthly-summary.csv.
Receipt-Level Breakdown
For a given merchant, aggregate spending at the receipt-item level instead of the transaction level. Used when the user asks about spending at a specific merchant (e.g., "Hvad bruger jeg hos Bilka?").
Data Source
- Read
receipts.csv, filter bymerchant(case-insensitive match against normalized merchant name perskills/categorization/SKILL.md) - If
monthargument is provided, also filter bydatecolumn (YYYY-MM prefix match) - Collect all matching
receipt_idvalues and theirdatevalues - Determine which monthly files to read: extract unique YYYY-MM values from the receipt dates
- For each monthly file
receipt-items-{YYYY-MM}.csv: read it if it exists, filter to rows wherereceipt_idis in the collected set. Skip missing files. - Combine all matching rows
Aggregation Rules
Group matching receipt items by subcategory:
- For each subcategory, compute:
total: Sum oftotal_pricefor all items in that subcategoryitem_count: Sum ofquantityfor all items in that subcategoryavg_price:total / item_count
- Calculate each subcategory's percentage of total merchant spending:
subcategory_total / merchant_total × 100 - Sort subcategories by total (highest first)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 246 lines · 33 tokens per session scan A 2e1971e7a55f
spending-analysis is a skill published in the GitHub repository peerjakobsen/smartspender (5 stars, last pushed 7mo ago), licensed MIT. It adds 33 tokens to every session and 2,196 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
cap-table-analysis
Guides Slice MCP cap-table and ESOP-pool analysis by combining company summary, cap table, ownership, stakeholder, share class, funding round, equity pool, valuation, and securities tools. Use when answering questions about cap table structure, stakeholder holdings, ownership, ESOP pools, share classes, rounds…
workflows-analysis
Guides Slice MCP workflow analysis using workflow list/get-one tools, exercise payment reconciliation, and tax withholding tools. Use when answering questions about grant letters, corporate approvals, share certificate workflows, exercise workflows, pending payments, tax withholding, workflow status, stuck workflows…
board-presentation-analysis
Guides creation of board-ready Slice presentations using MCP tools, especially offered-status grants and ESOP/equity-pool summaries. Use when preparing board decks, board approval packs, grant approval summaries, ESOP pool updates, option pool utilization slides, or board-facing equity recommendations.
equity-compensation-analysis
Guides Slice MCP analysis of equity compensation, grants, options, RSUs, vesting, exercises, forfeitures, PTEP, tax treatments, and valuations. Use when answering questions about employee equity, grant positions, vested or exercisable quantities, exercise price, FMV/409A, option pool consumption, tax treatment, or…
funding-rounds-analysis
Guides Slice MCP analysis of funding rounds, share classes, price per share, primary issuances, secondary transactions, convertibles, SAFEs, option-pool top-ups, total raised, and dilution. Use when answering questions about rounds, Series A/B/C, seed rounds, bridge rounds, investor positions, round history…
waterfall-analysis
Guides exit waterfall analysis using Slice MCP cap-table, share-class, securities, rounds, and ownership tools. Use when answering questions about exit proceeds, liquidation preferences, participating preferred, conversion thresholds, proceeds allocation, MOIC, investor returns, or ordinary/common shareholder payouts.