← 返回 Skills 市场
hanw2039

校验XML数电票

作者 hanW2039 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
88
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install validate-einvoice-xml
功能描述
验证XML文件是否为中国数电票(全面数字化电子发票)格式。检查XML结构、必需字段和数电票特征。当用户需要验证XML是否为数电票、检查数电票格式合规性、或处理电子发票XML文件时使用。
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install validate-einvoice-xml
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /validate-einvoice-xml 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug validate-einvoice-xml
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

校验XML数电票 是什么?

验证XML文件是否为中国数电票(全面数字化电子发票)格式。检查XML结构、必需字段和数电票特征。当用户需要验证XML是否为数电票、检查数电票格式合规性、或处理电子发票XML文件时使用。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 88 次。

如何安装 校验XML数电票?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install validate-einvoice-xml」即可一键安装,无需额外配置。

校验XML数电票 是免费的吗?

是的,校验XML数电票 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

校验XML数电票 支持哪些平台?

校验XML数电票 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 校验XML数电票?

由 hanW2039(@hanw2039)开发并维护,当前版本 v1.0.0。

💬 留言讨论