docx-official

docx-official is a skill for Claude Code, Codex from XiaomiMiMo/MiMo-Code. It costs 135 tokens per session (2,410 once invoked), scanned A, original, MIT.

A toolkit and set of instructions for reading, creating, editing, and checking Microsoft Word .docx files.

In plain words
What is it for?
Use it to draft reports, letters, contracts, proposals, and technical documents, fill in Word templates, make deeper document changes, extract content, or render a PDF for review.
Why use it?
It helps preserve document structure and formatting when working with templates, complex layouts, extracted text, or PDF previews.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to draft reports, letters, contracts, proposals, and technical documents, fill in Word templates, make deeper document changes, extract content, or render a PDF for review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiaomimimo/mimo-code/docx-official
About the project

MiMoCode is a terminal-based AI coding assistant that reads and writes code, runs commands, manages Git, and remembers project context across sessions. Developers use it to work with software projects through a command-line interface and connect it to language-model providers; the catalogue includes skills and instructions for it.

XiaomiMiMo/MiMo-Code · 13,799 stars · on GitHub · mimo.xiaomi.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add XiaomiMiMo/MiMo-Code --skill docx-official
Clone the repo
git clone --depth 1 https://github.com/XiaomiMiMo/MiMo-Code

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docx-official

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaomimimo/mimo-code/docx-official/github.svg)](https://agentmods.dev/skills/xiaomimimo/mimo-code/docx-official)
Your own site
<a href="https://agentmods.dev/skills/xiaomimimo/mimo-code/docx-official"><img src="https://agentmods.dev/badge/skills/xiaomimimo/mimo-code/docx-official/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docx-official

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaomimimo/mimo-code/docx-official"><img src="https://agentmods.dev/badge/skills/xiaomimimo/mimo-code/docx-official.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,410 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00135 $0.02410
Opus 5.5 $0.00054 $0.00964
Sonnet 5.5 $0.00027 $0.00482
Haiku 4.5 $0.00014 $0.00241

Measured 3mo ago against content hash 9f2b86531c94, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docx-official scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 8 executable files (scripts/annotate.py, scripts/assemble.py, scripts/audit.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/cli/src/skill/builtin/.bundle/docx-official/SKILL.md · 153 lines

How it starts

The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Situation Path Read first
No source file — build a document from a prompt / data Author from scratch with python-docx create.md
You have a .docx template to fill in or lightly modify Placeholder replacement via python-docx, keeps styles edit.md → Workflow A — python-docx in-place edit
Deep structural edits, new sections, custom XML, unusual layouts Explode → edit XML → assemble edit.md → Workflow B — Explode → edit XML → assemble
You only need the text / structure / metadata out of a .docx Extraction pipeline read.md
Need a PDF preview for QA scripts/render_pdf.py via LibreOffice see 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.

All scripts include PEP 723 inline metadata, so uv run resolves dependencies automatically — no manual install step needed. Just run:

Read the full file on GitHub · 153 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 153 lines · 135 tokens per session scan A 9f2b86531c94

Subscribe to this mod's changes

docx-official is a skill published in the GitHub repository XiaomiMiMo/MiMo-Code (13,799 stars, last pushed yesterday), licensed MIT. It adds 135 tokens to every session and 2,410 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

docx-official compared with skills from other repositories

docx-official next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docx-officialXiaomiMiMo/MiMo-CodeSkill14kyesterdayMITA135Claude Code, Codex
officecli-academic-paperiOfficeAI/OfficeCLISkill34ktodayApache-2.0A141Claude Code, Codex
officecliiOfficeAI/OfficeCLISkill34ktodayApache-2.0A56Claude Code, Codex
gws-sheetsgoogleworkspace/cliSkill33k6d agoApache-2.0A13Claude Code, Codex
docxHmbown/CodeWhaleSkill41k2d agoMITA16Claude Code, Codex
xlsxHmbown/CodeWhaleSkill41k2d agoMITA20Claude Code, Codex
gws-docsgoogleworkspace/cliSkill33k6d agoApache-2.0A11Claude Code, Codex