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.
git 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/commands/peerjakobsen/smartspender/receipt)<a href="https://agentmods.dev/commands/peerjakobsen/smartspender/receipt"><img src="https://agentmods.dev/badge/commands/peerjakobsen/smartspender/receipt/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/peerjakobsen/smartspender/receipt"><img src="https://agentmods.dev/badge/commands/peerjakobsen/smartspender/receipt.svg" alt="Reviewed on agentmods" width="80" 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.00018 | $0.01969 |
| Opus 5.5 | $0.00007 | $0.00788 |
| Sonnet 5.5 | $0.00004 | $0.00394 |
| Haiku 4.5 | $0.00002 | $0.00197 |
Grade A, and why
receipt 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 1mo 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 — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/smartspender:receipt
Trigger
/smartspender:receipt upload- "Upload en kvittering"
- "Registrer denne kvittering"
- "Tilfoej kvittering"
Arguments
| Argument | Required | Values | Default |
|---|---|---|---|
| action | yes | upload | - |
Prerequisites
- At least one bank sync completed (transactions.csv exists with data) for matching to work
- User has a receipt image or PDF invoice ready to share
Workflow
- Prompt the user to share their receipt: "Del venligst kvitteringen — du kan indsaette et billede eller traekke en PDF ind i chatten."
- [USER ACTION]: User attaches a receipt image or PDF invoice
- If no file is attached, respond: "Jeg kan ikke se nogen kvittering. Indsaet venligst et billede eller en PDF."
- Load extraction rules:
skills/document-parsing/SKILL.md - Load vendor detection workflow from
skills/document-parsing/SKILL.md - Detect vendor from the uploaded file (filename, header/logo, content keywords) per the invoice-parsing skill's vendor detection workflow
- If vendor detected: check for
invoice-knowledge/{vendor-id}/PARSER.md- If parser exists: load vendor-specific extraction rules and use them for steps 8-11
- If no parser: continue with general extraction rules from receipt-parsing skill
- Extract receipt metadata using Claude Vision:
- Merchant name (normalize per
skills/categorization/SKILL.md) - Date (convert to YYYY-MM-DD)
- Total amount (convert to standard decimal format)
- Currency (default DKK)
- Merchant name (normalize per
- Present extraction summary to user for confirmation:
Jeg aflæste følgende fra kvitteringen: Butik: {merchant} Dato: {date, Danish format} Total: {total} kr Er det korrekt? (Eller ret de felter der er forkerte) - [USER ACTION]: User confirms or provides corrections
- Apply any corrections from the user
- Extract line items from the receipt:
- Item name, quantity, unit price, total price
- Assign category and subcategory per
skills/document-parsing/SKILL.mdproduct taxonomy (or vendor-specific PARSER.md if loaded in step 7) - Handle discounts (RABAT lines)
- Validate line item sum against receipt total (per variance rules in document-parsing skill)
- Load schema:
skills/data-schemas/SKILL.md - Check for duplicate receipts in receipts.csv (same date + merchant + total_amount). If duplicate found, ask: "Denne kvittering ligner en der allerede er registreret ({receipt_id} fra {date}). Vil du tilfoeje den alligevel?"
- [USER ACTION] (only if duplicate): User confirms or cancels
- If user cancels on duplicate, stop and output: "Kvitteringen blev ikke tilfojet."
- Load matching rules:
skills/transaction-matching/SKILL.md - Search transactions.csv for matching transactions (amount +-1%, date +-1 day)
- Score candidates per transaction-matching confidence rules
- If exactly 1 match with confidence >= 0.8: auto-link to the transaction
- If multiple candidates or confidence < 0.8: present candidates to user:
Jeg fandt {n} mulige transaktioner til denne kvittering: 1. {date} — {description} — {amount} kr (match: {confidence_pct}%) 2. {date} — {description} — {amount} kr (match: {confidence_pct}%) Hvilken transaktion hører kvitteringen til? (Eller "ingen" hvis ingen passer) - [USER ACTION] (only if ambiguous): User picks a candidate or says "ingen"
- If no candidates found: store as unmatched
- Generate receipt_id (
rcpt-+ 8 hex chars) and item_ids (ritm-+ 8 hex chars per item) - Create the
receipts/directory if it does not exist - Save the uploaded file to
receipts/{receipt_id}.{ext}(preserve original extension). Setfile_referenceto this path. - If receipts.csv does not exist, create it with the header row
- Append receipt row to receipts.csv
- Determine the monthly file from the receipt date:
receipt-items-{YYYY-MM}.csv(e.g., receipt date 2026-01-28 →receipt-items-2026-01.csv) - If the monthly file does not exist, create it with the header row
- Append all item rows to
receipt-items-{YYYY-MM}.csv - Append event to action-log.csv:
action_type: receipttarget: {merchant}status: completeddetails: "{item_count} items, {match_status} to {transaction_description or 'no transaction'}"
- Output summary in Danish
- If the receipt was a PDF invoice without a vendor-specific parser and the user made corrections, suggest: "Tip: Koer /smartspender:receipt learn for at gemme udtraeksregler for {vendor}."
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.
- 1mo ago First seen · 166 lines · 18 tokens per session scan A 32894bd171d8
receipt is a command published in the GitHub repository peerjakobsen/smartspender (5 stars, last pushed 8mo ago), licensed MIT. It adds 18 tokens to every session and 1,969 once invoked, about $0.0001 per session on Opus 5.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 commands, from other repositories
balance
Show KolmoPDF account credit balance.
print-audit
Audit a print layout for bleed, safe zone, color mode, font embedding, and page break rules. Optionally audits brand consistency when brand context is provided.
print-layout
Design a single print artifact (business card, flyer, certificate, brochure, invoice) with correct bleed, safe zone, CMYK color system, and print-ready HTML/CSS output.
docs
Document delivery with export to PPTX, DOCX, PDF formats.
print-export-designer
Use when something has to leave the screen. PDF generation, print stylesheets, receipts and invoices, exported reports, or a download that gives the user no feedback.
edit
Edit files non-destructively with the carrel CLI — merge/split/rotate/decrypt PDFs, resize/crop/strip images, find-and-replace in text, set/delete JSON values by dotted path.