Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Creates, reads, edits, templates, and reviews Word .docx files using python-docx CLI helpers.
18% 50%+32 ptsof test cases passed
Passed 11 of 22 test cases with the skill, and 4 of 22 without it.
3 of 3 safety checks passed
Not used yet
Create, read, edit, and template Microsoft Word .docx files with
python-docx via small CLIs. It handles text, styles, lists, tables,
images, headers/footers, {{token}} templating, tracked changes
(list/accept/reject), comments (list/add/delete), TOC and page-number
fields, and package health checks. It does not render documents itself
(PDF needs LibreOffice — see Converting to PDF) or edit legacy .doc.
.docx..docx: replace text, edit table cells,
insert/delete paragraphs, apply styles, merge fragmented runs..docx template with {{placeholders}} to fill from data..docx won't open or behaves oddly and you need corruption triage..doc (legacy), .odt, or WYSIWYG layout work.python-docx installed:
pip install python-docx (import name is docx; lxml comes with it).add uses the native API on python-docx >= 1.2 and an XML
fallback on older versions — both are automatic.All helpers live in scripts/ next to this file. Run them with the
terminal tool; each supports --help and prints JSON to stdout.
python scripts/docx_create.py spec.json out.docx
python scripts/docx_read.py out.docx --text
python scripts/docx_edit.py replace out.docx --find old --replace new
python scripts/docx_template.py tpl.docx values.json filled.docx
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.