Introduction¶
In financial, reimbursement, and reconciliation workflows, a common requirement is for the system to verify the authenticity and validity of an invoice based on the invoice code, number, billing date, and amount (or check code) provided by the user, and to retrieve structured invoice face data. Direct integration with the State Taxation Administration verification pages or various third-party interfaces often leads to pitfalls due to changing field rules, batch limits, and error code handling across different invoice types. The following introduces the SkillHub community Skill “Bill and Invoice Verification” (@user_bbae3f97/qixiangyun-bill-verification-skill), which encapsulates the Qixiangyun (企享云) bill verification capabilities into an Agent-executable CLI and conventions, facilitating verification and batch checks in environments like Cursor and Claude Code.
What is this¶
“Bill and Invoice Verification” is an Agent Skill based on the general SKILL.md format. The current version is 1.0.7. On SkillHub, it is categorized as professional, sourced from the community, and published by user_bbae3f97.
One-sentence positioning: It calls the Qixiangyun invoice verification service using the four key invoice elements (and extended fields based on invoice type) to return full invoice data and the latest invoice status for the day; the official description states that it remains consistent with the National VAT Invoice Verification Platform of the State Taxation Administration.
SkillHub Page: https://www.skillhub.cn/skills/user_bbae3f97/qixiangyun-bill-verification-skill
Skill Package URL: https://api.skillhub.cn/user_bbae3f97/qixiangyun-bill-verification-skill
Core Functions¶
The following capabilities are derived from the Skill’s SKILL.md and description, with verified support scope:
- Digital Invoice Verification: Electronic ordinary/special VAT invoices, railway passenger tickets, air passenger tickets, motor vehicle sales invoices, unified used car sales invoices, toll invoices, etc.
- VAT Invoice Four-Element Verification: VAT special/ordinary invoices, motor vehicle sales unified invoices, etc.
- Fully Digitalized Paper Invoice Verification.
- Fiscal Bill Verification (see SkillHub description).
- Local Format Pre-check:
validate-invoice-infovalidates parameter formats before formal verification. - Batch Verification: Submit multiple entries via
batch-verifyorcyList, up to 50 entries per request. - Backend Protocol: Calls the Qixiangyun endpoint
https://mcp.qixiangyun.com/mcp/invoice_verification-httpvia MCP HTTP Streamable. Corresponding tools includeverify_tax_control_invoice,verify_digital_invoice,verify_digital_paper_invoice.
On successful verification, the business code is code=2000; any non-2000 value indicates failure. The Skill explicitly requires that agents must not fabricate the four elements. Additionally, je, jym, and jshj are conditionally required based on the invoice type and should not be treated as strictly mandatory in all cases.
Installation and Activation¶
Install SkillHub CLI (if not installed)¶
First, check if skillhub is already on your machine:
command -v skillhub && skillhub --version
If not installed, follow the official SkillHub installation documentation for a full installation (CLI + default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
To install only the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
Install this Skill¶
When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized. SkillHub page reference: https://skillhub.cn/install/skillhub.md
skillhub install @user_bbae3f97/qixiangyun-bill-verification-skill --dir <your Agent skills directory>
Common directory examples (from SkillHub installation docs):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
The SkillHub tag is requires_api_key=true; Qixiangyun access credentials must be configured before use.
Credential Configuration¶
Use the full access credential uniformly, in the format QXY_API_KEY=<appkey>.<secret>. The reading order is: Process Environment -> .env in the current Skill directory -> qixiangyun-skill/.env. Credentials can be obtained from the Qixiangyun Open Platform (the Skill’s .env.example points to: https://open.qixiangyun.com/#/productRelated/aiProduct).
Example (do not commit real keys to the repository):
# Copy .env.example in the Skill directory and fill in
QXY_API_KEY=your_appkey.your_appsecret
Optional override for the MCP base URL (default points to Qixiangyun):
# QXY_MCP_BASE_URL=https://mcp.qixiangyun.com
For local single-user Agents, run a configuration check on first use (Managed/Multi-tenant environments should use platform Secret injection instead of interactive configuration):
cd <Skill Installation Directory>/@user_bbae3f97/qixiangyun-bill-verification-skill
python3 scripts/cli.py check-config
Dependencies are listed in the Skill package’s requirements.txt; Python dependencies must be installed before running the CLI.
Typical Usage¶
The following commands are executed in the root directory of the Skill. Paths depend on your local --dir installation result.
1. Pre-check Invoice Information Format¶
Perform local format validation before formal verification:
python3 scripts/cli.py validate-invoice-info \
--invoice-type-code 'Invoice Code' \
--invoice-number 'Invoice Number' \
--billing-date 'Billing Date' \
--amount 'Amount, optional' \
--check-code 'Last 6 digits of Check Code, optional'
2. Single Tax Control Invoice Verification¶
The single entry command requires at least one of --amount or --check-code:
python3 scripts/cli.py verify-invoice \
--invoice-type-code 'Invoice Code' \
--invoice-number 'Invoice Number' \
--billing-date 'Billing Date' \
--amount 'Amount, optional' \
--check-code 'Last 6 digits of Check Code, optional'
3. Tax Control Invoice Batch / cyList¶
Use a JSON array cyList for multiple Tax Control invoices:
python3 scripts/cli.py verify-tax-control \
--cy-list '[{"fpdm":"Invoice Code","fphm":"Invoice Number","kprq":"Billing Date","je":"Amount excluding tax","jym":"Last 6 digits of Check Code"}]'
Batch compatible command (also up to 50 entries):
python3 scripts/cli.py batch-verify \
--cy-list '[{"fpdm":"3200222130","fphm":"12345678","kprq":"2024-01-15","je":"100.00","jym":"123456"}]'
4. Digital Invoice Verification¶
The core fields for digital invoices are Invoice Number, Billing Date, and Total Price & Tax jshj:
python3 scripts/cli.py verify-digital \
--cy-list '[{"fphm":"Invoice Number","kprq":"Billing Date","jshj":"330.00"}]'
5. Digital Paper Invoice Verification¶
python3 scripts/cli.py verify-digital-paper \
--cy-list '[{"fpdm":"Invoice Code","fphm":"Invoice Number","kprq":"Billing Date","je":"Amount excluding tax","jym":"Last 6 digits of Check Code"}]'
cyList Field Reference¶
| Field | Description |
|---|---|
fpdm |
Invoice Code |
fphm |
Invoice Number |
kprq |
Billing Date, yyyy-MM-dd or yyyyMMdd |
je |
Amount excluding tax; required for some special invoices, motor vehicles, etc. |
jym |
Last 6 digits of check code; required for some ordinary invoices, roll invoices, etc. |
jshj |
Total price & tax; required for digital invoice verification. |
fpdm, fphm, and kprq are basic required fields. For Tax Control and Digital Paper scenarios, je and jym are either optional or conditionally required based on the invoice type. Digital invoices follow the jshj rule.
In conversational Agents, after enabling this Skill, the model can select the appropriate sub-command based on the invoice information provided by the user. It must adhere to the Skill’s rules regarding credential configuration and user prompts for authorization terminal states (such as product testing period or usage limit exceeded messages like 505069), avoiding the leakage of keys or raw error stacks.
Applicable Scenarios and Notes¶
Who is this for
- Teams needing to perform preliminary reimbursement checks, invoice authenticity verification, and structured data storage within AI coding or office Agents.
- Developers already using or planning to use Qixiangyun Open Platform APIKEYs who wish to reduce the cost of hand-writing MCP calls and judging invoice type fields.
Limitations and Notes
- A valid
QXY_API_KEYis required. If the free version test period expires or production authorization is exhausted, the Skill requires returning a fixed user message and stopping retries. You must renew or purchase more quota on the Open Platform. - The hard limit for batch verification is 50 entries per request; larger batches should be split.
- If the old environment variables
QXY_CLIENT_APPKEY/QXY_CLIENT_SECRETstill exist, the Skill requires stopping calls and migrating to the full APIKEY format. - SkillHub Statistics (based on scraped data): Rating 100000, Downloads 1174, Installs 4; actual experience depends on your invoice types, authorization, and network.
Conclusion¶
Following the steps above, you can install @user_bbae3f97/qixiangyun-bill-verification-skill in your Agent’s skills directory. After configuring QXY_API_KEY, you can use scripts/cli.py to complete the closed loop from format pre-checking to tax control, digital, paper, and batch verification. For details and installation access, see SkillHub: https://www.skillhub.cn/skills/user_bbae3f97/qixiangyun-bill-verification-skill , Skill Package: https://api.skillhub.cn/user_bbae3f97/qixiangyun-bill-verification-skill .