docx-pro

docx-pro is a skill for Claude Code, Codex from XiaoLuoLYG/GOD. It costs 237 tokens per session (3,064 once invoked), scanned A, original, Apache-2.0.

A toolkit for creating and editing formatted Microsoft Word .docx files. It supports document generation from outlines, text replacement, Markdown conversion, inspection, tables, images, contents pages, and watermarks.

In plain words
What is it for?
Use it to create reports with covers and contents pages, replace text safely, convert Markdown to Word, inspect documents, and add tables, images, code blocks, or watermarks.
Why use it?
It avoids hand-editing complex Word formatting and provides checks before changing text. It also helps keep documents usable when moving between Markdown and Word.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create reports with covers and contents pages, replace text safely, convert Markdown to Word, inspect documents, and add tables, images, code blocks, or watermarks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiaoluolyg/god/docx-pro
About the project

GOD is a control room for observing and directing societies of language-model agents running in simulated worlds. It lets researchers inspect replays, question individual agents, alter future events, reset simulations, and export experiments for reuse. The catalogue entries are skills and agents for operating and investigating these simulations.

XiaoLuoLYG/GOD · 1,292 stars · on GitHub · xiaoluolyg.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add XiaoLuoLYG/GOD --skill docx-pro
Clone the repo
git clone --depth 1 https://github.com/XiaoLuoLYG/GOD

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docx-pro

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaoluolyg/god/docx-pro/github.svg)](https://agentmods.dev/skills/xiaoluolyg/god/docx-pro)
Your own site
<a href="https://agentmods.dev/skills/xiaoluolyg/god/docx-pro"><img src="https://agentmods.dev/badge/skills/xiaoluolyg/god/docx-pro/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docx-pro

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaoluolyg/god/docx-pro"><img src="https://agentmods.dev/badge/skills/xiaoluolyg/god/docx-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 237 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,064 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00237 $0.03064
Opus 5.5 $0.00095 $0.01226
Sonnet 5.5 $0.00047 $0.00613
Haiku 4.5 $0.00024 $0.00306

Measured 17d ago against content hash ce0ed5090f27, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docx-pro scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/docx_pro.py, scripts/docx_replace.py, scripts/md_export.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

jiuwenclaw/jiuwenswarm/resources/agent/workspace/skills/docx-pro/SKILL.md · 175 lines

How it starts

The opening of the file, as written. The whole thing — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.

docx-pro:专业 Word 文档操作技能

基于 python-docx 的 docx 进阶工具集,提供 7 个子命令,覆盖「生成 → 转换 → 编辑 → 检查 → 后处理」完整链路。

STOP:执行前检查

  1. 依赖:运行 python scripts/setup_check.py,确认 python-docx 已安装(缺则 pip install python-docx)。
  2. 路径:确认输入文件存在、输出路径不会覆盖任何输入文件。
  3. 控制台编码:本技能脚本已内置 GBK 控制台兜底(errors=replace),直接用 python scripts/docx_pro.py ... 即可;若仍见乱码,是显示问题,不影响文件内容。
  4. 替换前先预览:用 replace --dry-run 确认命中次数与预期一致,再实际替换。

子命令速查

脚本统一入口:scripts/docx_pro.py(以下 PY 代表 python)。

1. create — JSON 大纲 → 富格式 docx

PY scripts/docx_pro.py create -j outline.json -o 报告.docx --theme business

可选参数:--header "页眉文字"、--footer center|X/Y、--toc true、--cover true、--watermark "草稿"。

三套内置主题:

  • business 商务蓝(默认):深蓝封面标题、深蓝表头白字、浅蓝斑马纹
  • academic 学术黑白:衬线正文、黑底表头、Times New Roman
  • minimal 极简:无底色表头(粗下边框)、大量留白

支持的块类型(outline.sections 内元素):

type 关键字段
heading level(1-4), text
para text(支持 粗体 代码 删除 链接 行内语法), indent, align
bullets items: ["文本" 或 {text, bold_prefix, indent}], number(编号列表)
table header[], rows[](单元格可为 {t, cs, rs} 支持合并), widths[], zebra, align
kv items: {键: 值} —— 自动渲染两列规格表
image path(相对 JSON 所在目录), width_cm, caption
code text(多行代码,等宽字体+灰底)
quote text(左边框引用块)
divider / pagebreak 无字段

大纲顶层字段:title, subtitle, meta[], cover, toc, header, footer(center|"X/Y"), theme, watermark。

2. from-md — Markdown → docx

PY scripts/docx_pro.py from-md 输入.md -o 输出.docx --theme academic --toc --cover

支持:YAML frontmatter(title/subtitle/theme/toc/cover/header/footer)、标题层级、行内格式(粗体/斜体/行内代码/删除线/链接)、无序/有序/嵌套列表、表格、围栏代码块、引用块、图片、分隔线。列表项 **加粗前缀** 正文 自动渲染为彩色加粗前缀样式。

3. to-md — docx → Markdown

PY scripts/docx_pro.py to-md 输入.docx -o 输出.md --images

--images 时导出文档内图片到 输出名_images/ 目录。注意:定位是内容提取转换而非像素级还原——样式细节(颜色/主题/水印)会丢失,正文、表格、列表、代码块、引用、图片可完整还原。

4. replace — docx 保真文本替换(合同/公文等格式敏感文档首选)

PY scripts/docx_pro.py replace 输入.docx -o 输出.docx -f "甲方:A 公司" -t "甲方:B公司"
PY scripts/docx_pro.py replace 输入.docx -o 输出.docx --map pairs.json --dry-run

Read the full file on GitHub · 175 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago First seen · 175 lines · 237 tokens per session scan A ce0ed5090f27

Subscribe to this mod's changes

docx-pro is a skill published in the GitHub repository XiaoLuoLYG/GOD (1,292 stars, last pushed 5d ago), licensed Apache-2.0. It adds 237 tokens to every session and 3,064 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-13.

Related

docx-pro compared with skills from other repositories

docx-pro next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docx-proXiaoLuoLYG/GODSkill1.3k5d agoApache-2.0A237Claude Code, Codex
review-artifact-commentshumanlayer/humanlayerSkill13k7d agoApache-2.0A17Claude Code
cartographer-kb-importBeppeTemp/cartographerSkill69yesterdayApache-2.0A51Claude Code, Codex
documentldbumble/taskuarySkill155todayMITA28Claude Code, Codex
spreadsheetldbumble/taskuarySkill155todayMITA27Claude Code, Codex
briefloop-externalStahl-G/briefloopSkill912d agoMITA42Claude Code, Codex
evo-pptx-embedded-excel-updaterOpenLAIR/OpenSkillSkill1012mo agoApache-2.0A103Claude Code, Codex