docx

Create, read, edit and check Word documents (.docx): reports, letters, formatted tables.

docx is for people who must deliver formal documents: weekly reports, contracts, letters, reports with tables. It edits the .docx file itself (a zip of XML), so styles, headers and tables survive. It's a poor fit when you only need to skim — PDF or plain text is faster there.

Office documentsagents 2Proprietary (Anthropic) index only Scan upstream repo ↗

Upstream:anthropics/skills · ★ 201701 · last commit 2026-11-16 (12d)

What it is

docx creates, reads and edits Word files directly: heading levels, tables, headers and footers, tables of contents and bulk replacement. It works on the .docx file itself, not by pasting text into a template.

Core workflow (from SKILL.md)

StageContent
Trigger.docx/.dotx, reports, letters, templates, or read/write Word
Inputoutline + formatting requirements (page size, fonts, column widths)
Stepscreate: a docx (npm) script; edit: unpack → edit word/document.xml → rezip; read: pandoc -t markdown
Outputan editable .docx, rendered and inspected
Boundaryno PDFs/sheets/Google Docs; docx-js cannot open existing files

Getting started

  1. Give the outline and the template rules first;
  2. Generate one page, confirm styling, then batch;
  3. Check TOC, page numbers and table alignment before shipping.

Traits

  • Task-based routing: docx-js to create, XML surgery to edit, pandoc to read;
  • Page size defaults to A4; US Letter needs explicit 12240×15840;
  • Tables need dual widths (table columnWidths plus per-cell width, both DXA);
  • TOC needs built-in HeadingLevel; custom styles require outlineLevel;
  • Delivery requires rendering and visual inspection.

Who it is for and who it is not for

Good fitPoor fit
Turning notes, reports and contracts into formal documents;; Bulk formatting or content replacement in existing Word files;; Delivering an editable file rather than a PDF.Precise layout design (use a design tool);; Read-only work (use pdf);; Calculations (use xlsx).

How it differs

NeedUse
Editable Word deliverabledocx
Read or fill PDFspdf
Tables and formulasxlsx
Presentationspptx

Source-level risks

RiskSourceImpact
unpack/rezip corruption“editing existing documents”the original may stop opening; back up first
external binariesDependencies: docx, pandoc, LibreOffice, pdftoppmmissing tools break generation or rendering
wrong redline author--author flagtracked changes attributed incorrectly

Go to upstream repository ↗

Example: input and output

Input

Turn these meeting notes into a formal weekly report (.docx): done this week / numbers / risks / next week.

Output

Produces weekly-report.docx: title + four H1 sections; tables keep headers; body within two pages.

Check: numbers match the table; no empty 'overall progress is good' lines.

FAQ

Do I need Microsoft Word?

No. The skill uses python-docx and LibreOffice to read and write .docx; Word only helps for manual checks.

Can it edit an existing document instead of rewriting?

Yes — it locates paragraphs and tables and preserves styles; for complex layouts, build a template first.

Will it break formatting?

It can, especially fields, macros or unusual fonts. Back up first and run the document validation step.

Common tasks

CategoryOffice documents
Version—
Agent supportClaude Code, Generic (reads SKILL.md)
OSmacOS / Linux / Windows
DependenciesPython runtime、LibreOffice (for Office files)
Environmentfile read/write
Scriptsnone
LicenseProprietary (Anthropic)
Sourceanthropics/skills ↗
Verificationto verify (check upstream before installing)
Get itGo to upstream · gh-proxy · jsDelivr

"Generic (agents that read SKILL.md)" means any agent that discovers and loads SKILL.md; support level (auto-discovery, manual config, script execution) varies by agent.

This entry isn't hosted here (license or size); use the accelerated mirror above or the upstream repo.

Install

This is an index entry: install it from the upstream repository using its instructions.

Skills directory example: ~/.claude/skills/ for Claude Code; other agents use wherever SKILL.md is discovered.

Comparison: which one?