docx-cli

Solid

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 154 stars 8 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
73
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
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 `bash scripts/bootstrap.sh`: it resolves the latest release, downloads the prebuilt binary **pinned to that release tag**, and **verifies its SHA-256** against the release's published `SHA256SUMS` before installing — it never pipes a remote script into a shell. (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): ```sh docx --help # ev...

Details

Author
kklimuk
Repository
kklimuk/docx-cli
Created
2 months ago
Last Updated
1 weeks ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Solid

word-docx

Unified skill for Microsoft Word .docx workflows: extracting comments or tracked changes, summarizing reviewer feedback, generating response-to-comments documents, building Word memos or reports, applying tracked edits, auditing OOXML internals, validating and repairing documents, accepting revisions, adding or resolving comments, converting legacy .doc files, unpacking or repacking .docx files, simplifying redline markup, rendering .docx to images, and building Word documents with tables of contents, multi-column layouts, or page-numbered headers and footers. Use whenever a task involves reading, reviewing, building, editing, or analyzing .docx files. Prefer this skill over ad-hoc python-docx or docx2python usage. Route PDFs, spreadsheets, presentations, Google Docs, and LaTeX-to-Word conversion pipelines to their dedicated skills.

24 Updated 4 days ago
kennethkhoocy
AI & Automation Solid

docx

Create, inspect, and edit `.docx` files safely, including comments and OOXML-preserving changes.

125 Updated today
HybridAIOne
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.

819 Updated yesterday
fcakyon