← 返回 Skills 市场
cs995279497-byte

Chen Word Docx

作者 cs995279497-byte · GitHub ↗ · v1.0.0 · MIT-0
linuxdarwinwin32 ✓ 安全检测通过
212
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install chen-word-docx
功能描述
Create, inspect, and edit Microsoft Word documents and DOCX files with reliable styles, numbering, tracked changes, tables, sections, and compatibility check...
使用说明 (SKILL.md)

When to Use

Use when the main artifact is a Microsoft Word document or .docx file, especially when tracked changes, comments, headers, numbering, fields, tables, templates, or compatibility matter.

Core Rules

1. Treat DOCX as OOXML, not plain text

  • A .docx file is a ZIP of XML parts, so structure matters as much as visible text.
  • The critical parts are usually word/document.xml, styles.xml, numbering.xml, headers, footers, and relationship files.
  • Text may be split across multiple runs; never assume one word or sentence lives in one XML node.
  • Use different workflows on purpose: structured extraction for quick reading, style-driven generation for new files, and OOXML-aware editing for fragile existing documents.
  • If the job is mainly reading, extracting, or reviewing, prefer a structure-preserving read path before touching OOXML.
  • For deep edits, inspect the package layout instead of relying only on rendered output.
  • Reading, generating, and preserving an existing reviewed document are different jobs even when the format is the same.
  • Legacy .doc inputs usually need conversion before you can trust modern .docx assumptions.

2. Preserve styles and direct formatting deliberately

  • Prefer named styles over direct formatting so the document stays editable.
  • Styles layer: paragraph styles, character styles, and direct formatting do not behave the same.
  • Removing direct formatting is often safer than stacking more inline formatting on top.
  • When editing an existing file, extend the current style system instead of inventing a parallel one.
  • Copying content between documents can silently import foreign styles, theme settings, and numbering definitions.

3. Lists and numbering are their own system

  • Bullets and numbering belong to Word's numbering definitions, not pasted Unicode characters.
  • abstractNum, num, and paragraph numbering properties all matter, so restart behavior is rarely "visual only".
  • Indentation and numbering are related but not identical; a list can have broken numbering even if the indent looks right.
  • A list that looks correct in one editor can restart, flatten, or renumber itself later if the underlying numbering state is wrong.

4. Page layout lives in sections

  • Margins, orientation, headers, footers, and page numbering are section-level behavior.
  • First-page and odd/even headers can differ inside the same document, so one header fix may not fix the document.
  • Set page size explicitly because A4 and US Letter defaults change pagination and table widths.
  • Use section breaks for layout changes; manual spacing and stray page breaks usually create drift.
  • Header and footer media use part-specific relationships, so copied IDs often break images or links.
  • Tables, page breaks, and headers often drift together, so treat layout fixes as document-wide, not local cosmetic edits.
  • Table geometry depends on page width, margins, and fixed widths, so "close enough" table edits often break later in Google Docs or LibreOffice.

5. Track changes, comments, and fields need precise edits

  • Visible text is not the full document when tracked changes are enabled.
  • Insertions, deletions, and comments carry metadata that can survive careless edits.
  • Deleted text may still exist in the XML even when it no longer appears on screen.
  • Comment anchors and review ranges can break if edits move text without preserving the surrounding structure.
  • Comment markers and review wrappers do not behave like inline formatting, so moving text carelessly can orphan or misplace them.
  • Comments, footnotes, bookmarks, and linked media may live in separate parts, not only in the main document body.
  • Tables of contents, page numbers, dates, cross-references, and mail merge placeholders are fields.
  • Edit the field source carefully and expect cached display values to lag until refresh.
  • Hyperlinks, bookmarks, and references can break if IDs or relationships stop matching.
  • Bookmarks, footnotes, comment ranges, and cross-references depend on stable anchors even when the visible text seems untouched.
  • A document can look correct while still containing stale field output that refreshes later into something different.
  • For review workflows, make minimal replacements instead of rewriting whole paragraphs.
  • In tracked-change workflows, only the changed span should look changed; broad rewrites create noisy reviews and can destroy the original formatting context.
  • For legal, academic, or business review documents, default to review-style edits over wholesale paragraph rewrites unless the user explicitly wants a rewrite.

6. Verify round-trip compatibility before delivery

  • Complex documents can shift between Word, LibreOffice, Google Docs, and conversion tools.
  • Tables, headers, embedded fonts, and copied styles are common sources of layout drift.
  • Treat .docm as macro-bearing and higher risk; treat .doc as legacy input that may need conversion first.
  • When layout matters, explicit table widths are safer than auto-fit or percentage-style behavior that different editors reinterpret.
  • A document that passes a text check can still fail on pagination, table widths, or reference refresh after the recipient opens it.

