Invoice Reconciliation logo

Invoice Reconciliation

Organization
panaversity
invoice-reconciliation

Activate for: invoice, reconcile, reconciliation, three-way match, two-way match, invoice processing, AP, accounts payable, purchase order match, goods receipt match, invoice exception, price variance, quantity variance, duplicate invoice, invoice approval, invoice hold, invoice dispute, PO mismatch, over-invoiced, under-delivered, missing PO. NOT for: bank reconciliation (use banking plugin), vendor assessment (use vendor-assessment), spend category analysis (use spend-analysis).

Overview

Publisherpanaversity
Repositoryagentfactory-business-plugins
Skill nameinvoice-reconciliation
Stars
37
Forks
19
Bundled files
2
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by panaversity on GitHub. Read the source before you install it.

Installation

Install the Invoice Reconciliation AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/panaversity/agentfactory-business-plugins/tree/main/supply-chain/skills/invoice-reconciliation
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/panaversity/agentfactory-business-plugins.git /tmp/agentfactory-business-plugins
mkdir -p .claude/skills
cp -r /tmp/agentfactory-business-plugins/supply-chain/skills/invoice-reconciliation .claude/skills/invoice-reconciliation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Invoice Reconciliation in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Invoice Reconciliation on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Invoice Reconciliation is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

UNIVERSAL RULES (apply to every reconciliation task)

  • NEVER approve an invoice that has not been matched against a PO (above the configured materiality threshold)
  • NEVER process a duplicate invoice -- always check against prior submissions before authorising payment
  • ALWAYS include specific recommended actions with deadlines in every output -- observations without actions are not acceptable

THREE-WAY MATCH ENFORCEMENT

Three-way match requires: Document 1: Invoice (from vendor) Document 2: Purchase Order (from ERP) Document 3: Goods Receipt / Service Confirmation (from operations)

TWO-WAY MATCH (acceptable only for):

  • Services (no goods receipt exists)
  • Utilities (no PO in advance)
  • Invoices below configured materiality threshold

NEVER approve a direct materials invoice without goods receipt confirmation.

MANDATORY OUTPUT HEADER

TASK:          [e.g. Invoice Reconciliation -- INV-2024-0847]
VENDOR TIER:   [Strategic / Tactical / Commodity / Bottleneck / Unclassified]
CONFIGURATION: [Loaded: supply-chain.local.md / Not configured]
DATA SOURCES:  [ERP / AP system / Manual input]

RECONCILIATION WORKFLOW -- FOUR-STAGE PROCESS

Stage 1: Document Intelligence

Extract structured data from invoice (PDF, email, EDI, manual entry):

MANDATORY FIELDS TO EXTRACT: Vendor name: [Exact legal name -- match against vendor master] Vendor ID: [Cross-reference ERP vendor master] Invoice number: [For duplicate detection] Invoice date: [Check against late submission rules] PO reference: [Required for matching -- flag if absent] Line items: [Description / quantity / unit / unit price / line total] Total amount: [Verify arithmetic: sum of lines + tax = total] Payment terms: [Match against contracted terms] Bank details: [Flag if different from vendor master -- fraud risk]

VALIDATION CHECKS AT EXTRACTION: Arithmetic check: do line items sum to invoice total? Vendor name match: does invoice name match ERP vendor master? Duplicate check: has this invoice number been submitted before? Late submission: is invoice date within the configured day limit? Bank detail change: are bank details the same as vendor master?

FLAG IMMEDIATELY IF: RED Bank details differ from vendor master -> FRAUD ALERT -- do not process; contact vendor by phone (not email) to verify; escalate to Finance Director RED Duplicate invoice number -> REJECT; notify vendor RED Invoice > configured days old -> REJECT; notify vendor of late submission policy RED Vendor not in approved vendor list -> HOLD; escalate to Procurement

Stage 2: Three-Way Match

MATCH EACH LINE ITEM AGAINST: Document A: Invoice line (what vendor claims to be owed) Document B: Purchase Order line (what was authorised to buy) Document C: Goods Receipt / Service Confirmation (what was actually received)

QUERY ERP via MCP:

  1. Find PO by reference number
  2. Retrieve all PO line items with authorised quantities and prices
  3. Find Goods Receipt(s) matched to this PO
  4. Retrieve confirmed received quantities from GR

MATCH CLASSIFICATION PER LINE ITEM:

MATCHED -- all within tolerance Invoice qty = GR qty (within tolerance) Invoice price = PO price (within tolerance) -> Auto-approve this line

PRICE VARIANCE -- OUTSIDE TOLERANCE Invoice price != PO price, outside tolerance -> Route to Procurement; require vendor price justification

PRICE VARIANCE -- WITHIN TOLERANCE Invoice price != PO price, but within configured tolerance -> Auto-approve with flag to Finance (audit trail)

QUANTITY VARIANCE -- OVER-INVOICED Invoice quantity > GR confirmed quantity -> Hold over-invoiced portion; investigate with warehouse/vendor

QUANTITY VARIANCE -- GOODS RECEIPT PENDING Invoice quantity matches PO but GR not yet received/confirmed -> Hold invoice; alert warehouse for GR confirmation; set 5-day follow-up reminder

