Word文档搭子

SKILL效率
效率 未标注权限 许可证不明确
安装这个技能

【知行FDE】写好了内容,还要从头折腾 Word 排版?帮你按模板生成或修改文档,默认保留原件,交付前再检查内容。

一句话选型结论

按资料字段整理

Word文档搭子是效率类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类效率 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_2b6b1a74/zhixing-word-docx
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

效率
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_2b6b1a74仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791672263
正文体量12.1 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
整理待办与日程

把零散任务收进清单,排出优先级。

批量处理重复任务

把固定动作做成模板,重复执行。

把流程写成清单

把口头流程整理成可复用的步骤。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在效率场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
Word文档搭子当前 未标注权限 未标注 未标注 未标注 有
Nano PDF 文档 联网访问 ClawHub 市场 424.9 万 OpenClaw 有
自动更新程序 浏览器控制 ClawHub 市场 296.4 万 OpenClaw 有
Gemini 助手 联网访问 ClawHub 市场 254.7 万 OpenClaw 有
word DOCX 文档 联网访问 ClawHub 市场 239.6 万 OpenClaw 有
Excel XLSX 前端 联网访问 ClawHub 市场 227.0 万 OpenClaw 有

SKILL.md 全文

12.1 KB
模型实际读到的说明书原文,来自技能仓库

Word 文档处理(改编自 Nous Research docx)

适合“帮我把会议记录整理成 Word”“按这份模板填一份报告”“修改这份 docx 的某段话并保留其他格式”。先确认用户给了源文件或内容、期望输出路径、是否允许改原件;默认另存新文件。若文档是旧 .doc、扫描版 PDF 或要求像素级版式,本 Skill 不直接承诺完成。

在 WorkBuddy 中先定位当前 SKILL.md 所在文件夹,再调用该文件夹下 scripts/ 中的脚本;不要假定当前工作目录就是 Skill 文件夹。所有 Windows 路径、含空格路径都加引号。Windows 命令用 python -X utf8,使中文 JSON 稳定输出 UTF-8。可用当前环境中的 Python 3.10+;若无 python-docx,先提示用户安装 python -m pip install python-docx 或改用 WorkBuddy 已可用的原生文档能力,并说明功能差异;安装排查读 @references/setup.md。只对用户交付文件操作,改原件前征得同意。脚本的 JSON 输出和退出码都要检查,生成后用 docx_validate.py 及读回内容核验。遇到复杂修订或批注时读 @references/revisions-and-comments.md。

以下为原版能力与命令说明。原版的 terminal 指 WorkBuddy 可用的命令执行能力,write_file/read_file 指创建/读取普通文本文件的能力;它们不是必须存在的同名 WorkBuddy 工具。完整来源和改动见 SOURCE_AND_CHANGES.md。

Create, read, edit, and template Microsoft Word .docx files with
python-docx via small CLIs. It handles text, styles, lists, tables,
images, headers/footers, {{token}} templating, tracked changes
(list/accept/reject), comments (list/add/delete), TOC and page-number
fields, and package health checks. It does not render documents itself
(PDF needs LibreOffice — see Converting to PDF) or edit legacy .doc.

When to Use

  • The user asks to generate a Word document (report, letter, contract).
  • You need the text, outline, styles, or embedded images of a .docx.
  • You must change an existing .docx: replace text, edit table cells,
    insert/delete paragraphs, apply styles, merge fragmented runs.
  • You have a .docx template with {{placeholders}} to fill from data.
  • The document has tracked changes to review, accept, or reject.
  • You need to read reviewers' comments, or add/delete comments.
  • A .docx won't open or behaves oddly and you need corruption triage.
  • The document needs a table of contents or "Page X of Y" footers.
  • Not for: .doc (legacy), .odt, or WYSIWYG layout work.

Prerequisites

  • Python 3.10+ with python-docx installed:
    pip install python-docx (import name is docx; lxml comes with it).
  • Comments add uses the native API on python-docx >= 1.2 and an XML
    fallback on older versions — both are automatic.
  • For image blocks: the image files must exist locally (PNG/JPEG).

