docx-cli

Featured

Read, edit, redline, comment on, and create Microsoft Word .docx files. Use to fill out or edit a Word doc, redline a contract with tracked changes, add/resolve comments, replace text keeping its formatting, restyle headings/fonts, edit tables, or read/extract a .docx as Markdown or text. Also BUILD a new .docx — from Markdown or programmatically (code that outputs a Word report with headings, tables, images). Not for PDF, Google Docs, Excel, PowerPoint, or .doc.

Data & Documents 204 stars 9 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
77
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# docx-cli `docx` is a command-line tool for reading, editing, redlining, and commenting on Microsoft Word `.docx` files. It edits the underlying OOXML **in place** (it never rebuilds the document from a lossy view), addresses everything with **stable locators**, and signals success through an **exit code** plus a one-line confirmation — so even small, cheap models can drive it reliably. ## 0. Make sure the binary is on PATH Run `docx --version`. If you get "command not found", install it. Prefer the npm registry — no shell piping, and the package runs no install scripts: ```sh bun add -g bun-docx # or: npm install -g bun-docx (needs Bun >= 1.3) ``` No Bun? From this skill folder run `sh scripts/bootstrap.sh`. It **downloads no scripts and runs no remote code** — it resolves the latest release tag from the GitHub API, downloads that release's prebuilt binary **pinned to the tag**, and **verifies its SHA-256** against the release's published `SHA256SUMS` before installing. (By hand: download `docx-<platform>` + `SHA256SUMS` from https://github.com/kklimuk/docx-cli/releases/latest, verify, `chmod +x`, put it on PATH.) Every verb works against the `.docx` zip directly; only `docx render` needs Word (macOS/Windows) or LibreOffice installed. ## 1. The contract is `--help` / `docx info` — start there The help text is authoritative and versioned with the binary. This skill is thin on purpose and defers to it. Before doing anything, run (none of these need a FILE): ```...

Details

Author
kklimuk
Repository
kklimuk/docx-cli
Created
4 months ago
Last Updated
6 days ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Listed

docx

Use when the user asks to create, edit, convert, validate, preview, or password-protect Microsoft Word .docx documents. Triggers include "markdown to docx", "docx to markdown", "fill Word template", "accept tracked changes", "validate docx", "preview docx as image", "encrypt/decrypt docx", and related .docx round-trip or template-fill tasks.

1 Updated today
MatrixFounder
Data & Documents Featured

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

1,141 Updated today
fcakyon
Data & Documents Solid

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

41 Updated today
thevibeworks