只要 Word 文档或模板(.docx、.dotx、旧版 .doc)是任务的输入或输出,或者需要被打开、 读取、创建、修改,就使用本 Skill。也适用于 Word 内的表格、图片、批注、修订和格式调整, 以及要求以 Word 交付的报告、备忘录、信函和模板。不用于 PDF、电子表格或不涉及 Word 文件的普通写作。

Apache-2.0Auto-check passedDocuments & Office

Install DOCX

skills CLI
$ npx skills add nexus-research-lab/nexus --skill docx -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nexus-research-lab/nexus docx --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nexus-research-lab/nexus.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/docx .claude/skills/docx && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
docx
GitHub stars
151
Token cost
~484 tokens
SKILL.md length
86 words
Files
4 (incl. scripts)
Skills in repo
17
Repo updated
First seen
Licence
Apache-2.0

At a glance

只要 Word 文档或模板(.docx、.dotx、旧版 .doc)是任务的输入或输出,或者需要被打开、 读取、创建、修改,就使用本 Skill。也适用于 Word 内的表格、图片、批注、修订和格式调整, 以及要求以 Word 交付的报告、备忘录、信函和模板。不用于 PDF、电子表格或不涉及 Word 文件的普通写作。

  • Works in 5 steps: 用读取脚本回读最终文件,确认内容、顺序和关键表格正确。 → 新建或涉及版式的编辑,用 LibreOffice 转成 PDF,再用… → 修复截字、重叠、异常空白页、断裂表格、字体替换和错误页眉页脚后重新渲染。 → …
  • Tasks that involve Word documents
  • SKILL.md covers 工作契约, 读取, 创建与编辑 and 完成条件
  • Runs Python scripts from its folder; calls python3, soffice and pdftoppm

What it does

DOCX is an agent skill from nexus-research-lab/nexus. 只要 Word 文档或模板(.docx、.dotx、旧版 .doc)是任务的输入或输出,或者需要被打开、 读取、创建、修改,就使用本 Skill。也适用于 Word 内的表格、图片、批注、修订和格式调整, 以及要求以 Word 交付的报告、备忘录、信函和模板。不用于 PDF、电子表格或不涉及 Word 文件的普通写作。

Its SKILL.md is about 480 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts (for example `scripts/read_word.py` and `tests/test_read_word.py`).

It sits in Documents & Office, covering Word documents. It works with Microsoft Word, python-docx and LibreOffice. The repository describes itself as: Multi-agent collaboration platform for persistent, proactive AI agents across rooms, workspaces, skills, and external services. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Word documents

Example prompts

  • “/docx”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. 用读取脚本回读最终文件,确认内容、顺序和关键表格正确。
  2. 新建或涉及版式的编辑,用 LibreOffice 转成 PDF,再用 pdftoppm 生成页面图片并逐页检查
  3. 修复截字、重叠、异常空白页、断裂表格、字体替换和错误页眉页脚后重新渲染。
  4. 若 LibreOffice 或 Poppler 不可用,仍可完成纯内容读取;写任务要明确说明未完成视觉检查,不能声称版式已验证。
  5. 最终只交付用户要求的 DOCX,不附带构建脚本和预览文件。

What it can do on your machine

Read from SKILL.md and the folder at commit 67f54e7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3
    • soffice
    • pdftoppm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

DOCX loads about 484 tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 86 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~484

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from nexus-research-lab/nexus at commit 67f54e7, republished under its Apache-2.0 licence (© nexus-research-lab). 86 words, ~484 tokens.

Download SKILL.mdSave it as .claude/skills/docx/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
docx
description
只要 Word 文档或模板(.docx、.dotx、旧版 .doc)是任务的输入或输出,或者需要被打开、 读取、创建、修改,就使用本 Skill。也适用于 Word 内的表格、图片、批注、修订和格式调整, 以及要求以 Word 交付的报告、备忘录、信函和模板。不用于 PDF、电子表格或不涉及 Word 文件的普通写作。
metadata.title
Word 文档
metadata.version
2.0.0
metadata.category_key
content-docs
metadata.category_name
内容与文档
metadata.recommendation
适合读取、创建和编辑 Word 文档,并保留既有格式和可编辑结构。
metadata.tags
word, docx, document-reading, document-creation, document-editing

Word 文档

按任务选择最短可靠路径:

任务路径
读取、总结、问答运行自带读取脚本;版式相关问题再渲染页面
新建文档用 python-docx 生成可编辑 DOCX
编辑现有文档先读内容和版式,再用 python-docx 做局部修改
批注、修订、内容控件等高级结构仅在库不能安全保留时做定点 OOXML 修改
旧版 .doc用 LibreOffice 转为 .docx,保留原件

