{"slug": "turn-photos-of-invoices-into-an-excel-register-with-claude-code", "title": "Turn photos of invoices into an Excel register with Claude Code", "summary": "A developer published a walkthrough for automating invoice data entry using Claude Code combined with three free tools: the invoice-organizer skill for renaming and sorting scanned files by month, Anthropic's xlsx skill for building a formula-driven Excel register, and Nanonets' DocStrange package for extracting fields from PDFs, scans and photos. The workflow extracts fields against a user-defined JSON schema, marks unreadable values as \"[check]\" rather than guessing amounts, and routes problem documents to a separate review sheet, leaving human verification in place.", "body_md": "An accountant gets a stack of invoices, delivery notes and receipts, and retypes them into a spreadsheet. Hours of work where nobody uses their experience.\n\nThis setup replaces the retyping. You point it at a folder of scans and phone photos. You get back one Excel register, files renamed and sorted by month, and a \"to check\" list for the unreadable ones. The data entry is automated. The checking stays with a person.\n\nThree free pieces working together:\n\n`invoice-organizer` renames and sorts files. `xlsx` builds the Excel file with formulas.\nYou need Claude Code (a paid Claude plan), Python, and 10 to 20 sample documents. Copies, not originals.\n\nDocStrange has two modes:\n\n`docstrange login` (Google sign-in) or with a free API key. Documents go to the server of Nanonets, the developer.\nWhat to extract is a decision for you and whoever owns the documents. Ask any strong LLM to write it down in a machine-readable form. Fix the bracketed parts:\n\n```\nI am setting up an agent that reads invoices and delivery notes of a client [accounting firm / logistics company] and moves the data into a table.\nI need:\n1. A list of fields to extract: document number, date, supplier, supplier tax ID, amount without VAT, VAT, total amount, currency, purpose. Add [my own fields].\n2. A JSON schema where every field has a type: \"string\" or \"number\", for example {\"invoice_number\": \"string\", \"total_amount\": \"number\"}. Give document line items as a list of objects.\n3. Rules for disputed cases: mark an unreadable value as \"[check]\", never guess an amount, and move duplicates and documents outside the reporting period to a separate list.\n4. A short list of questions I need to clarify with the client.\n```\n\nSave the JSON as `schema.json`. Show the field list to the document owner. It also tells you what matters to them.\n\nMake a folder such as `scan-test`, open Claude Code in it and paste:\n\n```\nPrepare the environment for working with documents.\n1. Install the Python package docstrange (pip install docstrange).\n2. Download the invoice-organizer skill (https://aiskills.team/en/claude-skills/invoice-organizer) and put its folder into ~/.claude/skills/invoice-organizer.\n3. Take the official `xlsx` skill from Anthropic's `anthropics/skills` repository and put its folder into ~/.claude/skills/xlsx.\nBefore each step say what you are about to do. If a skill asks to install extra programs, ask me. Do not change or delete anything outside these folders. After installation read the SKILL.md of each skill and briefly retell what it can do, and check that the docstrange command runs.\n```\n\nYou should get a short report on three items. The Excel skill recalculates formulas with LibreOffice, so Claude Code may ask to install it. Allow it.\n\nFor cloud mode, sign in once:\n\n```\ndocstrange login\n```\n\nA browser opens, you sign in with Google. Or use a free API key from your DocStrange account. Treat the key like a password and never paste it into a chat.\n\nPut the 10 to 20 document copies into an `incoming` folder, then give Claude Code this:\n\n```\nIn the incoming folder there are invoices and delivery notes: PDFs, scans and photos. Work step by step.\n1. For each file, extract the fields from the schema in schema.json through docstrange (cloud mode) and save the result in the data folder. Mark unreadable values \"[check]\" and do not guess amounts.\n2. With the invoice-organizer skill, show a plan: how you will rename the files by the template \"YYYY-MM-DD Supplier - Invoice - Description\" and sort the copies into folders by month. Do not touch the originals. Wait for my \"yes\".\n3. After \"yes\", carry out the plan and with the xlsx skill build the file reestr.xlsx: a \"Register\" sheet with all rows, a \"Totals by month\" sheet with formulas, and a \"To check\" sheet with problem documents.\nAt the end write how many files were processed and how many went to \"To check\".\n```\n\nFirst you see the renaming plan. After \"yes\" you get month folders and `reestr.xlsx`. Then open the table and compare 10 documents with the originals by hand: amount, date, supplier. Do this every time.\n\nFor a stack of receipts there is a separate expense-report skill that flags missing receipts, limit overruns and duplicates. It needs the company's expense policy as input.\n\nDozens of files fit the flow above. For thousands, look at **Unstract**. You describe fields in plain words (a tool called Prompt Studio), send a document through an API, and get JSON back. It has a pipeline that picks files from a folder or cloud storage.\n\nAccording to its README you need Linux or macOS, Docker, 8 GB of memory, and a key for an AI model or a local Ollama. It starts with one command:\n\n```\n./run-platform.sh\n```\n\nThe default login is `unstract/unstract`. Change the password immediately. The licence is AGPL-3.0, so read its terms before you modify the code and offer it as a service.\n\n`docstrange` not found.\nA folder of mixed scans becomes `reestr.xlsx` with a register, monthly totals with formulas, and a \"To check\" sheet. Files are renamed `YYYY-MM-DD Supplier - Invoice - Description` and sit in month folders.\n\nThe full walkthrough with all three prompts is on our blog: [Agent that turns documents into a table](https://aiskills.team/en/blog/agent-dokumenty-v-tablicu-buhgalteriya?utm_source=devto&utm_medium=article&utm_campaign=mp_docs)\n\nScan or photograph 10 of your own old receipts or invoices, drop them in `incoming`, and run step 3. Then count how many landed in \"To check\" and which field failed most often. That tells you what to fix in `schema.json`.\n\n*This article was written with the help of AI and fact-checked by the AI SKILLS team.*", "url": "https://wpnews.pro/news/turn-photos-of-invoices-into-an-excel-register-with-claude-code", "canonical_source": "https://dev.to/aiskillsteam/turn-photos-of-invoices-into-an-excel-register-with-claude-code-1cf5", "published_at": "2026-12-01 08:41:08+00:00", "updated_at": "2026-12-01 08:45:02.625514+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-products"], "entities": ["Claude Code", "Anthropic", "DocStrange", "Nanonets", "LibreOffice", "invoice-organizer"], "also_reported_by": [], "takeaway": "Combining Claude Code with the invoice-organizer and xlsx skills plus DocStrange extraction produces a month-sorted Excel register from scanned invoices, with unreadable values flagged \"[check]\" instead of guessed and a separate review sheet for problem documents.", "recommendation": {"advice": "Define a JSON extraction schema with explicit types and \"[check]\" rules for unreadable values, and require the agent to show a rename plan and wait for approval before touching files.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/turn-photos-of-invoices-into-an-excel-register-with-claude-code", "markdown": "https://wpnews.pro/news/turn-photos-of-invoices-into-an-excel-register-with-claude-code.md", "text": "https://wpnews.pro/news/turn-photos-of-invoices-into-an-excel-register-with-claude-code.txt", "jsonld": "https://wpnews.pro/news/turn-photos-of-invoices-into-an-excel-register-with-claude-code.jsonld"}}