PO NOT FOUND Invoice references a PO that does not exist in ERP -> Hold entire invoice; route to Procurement for retrospective PO or rejection decision

DUPLICATE DETECTED Same vendor, same amount, within configured days of prior invoice -> Reject; notify vendor; log as potential fraud attempt if persistent

UNAUTHORISED CHARGE Line item has no corresponding PO line -> Reject this line; notify vendor; request credit note

Stage 3: Exception Routing

FOR EACH EXCEPTION TYPE, APPLY ROUTING RULES:

Price variance -- within tolerance: Action: Auto-approve with Finance notification Log: Exception register (for pattern monitoring) Owner: Finance (automated)

Price variance -- outside tolerance (< escalation threshold): Action: Route to category manager for approval Deadline: 3 business days Owner: Category manager + Procurement

Price variance -- outside tolerance (> escalation threshold): Action: Route to CPO for approval Deadline: 5 business days Owner: CPO

Quantity variance -- over-invoiced: Action: Hold excess; investigate with warehouse team Deadline: 5 business days to confirm GR or reject Owner: Warehouse + Finance

GR pending: Action: Hold invoice; alert warehouse; 5-day auto-reminder If unresolved at 10 days: escalate to Operations Manager Owner: Warehouse -> Finance on resolution

PO not found (> materiality threshold): Action: Route to Procurement for retrospective PO or rejection Deadline: 3 business days Owner: Procurement

Duplicate invoice: Action: Reject immediately; notify vendor; log incident Owner: Finance (automated)

Fraud alert (bank details changed): Action: STOP all processing; escalate to Finance Director immediately Owner: Finance Director

Stage 4: Audit and Pattern Monitoring

LOG FOR EVERY INVOICE:

  • Invoice number, vendor, date, amount
  • Match outcome: APPROVED / EXCEPTION TYPE / REJECTED
  • Exception resolution: action taken, approver, date resolved
  • Payment amount approved vs. original invoice amount

PATTERN DETECTION (run weekly): Same exception from same vendor > 3x in 30 days: -> Flag as systematic issue; recommend vendor data alignment meeting

Price variance on same line item > 2 consecutive invoices: -> Flag as contract non-compliance; initiate commercial review

GR pending rate > 15% of invoices from one vendor: -> Flag as goods receipt process issue (warehouse or vendor despatch?)

RECONCILIATION OUTPUT FORMAT

INVOICE RECONCILIATION: [Invoice Number] | [Vendor]
================================================================
Invoice date:  [Date]   PO matched:    [PO number or NOT FOUND]
Processing:    [Date]   GR matched:    [GR number or PENDING/NONE]

LINE ITEM ANALYSIS:
Item [N]: [Description] -- [Qty] @ [Price]
  PO price:      [X]    Invoice price: [X]
  Price variance: [+/-X] ([+/-X]%)
  GR qty:        [N] confirmed
  Invoice qty:   [N]
  Qty variance:  [+/-N units]
  TOLERANCE:     [+/-X% configured for this category]
  STATUS:        [MATCHED / WITHIN TOLERANCE / EXCEPTION TYPE]
  Action:        [Specific action required]

RECONCILIATION SUMMARY:
Approved for payment:    [X]
On hold (pending GR):    [X]
Disputed (variance):     [X]
Rejected (unauthorised): [X]
Original invoice total:  [X]
RECOMMENDED PAYMENT:     [X]

VENDOR COMMUNICATION: [Drafted -- see /vendor-communicate]
AUDIT LOG:             [Saved to exception register]
================================================================

NEVER DO THESE

  • NEVER approve a direct materials invoice without a goods receipt confirmation
  • NEVER process an invoice where bank details differ from vendor master without phone verification -- this is the primary invoice fraud vector
  • NEVER approve a duplicate invoice -- always reject and notify vendor
  • NEVER approve a PO-not-found invoice above materiality threshold without a retrospective PO or documented exception approval
  • NEVER process an invoice from a vendor not on the approved vendor list without Procurement escalation
  • NEVER mark a GR as confirmed without system evidence -- verbal confirmation from warehouse is not sufficient for audit purposes

ALL OUTPUTS REQUIRE REVIEW BY A QUALIFIED PROFESSIONAL BEFORE USE IN BUSINESS DECISIONS.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Invoice Reconciliation AI skill do?

Activate for: invoice, reconcile, reconciliation, three-way match, two-way match, invoice processing, AP, accounts payable, purchase order match, goods receipt match, invoice exception, price variance, quantity variance, duplicate invoice, invoice approval, invoice hold, invoice dispute, PO mismatch, over-invoiced, under-delivered, missing PO. NOT for: bank reconciliation (use banking plugin), vendor assessment (use vendor-assessment), spend category analysis (use spend-analysis).

Why use Invoice Reconciliation on TypingMind?

Because you install it once and use it with any model. Invoice Reconciliation is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Invoice Reconciliation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/panaversity/agentfactory-business-plugins/tree/main/supply-chain/skills/invoice-reconciliation. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Invoice Reconciliation?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Invoice Reconciliation?

As many as you like. As long as a model supports skills, you can use Invoice Reconciliation with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Invoice Reconciliation AI skill free?

Yes. It is published on GitHub by panaversity under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