工作契约

  • 只读问题不重新保存或转换文件,除非读取确实需要转换。
  • 写操作默认另存新文件;用户明确要求覆盖时才覆盖。
  • 用户提供的模板、样式和版式优先于本 Skill 的默认建议。
  • 先直接使用当前环境。import docx 失败且任务需要写文件时,取得用户同意后在隔离环境安装 ${CLAUDE_SKILL_DIR}/requirements.txt,不要静默修改系统 Python。

读取

bash
python3 "${CLAUDE_SKILL_DIR}/scripts/read_word.py" "<input.docx>"
python3 "${CLAUDE_SKILL_DIR}/scripts/read_word.py" "<input.docx>" --output "<new-output.txt>"

脚本按文件签名识别 OOXML 与旧版 OLE,不只相信扩展名。它提取正文和表格;页眉页脚、图片、 批注、修订或版式决定答案时,还要查看渲染页面或相关 OOXML,不能从纯文本猜测。

创建与编辑

在 workspace 或临时目录写一个可重复运行的短 Python 脚本,再用 python-docx 输出文件。

  • 新建前确认文档用途、读者和目标格式;信息足够时直接判断,不为装饰性选择阻塞任务。
  • 使用 Word 样式、编号、分页符、分节、表格和页眉页脚表达结构,不用空格、手工圆点或连续空行伪造布局。
  • 编辑已有文本时优先修改目标 run;给 paragraph.text 整体赋值会丢失段内格式。
  • 表格使用明确列宽并处理重复表头;图片保持纵横比并设置可读尺寸。
  • 遇到宏、内容控件、复杂域、批注或修订时,先确认往返保存是否会丢数据。无法安全保留就停止写入, 说明限制或改用定点 OOXML 修改,不能静默降级。

完成条件

  1. 用读取脚本回读最终文件,确认内容、顺序和关键表格正确。
  2. 新建或涉及版式的编辑,用 LibreOffice 转成 PDF,再用 pdftoppm 生成页面图片并逐页检查:
bash
soffice --headless --convert-to pdf --outdir "<empty-qa-dir>" "<output.docx>"
pdftoppm -png -r 144 "<empty-qa-dir>/<output.pdf>" "<empty-qa-dir>/page"
  1. 修复截字、重叠、异常空白页、断裂表格、字体替换和错误页眉页脚后重新渲染。
  2. 若 LibreOffice 或 Poppler 不可用,仍可完成纯内容读取;写任务要明确说明未完成视觉检查,不能声称版式已验证。
  3. 最终只交付用户要求的 DOCX,不附带构建脚本和预览文件。

© nexus-research-lab, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts) in skills/docx of nexus-research-lab/nexus.

  • SKILL.md
  • requirements.txt
  • scripts/read_word.py
  • tests/test_read_word.py

Open the folder on GitHubat commit 67f54e7

Compare with similar skills

DOCX next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

DOCX compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
DOCX this skillnexus-research-lab/nexus151—~484Automated safety check: PassApache-2.0
DOCX ToolkitXiaomiMiMo/MiMo-Code14k—~2.4kAutomated safety check: PassApache-2.0
Word DOCX ToolkitNousResearch/hermes-agent252k—~2.6kAutomated safety check: PassMIT
DocsAFK-surf/OpenBridge430—~1.2kAutomated safety check: PassMIT
DOCX Creation and Editinganthropics/skills180k5 repos~1.7kAutomated safety check: PassProprietary
Office DOCXsingula-ai/alego1091 repos~1.5kAutomated safety check: PassMIT

Similar skills

  • DOCX Toolkit

    XiaomiMiMo/MiMo-Code

    Produces, edits and reads Microsoft Word files through python-docx and lxml, with a decision table for picking the lightest workflow for a given task.

    14k GitHub stars~2.4k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Word DOCX Toolkit

    NousResearch/hermes-agent

    Creates, reads, edits and templates Word .docx files with python-docx scripts, including tracked changes, comments, tables of contents and health checks.

    252k GitHub stars~2.6k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Docs

    AFK-surf/OpenBridge

    Read, create, and review DOCXs guidance

    430 GitHub stars~1.2k tokensUpdated 4 mo ago
    Documents & OfficeAuto-check passed
  • DOCX Creation and Editing

    anthropics/skills

    Official

    Creates, edits and reviews Word documents: new files with docx-js, edits through the underlying XML, plus tracked changes, comments and conversions.

    180k GitHub starsUsed in 5 repos~1.7k tokens
    Documents & OfficeAuto-check passed
  • Office DOCX

    singula-ai/alego

    Create, read, edit, and check Word documents (.docx), including reports, letters, and formatted tables.

    109 GitHub starsUsed in 1 repo~1.5k tokens
    Documents & OfficeAuto-check passed
  • Reads, creates and edits Word .docx files with python-docx, and drops to raw OOXML for tracked changes, comments and byte-exact edits.

    41k GitHub stars~2.5k tokensUpdated 2 days ago
    Documents & OfficeAuto-check passed

