Agent Skills
› KunAgent/Kun
› docx
docx
GitHub用于检查、编辑、验证和预览现有 Word 文档,确保结构完整且无关内容不受影响。支持通过哈希保护进行原子化修改,并在交付前进行有效性校验与预览。
Trigger Scenarios
需要修改现有 Word 文档内容
验证 Word 文档结构和完整性
预览已编辑的文档效果
Install
npx skills add KunAgent/Kun --skill docx -g -y
SKILL.md
Frontmatter
{
"name": "docx",
"description": "Inspect, edit, validate, and preview existing Word documents while preserving structure and unrelated content."
}
DOCX Documents
Copyright (c) 2026 KunAgent. Licensed under the MIT License.
Purpose
Inspect, edit, validate, and preview existing Word documents while preserving structure and unrelated content.
Tool routing
| Tool or skill | Use |
|---|---|
office_inspect |
Inspect existing DOCX structure, text, issues, and obtain the source hash. |
office_edit |
Apply atomic hash-protected edits to an existing DOCX. |
office_preview |
Preview the edited document. |
send_im_attachment |
Send the resulting file through IM when explicitly requested. |
Workflow
- Require an existing DOCX file for inspection or editing.
- Inspect the source and capture its current SHA-256.
- Translate the request into the smallest structured operation batch.
- Apply office_edit with expectedSha256.
- Validate and preview the edited document before delivery.
Completion gates
- Preserve headings, lists, tables, relationships, and unrelated formatting.
- Check that the output is a valid DOCX package.
- Confirm requested text and layout in preview or inspection output.
Boundaries
- This Kun environment does not include a native create-from-scratch DOCX generator.
- Do not rename plain text to .docx or install document libraries implicitly.
Delivery
Lead with the outcome, name the evidence used for verification, and disclose any real limitation that remains.
Version History
- a984912 Current 2026-09-09 01:49


