Triple Match Automation logo

Triple Match Automation

Community
vivy-yi
triple-match-automation

三单匹配自动化 — 对采购类费用自动执行发票/合同/收货单三方核对。 适用情形:员工报销采购类支出(办公用品/设备/服务采购)时, 检验发票、合同/订单、收货单是否一致,发现异常自动标记。 核心:合同金额 vs 发票金额 vs 付款金额,三者差异阈值判断。

Overview

Publishervivy-yi
Repositoryfinance-skills
Skill nametriple-match-automation
Stars
43
Forks
13
Bundled files
Instructions only
LicenseMIT
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by vivy-yi on GitHub. Read the source before you install it.

Installation

Install the Triple Match Automation 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/vivy-yi/finance-skills/tree/master/finance-skills/skills/expense-review/skills/triple-match-automation
  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/vivy-yi/finance-skills.git /tmp/finance-skills
mkdir -p .claude/skills
cp -r /tmp/finance-skills/finance-skills/skills/expense-review/skills/triple-match-automation .claude/skills/triple-match-automation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Triple Match Automation 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 Triple Match Automation 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 Triple Match Automation 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.

加载上下文

首次使用时: 读取 ../../CLAUDE.md 获取场景级配置(数据源状态/升级门槛)。


/triple-match-automation — 三单匹配自动化

Examples

→ 示例:用户说"采购发票到了,帮我做三单匹配,看看和 PO、收货单是否一致",系统应调用本技能,执行三单匹配验证。

→ 示例:用户说"三单匹配发现差异,帮我判断是接受还是需要重新核对",系统应调用本技能,评估三单匹配差异的处理建议。

→ 示例:用户说"供应商说他们的发货记录和我们收货单一致,为什么还有差异",系统应调用本技能,核查跨系统数据差异原因。

三单定义

单据说明来源
合同/订单(PO)采购协议或采购订单OA 合同审批记录或 ERP 采购订单
收货单(GR)仓库或需求部门确认的收货证明OA 收货确认记录或入库单
发票(Invoice)供应商开具的增值税发票员工提交附件

匹配检查逻辑

第一层:金额匹配

核心公式:

差异率 = |发票金额 - 合同金额| / 合同金额
差异率结论操作
≤ [填写:2%]合理误差范围✅ 通过
2% - 5%轻微差异⚠️ 标注,要求员工说明原因
> 5%显著差异❌ 驳回,要求核实后重新提交
金额完全相同完美匹配✅ 通过

注意: 差异判断以合同金额为基准,非以发票金额为基准。


第二层:日期逻辑

检查项:

检查1:合同签订日期 ≤ 发票开具日期
  → 发票日期早于合同日期 → ❌ 逻辑矛盾,驳回

检查2:收货日期 ≥ 合同签订日期
  → 收货日期早于合同签订 → ❌ 逻辑矛盾,驳回

检查3:发票日期 ≥ 收货日期
  → 发票日期早于收货日期 → ⚠️ 要求说明(如在途物资/跨月结算可接受)

检查4:出差天数与住宿天数逻辑(差旅类)
  → 住宿天数 = 出差天数 - 1(到达当天不住宿)
  → 超出此逻辑 → ⚠️ 要求说明

第三层:主体一致性

检查项:

检查1:合同签约方 = 发票开具方
  → 不一致 → ⚠️ 要求提供代理授权书或分包协议

检查2:合同签约方 = 付款收款方
  → 不一致 → ⚠️ 要求说明(如第三方收款须提供授权)

检查3:发票购买方 = 公司全称
  → 须与公司营业执照名称一致
  → 不一致(如开给子公司/母公司)→ ⚠️ 确认内部调拨或要求重开

采购类型特殊规则

办公用品/耗材类(小额,<5000元)

处理逻辑:
- 通常无正式合同 → 审核重点转为"发票与采购申请一致性"
- 要求附采购申请截图或部门负责人确认
- 差异率阈值放宽至 10%(因无正式合同,误差空间大)

设备/资产类(≥5000元,须走固定资产)