More from nexus-research-lab/nexus

All 17 skills in this repo
  • Imagegen

    nexus-research-lab/nexus

    Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, UI mockups, product shots, or transparent-background…

    151 GitHub stars~600 tokensUpdated today
    Auto-check passed
  • Caixun Work Hours

    nexus-research-lab/nexus

    彩讯(RichPMS)工时填报助手:把当前会话、代码记录或用户口述整理成日报,按 8 小时分配,经用户确认后写入工时系统。用户提到“填日报、报工、补报、本周工时、日报被驳回”时使用。

    151 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Wechat Article Search

    nexus-research-lab/nexus

    搜索微信公众号文章,并整理标题、摘要、发布时间、来源公众号和链接。用户提到微信公众号、 公众号文章、微信文章、搜一批公众号资料、按关键词找公众号内容、查某公众号相关报道, 或需要为中文研究收集微信公众平台文章时使用;即使用户只说“搜微信里的文章”也应触发。

    151 GitHub stars~858 tokensUpdated today
    Auto-check: notes
  • XLSX

    nexus-research-lab/nexus

    只要电子表格文件(.xlsx、.xlsm、旧版 .xls、.csv、.tsv)是任务的主要输入或输出,或者需要 被打开、读取、创建、修改,就使用本 Skill。也适用于公式、格式、图表、数据清洗和表格格式转换。

    151 GitHub stars~501 tokensUpdated today
    Auto-check passed
  • Automation

    nexus-research-lab/nexus

    通过宿主提供的 nexus.command 结构化工具查询、规划、确认并管理 scheduled task。用户要求提醒、延迟执行、周期检查、定时报表、补跑、结果重投递、持续关注、修改或删除任务、处理任务权限阻塞时使用;同时适用于定时任务后台 run 检查自身状态。

    151 GitHub stars~541 tokensUpdated today
    Auto-check passed
  • Execution Orchestrator

    nexus-research-lab/nexus

    选择执行结构、委派子智能体、管理 Nexus 工作图与可复用模板;遵守本轮权限,简单任务直接完成. An agent skill from nexus-research-lab/nexus.

    151 GitHub stars~821 tokensUpdated today
    Auto-check passed

Questions about DOCX

What does DOCX do?

只要 Word 文档或模板(.docx、.dotx、旧版 .doc)是任务的输入或输出,或者需要被打开、 读取、创建、修改,就使用本 Skill。也适用于 Word 内的表格、图片、批注、修订和格式调整, 以及要求以 Word 交付的报告、备忘录、信函和模板。不用于 PDF、电子表格或不涉及 Word 文件的普通写作。. DOCX is an agent skill from nexus-research-lab/nexus.

When should I use DOCX?

DOCX fits situations like: tasks that involve Word documents.

How do I install DOCX in Claude Code?

Run `npx skills add nexus-research-lab/nexus --skill docx -a claude-code`. Or copy the skill folder (skills/docx in nexus-research-lab/nexus) into .claude/skills/docx in your project. Claude Code loads it when a task matches its description.

How do I install DOCX in Codex?

Run `npx skills add nexus-research-lab/nexus --skill docx -a codex`. Or copy the skill folder (skills/docx in nexus-research-lab/nexus) into .agents/skills/docx in your project. Codex loads it when a task matches its description.

Can I use DOCX in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nexus-research-lab/nexus --skill docx -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/docx, .gemini/skills/docx, .github/skills/docx and .opencode/skills/docx in your project.

What does DOCX need to run?

Going by SKILL.md and its folder, DOCX needs Python for the scripts in its folder and the command-line tools its instructions call (python3, soffice and pdftoppm). Our summary lists: Python 3.

Does DOCX access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is DOCX safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does DOCX use?

DOCX is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does DOCX use?

About 484 tokens (SKILL.md is roughly 1.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to DOCX?

Skills that share tags, products or a category with DOCX: DOCX Toolkit (XiaomiMiMo/MiMo-Code, 14k stars), Word DOCX Toolkit (NousResearch/hermes-agent, 252k stars), Docs (AFK-surf/OpenBridge, 430 stars) and DOCX Creation and Editing (anthropics/skills, 180k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains DOCX?

nexus-research-lab (a GitHub organization) maintains it in nexus-research-lab/nexus, which has 151 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 10, 2026.

Source: nexus-research-lab/nexus on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.