docx-official
Skill by XiaomiMiMo
Creates, edits and reads Microsoft Word (.docx) files for AI assistants. It covers new documents, template filling, XML-level edits, text extraction and PDF preview. Written for anyone producing or processing Word files.
Install docx-official
Built from the published package, never by AI.
git clone --depth 1 https://github.com/XiaomiMiMo/MiMo-Code /tmp/MiMo-Code && mkdir -p ~/.claude/skills && cp -r /tmp/MiMo-Code/packages/cli/src/skill/builtin/.bundle/docx-official ~/.claude/skills/docx-officialRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/XiaomiMiMo/MiMo-Code /tmp/MiMo-Code && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/MiMo-Code/packages/cli/src/skill/builtin/.bundle/docx-official ~/.gemini/antigravity-cli/skills/docx-officialAntigravity 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
DOCX Skill is an Apache-2.0 toolkit for creating, editing and reading Microsoft Word (.docx) files. It covers drafting documents from scratch, filling Word templates, restructuring files through their XML, extracting text and structure, and converting to PDF for preview. It is built on python-docx (MIT) and lxml (BSD-3-Clause), with optional pandoc and soffice binaries.
Each task has a reference file: create.md for new documents, edit.md for templates and edits, and read.md for extraction. Helper scripts cover text extraction, exploding and assembling the XML, PDF rendering, a well-formedness audit, accepting tracked changes, and adding comments. The source describes a QA checklist that checks files open cleanly, contain no placeholder text, and use real heading styles. It applies whenever a Word file is produced, opened, transformed, or read.
Written from the project's SKILL.md and checked against it.
What it can do
- Create documents from scratchAuthors new .docx files with python-docx, using named styles such as Heading 1 and Normal.
- Fill Word templatesReplaces placeholders in a .docx template while keeping its styles.
- Explode and assemble XMLUnpacks a .docx into readable XML for structural edits, then rebuilds it into a new file.
- Extract text and structureExports plain text and structure from an existing Word file.
- Render PDF previewConverts a .docx to PDF with LibreOffice for visual checks.
- Audit file integrityChecks ZIP integrity, XML well-formedness and that python-docx can open the file.
- Resolve tracked changesAccepts every tracked change without needing Word or LibreOffice.
- Add commentsAdds a comment to an exploded document at a chosen anchor text.
What you need
- Python with python-docx and lxml, or uv
- LibreOffice (soffice) for PDF rendering, optional
- Poppler for PDF to image QA, optional
Try asking
- Turn this outline into a Word report with proper headings.
- Fill this .docx template with the client details I provide.
- Accept all tracked changes in reviewed.docx and save a clean copy.
Good to know
- Targets .docx only. Legacy .doc files must be converted first.
- Does not generate .docm files or VBA macros.
- Does not support live collaborative editing in Word online.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/cli/src/skill/builtin/.bundle/docx-official/SKILL.md, packages/cli/src/skill/builtin/.bundle/docx-official/scripts/annotate.py, packages/cli/src/skill/builtin/.bundle/docx-official/scripts/assemble.py, packages/cli/src/skill/builtin/.bundle/docx-official/scripts/audit.py, packages/cli/src/skill/builtin/.bundle/docx-official/scripts/explode.py, packages/cli/src/skill/builtin/.bundle/docx-official/scripts/extract_text.py, packages/cli/src/skill/builtin/.bundle/docx-official/scripts/render_pdf.py, packages/cli/src/skill/builtin/.bundle/docx-official/scripts/resolve_revisions.py, packages/cli/src/skill/builtin/.bundle/docx-official/scripts/transcode.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
LICENSE1 KB -
README.md6 KB -
SKILL.md9 KB -
create.md15 KB -
edit.md11 KB
Show all 14 files
-
read.md8 KB -
scripts/annotate.py10 KB -
scripts/assemble.py5 KB -
scripts/audit.py6 KB -
scripts/explode.py4 KB -
scripts/extract_text.py7 KB -
scripts/render_pdf.py3 KB -
scripts/resolve_revisions.py7 KB -
scripts/transcode.py8 KB
Alternatives to docx-official
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-official: common questions
Can it accept tracked changes in a Word file?
Yes. The resolve_revisions script accepts every tracked change without needing Word or LibreOffice. The description also lists inspecting tracked changes and comments.
Does it work with .doc files?
No. The skill only targets .docx. The source says to convert a .doc file to .docx with LibreOffice first.
Can it create Word macros?
No. The source says it does not generate .docm files, and suggests a Python script that regenerates the document instead.
How do I install docx-official?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is docx-official free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is docx-official safe to use?
It scores 90 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-official?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
