← 返回 Skills 市场
dnaxxx-hub

DOCX Editor

作者 dnaxxx-hub · GitHub ↗ · v1.0.0 · MIT-0
linuxdarwinwin32 ✓ 安全检测通过
45
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install docx-editor
功能描述
Read and generate Word documents with correct structure, styles, and cross-platform compatibility.
使用说明 (SKILL.md)

Structure

  • DOCX is a ZIP containing XML files—word/document.xml has main content, word/styles.xml has styles
  • Text splits into runs (\x3Cw:r>)—each run has uniform formatting; one word may span multiple runs
  • Paragraphs (\x3Cw:p>) contain runs—never assume one paragraph = one text block
  • Sections control page layout—headers/footers, margins, orientation are per-section

Styles vs Direct Formatting

  • Styles (Heading 1, Normal) are named and reusable—direct formatting is inline and overrides style
  • Removing direct formatting reveals underlying style—useful for cleanup
  • Character styles apply to runs, paragraph styles to paragraphs—they layer together
  • Linked styles can be both—applying to paragraph or selected text behaves differently

Lists & Numbering

  • Numbering is complex: abstractNum defines pattern, num references it, paragraphs reference numId
  • Restart numbering not automatic—need explicit \x3Cw:numPr> with restart flag
  • Bullets and numbers share the numbering system—both use numId
  • Indentation controlled separately from numbering—list can exist without visual indent

Headers, Footers, Sections

  • Each section can have different headers/footers—first page, odd, even pages
  • Section breaks: next page, continuous, even/odd page—affects pagination
  • Headers/footers stored in separate XML files—referenced by section properties
  • Page numbers are fields, not static text—update on open or print

Track Changes & Comments

  • Track changes stores original and revised in same document—accept/reject to finalize
  • Deleted text still present with \x3Cw:del> wrapper—don't assume visible = all content
  • Comments reference ranges via bookmark IDs—\x3Cw:commentRangeStart> to \x3Cw:commentRangeEnd>
  • Revision IDs track who changed what—metadata persists even after accepting

Fields & Dynamic Content

  • Fields have code and cached result—{ DATE \@ "yyyy-MM-dd" } vs displayed date
  • TOC, page numbers, cross-references are fields—update fields to refresh
  • Hyperlinks can be fields or direct \x3Cw:hyperlink>—both valid
  • MERGEFIELD for mail merge—placeholder until merge executes

Compatibility

  • Compatibility mode limits features to earlier Word version—check w:compat settings
  • LibreOffice/Google Docs: complex formatting may shift—test roundtrip
  • Embedded fonts may not transfer—fallback fonts substitute
  • DOCM contains macros (security risk); DOC is legacy binary format

Common Pitfalls

  • Empty paragraphs for spacing—prefer space before/after in paragraph style
  • Manual page breaks inside paragraphs—use section breaks for layout control
  • Images in headers: relationship IDs are per-part—same image needs separate relationship in header
  • Copy-paste brings source styles—can pollute style gallery with duplicates
安全使用建议
This skill appears safe to install as a DOCX reference skill. When using it to create or edit Word documents, still review final files for ordinary DOCX concerns such as hidden tracked changes, comments, cached field values, and document metadata before sharing.
能力评估
Purpose & Capability
The artifact consistently focuses on reading and generating Word DOCX documents, explaining structure, styles, lists, sections, fields, comments, and compatibility issues.
Instruction Scope
Instructions are scoped to document-format knowledge and include relevant cautions about deleted text, metadata, fields, and DOCM macros; there are no prompt overrides or unsafe agent directives.
Install Mechanism
The package contains only SKILL.md and a small _meta.json file, with no scripts, dependencies, binaries, or post-install behavior.
Credentials
The declared Linux, macOS, and Windows compatibility is proportionate for general DOCX editing guidance and does not request special local or network access.
Persistence & Privilege
The skill itself creates no persistence or privilege mechanism; its notes about persistent DOCX metadata are disclosed document-format guidance rather than hidden skill behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install docx-editor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /docx-editor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Read and generate Word documents with correct structure, styles, and cross-platform compatibility
元数据
Slug docx-editor
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

DOCX Editor 是什么?

Read and generate Word documents with correct structure, styles, and cross-platform compatibility. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 45 次。

如何安装 DOCX Editor?

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

DOCX Editor 是免费的吗?

是的,DOCX Editor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

DOCX Editor 支持哪些平台?

DOCX Editor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 DOCX Editor?

由 dnaxxx-hub(@dnaxxx-hub)开发并维护,当前版本 v1.0.0。

💬 留言讨论