Common Traps

  • Copy-paste can import unwanted styles and numbering definitions.
  • Header or footer images use part-specific relationships, so reusing IDs blindly breaks them.
  • Empty paragraphs used as spacing make templates fragile; spacing belongs in paragraph settings.
  • A clean-looking export can still hide unresolved revisions, comments, or stale field values.
  • Restarting lists "by eye" usually fails because numbering state lives outside the paragraph text.
  • One visible phrase can be split across several runs, bookmarks, revision tags, or field boundaries.
  • Replacing a whole paragraph to change one clause often breaks review quality, bookmarks, comments, or nearby inline formatting.
  • Deleting all visible text from a paragraph or list item can still leave behind an empty paragraph mark, empty bullet, or unstable numbering.
  • Table auto-fit and percentage-like width behavior can look acceptable in Word and still drift in Google Docs or LibreOffice.
  • LibreOffice and Google Docs can shift complex tables, section behavior, and embedded fonts even when Word looks perfect.
  • Compatibility mode can silently cap newer features or change pagination behavior.
  • A single change in page size or margin defaults can ripple through tables, headers, TOC, and cross-references.
  • A revision workflow can look accepted on screen while leftover metadata, comments, or field caches still make the file unstable later.
  • TOC entries, footnotes, and cross-references can look correct until the recipient updates fields and exposes broken anchors.

Related Skills

Install with clawhub install \x3Cslug> if user confirms:

  • documents — General document handling and format conversion.
  • brief — Concise business writing and structured summaries.
  • article — Long-form drafting and editorial structure.

Feedback

  • If useful: clawhub star word-docx
  • Stay updated: clawhub sync
安全使用建议
This skill is instruction-only and appears coherent with its stated purpose. Before installing: (1) note it contains no code or installers — the agent following the instructions will need local tools or libraries to manipulate DOCX files, so verify what runtime the agent will use; (2) confirm the agent will operate on local files and will not upload sensitive documents to external services unless you intend that; (3) be aware the repository metadata has small version/owner ID mismatches — benign but worth noting; (4) if you plan to process sensitive legal/medical/financial documents, review the agent's file-access permissions and logging to ensure documents aren't sent elsewhere. If you want extra assurance, ask for the concrete implementation the agent will use (e.g., which library or tool will perform ZIP/XML edits) before running it on confidential files.
功能分析
Type: OpenClaw Skill Name: chen-word-docx Version: 1.0.0 The skill bundle contains only metadata and instructional documentation (SKILL.md) for handling Microsoft Word (.docx) files. The instructions are technical and focus on preserving document structure, styles, and tracked changes within the OOXML format. No executable code, data exfiltration attempts, or malicious prompt injections were identified.
能力评估
Purpose & Capability
The name and description (Word / DOCX editing, preserving styles, numbering, tracked changes, layout) match the SKILL.md content. The skill requests no binaries, env vars, or installs that would be unrelated to document editing. Minor metadata inconsistencies exist (registry ownerId vs _meta.json ownerId and SKILL.md version 1.0.2 vs registry 1.0.0), but these look like bookkeeping mismatches rather than functional inconsistencies.
Instruction Scope
The SKILL.md contains OOXML-aware editing guidance (inspect package parts like word/document.xml, styles.xml, numbering.xml; preserve tracked changes/comments/fields; test round-trip compatibility). All referenced actions are within the domain of DOCX processing. The instructions do not tell the agent to read unrelated system files, contact unexpected endpoints, or harvest credentials. Because it's instruction-only, actual file reads/writes will depend on the agent runtime — the guidance itself does not instruct exfiltration.
Install Mechanism
No install spec or code files are included; this is the lowest-risk install model. There are no downloads, archives, or package installs declared.
Credentials
The skill declares no required environment variables, credentials, or config paths. The SKILL.md does not reference hidden env vars or secrets. The level of requested access (none) is proportionate to the stated purpose.
Persistence & Privilege
Flags are default (always: false, agent-invocation allowed). The skill does not request permanent presence or privileged changes to other skills or system settings. Autonomous invocation is allowed (platform default) but not combined with any broad credential or install requirements that would increase risk.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install chen-word-docx
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /chen-word-docx 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Skill is now focused on fragile review workflows, reference stability, and minimizing layout drift after stricter audit. - Expanded documentation with detailed best practices for editing, formatting, and reviewing DOCX/Word files. - Emphasizes round-trip editing, tracked changes, comments, fields, and compatibility checks. - Updated traps, rules, and when-to-use guidance for users editing complex or heavily reviewed Word documents.
元数据
Slug chen-word-docx
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Chen Word Docx 是什么?

Create, inspect, and edit Microsoft Word documents and DOCX files with reliable styles, numbering, tracked changes, tables, sections, and compatibility check... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 212 次。

如何安装 Chen Word Docx?

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

Chen Word Docx 是免费的吗?

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

Chen Word Docx 支持哪些平台?

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

谁开发了 Chen Word Docx?

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

💬 留言讨论