Invoice fraud audit

From XuShuwenn/RedAct · View interactive version

Invoice fraud audit is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Cross-check invoices against vendor and purchase-order records with fuzzy vendor matching and prioritized fraud reasons.

How to use this skill

Skill file

Invoice Fraud Audit

Reusable workflow for auditing invoice documents by extracting key fields per page and validating them against approved vendor and purchase order (PO) records. Applies vendor-name fuzzy matching and flags fraud using a strict, prioritized rule set.

When to Use

Activate this skill when you need to:

Inputs and Expected Fields

You should have three data sources:

Note: Column names vary; normalize and map them to the above logical fields.

Core Workflow

  1. Preflight and Data Loading
  1. Normalize Reference Data
  1. Extract and Normalize Invoice Fields (per page)
  1. Vendor Matching (Fuzzy)
  1. Apply Fraud Rules in Strict Priority

Evaluate each invoice in the following order and stop at the first applicable rule:

  1. Produce the Output

Verification

Run these checks before finalizing:

Common Pitfalls and How to Avoid Them

Optional Script Usage

The included helper provides reusable normalization, fuzzy matching, and rule evaluation. It expects already-extracted invoice records and reference datasets.

Example (pseudocode):

See scripts/fraud_rules.py for callable utilities.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.