A "documents to table" agent for accountants: DocStrange and two skills, step by step

A "documents to table" agent for accountants: DocStrange and two skills, step by step

A photo of a delivery note becomes a table row, and the invoice archive is sorted by month. How to build the bundle from DocStrange and two skills for Claude, and which data must not go to the cloud.

An accountant receives a stack of invoices, delivery notes and receipts and retypes them into a spreadsheet by hand. Hours of work in which nobody values their experience. If you can use neural networks but are not sure what to sell to a business, here is a bundle of three free tools: you photograph a delivery note, and it becomes a row in a table, while the archive is sorted by month. Below: how to build it, what to say to the client, and which data must never leave the building.


In short, if you are in a hurry

What you sell. An agent that moves data from paper documents into a table, so the client's staff stop retyping.

What it is made of. An assistant on the AI SKILLS platform defines the list of fields to pull from a document. The free DocStrange reads scans and photos. Two ready-made skills for Claude sort files into folders and consolidate the data in Excel.

What you need. Claude Code (a paid Claude subscription is required; the tools of the bundle are free, while Prompt Master takes money from your platform balance), Python, and sample documents from the client.

Where the line is. The agent enters the data, a person checks it. Contracts and documents with personal data are not sent to the cloud mode: use the local one for them.


Who to sell it to and how to price it

Accounting firms, logistics, agencies: anywhere data is typed in from paper by hand. The client does not need a neural network; they need an employee to stop retyping.

I will not quote price ranges in this version. In 83% of the listings in the order feed we looked at, there was no budget, so you name the price. Put into the estimate the setup of fields for their documents, a test run and checking the result, not only the installation. And remember the maths of touches from our practice: about 20 touches give 5-7 replies, 2-3 calls and one client. People usually give up after two.


Step 0. What you are installing

Claude Code is an AI agent that works in a terminal (a text window where you paste commands) on your computer, runs commands and installs programs by itself. It needs a paid Claude subscription. A skill is a folder of instructions that Claude loads for a task. DocStrange is an open program (a Python library) that turns PDFs, scans, phone photos, Word and Excel files into clean text and tables. It can pull out only the fields you need, according to your schema.

DocStrange works in two modes:

Links to the project and skills in the cards: DocStrange, invoice sorting, Excel. For Open Source, the description is visible to everyone, and the repository link in the card opens from the Creator plan; regular skills from Basic. If you came from our Instagram reel, the bot has already sent you the links.


Step 1. The platform assistant defines the list of fields

What to pull out of a document is for you and the client to decide, and recording it in a form the program understands is helped by Prompt Master (paid from the platform balance) or by the assistant "Bot Architect". What to do:

  1. Open either of the two.
  2. Paste the text below and correct the fields in brackets for the client.
  3. Send it. You will see a list of fields and a schema in JSON format (the way a data structure is written down).

The prompt is ours, built for this task:

```

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

I need:

  1. 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].
  2. 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.
  3. 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.
  4. A short list of questions I need to clarify with the client.

```

Save the JSON in a file schema.json. Show the list of fields to the client: this also tells you what matters to them.


Step 2. Installation

Create a folder, for example scan-test, and open Claude Code in it. Paste the task below; take the links to the skills from the cards or from the bot's message:

```

Prepare the environment for working with documents.

  1. Install the Python package docstrange (pip install docstrange).
  2. Download the invoice-organizer skill from <link to the skill from the card> and put its folder into ~/.claude/skills/invoice-organizer.
  3. Download the xlsx skill from <link to the skill from the card> and put its folder into ~/.claude/skills/xlsx.

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

```

You will see a report on the three items. To recalculate formulas, the Excel skill uses the LibreOffice program (a free office suite); Claude Code may ask to install it. Allow it.

Signing in to the cloud mode. Run in the terminal:

```

docstrange login

```

A browser opens; sign in with Google. Or take a free API key in your DocStrange account (the address is in the project card). Keep the key like a password and do not paste it into the chat.


Step 3. A run on a stack of documents

Put 10-20 copies of the client's documents (not the originals) into the incoming folder. Give Claude Code this:

```

In the incoming folder there are invoices and delivery notes: PDFs, scans and photos. Work step by step.

  1. 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.
  2. 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".
  3. 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.

At the end write how many files were processed and how many went to "To check".

```

What you will see: first the renaming plan, then folders by month and the file reestr.xlsx. Open the table and compare 10 documents with the originals by hand: amount, date, supplier. Always do this check and show it to the client.

Receipts. For a stack of receipts there is the skill Expense report from receipts in Excel (advanced, Creator is required). It builds a report, flags missing receipts, limit overruns and duplicates, and leaves unreadable items for checking. For this it needs the client's expense policy.


A large flow

If there are thousands of documents rather than dozens, look at Unstract. It is a service: the fields are described in plain words (a tool called Prompt Studio), a document is sent through an API and comes back as JSON, and there is a pipeline that takes files from a folder or cloud storage. According to the README you need Linux or macOS, Docker (a program that runs an application together with everything it needs), 8 GB of memory and a key to an AI model of your provider or a local Ollama. It starts with one command ./run-platform.sh; the default login is unstract/unstract: change the password immediately. The licence is AGPL-3.0: if you plan to change the code and give it to clients as a service, read its terms.


How to show it to the client

Take 10-20 real documents of the client, run them and bring back the table and the "to check" list. This is a test run on their data. The phrase for the client:

"Your accountant will stop retyping invoices and will do what you actually pay them for."

Others have already done this. In one medical institution, invoices were handled by six employees and now by three, and processing time was cut in half. In a large food and beverage company, the cost of processing an invoice fell by 60%. In the payment service PayU, processing time fell by 70% and costs by 95%. These are cases from a case database, not a guarantee for your client: everyone has their own documents.


Where the line is

If it did not work


How to continue on AI SKILLS

Similar ready-made services are collected in the section Ready-made services and platforms, and skills for Claude Code, Codex, Antigravity in Skills for Claude Code, Codex, Antigravity. If the client has no spreadsheets and does not know where to start, in Cerebrum you can build a small app for them right in the chat. First steps toward orders are in Learning, in express courses on packaging and selling services.


See also on AI SKILLS