Pydantic AI Invoice — Data skill for Claude Code
Invoice intelligence API built with Pydantic AI V2 and Claude.
How to install Pydantic AI Invoice
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open soumit17/pydantic-ai-invoice and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Pydantic AI Invoice does
Invoice intelligence API built with Pydantic AI V2 and Claude. Extracts typed data from Indian GST invoices (PDF, scans, email), audits them against a ledger for duplicates, price drift and GST errors, and routes postings through human approval. Covers capabilities, deferred tools, pydantic-graph, DBOS durability, MCP and evals.
Alternatives in Data
- AgriQuant AI — AI-powered weather intelligence for agricultural commodity futures 707 ★
- Trading Signal — Monitor on-chain Smart Money buy/sell signals with price, max gain, and exit rate data on Solana and BSC 483 ★
- Deepdive — Deepdive skill for Claude Code — 12-phase research pipeline: plan-review gate, parallel sub-agent search, clai 297 ★
README
InvoiceIQ
Accounts-payable automation for Indian GST invoices, built on **Pydantic AI V2**:
- read a PDF, scan or email,
- extract a structured invoice,
- check it against GST rules and the ledger,
- let an auditor agent investigate,
- decide in plain Python,
- post to the ledger only after an approval (a person's, the policy's, or a reviewer model's).
Project 1 of 7 in a framework-comparison series. The spec is [p1-pydantic-ai-invoice-intelligence.md](p1-pydantic-ai-invoice-intelligence.md), and every design trade-off is recorded in [docs/decisions.md](docs/decisions.md) (D0–D24).
Quick start
uv sync
cp .env.example .env # put your ANTHROPIC_API_KEY in it
uv run python scripts/gen_mockdata.py # 40 invoices + ledger + ground truth (deterministic; also committed)
uv run pytest # ~200 tests, $0: no real model is ever called
uv run invoiceiq serve # API on http://127.0.0.1:8000
Without a key, `pytest`, `invoiceiq mcp`, `postings`, `costs` and `reset` still work. Anything that builds an agent says what's missing and exits.
Architecture
flowchart LR
subgraph In["Ingest"]
CLI["invoiceiq CLI"]
API["FastAPI · SSE"]
Batch["DBOS durable batch
(queue, kill -9 safe)"]
end
subgraph Graph["pydantic_graph pipeline (one invoice)"]
direction LR
Ex["Extractor agent
union output · validators · retries"]
Checks["4 deterministic checks
(broadcast → join)"]
Au["Auditor agent
ledger tools · FX deferred · Thinking on escalation"]
Dec["Policy.decide
pure Python"]
Po["Poster agent
post_to_ledger requires approval"]
Ex --> Checks --> Au --> Dec --> Po
end
subgraph Guards["Harness guards on the poster"]
Rev["ApprovalReviewer
may approve the clean high-value tier"]
Judge["ToolCallJudge
blocks overposting"]
end
subgraph
Related Skills
Documind
AI document assistant for small businesses: ingests PDFs (contracts, invoices), extracts validated data with C
Sheet As CMS Toolkit A Claude Skill For Google Sheets Backed Sites
A Claude Skill that sets up, validates, and hardens a website that uses Google Sheets as its CMS. It catches s
AI Invoice Parser Agent n8n
🧾 Autonomous AI invoice parser and accounts payable pipeline built with n8n, Anthropic Claude, Google Gemini,
Update From Errors
Learn a command's full pipeline, then read its error records (its caught_errors.md ledger and the files around
Expense
File OpenCollective expenses for PolicyEngine - find invoices, gather billing data, and submit reimbursements
Skill Algotrader
Quantitative trading skill for Indian equity markets with Zerodha integration. Generate trading bots, fetch li
Related Agents
Tax Indirect Engineer
Implements sales tax, VAT, and GST calculation - taxability, stacked rates, inclusive/exclusive pricing, disco
Payment Monitor Agent
This agent is responsible for identifying overdue or soon-to-be-due invoices from a given dataset. It acts as
Finance F3 Customer Receipts
Finance F3 - customer invoices and receipts. Stages deposit / survey / delivery invoices for due lines, checks