docx
Skill by agentscope-ai
Creates, reads, and edits Word documents (.docx) and templates (.dotx) for users who need reports, memos, letters, or polished Word files. It also handles tracked changes, comments, and visual checks.
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-en ~/.claude/skills/docxRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/agentscope-ai/QwenPaw /tmp/QwenPaw && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/QwenPaw/src/qwenpaw/agents/skills/docx-en ~/.gemini/antigravity-cli/skills/docxAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The docx skill lets an AI assistant create, read, edit, and check Word documents (.docx) and Word templates (.dotx). For new documents, it writes scripts using the docx npm package, which the source says is preinstalled. For existing files, it unzips the archive, edits the XML in word/document.xml, and repacks it. Reading content uses pandoc.
The skill also covers rendering output to images with LibreOffice and pdftoppm for visual review, XSD validation, find-and-replace, image insertion, tracked changes, and comments. It is aimed at users who need reports, memos, letters, or templates delivered as Word files. The source says not to use it for PDFs, spreadsheets, or Google Docs.
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 files, with notes on page size, tables, and lists.
- Edit existing documentsUnzips a .docx, edits word/document.xml in place, and rezips it.
- Read contentExtracts document text using pandoc -t markdown.
- Verify outputRenders the file to PDF and JPEG pages so the result can be checked visually.
- Tracked changesWraps edits in w:ins and w:del and checks that edits are tracked.
- CommentsUses scripts/comment.py to add comment files and anchor markers to specific text.
- Accept changesUses scripts/accept_changes.py to produce a clean copy with tracked changes accepted.
- ValidateRuns XSD checks with scripts/office/validate.py, with an optional auto-repair flag.
What you need
- Node.js with the docx npm package (preinstalled per the source)
- Python for the helper scripts
- pandoc
- LibreOffice (soffice)
- poppler-utils (pdftoppm)
Try asking
- Create a formal memo as a Word document with page numbers and a table of contents
- Edit this .docx file and show my changes as tracked changes
- Add a comment to the fees clause in contract.docx saying the cap is too low
Good to know
- Legacy .doc files must be converted to .docx first.
- docx-js cannot open existing files, so edits are made to the XML.
- accept_changes.py can leave an empty bullet when a deleted paragraph is followed by an empty spacer paragraph.
- Not for PDFs, spreadsheets, or Google Docs.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: src/qwenpaw/agents/skills/docx-en/SKILL.md, src/qwenpaw/agents/skills/docx-en/scripts/__init__.py, src/qwenpaw/agents/skills/docx-en/scripts/accept_changes.py, src/qwenpaw/agents/skills/docx-en/scripts/comment.py, src/qwenpaw/agents/skills/docx-en/scripts/merge_runs.py, src/qwenpaw/agents/skills/docx-en/scripts/office/helpers/__init__.py, src/qwenpaw/agents/skills/docx-en/scripts/office/helpers/pptx_chart.py, src/qwenpaw/agents/skills/docx-en/scripts/office/helpers/pptx_slide.py, src/qwenpaw/agents/skills/docx-en/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 →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
docx: common questions
Can it edit an existing Word file?
Yes. It unzips the .docx, edits word/document.xml in place, and rezips it, because docx-js cannot open existing files.
Does it handle tracked changes and comments?
Yes. It wraps edits in w:ins and w:del elements and includes a helper script that writes the linked comment files.
Can it work with PDFs or Google Docs?
No. The source says not to use this skill for PDFs, spreadsheets, Google Docs, or coding tasks unrelated to document generation.
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.
