跳到主内容
智客 ZICQ

技能库 智客分类:文档办公 Word / DOCX OpenClaw

Word / DOCX

创建,检查,并编辑有可靠样式的Microsoft Word文档和DOCX文件,编号,跟踪更改,表格,章节,并进行相容性检查. 当 (1) 任务涉及 Word 或 ".docx " 时使用; (2) 文件包括跟踪的更改,评论,字段,表格,模板,或页面布局限制; (3) 文档必须在不格式化漂移的回程编辑中幸存.

2982 安装量 · 355 星标

官方网址:作者主页

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

创建、检查和编辑有可靠样式的Microsoft Word文档和DOCX文件、编号、跟踪更改、表格、章节和兼容性检查

何时用

当主要文物是微软Word文档或".docx"文件时使用,特别是当被跟踪的更改,注释,头条,编号,字段,表格,模板或相容性事项时使用

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:When to Use、Core Rules、1. Treat DOCX as OOXML, not plain text、2. Preserve styles and direct formatting deliberately、3. Lists and numbering are their own system、4. Page layout lives in sections。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

Create, inspect, and edit Microsoft Word documents and DOCX files with reliable styles, numbering, tracked changes, tables, sections, and compatibility checks. Use when (1) the task is about Word or `.docx`; (2) the file includes tracked changes, comments, fields, tables, templates, or page layout constraints; (3) the document must survive round-trip editing without formatting drift.

When to UseCore Rules1. Treat DOCX as OOXML, not plain text2. Preserve styles and direct formatting deliberately3. Lists and numbering are their own system4. Page layout lives in sections5. Track changes, comments, and fields need precise edits6. Verify round-trip compatibility before deliveryCommon TrapsRelated SkillsFeedback

来源分类:ClawHub Document

SKILL.md 与 Agent 调用

官方规范 ↗
name
Word / DOCX
description
Create, inspect, and edit Microsoft Word documents and DOCX files with reliable styles, numbering, tracked changes, tables, sections, and compatibility checks. Use when (1) the task is about Word or `.docx`; (2) the file includes tracked changes, comments, fields, tables, templates, or page layout constraints; (3) the document must survive round-trip editing without formatting drift.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「Word / DOCX」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-4b95e381d5d8e00e-%E5%8D%95%E8%AF%8D-DOCX.html
请存为 .cursor/skills/word-docx/SKILL.md 或 .claude/skills/word-docx/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

当前没有明确的 GitHub 技能包地址,请按来源页面的安装器说明操作。

ClawHub ↗

阅读排版
--- name: Word / DOCX slug: word-docx version: 1.0.2 homepage: https://clawic.com/skills/word-docx description: "Create, inspect, and edit Microsoft Word documents and DOCX files with reliable styles, numbering, tracked changes, tables, sections, and compatibility checks. Use when (1) the task is about Word or `.docx`; (2) the file includes tracked changes, comments, fields, tables, templates, or page layout constraints; (3) the document must survive round-trip editing without formatting drift." changelog: Tightened the skill around fragile review workflows, reference stability, and layout drift after a stricter external audit. metadata: {"clawdbot":{"emoji":"📘","os":["linux","darwin","win32"]}} --- ## 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 ` 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`

相关技能

文档办公

Ontology

为结构化的代理内存和可堆肥技能所打入的知识图. 在创建/征服实体(Person, project, Task, Evention, Document)时使用,链接相关对象,强制约束,规划多步动作作为图变,或技能需要共享状态时使用. 触发到"记住","我知道什么","链接X到Y",…

文档办公

Nano Pdf

使用纳米-pdf CLI编辑带有自然语言指令的PDF.

文档办公

Api Gateway

通过 Maton 网关调用第三方 API, 它为用户已经连接的应用程序注入证书 。 当用户命名一个连接的应用程序和其中的具体行动时使用此技能——读取一个邮箱,查询一个CMM,归档一个问题,更新一个电子表格,通过一个连接的搜索或刮取提供者运行一个查询. 每一次通话都到用户连接的应用…

文档办公

Baidu Search

使用Baidu AI搜索引擎(BDSE)搜索网页. 用于实时信息、文件或研究专题.