How to Run

All helpers live in scripts/ next to this file. Resolve the skill directory
first; each script supports --help and prints JSON to stdout. On Windows,
quote absolute script, input and output paths. In PowerShell, a quoted Python
executable is invoked with &.

python scripts/docx_create.py spec.json out.docx
python scripts/docx_read.py out.docx --text
python scripts/docx_edit.py replace out.docx --find old --replace new
python scripts/docx_template.py tpl.docx values.json filled.docx
python scripts/docx_revisions.py list out.docx
python scripts/docx_comments.py list out.docx
python scripts/docx_validate.py out.docx

Quick Reference

Task Command
Create from JSON spec docx_create.py spec.json out.docx
Full text (body+tables+headers/footers) docx_read.py f.docx --text
Heading outline + table shapes docx_read.py f.docx --structure
Styles actually used docx_read.py f.docx --styles
Extract embedded images docx_read.py f.docx --images outdir/
Detect tracked changes/comments docx_read.py f.docx --revisions
Find/replace (formatting kept) docx_edit.py replace f.docx --find A --replace B -o out.docx
Set a table cell docx_edit.py set-cell f.docx --table 0 --row 1 --col 2 --text X
Insert paragraph before index N docx_edit.py insert f.docx --index N --text X --style Normal
Delete paragraph N docx_edit.py delete f.docx --index N
Apply style to paragraph N docx_edit.py style f.docx --index N --style "Heading 1"
Merge equal-format adjacent runs docx_edit.py normalize f.docx -o out.docx
Insert TOC field before para N docx_edit.py toc f.docx --index N -o out.docx
"Page X of Y" footer fields docx_edit.py page-numbers f.docx
Fill {{tokens}} docx_template.py tpl.docx values.json out.docx --strict
List revisions (id/author/date/text) docx_revisions.py list f.docx
Accept / reject all revisions docx_revisions.py accept-all f.docx -o out.docx (or reject-all)
Accept / reject one revision docx_revisions.py accept f.docx --id 3 -o out.docx
List comments (+anchored text) docx_comments.py list f.docx
Add comment anchored to text docx_comments.py add f.docx --target "phrase" --text "note" --author You
Delete comment by id docx_comments.py delete f.docx --id 0
Health-check the package docx_validate.py f.docx (exit 1 on errors)

Procedure

  1. Create. Write a JSON spec with write_file, then run
    scripts/docx_create.py. The spec supports: page (size + margins in
    mm), header/footer strings, footer_page_numbers (adds a
    "Page X of Y" field footer), styles (custom paragraph styles with
    font, size, bold/italic, hex color), and blocks — heading
    (level 1-9), paragraph (either text or a runs list where each run
    may set bold/italic/underline), bullet_list, numbered_list,
    table (header row rendered bold, rows, optional built-in table
    style such as Table Grid), image (path, optional width_mm),
    toc (Table of Contents field), and page_break. The full spec
    format is documented at the top of scripts/docx_create.py.
  2. Read. Use scripts/docx_read.py with exactly one mode flag.
    --text returns body paragraphs, all table cell text, and
    header/footer text as JSON. --structure returns the heading outline
    plus paragraph/table/section counts. --images DIR copies every file
    under word/media/ out of the package.
  3. Edit. Use scripts/docx_edit.py. replace walks body, tables
    (nested included), headers and footers, and preserves run formatting;
    add --body-only to skip headers/footers. Pass -o out.docx to keep
    the original; omit it to edit in place. Paragraph indices for
    insert/delete/style/toc refer to --structure/--text body
    order. Run normalize first on documents that came out of heavy Word
    editing — it merges adjacent runs with identical formatting so later
    find-replace matches reliably.
  4. Review revisions. docx_revisions.py list reports every w:ins
    and w:del (id, author, date, affected text) anywhere in body,
    tables, headers, or footers. accept-all / reject-all resolve them
    in bulk; accept/reject --id N handles a single revision. Accept
    keeps insertions and drops deleted text; reject does the reverse.
  5. Comments. docx_comments.py list returns each comment's id,
    author, date, body text, and the document text it is anchored to.
    add --target "some phrase" anchors a new comment to the first
    occurrence of that phrase (runs are split as needed; formatting is
    preserved). delete --id N removes the comment and its markers
    without touching document text.
  6. Template. Put {{name}}-style tokens in the document. Run
    scripts/docx_template.py with a JSON object of values. Use
    --strict to fail when tokens remain unfilled; the JSON output lists
    filled counts and unfilled_tokens either way.
  7. Verify (always): re-read the output with --text or
    --structure, and run docx_validate.py on anything you produced
    via revision/comment surgery.

