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

Skill by agentscope-ai

Creates, reads, edits and processes Word .docx and .dotx files for AI assistants. It suits users who need reports, memos, letters or templates delivered as Word documents.

  • Score 89
  • 38k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install docx

Built from the published package, never by AI.

git clone --depth 1 https://github.com/agentscope-ai/QwenPaw /tmp/QwenPaw && mkdir -p ~/.claude/skills && cp -r /tmp/QwenPaw/src/qwenpaw/agents/skills/docx-zh ~/.claude/skills/docx

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

Step-by-step: install docx in Claude Code

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

About

This skill gives an AI assistant a set of instructions and helper scripts for Word files. For new documents, it guides the assistant to write scripts with the docx npm package, with notes on page size, tables, lists, images and table of contents headings. For existing files, it describes unzipping the .docx, editing word/document.xml directly, and repacking it. Text is read with pandoc.

The skill also covers find and replace, tracked changes, comments, accepting revisions, and exporting to PDF or images so the output can be checked visually. Helper scripts handle merging text runs, XML validation, and adding comments. It is aimed at users who need professional Word deliverables, such as formatted reports or templates.

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

What it can do

  • Create new documentsWrites docx npm scripts to build new Word documents with headings, tables, lists and images.
  • Edit existing documentsUnzips a .docx, edits word/document.xml in place, and repacks it into a new file.
  • Read contentExtracts text from a .docx file using pandoc with markdown output.
  • Merge text runsUses scripts/merge_runs.py to join adjacent runs so phrases can be found and replaced.
  • Tracked changesWraps edits in w:ins and w:del markup and checks them with validate.py using an author name.
  • Accept changesUses scripts/accept_changes.py to produce a clean copy with all revisions accepted.
  • Add commentsUses scripts/comment.py to add comments and print the markers needed to anchor them in text.
  • Visual checkConverts output to PDF and JPEG page images with LibreOffice and pdftoppm for review.

What you need

  • Node.js with the docx npm package, which the source says is preinstalled
  • pandoc
  • LibreOffice (soffice)
  • pdftoppm from poppler-utils
  • On Windows, dependencies must be installed and available on PATH

Try asking

  • Create a formatted Word report with a table of contents and page numbers
  • Replace a company name across this .docx file and keep the formatting
  • Add review comments to this contract.docx and show me the result

Good to know

  • docx-js cannot open existing files, so edits use the unzip and XML approach
  • Legacy .doc files must be converted to .docx first
  • Accepting deleted paragraphs in some tools can leave an empty bullet behind
  • Missing dependencies on Windows should be reported and the task stopped rather than retried

Security check

A

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

Checked automatically: src/qwenpaw/agents/skills/docx-zh/SKILL.md, src/qwenpaw/agents/skills/docx-zh/scripts/__init__.py, src/qwenpaw/agents/skills/docx-zh/scripts/accept_changes.py, src/qwenpaw/agents/skills/docx-zh/scripts/comment.py, src/qwenpaw/agents/skills/docx-zh/scripts/merge_runs.py, src/qwenpaw/agents/skills/docx-zh/scripts/office/helpers/__init__.py, src/qwenpaw/agents/skills/docx-zh/scripts/office/helpers/pptx_chart.py, src/qwenpaw/agents/skills/docx-zh/scripts/office/helpers/pptx_slide.py, src/qwenpaw/agents/skills/docx-zh/scripts/office/helpers/pptx_theme.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • LICENSE.txt11 KB
  • SKILL.md7 KB
  • scripts/__init__.py1 B
  • scripts/accept_changes.py4 KB
  • scripts/comment.py14 KB
Show all 61 files
  • scripts/merge_runs.py9 KB
  • scripts/office/helpers/__init__.py3 KB
  • scripts/office/helpers/pptx_chart.py6 KB
  • scripts/office/helpers/pptx_slide.py2 KB
  • scripts/office/helpers/pptx_theme.py3 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd73 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd7 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd50 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd624 B
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd148 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd1 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd9 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd14 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd82 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd1 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd7 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd6 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd1 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd880 B
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd3 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd3 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd7 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd23 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd1 KB
  • scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd237 KB

And 31 more files on GitHub.

Alternatives to docx

All alternatives →

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

docx: common questions

Can this skill edit an existing Word document?

Yes. It describes unzipping the .docx, editing word/document.xml directly, and repacking it. Legacy .doc files must be converted to .docx first.

Does it handle tracked changes and comments?

Yes. The skill covers writing w:ins and w:del revisions, accepting all changes with a script, and adding comments with a helper script.

Which file types does it support?

The skill is for .docx and .dotx Word files. The source says not to use it for PDF, spreadsheets or Google Docs.

How do I install docx?

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

Is docx free?

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

Is docx safe to use?

It scores 89 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?

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

Add to stack

Loading.