zai-org/ZCode
Professional PDF toolkit covering four production workflows: reports, creative visuals, academic LaTeX, and existing PDF processing.
整理一批发票/票据 PDF(增值税普通发票、铁路电子客票、住宿交通餐饮等),按购买方抬头归档到对应项目并出具报销清单。本技能应在用户需要整理发票报销、把发票归档到项目、或出具报销/消费清单时使用。不要用于:合同/法律文书合规审查、证据实体分析、PDF 合并压缩加页码(用 pdf-processor)、扫描件 OCR 转写(用 legal-ocr)。
$ npx skills add cat-xierluo/legal-skills --skill invoice-organizer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install cat-xierluo/legal-skills invoice-organizer --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/invoice-organizer .claude/skills/invoice-organizer && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "invoice-organizer" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/invoice-organizer into .claude/skills/invoice-organizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "invoice-organizer", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/cat-xierluo/legal-skills/tree/main/skills/invoice-organizerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add cat-xierluo/legal-skills --skill invoice-organizer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install cat-xierluo/legal-skills invoice-organizer --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/invoice-organizer .agents/skills/invoice-organizer && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "invoice-organizer" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/invoice-organizer into .agents/skills/invoice-organizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "invoice-organizer", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cat-xierluo/legal-skills --skill invoice-organizer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install cat-xierluo/legal-skills invoice-organizer --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/invoice-organizer .cursor/skills/invoice-organizer && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "invoice-organizer" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/invoice-organizer into .cursor/skills/invoice-organizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "invoice-organizer", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/cat-xierluo/legal-skills.git --path skills/invoice-organizer--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add cat-xierluo/legal-skills --skill invoice-organizer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install cat-xierluo/legal-skills invoice-organizer --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/invoice-organizer .gemini/skills/invoice-organizer && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "invoice-organizer" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/invoice-organizer into .gemini/skills/invoice-organizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "invoice-organizer", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install cat-xierluo/legal-skills invoice-organizerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add cat-xierluo/legal-skills --skill invoice-organizer -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/invoice-organizer .github/skills/invoice-organizer && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "invoice-organizer" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/invoice-organizer into .github/skills/invoice-organizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "invoice-organizer", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cat-xierluo/legal-skills --skill invoice-organizer -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install cat-xierluo/legal-skills invoice-organizer --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/invoice-organizer .opencode/skills/invoice-organizer && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "invoice-organizer" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/invoice-organizer into .opencode/skills/invoice-organizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "invoice-organizer", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
invoice-organizer整理一批发票/票据 PDF(增值税普通发票、铁路电子客票、住宿交通餐饮等),按购买方抬头归档到对应项目并出具报销清单。本技能应在用户需要整理发票报销、把发票归档到项目、或出具报销/消费清单时使用。不要用于:合同/法律文书合规审查、证据实体分析、PDF 合并压缩加页码(用 pdf-processor)、扫描件 OCR 转写(用 legal-ocr)。
Invoice Organizer is an agent skill from cat-xierluo/legal-skills. 整理一批发票/票据 PDF(增值税普通发票、铁路电子客票、住宿交通餐饮等),按购买方抬头归档到对应项目并出具报销清单。本技能应在用户需要整理发票报销、把发票归档到项目、或出具报销/消费清单时使用。不要用于:合同/法律文书合规审查、证据实体分析、PDF 合并压缩加页码(用 pdf-processor)、扫描件 OCR 转写(用 legal-ocr)。
Its SKILL.md is about 940 tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `CHANGELOG.md`, `references/invoice-field-guide.md` and `references/output-template.md`).
It sits in Documents & Office, covering Forms and invoices and PDF. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit db2c58c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
python3pdftotextbrewapt-getFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Invoice Organizer loads about 940 tokens when it runs, and up to ~2.8k if it reads all its reference files. Until then it costs about 48 tokens; SKILL.md has 224 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
macOS: `brew install poppler`<br>Linux: `sudo apt-get install poppler-utils` |Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from cat-xierluo/legal-skills at commit db2c58c, republished under its MIT licence (© cat-xierluo). 224 words, ~940 tokens.
.claude/skills/invoice-organizer/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.读取一批发票 PDF 的结构化信息,向上回溯项目上下文填补事由,归档到对应项目,并出具清单(默认报销清单,可切换为消费清单、对账流水等其他形态)。
不适用:发票的法律/税务合规审查、作为诉讼证据的实体分析、PDF 物理处理(合并/压缩/页码)。
优先用 pdftotext(poppler)提取文本层,电子发票大多自带文本层,开箱即用:
pdftotext -layout "发票.pdf" -批量提取多个 PDF 用本 skill 脚本(自动分隔、缺失依赖给提示):
python3 scripts/extract_invoice.py 发票1.pdf 发票2.pdf 发票3.pdf
# 或传一个目录
python3 scripts/extract_invoice.py ~/Downloads/若 pdftotext 无文本输出(扫描件/图片型发票),降级到 OCR:调用 legal-ocr 或 pdf skill。
从文本中解析每张发票的核心字段,识别要点见 references/invoice-field-guide.md。常用类型速查:
| 发票类型 | 必抓字段 |
|---|---|
| 铁路电子客票 | 发到站、车次、日期、票价、乘车人、购买方、发票号 |
| 增值税普通发票(住宿/餐饮/服务) | 购买方、销售方、项目、金额、税额、价税合计、发票号、开票日期 |
无法确认的字段标注"待人工确认",不臆测。
按**购买方名称(发票抬头)**判断这批发票归属哪个项目:取购买方全称在工作文档库中检索匹配的委托人/客户;同抬头的发票归同一项目;无法匹配时向用户确认,不擅自归档。
从发票所在位置(或拟归档位置)向上回溯,读取所属项目的信息文件,用于填补清单"报销信息"表的事由/案号/日期/路线/报销单位:
python3 scripts/find_project_context.py "发票所在目录或文件路径"识别与提取要点见 references/project-context-guide.md。核心映射:
| 清单字段 | 项目上下文来源 |
|---|---|
| 事由 | 项目/案件名称 + 触发出行的事件 |
| 案号 | 项目信息.md 的"法院案号" |
| 日期 | 与发票业务日期匹配的项目时间线事件 |
| 路线 | 事件地点(如法院所在地)↔ 常驻地 |
| 报销单位 | 委托人/客户(与发票购买方交叉验证) |
| 出差人 | 承办律师/项目出差人员 |
把发票业务日期与项目时间线对照,推断本次出行事由(如发票 06-15~17 + 项目"06-16 石家庄开庭" → 事由"赴石家庄参加第一次开庭")。无法从上下文确认的,向用户核实,不臆造。
确定归属项目后,把发票复制(不移动,保留原件)到该项目的报销子目录:
报销/(默认;差旅等可进一步子分类,如 报销/差旅/)YYMMDD 类型 摘要 [人名].pdf260615 高铁票 苏州北-石家庄 G1220 张某.pdf260615-0617 住宿费 石家庄XX酒店.pdf260620 餐饮费 XX餐厅 部门聚餐.pdf读取的发票信息可生成多种清单——报销清单(默认),也可按需输出消费清单、对账流水、按月汇总等。用户未指定时默认出具报销清单。模板与命名规范见 references/output-template.md。
默认输出风格(除非用户另行要求):
序号 | 日期 | 类型 | 摘要 | 金额(元) | 发票号,末行合计YYMMDD 报销清单.md(YYMMDD 为预计发送日期,询问用户,无则取当天)完成一次发票整理后,按下述门控自检。任一 Hard Fail 命中即判定本次输出不合格,不可交付。
cp 复制,禁止 mv 移动或删除原件YYYY-MM-DD;归档文件名与清单"日期"列用业务日期(非开票日期)YYMMDD 报销清单.md(YYMMDD 为预计发送日,已询问用户)输入:2 张发票(1 张高铁票 + 1 张住宿费),购买方为同一公司,业务日期落在某案件"XX 开庭"时间线前后。
应产出:
报销/ 子目录不在本 skill 验收范围:OCR 识别精度本身(扫描件降级到 legal-ocr)、发票真伪、税务合规判断。
| 依赖 | 安装方式 |
|---|---|
poppler(提供 pdftotext) | macOS: brew install poppler<br>Linux: sudo apt-get install poppler-utils |
仅"文本提取"需要 poppler;文本层缺失时改用 OCR skill,不强制安装。scripts/find_project_context.py 仅用 Python 标准库,无需安装。
pdftotext 无文本层时,用其 OCR 能力识别扫描件/图片型发票© cat-xierluo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 7 other files (scripts, references) in skills/invoice-organizer of cat-xierluo/legal-skills.
Open the folder on GitHubat commit db2c58c
Invoice Organizer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Invoice Organizer this skillcat-xierluo/legal-skills | 720 | — | ~940 | Automated safety check: Notes | MIT | |
| PDFzai-org/ZCode | 7.7k | — | ~18k | Automated safety check: Notes | Proprietary | |
| Code2mediatsingliuwin/autoclaw | 283 | — | ~985 | Automated safety check: Pass | MIT | |
| Reportlabjimmc414/Kosmos | 595 | 1 repos | ~4.2k | Automated safety check: Pass | None | |
| PDF ReadingWide-Moat/open-computer-use | 126 | 1 repos | ~2.7k | Automated safety check: Pass | Proprietary | |
| PDF Processing Toolkittelagod/code-abyss | 244 | — | ~532 | Automated safety check: Notes | MIT |
zai-org/ZCode
Professional PDF toolkit covering four production workflows: reports, creative visuals, academic LaTeX, and existing PDF processing.
tsingliuwin/autoclaw
Universal media renderer with no fixed template — any custom layout, size or style becomes pixel-perfect images (PNG/JPEG/WebP), vector SVG, paged PDFs or animations (WebP/GIF).
jimmc414/Kosmos
PDF generation toolkit. An agent skill from jimmc414/Kosmos.
Wide-Moat/open-computer-use
A skill your agent uses when you need to read, inspect, or extract content from PDF files — especially when file content is NOT in your context and you need to read it from disk.
telagod/code-abyss
Picks the right Python library or CLI tool for a PDF task, text and table extraction, merging, splitting, OCR, watermarking or form filling, and points to a matching recipe.
dkyazzentwatwa/chatgpt-skills
Convert PDFs, Office docs, markdown, HTML, and tables between editable formats.
cat-xierluo/legal-skills
Converts a lawyer's ordinary complaint or a described case into the Supreme People's Court's elements-style Word template, with layout checks on the result.
cat-xierluo/legal-skills
Analyzes raw lecture transcripts for verbal tics, pacing, time use and promise follow-through, with optional slide-by-slide comparison and cross-session tracking.
cat-xierluo/legal-skills
Detects and rewrites machine-sounding patterns in the body text of Chinese articles while keeping the author's facts, headings and legal terms intact.
cat-xierluo/legal-skills
Finds GitHub projects mentioned in articles or screenshots and stars them, tracks updates to your starred repos, and builds an HTML dashboard to browse them.
cat-xierluo/legal-skills
Sets up or incrementally updates AGENTS.md and CLAUDE.md for legal professionals, with a minimal safety baseline and a check that a new session loads and follows the rules.
cat-xierluo/legal-skills
Chinese-language skill that organizes a case file into a multi-role mock trial with judge, parties and clerk, producing a transcript, issue review and a to-strengthen list.
Categories
整理一批发票/票据 PDF(增值税普通发票、铁路电子客票、住宿交通餐饮等),按购买方抬头归档到对应项目并出具报销清单。本技能应在用户需要整理发票报销、把发票归档到项目、或出具报销/消费清单时使用。不要用于:合同/法律文书合规审查、证据实体分析、PDF 合并压缩加页码(用 pdf-processor)、扫描件 OCR 转写(用 legal-ocr)。. Invoice Organizer is an agent skill from cat-xierluo/legal-skills.
Invoice Organizer fits situations like: tasks that involve Forms and invoices; tasks that involve PDF.
Run `npx skills add cat-xierluo/legal-skills --skill invoice-organizer -a claude-code`. Or copy the skill folder (skills/invoice-organizer in cat-xierluo/legal-skills) into .claude/skills/invoice-organizer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add cat-xierluo/legal-skills --skill invoice-organizer -a codex`. Or copy the skill folder (skills/invoice-organizer in cat-xierluo/legal-skills) into .agents/skills/invoice-organizer in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cat-xierluo/legal-skills --skill invoice-organizer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/invoice-organizer, .gemini/skills/invoice-organizer, .github/skills/invoice-organizer and .opencode/skills/invoice-organizer in your project.
Going by SKILL.md and its folder, Invoice Organizer needs Python for the scripts in its folder and the command-line tools its instructions call (python3, pdftotext, brew and apt-get). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Invoice Organizer is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 940 tokens (SKILL.md is roughly 3.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.8k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Invoice Organizer: PDF (zai-org/ZCode, 7.7k stars), Code2media (tsingliuwin/autoclaw, 283 stars), Reportlab (jimmc414/Kosmos, 595 stars) and PDF Reading (Wide-Moat/open-computer-use, 126 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
cat-xierluo (a GitHub user) maintains it in cat-xierluo/legal-skills, which has 720 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on October 10, 2026.
Source: cat-xierluo/legal-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.