invoice-processing-skillhub

SkillHub skill, identified as a skill entry on the SkillHub platform.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "invoice-processing-skillhub" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-dbfc7468b70490c96525c120bf563509ada98cca9422a0dd73c368df80461d7e. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/invoice-processing-skillhub before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

SkillHub skill, identified as a skill entry on the SkillHub platform.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: 发票处理
description: 从发票中提取、验证并按采购订单和总账代码进行分类

Invoice Processing

从发票中提取结构化数据,根据采购订单和供应商记录验证字段,按总账(GL)代码对明细项目进行分类,并标记不一致之处以供审查。该技能处理单张发票处理和批量操作,生成干净、可审计的输出,以便导入会计系统。

Workflow

  1. 接收并解析发票 接受任何形式的发票数据——原始文本、OCR 输出、结构化 JSON 或 CSV。识别文档类型(标准发票、贷项通知单、借项通知单、形式发票),并提取标题块:发票号、日期、到期日、供应商名称、供应商地址和付款条款。

  2. 提取明细项目和总计 解析每个明细项目的描述、数量、单价、扩展金额和税额。验证明细项目总计是否等于声明的小计。提取税费、运费、折扣和总金额。标记明细项目与总计之间的任何算术不一致。

  3. 与采购订单进行验证 根据采购订单号、供应商或明细项目描述将发票与其对应的采购订单匹配。比较数量和单价。计算采购订单、收货和发票之间的三向匹配得分。标记价格差异超过可配置阈值(默认:2%)或数量不匹配的发票。

  4. 按GL代码分类 根据项目描述、供应商类别和历史模式将每个明细项目分配到适当的总账账户。常见映射包括办公用品 → 6200,软件订阅 → 6500,专业服务 → 6300,原材料 → 5100。在适用的情况下应用部门成本中心代码。

  5. 标记不一致并生成输出 为每张发票生成结构化记录,包含所有提取字段、验证状态、GL 分配和任何标记。按严重性分组标记:阻止错误(缺少采购订单、总计不匹配 > 5%)、警告(小价格差异、缺失字段)和信息提示(新供应商、供应商首次开票)。

  6. 生成处理摘要 对于批量操作,生成一份摘要报告,显示处理的发票总数、通过/失败数量、总金额以及各类标记的细分。列出所有需要手动审查的被阻塞发票及其具体原因。

Usage

提供发票数据为文本、结构化数据或描述您需要处理的发票。指定用于验证的采购订单数据和您的GL代码映射偏好。

示例提示:

Process this vendor invoice: Invoice #INV-2024-0847 from Acme Cloud Services, dated 2024-11-15, PO #PO-4521. Line items: 10x API Gateway licenses at $150/ea, 1x Premium Support at $2,400/yr. Tax 8.5%. Validate against PO and assign GL codes.

Examples

示例 1:单张发票处理

Input:

Invoice #INV-2024-0847
Vendor: Acme Cloud Services (Vendor ID: V-1042)
Date: 2024-11-15 | Due: 2024-12-15 | Terms: Net 30
PO Reference: PO-4521

Line Items:
  1. API Gateway License (qty: 10, unit: $150.00) — $1,500.00
  2. Premium Support Annual (qty: 1, unit: $2,400.00) — $2,400.00

Subtotal: $3,900.00
Tax (8.5%): $331.50
Total: $4,231.50

Output:

{
  "invoice_number": "INV-2024-0847",
  "vendor": { "name": "Acme Cloud Services", "id": "V-1042" },
  "date": "2024-11-15",
  "due_date": "2024-12-15",
  "po_reference": "PO-4521",
  "line_items": [
    {
      "description": "API Gateway License",
      "quantity": 10,
      "unit_price": 150.00,
      "amount": 1500.00,
      "gl_code": "6500",
      "gl_name": "Software Subscriptions",
      "cost_center": "IT-200"
    },
    {
      "description": "Premium Support Annual",
      "quantity": 1,
      "unit_price": 2400.00,
      "amount": 2400.00,
      "gl_code": "6510",
      "gl_name": "Software Maintenance & Support",
      "cost_center": "IT-200"
    }
  ],
  "subtotal": 3900.00,
  "tax": 331.50,
  "total": 4231.50,
  "validation": {
    "arithmetic_check": "PASS",
    "po_match": "PASS",
    "price_variance": "0.0%",
    "three_way_match": "PASS"
  },
  "flags": []
}

示例 2:带验证错误的批量处理

输入: 来自不同供应商的 4 张发票在批量中处理。

输出 — 错误报告:

Invoice # Vendor Amount Status Flags
INV-2024-0847 Acme Cloud Services $4,231.50 PASS —
INV-2024-1193 Delta Office Supply $892.40 WARNING Unit price $14.20 vs PO price $12.99 (+9.3%)
INV-2024-1205 Spark Consulting $18,750.00 BLOCKED No matching PO found
INV-2024-1210 GreenLeaf Catering $1,345.00 BLOCKED Line item total $1,280 ≠ stated subtotal $1,345

批量摘要:

  • 总处理数: 4
  • 通过: 1(25%)— $4,231.50
  • 警告: 1(25%)— $892.40
  • 阻塞: 2(50%)— $20,095.00
  • 总金额: $25,168.90
  • 需操作: 2 张发票在付款授权前需要手动审查。

最佳实践

  • 始终独立验证算术运算——不要信任声明的总计,除非从明细项目重新计算。
  • 维护供应商到总账映射表,并在出现新供应商或费用类型时更新它。
  • 设置适合您行业的价格差异阈值:商品为 2%,服务变量范围可达 10%。
  • 对超过可配置金额阈值的所有发票要求采购订单匹配,以防止未经授权的支出。
  • 保留原始发票数据与提取字段一起用于审计追踪目的。
  • 在非高峰时段批量处理发票,并立即将异常情况转交给应付账款人员。

Edge Cases

  • 无采购订单参考的发票: 标记为需要手动批准。检查供应商是否有覆盖费用的总采购订单或持续协议。
  • 贷项通知单和负金额: 作为负发票条目处理。验证贷项引用现有发票,并且贷项金额不超过原始金额。
  • 多币种发票: 提取声明币种,应用发票日期的汇率,并记录原始金额和转换后的金额。
  • 重复发票检测: 检查发票号 + 供应商 + 金额 + 日期与最近 90 天记录的匹配情况。标记完全匹配为可能的重复项,近似匹配(相同供应商 + 金额,不同发票号)为潜在重复项。
  • 部分发货: 当收货数量少于采购订单数量时,验证发票应基于收货数量而非采购订单数量。保留剩余余额为未结清状态。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 解决企业财务高频刚需:发票自动化处理、三向匹配、GL分类
  • 覆盖单张与批量处理场景,显著提升应付账款效率
  • 具备完整异常处理机制,减少人工错误
Trigger Precision95/100

Highlights

  • 触发描述清晰明确,覆盖发票处理核心场景
  • Usage章节提供具体示例提示,边界清晰
  • 支持多种输入格式(文本/OCR/JSON/CSV)
Structure and Standards93/100

Highlights

  • Workflow六步清晰,含完整出口条件
  • 提供单张发票和批量处理两个端到端示例
  • frontmatter完整,文档结构良好,章节齐全
Execution Reliability94/100

Highlights

  • 参数配置合理(价格差异阈值2%、阻塞阈值5%)
  • 覆盖主要异常场景:算术不一致、PO不匹配、重复检测
  • 不可逆操作有确认机制,输出结构化便于审计
Evidence Verifiability (mean of the first four)94/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.