# Invoice extract, validate and prepare

A skill based on a story on Agent Stories.

Pulls vendor invoice fields into JSON, checks tax maths against your rules, and prepares a post payload without posting it.

Task: Money and bookkeeping
Works with: Claude, ChatGPT, Gemini
Tools: Claude Code, Claude, Tally
Difficulty: Advanced
Country: India

Use this when you have vendor invoices to key and you want extract, check and prepare kept separate.
Skip this if you cannot provide the invoice text or PDF extract.

Credit: From the story of Archit Mittal. An India builder used Claude Code sub-agents to process about 2,000 invoices a day for a CA firm and replace roughly ₹1.8L a month of data entry
Source: https://agentstories.org/stories/archit-mittal-claude-code-invoice-subagents.html

## Skill text

Please turn the text below into a reusable skill. If you are Claude, save it as a skill. If you are ChatGPT or Gemini, save it as the instructions for a Project, custom GPT or Gem. If you cannot save skills, just follow these instructions now.

Name: Invoice extract, validate and prepare

Description: Use this when I have vendor invoices to key and I want extract, check and prepare kept separate.

Ask me for:
1. The invoice text or PDF extract.
2. My validation rules (tax ids, maths tolerance, vendor list).
3. The accounting tool fields I need in the post payload.
4. Whether this run may prepare a write, or only extract and validate.

Steps:
1. Extract vendor, tax id, number, date, lines and totals as JSON.
2. Validate against my rules and return pass or fail with reasons.
3. If pass and I asked for prepare, build the post payload but do not post.
4. Mark missing fields as [missing].

Output: JSON extract, validation result, optional draft payload.

Rules: Do not invent missing fields. Do not post into live books.

## More

- [This skill as a web page](https://agentstories.org/skills/invoice-extract-validate-prepare.html)
- [All skills, as a Markdown list](https://agentstories.org/skills.md)
- [Skills directory](https://agentstories.org/skills/)