处理逻辑:
- 必须有合同 + 收货确认 + 发票三单
- 发票品名须体现设备规格型号(与合同一致)
- 三单不一致 → ❌ 驳回,不予报销
- 三单一致 → 自动创建固定资产卡片号,写入审核报告

服务类(咨询/IT/市场服务)

处理逻辑:
- 合同服务内容须与发票品名一致
- 服务周期须与合同约定一致(如年度服务 vs 月度服务)
- 部分服务完成后开具发票 → 审核里程碑节点与合同节点是否匹配

异常处理路径

金额轻微差异(2%-5%)

处理:
1. 标注异常,生成说明模板
2. 提示申请人填写"差异原因说明"(系统内置模板)
3. 直属上级加签确认后 → ✅ 可通过
4. 如上级拒绝 → ❌ 驳回,要求重新换开发票

供应商主体不一致

处理:
1. 查询[ERP]供应商主数据,确认是否为同一主体(曾用名/集团关联)
2. 如为集团内部调拨 → ⚠️ 要求提供集团内部调拨授权证明
3. 如为代理/分包 → 要求提供代理协议或分包授权
4. 无法提供 → ❌ 驳回,不予报销

疑似拆分发票(规避审批)

识别特征:
- 同一合同项下,发票分多张开具(拆单)
- 拆分后每张金额均低于审批权限阈值(如低于 5000 元)
- 开票日期集中在同一周内

处理:
→ ❌ 驳回
→ 标注"疑似拆单"
→ 升级至财务经理核查
→ 如确认为故意拆单,记录诚信档案

输出模板

═══════════════════════════════════════
三单匹配报告
═══════════════════════════════════════
供应商:[名称]
合同编号:[编号]
合同金额:[X,XXX.XX] 元
发票金额:[X,XXX.XX] 元
差异金额:[X,XXX.XX] 元
差异率:[X.X]%

【匹配结论】
金额匹配:[✅ 一致 / ⚠️ 轻微差异 / ❌ 显著差异]
日期逻辑:[✅ 正常 / ⚠️ 存疑 / ❌ 矛盾]
主体一致:[✅ 一致 / ⚠️ 主体存疑 / ❌ 不一致]

综合结论:[✅ 通过 / ⚠️ 需补正 / ❌ 驳回 / 🔴 升级]
═══════════════════════════════════════

[如通过:] → 流转至下一审核节点

[如需补正:]
→ 补正事项:[具体说明]
→ 补正方式:[补充说明 / 提供授权 / 换开发票]

[如驳回:]
→ 驳回原因:[金额差异超阈值 / 日期矛盾 / 主体不一致 / 疑似拆单]
→ 处理建议:[换开 / 提供证明材料]

[如升级:]
→ 升级原因:[疑似拆单 / 金额重大差异 / 供应商主体存疑]
→ 接收人:[财务专员 / 财务经理]
═══════════════════════════════════════

升级触发条件

  • 差异率超过 20%(重大金额差异)
  • 供应商主体无法核实
  • 疑似故意拆单(规避审批权限)
  • 同一供应商连续 3 次出现三单差异
  • 涉及关联交易(与公司存在关联关系的供应商)

Finance Skills — triple-match-automation atomic skill

Frequently asked questions

What does the Triple Match Automation AI skill do?

三单匹配自动化 — 对采购类费用自动执行发票/合同/收货单三方核对。 适用情形:员工报销采购类支出(办公用品/设备/服务采购)时, 检验发票、合同/订单、收货单是否一致,发现异常自动标记。 核心:合同金额 vs 发票金额 vs 付款金额,三者差异阈值判断。

Why use Triple Match Automation on TypingMind?

Because you install it once and use it with any model. Triple Match Automation 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 Triple Match Automation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/vivy-yi/finance-skills/tree/master/finance-skills/skills/expense-review/skills/triple-match-automation. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Triple Match Automation?

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 Triple Match Automation?

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

Is the Triple Match Automation AI skill free?

Yes. It is published on GitHub by vivy-yi under the MIT 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 👇