Preface¶
During reimbursement, reconciliation, and archiving, invoices are often mixed in with PDFs and photographed images, making manual data entry slow and error-prone. While general large language models (LLMs) can read images, they struggle to stably cover dozens of layout types—such as VAT special invoices, train tickets, and flight itineraries—and may not integrate well with compliant third-party OCR services. The following introduces the community skill “Invoice OCR (Xiangyun Open Platform)” on SkillHub: it processes invoice files in batches by directory within an Agent and delegates recognition tasks to the Xiangyun OCR API.
What is this¶
“Invoice OCR (Xiangyun Open Platform)” is an Agent Skill oriented towards office-efficiency. Its coordinates are @user_6b190ef3/invoice-ocr-xy. The current version is 2.0.1, the source is community, and it is maintained by the publisher user_6b190ef3; the SkillHub page author is listed as Nini.
One-sentence positioning: Scan invoice files (PDF / images) in a specified folder and call the Xiangyun OCR API to extract structured invoice information. The skill is marked as requires_api_key=true, and Xiangyun Open Platform credentials must be configured before use.
Core Features¶
The following capabilities are derived from the official SkillHub description; no interfaces or fields not present in the materials are elaborated upon.
- Directory-level batch processing: Targets invoice assets within folders, rather than single, temporary interactive uploads for demonstration.
- Formats: Supports PDF and common image formats as input.
- Invoice Types: Claims to support 40+ types. Types listed in the materials include VAT invoices, train tickets, taxi receipts, flight itineraries, fixed-amount invoices, motor vehicle sales invoices, toll bridge receipts, etc.
- Backend Service: Recognition requests are routed through the Xiangyun OCR API (Open Platform), not a local offline model.
- Credential Management: On first use,
netocr_keyandnetocr_secretmust be configured; the Agent should proactively request these two items from the user or guide the user to write them into the configuration via the skill’s--configoption.
Installation and Activation¶
Install via SkillHub CLI¶
If skillhub is not installed on your local machine, you can first check or install the CLI according to the SkillHub Installation Instructions. Then, install the skill to the skills directory actually read by the current Agent (installing to the wrong directory will result in the skill not being loaded):
command -v skillhub && skillhub --version
skillhub install user_6b190ef3/invoice-ocr-xy --dir <skills directory>
Common skills paths for clients (excerpted from official installation docs; subject to your local environment):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
Alternatively, you can ask the AI to read https://skillhub.cn/install/skillhub.md and install @user_6b190ef3/invoice-ocr-xy based on the SkillHub page prompts.
Configure Xiangyun Credentials¶
Complete credential configuration before invoking recognition capabilities; otherwise, the API cannot authenticate:
- Confirm or collect
netocr_keyandnetocr_secretfrom the user (issued by the Xiangyun Open Platform). - Or guide the user to run the skill’s provided
--configprocess to write the above two items themselves.
The specific configuration file path and interaction form are subject to the SKILL.md inside the skill package; upon successful installation, this file can be viewed in the corresponding skills directory.
Typical Usage¶
The materials do not provide a complete example of an independent shell script; the typical workflow can be understood based on the skill design as follows:
- Place the invoice PDFs/images to be processed into the same folder.
- In the conversation, state the need for invoice recognition, batch invoice processing, or explicitly mention using Xiangyun OCR to recognize invoices—this aligns with the trigger scenarios listed officially.
- After the Agent loads this Skill, it will scan the directory and call Xiangyun OCR according to the skill instructions, returning structured fields for each receipt.
For the first session, ensure the credential configuration from the previous section is completed before initiating batch recognition.
Use Cases and Notes¶
Who is it for
- Those who need to process a batch of invoice files within an Agent session, rather than clicking to upload in a single webpage.
- Teams that already possess or are willing to apply for Xiangyun Open Platform API keys.
- Those whose receipt types fall within the skill’s supported 40+ categories (including common types like VAT, transportation, and fixed-amount receipts listed in the materials).
Limitations and Notes
- Heavy reliance on external API: Recognition quality, quotas, and availability are determined by the Xiangyun Open Platform; the skill itself does not promise offline recognition.
- Key Security:
netocr_key/netocr_secretare sensitive information and should be stored via--configor environmental conventions. Avoid writing them into public repositories or chat logs. - Version and Metadata: Subject to the SkillHub page (currently v2.0.1); the ratings and download counts displayed on the page will change over time. Please refer to the numbers you see when opening the page at the time of writing.
Conclusion¶
“Invoice OCR (Xiangyun Open Platform)” encapsulates “directory scanning + multi-type OCR + Xiangyun API” into an installable Agent Skill, suitable for batch invoice structuring in environments supporting Skills like Cursor. See the SkillHub Installation Documentation for installation and priority source instructions; Skill Homepage:
- API Entry: https://api.skillhub.cn/user_6b190ef3/invoice-ocr-xy
- SkillHub Display Page: https://www.skillhub.cn/skills/user_6b190ef3/invoice-ocr-xy