Phase1 Three Way Match
Description
AI agent that performs three-way match (PO + goods receipt + vendor invoice) against Odoo ERP. Built with Claude and Python to show how mid-market finance teams can deploy agentic AI on real back-office work.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Three-Way Match Agent
An AI agent that reads a vendor invoice, the purchase order it claims to be against, and the goods receipt that proves the goods arrived — and tells an AP clerk whether to pay it, hold it, or block it. Runs against a real Odoo instance in Docker.
Why this workflow
Three-way match is the control every mid-market finance team says they do and half of them do partially. A purchase order, a goods receipt, and a vendor invoice all have to agree on who, what, how many, and how much before money leaves the company. When a team does it by hand, the same clerk checks thousands of invoices a month, misses the small variances because the small variances look like the big ones, and leaves an audit trail that says "approved by J. Smith" with no supporting evidence.
An agent fits this job because the work is structured, the rules are already written, and the hard part is judgment at the margin — not reading the documents. The agent does the reading and the arithmetic. A human still owns the exceptions.
What this repo does
Point the agent at a vendor invoice number. It will:
- Pull the invoice from Odoo
- Pull the purchase order the invoice references
- Pull the goods receipt tied to that PO
- Check the vendor's other invoices for a duplicate
- Run a deterministic match that flags discrepancies across vendor, quantity, unit price, and totals
- Recommend one of three actions — approve, route for review, or block — with a plain-English rationale and a full audit trail
The agent narrates. The code decides. The model never computes a dollar amount or decides the final action — that's the only way to make an AP agent that a finance team will trust.
Scorecard
Seven experiments. Four RPST axes. The scorecard a consulting team runs before a client picks an AP agent.
| Variant | RPST Axis | Model | Accuracy |
|---|---|---|---|
| baseline | — | Sonnet 4.6 | 96.7% (29/30) |
| tight_tolerance | Policy | Sonnet 4.6 | 90.0% (27/30) |
Related Skills
Docker
---
DevOps Kubernetes
---
DevOps AWS Skills
AWS development with CDK best practices, cost optimization MCP servers, and serverless/event-driven architectu
DevOps Composio Split
Manage Split feature flags and experiments
DevOps **claude-code-router**
(25.3k ⭐) - Use Claude Code as the foundation for coding infrastructure, allowing you to decide how to interac
DevOps CLAUDE.md CI/CD Wiki
Community patterns for CLAUDE.md configuration in CI/CD pipelines.
DevOps