Skip to content
Agentmart
Submit a tool

xml-safety

XML 安全校验。

Skill by Murchey

IndexedGPL-3.0★ 4
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/murchey-xml-safety

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

XML 安全校验。

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/xml-safety

What's inside

Skill name
xml-safety
Description
XML 安全校验。
License
GPL-3.0
Instructions
50 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (2)

  • SKILL.md
  • xml_validator.py · scripts/

SKILL.md (first lines)

# XML Safety

验证 DOCX XML 结构安全性。验证失败则停止处理。

**输入**:`document_ast` 或 DOCX 文件路径
**输出**:`workspace/validated/validated_ast.json`

---

# 调用方式

```python
import sys
sys.path.insert(0, 'SKILLS/xml-safety/scripts')
from xml_validator import XMLSafetyValidator

validator = XMLSafetyValidator('workspace/input/input.docx')
validator.run()
# 输出: workspace/validated/validated_ast.json
```

**参数**:
- `__init__(docx_path)` - DOCX 文件路径
- `run()` - 执行验证,输出验证结果

---

# 验证内容

必须验证:
- styles.xml 存在且合法
- numbering.xml 存在且合法
- relationships 完整
- namespace 正确
- section properties 有效

---

# 安全规则

**禁止**:修改 relationship id、删除 namespace、删除 style 引用
**必须**:保留原始 XML 结构、不修改 document.xml

---

# 错误处理

验证失败 → 输出错误日志、停止后续处理、保留原文件

From Murchey/doc-form-master, GPL-3.0.

More from Murchey/doc-form-master

Signals

Stars
4
Forks
0
Open issues
0
Last commit (this folder)
May 28, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
GPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Murchey

Cite this page

xml-safety skill. Agent Mart. https://agentmart.dev/skills/murchey-xml-safety (last updated 2026-10-24)