invoice-organizer SKILL.md skillA
invoice-organizer from cat-xierluo/legal-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add cat-xierluo/legal-skills/invoice-organizer@v0.1.1Pins v0.1.1 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- cat-xierluo/legal-skills
- Path
skills/invoice-organizer/SKILL.md- Versions recorded
- 1
- Latest version
- v0.1.1, committed Jun 22, 2026
- Size
- 7,990 bytes
- Repository stars
- 775
- License
- none declared
整理一批发票/票据 PDF(增值税普通发票、铁路电子客票、住宿交通餐饮等),按购买方抬头归档到对应项目并出具报销清单。本技能应在用户需要整理发票报销、把发票归档到项目、或出具报销/消费清单时使用。不要用于:合同/法律文书合规审查、证据实体分析、PDF 合并压缩加页码(用 pdf-processor)、扫描件 OCR 转写(用 legal-ocr)。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 发票信息整理与清单出具 读取一批发票 PDF 的结构化信息,向上回溯项目上下文填补事由,归档到对应项目,并出具清单(默认报销清单,可切换为消费清单、对账流水等其他形态)。 ## 何时使用 - 用户给出一个或多个发票/票据 PDF(交通、住宿、餐饮、办公采购等),需要整理报销 - 用户要把发票归档到某个案件/项目目录,并生成清单 - 触发词:"这几张发票报销""整理一下这批发票""做个报销清单""这些票归到 XX 项目""出个消费清单""按项目整理发票" 不适用:发票的法律/税务合规审查、作为诉讼证据的实体分析、PDF 物理处理(合并/压缩/页码)。 ## 工作流程 ### 1. 提取发票文本 优先用 `pdftotext`(poppler)提取文本层,电子发票大多自带文本层,开箱即用: ```bash pdftotext -layout "发票.pdf" - ``` 批量提取多个 PDF 用本 skill 脚本(自动分隔、缺失依赖给提示): ```bash python3 scripts/extract_invoice.py 发票1.pdf 发票2.pdf 发票3.pdf # 或传一个目录 python3 scripts/extract_invoice.py ~/Downloads/ ``` 若 `pdftotext` 无文本输出(扫描件/图片型发票),降级到 OCR:调用 `legal-ocr` 或 `pdf` skill。 ### 2. 识别关键字段 从文本中解析每张发票的核心字段,识别要点见 `references/invoice-field-guide.md`。常用类型速查: | 发票类型 | 必抓字段 | |----------|----------| | 铁路电子客票 | 发到站、车次、日期、票价、乘车人、购买方、发票号 | | 增值税普通发票(住宿/餐饮/服务) | 购买方、销售方、项目、金额、税额、价税合计、发票号、开票日期 | 无法确认的字段标注"待人工确认",不臆测。 ### 3. 匹配所属项目 按**购买方名称(发票抬头)**判断这批发票归属哪个项目:取购买方全称在工作文档库中检索匹配的委托人/客户;同抬头的发票归同一项目;无法匹配时向用户确认,不擅自归档。 ### 4. 读取项目上下文(向上回溯事由) 从发票所在位置(或拟归档位置)向上回溯,读取所属项目的信息文件,用于填补清单"报销信息"表的事由/案号/日期/路线/报销单位: ```bash python3 scripts/find_project_context.py "发票所在目录或文件路径" ``` 识别与提取要点见 `references/project-context-guide.md`。核心映射: …
Read the whole file at its exact version.
How to install
mdr add cat-xierluo/legal-skills/invoice-organizer@sha256:e6bbdc7ab417e946The line at the top of this page pins the label v0.1.1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_v5t5eoltjyz63ijv)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Jun 22, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (7990 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
cat-xierluo/legal-skills · 775 stars · license none declared · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_v5t5eoltjyz63ijv GET https://markdownregistry.com/api/v1/resolve?ref=cat-xierluo/legal-skills/invoice-organizer GET https://markdownregistry.com/api/v1/blob/e6bbdc7ab417e946d0f66ea958b70502f2ac7c63c283965320b2914971d14929
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from cat-xierluo/legal-skills
Every file in cat-xierluo/legal-skills