What problem does it solve?
This Skill solves the problem of reliably creating and editing .docx files without brittle, shell-specific commands—by using deterministic officecli operations and batch JSON inputs for bulk edits.
Core Features & Use Cases
- Create and edit Word documents: build new content or update existing sections, paragraphs, tables, charts, images, headers/footers, and more using
officecli primitives.
- Bulk modifications via
officecli batch: drive large sets of paragraph/table edits through JSON ops passed with --input, avoiding platform quoting/piping issues.
- Structured inspection + validation: read text/outline/stats, detect issues, and run
officecli validate to ensure the resulting DOCX is well-formed.
- Windows PowerShell-safe command contract: enforces single-line
officecli ... argv usage and forbids shell constructs that commonly break on PowerShell.
Quick Start
Use the officecli-docx skill to generate and verify changes in a Word file by first analyzing it with officecli view doc.docx outline, then applying a small edit like adding a paragraph to /body, and finally running officecli validate doc.docx to confirm the document is clean.