Skills

DOCX Official

Use this skill whenever a Microsoft Word (.docx) file is being produced, opened...

Install

npx skills add XiaomiMiMo/MiMo-Code --skill docx-official -g -a claude-code -y
Repository
XiaomiMiMo/MiMo-Code13.7k
Category
Documents
Updated
3d ago
License
MIT
Context cost
Mediumabout 2,174 tokens
Runs scripts
Yes, review before use

What it does

Use this skill whenever a Microsoft Word (.docx) file is being produced, opened, transformed, or read. That includes: drafting reports, letters, contracts, RFPs, technical documents, or any long-form written deliverable; extracting text or structure from an existing Word file; filling a Word template with values; converting Word to PDF or plain text; splitting or merging documents; inspecting styles, headings, sections, tables, images, comments, or tracked changes. Trigger on mentions of 'Word doc', 'DOCX', 'Office document', a filename ending in .docx, or requests like 'turn this into a Word report'.

DOCX Skill

An Apache-2.0 toolkit for producing, editing, and reading Microsoft Word (.docx) files. Written from scratch against the public ECMA-376 / ISO/IEC 29500 specification and built on permissively-licensed tooling (python-docx MIT, lxml BSD-3-Clause, optional external binaries pandoc and soffice) so it can be reused in commercial projects without restriction.

Decision matrix

SituationPathRead first
No source file, build a document from a prompt / dataAuthor from scratch with python-docxcreate.md
You have a .docx template to fill in or lightly modifyPlaceholder replacement via python-docx, keeps stylesedit.md → Workflow A, python-docx in-place edit
Deep structural edits, new sections, custom XML, unusual layoutsExplode → edit XML → assembleedit.md → Workflow B, Explode → edit XML → assemble
You only need the text / structure / metadata out of a .docxExtraction pipelineread.md
Need a PDF preview for QAscripts/render_pdf.py via LibreOfficesee QA below

If the task mixes several of these, do them in this order: read → plan → edit/create → validate.

One-time environment setup

Bundled runtime: when the MIMO_PYTHON environment variable is set, skip uv/python3 and pip installs entirely, run every command below with uv run replaced by "$MIMO_PYTHON" (e.g. "$MIMO_PYTHON" scripts/extract_text.py input.docx). This skill's Python dependencies are preinstalled in that interpreter; pip console scripts are unavailable, so always go through "$MIMO_PYTHON" -m <module>. A bundled LibreOffice is exposed as MIMO_SOFFICE and picked up automatically by the scripts here.

Read the whole SKILL.md on GitHub

More in Documents