Converting to PDF

No script needed. When LibreOffice is installed, convert headlessly:

soffice --headless --convert-to pdf --outdir outdir/ file.docx

Check availability first (PowerShell: Get-Command soffice,libreoffice -ErrorAction SilentlyContinue; Unix: command -v soffice || command -v libreoffice). If neither exists, tell the user PDF conversion is
unavailable in this environment rather than improvising — python-docx
cannot render PDFs, and layout fidelity requires a real renderer.

Pitfalls

  • Tokens split across runs. Word often fragments text into several
    runs. The replace helpers collapse matched runs (replacement inherits
    the first run's formatting); running docx_edit.py normalize first
    reduces fragmentation for all later edits.
  • Revision coverage. docx_revisions.py resolves run-level
    insertions and deletions (the overwhelming majority). Paragraph-mark
    and table-row revisions, format-change records, and moves are detected
    by --revisions but not auto-resolved — see
    references/revisions-and-comments.md and hand those to Word.
  • Comment threading. Replies and "resolved" status live in
    commentsExtended.xml, which this skill ignores; comments it adds are
    plain top-level comments.
  • Field results are computed by Word. toc, page-numbers, and the
    toc/footer_page_numbers spec options write field codes.
    Word/LibreOffice populates the actual entries and numbers when the
    file is opened (Word may prompt to update fields); python-docx never
    computes them, so placeholder text shows until then.
  • Validation is a health check, not schema validation.
    docx_validate.py verifies the zip, required parts, relationship
    targets, image magic bytes, and referenced styles. It is NOT XSD
    validation — a file can pass and still contain XML Word dislikes.
  • Style names must exist. Applying a style that isn't defined in the
    document raises KeyError. Built-ins like Heading 1, List Bullet,
    List Number, Table Grid exist in the default template; custom
    styles must be declared in the create spec first.
  • Numbered lists restart. List Number relies on Word's default
    numbering; separate lists in one document may continue numbering
    instead of restarting. Warn users needing precise multi-list numbering.
  • Cell writes replace formatting. set-cell uses cell.text = ...,
    which resets runs in that cell to plain formatting.
  • Encoding. All JSON specs/values files are read as UTF-8 explicitly;
    never rely on locale defaults when writing your own glue code.
  • Don't unzip-and-sed the XML. Edit through the scripts (or
    python-docx); raw text substitution in document.xml corrupts files
    easily. Use patch/write_file only for the JSON inputs, never on the
    .docx itself.

Verification

  • After create/edit/template, run docx_read.py out.docx --text and
    check the expected strings appear (and old strings are gone).
  • After accept/reject, docx_revisions.py list should return [] (or
    only the ids you intentionally left); after comment surgery,
    docx_comments.py list should reflect the change and --text output
    must be unchanged.
  • docx_validate.py out.docx exits 0 with "ok": true on a healthy
    package — run it after any revision/comment/field manipulation.
  • For templates run with --strict, or check unfilled_tokens == [].
  • Structure checks: --structure should show the expected heading
    outline and table shapes; --styles confirms custom styles applied.

常见问题

5 问
答案由本站依据条目字段整理
Word文档搭子怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_2b6b1a74/zhixing-word-docx。安装方式为未标注。装完刷新技能列表或重开客户端。

Word文档搭子支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

Word文档搭子权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

Word文档搭子收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

Word文档搭子用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。