Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

docx-pro

Skill by openJiuwen-ai

Generates, edits and converts Word (.docx) files using python-docx. It covers formatted document creation, faithful text replacement, Markdown conversion, TOC insertion and watermarks. Aimed at users who work with contracts, reports and other formatted Word files.

  • Score 83
  • 8.5k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install docx-pro

Built from the published package, never by AI.

git clone --depth 1 https://github.com/openJiuwen-ai/jiuwenswarm /tmp/jiuwenswarm && mkdir -p ~/.claude/skills && cp -r /tmp/jiuwenswarm/jiuwenswarm/resources/agent/workspace/skills/docx-pro ~/.claude/skills/docx-pro

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install docx-pro in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

docx-pro is a Word (.docx) toolkit for AI assistants, built on python-docx. It runs through one script, scripts/docx_pro.py, with seven subcommands: create, from-md, to-md, replace, inspect, toc and watermark. The create command builds formatted documents from a JSON outline, with cover pages, styled tables with merged cells, code blocks and headers and footers. It also converts Markdown to docx and back.

The replace command changes text in existing files while keeping run structure and formatting. It matches text split across runs and covers tables, headers, footers, footnotes and comments. It rewrites only the XML parts that contain the target text and copies other zip entries byte for byte. The skill is aimed at people editing contracts or official documents and at developers automating Word files. It triggers on both English and Chinese requests.

Written from the project's SKILL.md and checked against it.

What it can do

  • createBuilds a formatted docx from a JSON outline with business, academic or minimal themes.
  • from-mdConverts Markdown with YAML frontmatter into a Word document with headings, lists and tables.
  • to-mdExports docx content to Markdown, with an option to export images to a folder.
  • replaceReplaces text while keeping formatting, with batch mapping files and a dry-run preview.
  • inspectReports page size, margins, table and image counts and the full heading tree.
  • tocInserts a TOC field at the start of an existing docx file.
  • watermarkAdds a diagonal text watermark to all pages of an existing docx file.

What you need

  • Python with the python-docx package installed
  • Word or WPS to update the TOC field

Try asking

  • Replace party A with party B in contract.docx and keep all formatting
  • Convert report.md to a docx with a cover page and table of contents
  • Add a DRAFT watermark to report.docx and save it as a new file

Good to know

  • to-md does not keep theme colours, watermarks or cover layout.
  • The TOC must be updated in Word or WPS with F9 before it shows entries.
  • Watermarks are text only, with no image watermarks.
  • replace does not match across paragraphs or table cells and skips field codes and deleted revision text.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: jiuwenswarm/resources/agent/workspace/skills/docx-pro/SKILL.md, jiuwenswarm/resources/agent/workspace/skills/docx-pro/scripts/docx_pro.py, jiuwenswarm/resources/agent/workspace/skills/docx-pro/scripts/docx_replace.py, jiuwenswarm/resources/agent/workspace/skills/docx-pro/scripts/md_export.py, jiuwenswarm/resources/agent/workspace/skills/docx-pro/scripts/md_parser.py, jiuwenswarm/resources/agent/workspace/skills/docx-pro/scripts/renderer.py, jiuwenswarm/resources/agent/workspace/skills/docx-pro/scripts/setup_check.py. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to docx-pro

All alternatives →

Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr

docx-pro: common questions

Does docx-pro keep formatting when replacing text?

Yes. The replace command keeps run structure and all formatting properties, and copies unchanged parts of the file byte for byte.

Why does the table of contents not appear after inserting it?

The toc command inserts a TOC field, which Word or WPS must update. Press F9 or right-click and choose update field to build the contents.

Can docx-pro convert a Word file back to Markdown?

Yes. to-md extracts body text, tables, lists, code blocks, quotes and images, but it does not keep styling such as colours or watermarks.

How do I install docx-pro?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is docx-pro free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is docx-pro safe to use?

It scores 83 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to docx-pro?

Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.

docx-pro Install

Add to stack

Loading.