VatInvoiceOCR2Excel

An OCR tool that reads Chinese value-added tax invoice images and exports the extracted information to Excel. OCR means recognizing printed text from an image.

In plain words
What is it for?
It processes a single image, a folder of images, or an image URL, writes the results to an Excel file, can name sheets from filenames, and can translate the extracted text into English.
Why use it?
It reduces manual invoice data entry and can combine information from many invoice images in one spreadsheet.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/coderwanfeng/python-office/vatinvoiceocr2excel
Any agent
npx skills add CoderWanFeng/python-office --skill vatinvoiceocr2excel
Clone the repo
git clone --depth 1 https://github.com/CoderWanFeng/python-office

Made for: Claude Code, Codex.

Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 537 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00060 $0.00537
Opus 5 $0.00030 $0.00269
Sonnet 5 $0.00012 $0.00107
Haiku 4.5 $0.00006 $0.00054

Measured yesterday against content hash 609e8d56292b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

VatInvoiceOCR2Excel scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (__init__.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ocr/VatInvoiceOCR2Excel/SKILL.md · 59 lines

What it actually says

VatInvoiceOCR2Excel Skill

使用 OCR 技术将增值税发票信息提取并导出到 Excel 文件

功能描述

使用光学字符识别(OCR)技术识别增值税发票图片中的信息,并将结果导出到 Excel 文件中。支持批量处理多个发票图片。

所属分类

office/skills/ocr/VatInvoiceOCR2Excel/

调用方式

from skills.ocr import VatInvoiceOCR2Excel

VatInvoiceOCR2Excel(
    input_path='./invoices',
    output_path='./',
    output_excel='invoices.xlsx',
    id='your_baidu_id',
    key='your_baidu_key'
)

参数说明

参数 类型 必填 默认值 说明
input_path str - 发票图片文件路径或包含多个发票图片的文件夹路径
output_path str './' 输出 Excel 文件的文件夹路径
output_excel str 'VatInvoiceOCR2Excel.xlsx' 输出 Excel 文件的名称
img_url str None 网络发票图片的 URL。如果提供了 input_path,则此参数将被忽略
id str None 百度 OCR API 的识别 ID
key str None 百度 OCR API 的密钥
file_name bool False 是否使用图片文件名作为 Sheet 名称
trans bool False 是否将识别结果翻译成英文

返回值

None:函数将结果直接写入到指定的 Excel 文件中

使用示例

from skills.ocr import VatInvoiceOCR2Excel
VatInvoiceOCR2Excel(input_path='./发票图片', output_excel='所有发票汇总.xlsx')

原始函数

office.api.ocr.VatInvoiceOCR2Excel

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 59 lines · 60 tokens per session scan A 609e8d56292b

Subscribe to this mod's changes

VatInvoiceOCR2Excel is a skill published in the GitHub repository CoderWanFeng/python-office (1,346 stars, last pushed 12d ago), licensed Apache-2.0. It adds 60 tokens to every session and 537 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

airflow-translations

Add or update translations for the Apache Airflow UI. Guides through setting up locales, scaffolding translation files, translating with locale-specific guidelines, and validating results. Use when working with i18n tasks in airflow-core/src/airflow/ui/public/i18n/locales/.

apache/airflow · 60 tokens

docs-sync

Analyze main branch implementation and configuration to find missing, incorrect, or outdated documentation in docs/. Use when asked to audit doc coverage, sync docs with code, or propose doc updates/structure changes. Only update English docs under docs/ and never touch translated docs under docs/ja, docs/ko, or…

openai/openai-agents-python · 79 tokens

frontend-feature

Build a new page, view, or data-driven feature in the Next.js frontend. Use when adding a route under the dashboard/marketing area, wiring UI to a backend endpoint, adding client state, or creating a localized page. Covers App Router, data fetching, Zustand stores, and i18n.

vstorm-co/full-stack-ai-agent-template · 64 tokens

qiskit-to-cudaq

Use when porting Qiskit Python circuits to CUDA-Q kernels while preserving algorithms and validation fidelity.

NVIDIA/cuda-quantum · 28 tokens

youtube-cli

Searches YouTube and fetches video transcripts via the cli-web-youtube command-line tool — video search, video details (views, duration, description, keywords), trending by category, channel info, and timestamped transcripts/captions with language selection and translation. Use when the user asks about YouTube…

ItamarZand88/CLI-Anything-WEB · 105 tokens

jmcomic

Search, browse, inspect album-specific or site-wide comments, and download manga from JMComic (18comic), obtain the latest Android APK from hect0x7/JMComic-APK, and invoke the upstream jm-view-server jms command for local reading. Use for manga discovery, ranking, comment analysis, downloads, post-processing…

hect0x7/jmcomic-ai · 101 tokens