← Back to Skills Marketplace
hanw2039

校验XML数电票

by hanW2039 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
88
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install validate-einvoice-xml
Description
验证XML文件是否为中国数电票(全面数字化电子发票)格式。检查XML结构、必需字段和数电票特征。当用户需要验证XML是否为数电票、检查数电票格式合规性、或处理电子发票XML文件时使用。
Usage Guidance
This skill appears to do what it says (validate Chinese e-invoice XML) and does not ask for credentials, but before using it consider: 1) Don't run the script on untrusted XML in a sensitive environment — xml.etree.ElementTree.parse() can be unsafe for malicious XML; prefer defusedxml or explicitly disable DTD/entity processing. 2) The script prints invoice numbers and taxpayer IDs (sensitive PII); redact or run validation in a trusted/isolated environment if you care about privacy. 3) If you will integrate this into production, add robust namespace handling, input size limits, and explicit safe XML parsing to prevent DoS or XXE. If you need, I can suggest a hardened Python implementation that mitigates XXE and large-entity attacks and that redacts or masks PII in reports.
Capability Analysis
Type: OpenClaw Skill Name: validate-einvoice-xml Version: 1.0.0 The skill is designed to validate Chinese e-invoice (数电票) XML files. The provided Python script in SKILL.md uses standard libraries (xml.etree.ElementTree and re) to verify the XML structure and specific fields like the 20-digit invoice number and digital signatures. There is no evidence of malicious intent, data exfiltration, or unauthorized command execution.
Capability Assessment
Purpose & Capability
The name/description match the actual instructions and included Python validation script: it parses a local XML file, checks for EInvoice root, required fields (EIid, InvoiceNumber, SellerIdNum, BuyerIdNum), signature presence, and prints a report. No unrelated credentials, binaries, or network access are requested.
Instruction Scope
Instructions operate only on a user-supplied XML file (expected). However, the example uses xml.etree.ElementTree.parse() without protections against XML External Entity (XXE) attacks or billion‑laughs-style entity expansion. The script also prints sensitive fields (taxpayer IDs, invoice numbers) but gives no guidance about handling or redaction of personally identifiable information.
Install Mechanism
Instruction-only skill with no install spec and no code files beyond SKILL.md (which includes a small Python example). Nothing is downloaded or written to disk by an installer — low install risk.
Credentials
No environment variables, credentials, or config paths are requested. The skill does process sensitive invoice data from user-supplied files, which is expected for the task but worth noting as a privacy consideration.
Persistence & Privilege
Skill is not always-enabled and requests no elevated privileges or persistent system changes. It does not modify other skills or system-wide configuration.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install validate-einvoice-xml
  3. After installation, invoke the skill by name or use /validate-einvoice-xml
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
validate-einvoice-xml 1.0.0 - Initial release. - Validates XML files for compliance with China’s fully digital electronic invoice (数电票) format. - Checks for required elements, structure, and key features: EInvoice root, mandatory fields (e.g., EIid, InvoiceNumber), and digital signature. - Provides error reporting and clear pass/fail results for compatibility with 数电票 standards. - Includes a ready-to-use Python script and quick validation guide for fast assessment.
Metadata
Slug validate-einvoice-xml
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 校验XML数电票?

验证XML文件是否为中国数电票(全面数字化电子发票)格式。检查XML结构、必需字段和数电票特征。当用户需要验证XML是否为数电票、检查数电票格式合规性、或处理电子发票XML文件时使用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 88 downloads so far.

How do I install 校验XML数电票?

Run "/install validate-einvoice-xml" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 校验XML数电票 free?

Yes, 校验XML数电票 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 校验XML数电票 support?

校验XML数电票 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 校验XML数电票?

It is built and maintained by hanW2039 (@hanw2039); the current version is v1.0.0.

💬 Comments