transaction-matching

transaction-matching is a skill for Claude Code from peerjakobsen/smartspender. It costs 24 tokens per session (3,236 once invoked), scanned A, original, MIT.

A set of rules for matching uploaded receipts with existing bank transactions in a file called transactions.csv.

In plain words
What is it for?
Link receipts to transactions using amount, date, and normalized merchant name, with a confidence score and tolerance for small differences.
Why use it?
It reduces mistaken matches by checking the receipt amount and date, then using the merchant name as an additional signal.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the smartspender plugin — 13 skills, 19 commands shipped together

Good fit Link receipts to transactions using amount, date, and normalized merchant name, with a confidence score and tolerance for small differences.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/peerjakobsen/smartspender/transaction-matching
Install

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.

Any agent
npx skills add peerjakobsen/smartspender --skill transaction-matching
Clone the repo
git clone --depth 1 https://github.com/peerjakobsen/smartspender

Made for: Claude Code.

Or install smartspender, the plugin that ships this one along with the rest of its 13 skills, 19 commands.

Wrote 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.

agentmods badge for transaction-matching

README.md
[![agentmods](https://agentmods.dev/badge/skills/peerjakobsen/smartspender/transaction-matching/github.svg)](https://agentmods.dev/skills/peerjakobsen/smartspender/transaction-matching)
Your own site
<a href="https://agentmods.dev/skills/peerjakobsen/smartspender/transaction-matching"><img src="https://agentmods.dev/badge/skills/peerjakobsen/smartspender/transaction-matching/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.

agentmods 80×15 button for transaction-matching

Your own site · 80×15
<a href="https://agentmods.dev/skills/peerjakobsen/smartspender/transaction-matching"><img src="https://agentmods.dev/badge/skills/peerjakobsen/smartspender/transaction-matching.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,236 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.03236
Opus 5.5 $0.00010 $0.01294
Sonnet 5.5 $0.00005 $0.00647
Haiku 4.5 $0.00002 $0.00324

Measured 3mo ago against content hash f385d237376c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

transaction-matching 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 3mo 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.

skills/transaction-matching/SKILL.md · 326 lines

How it starts

The opening of the file, as written. The whole thing — 326 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Transaction Matching

Purpose

Provides rules for linking an uploaded receipt to an existing bank transaction in transactions.csv. Uses amount, date, and merchant name as matching signals with confidence scoring.

Matching Signals

Three signals determine whether a receipt matches a transaction:

Signal Weight Rule
Amount Primary Receipt total (positive) must match transaction amount (negative) within +-1%
Date Primary Receipt date must be within +-1 day of transaction date
Merchant Secondary Normalized merchant name should match (boosts confidence but not required)

Both amount and date must match for a candidate. Merchant match increases confidence but a missing merchant match does not disqualify.

Amount Comparison

Receipts store totals as positive numbers. Transactions store expenses as negative numbers. When comparing:

  1. Take the absolute value of the transaction amount
  2. Compare with the receipt total
  3. Allow +-1% tolerance

Formula: |receipt_total - |transaction_amount|| / receipt_total <= 0.01

Why +-1%: Small rounding differences between what the store charges and what the bank posts (e.g., currency conversion micro-adjustments, tip rounding).

Examples

Receipt Total Transaction Amount Difference Match?
347.50 -347.50 0.00% Yes
347.50 -348.00 0.14% Yes
347.50 -344.00 1.01% No
299.00 -299.00 0.00% Yes

Date Window

Card transactions often post 1 business day after the purchase. Allow a +-1 day window:

  • Receipt date: 2026-01-28
  • Valid transaction dates: 2026-01-27, 2026-01-28, 2026-01-29

Why +-1 day: Dankort and Visa purchases at end of day may post the next morning. Some merchants batch transactions overnight.

Merchant Name Matching

Compare the receipt's normalized merchant name against the transaction's description using the same normalization rules from skills/categorization/SKILL.md:

Read the full file on GitHub · 326 lines

Changes

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.

  1. 3mo ago First seen · 326 lines · 24 tokens per session scan A f385d237376c

Subscribe to this mod's changes

transaction-matching is a skill published in the GitHub repository peerjakobsen/smartspender (5 stars, last pushed 10mo ago), licensed MIT. It adds 24 tokens to every session and 3,236 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.

Related

transaction-matching compared with skills from other repositories

transaction-matching next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
transaction-matchingpeerjakobsen/smartspenderSkill510mo agoMITA24Claude Code
cap-table-analysisGlobal-Slice/claude-pluginSkill914d agoMITA79Claude Code
board-presentation-analysisGlobal-Slice/claude-pluginSkill914d agoMITA61Claude Code
workflows-analysisGlobal-Slice/claude-pluginSkill914d agoMITA67Claude Code
equity-compensation-analysisGlobal-Slice/claude-pluginSkill914d agoMITA78Claude Code
funding-rounds-analysisGlobal-Slice/claude-pluginSkill914d agoMITA80Claude Code
waterfall-analysisGlobal-Slice/claude-pluginSkill914d agoMITA58Claude Code