receipt-compiler

receipt-compiler is a skill for Claude Code, Codex from moonlight-lupin/agent-skills. It costs 38 tokens per session (1,465 once invoked), scanned A, original, MIT.

A tool that turns phone photos of receipts into an A4 PDF expense-claim pack. It straightens and scanifies the images, extracts receipt details with OCR, and can add numbering, captions, and a summary cover.

In plain words
What is it for?
Use it to scan receipt photos, review extracted expense data, approve it, and create the final PDF pack.
Why use it?
It removes the manual work of correcting receipt photos, arranging them on pages, and preparing a claim document. OCR means software reads printed text from an image.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to scan receipt photos, review extracted expense data, approve it, and create the final PDF pack.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/moonlight-lupin/agent-skills/receipt-compiler
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 moonlight-lupin/agent-skills --skill receipt-compiler
Clone the repo
git clone --depth 1 https://github.com/moonlight-lupin/agent-skills

Made for: Claude Code, Codex.

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 receipt-compiler

README.md
[![agentmods](https://agentmods.dev/badge/skills/moonlight-lupin/agent-skills/receipt-compiler/github.svg)](https://agentmods.dev/skills/moonlight-lupin/agent-skills/receipt-compiler)
Your own site
<a href="https://agentmods.dev/skills/moonlight-lupin/agent-skills/receipt-compiler"><img src="https://agentmods.dev/badge/skills/moonlight-lupin/agent-skills/receipt-compiler/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 receipt-compiler

Your own site · 80×15
<a href="https://agentmods.dev/skills/moonlight-lupin/agent-skills/receipt-compiler"><img src="https://agentmods.dev/badge/skills/moonlight-lupin/agent-skills/receipt-compiler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,465 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.00038 $0.01465
Opus 5.5 $0.00015 $0.00586
Sonnet 5.5 $0.00008 $0.00293
Haiku 4.5 $0.00004 $0.00146

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

Security

Grade A, and why

receipt-compiler 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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/receipt_compiler.py, tests/receipt_compiler_selftest.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

productivity/receipt-compiler/SKILL.md · 135 lines

How it starts

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

Receipt Compiler

Overview

Receipt Compiler turns a folder of phone-camera receipt photos into one A4 PDF that looks like a photocopied expense-claim pack: each receipt is straightened (perspective warp, deskew), converted to a B&W "scanned" look, tiled on A4 with uniform visual scale, numbered, and summarised on an optional cover page.

Four subcommands with an enforced confirmation gate:

  1. scan — straighten + scanify + OCR each photo → manifest.json
  2. review — print the extracted expense table
  3. confirm — stamp user approval + bind the reviewed data (digest)
  4. pack — build the A4 PDF (refuses to run until confirm has run)

When to Use

  • "Compile my receipts into a PDF for expense claim"
  • "Make a claim pack from these receipt photos"
  • "Straighten and B&W these receipts and line them up on A4"
  • Not for: scanning via flatbed scanner, or PDFs of invoices (use pdf skill).

Prerequisites

pip install opencv-python-headless pillow pillow-heif pytesseract reportlab numpy
# PyMuPDF is needed only to run the self-test (tests/), not the script itself

Plus system tesseract-ocr on PATH. Check with tesseract --version.

Workflow (agent must follow the gate)

Step 1 — scan

python3 ~/.hermes/skills/productivity/receipt-compiler/scripts/receipt_compiler.py \
    scan <photos_dir> -o <workdir> [--mode bw|photo]

Default --mode bw gives the photocopy look the user asked for. Use --mode photo for grayscale. Completion criterion: manifest exists with one entry per photo; ocr_confidence and needs_review flags set.

Step 2 — review + confirm (MANDATORY, user in the loop)

python3 .../receipt_compiler.py review <workdir>
# ... apply any corrections to manifest.json, THEN re-run review so the user
# ... sees the corrected table ...
python3 .../receipt_compiler.py review <workdir>
# ... after the user approves the corrected table ...
python3 .../receipt_compiler.py confirm <workdir>

Present the printed table to the user in chat. Ask:

  1. Are the extracted dates/merchants/amounts right? Fix manifest.json fields.
  2. Optional requirements — ask every time, do not assume:
    • cover page (with claimant/period/notes)
    • per-receipt numbering badges
    • per-receipt captions (date · merchant · amount)
    • currency symbol on totals
  3. Exclusions — any receipt to drop ("include": false)?
  4. Purpose/notes text for the cover.

Read the full file on GitHub · 135 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 135 lines · 38 tokens per session scan A 5900b6a87f35

Subscribe to this mod's changes

receipt-compiler is a skill published in the GitHub repository moonlight-lupin/agent-skills (101 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 1,465 once invoked, about $0.0002 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-09-13.

Related

Other skills, from other repositories

document-exports

Generate and TEST downloadable document exports (PDF/CSV) from a Node/Express backend — pdfkit streaming, CSV BOM, cents formatting, and the supertest/pdfkit pitfalls that silently break tests.

pedroiff0/awesome-skills · 44 tokens

invoice

A printable invoice page — sender + recipient block, line items table, tax breakdown, totals, and payment instructions. Use when the brief mentions "invoice", "bill", "billing statement", or "发票".

nexu-io/open-design · 46 tokens

report-generator

Generate professional HTML/PDF investment reports with interactive visualizations.

yennanliu/InvestSkill · 11 tokens

iflytek-ocr-invoice

An image-reading tool that extracts structured information from Chinese invoices, receipts, bills, and tickets. OCR means turning text in a photo or scan into computer-readable data.

iflytek/iFly-Skills · 77 tokens

financial-parser

Extract and analyze data from invoices, receipts, bank statements, and financial documents. Categorize expenses, track recurring charges, and generate expense reports. Use when user provides financial PDFs or images.

OneWave-AI/claude-skills · 41 tokens

procesar-mis-estados-de-cuenta

Proceso un lote de estados de cuenta bancarios y de tarjeta de crédito en PDF o CSV de principio a fin: extraigo cada transacción (subagentes Haiku en paralelo), normalizo los nombres de las contrapartes, categorizo contra tu plan de cuentas bloqueado (subagentes Sonnet en paralelo), detecto transferencias entre…

gethouston/houston · 151 tokens