From docx-editor
This skill should be used when the user asks to "edit a Word document", "fill a docx form", "replace text in Word", "fill table cells in docx", "batch fill Word template", or mentions editing .docx files without breaking formatting.
How this skill is triggered — by the user, by Claude, or both
Slash command
/docx-editor:docx-editorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Edit Word (.docx) documents **without breaking any formatting**. All text operations happen at the run level, preserving fonts, bold, italic, colors, sizes, and all other styling.
Edit Word (.docx) documents without breaking any formatting. All text operations happen at the run level, preserving fonts, bold, italic, colors, sizes, and all other styling.
NEVER use paragraph.text = ... or cell.text = ... — these destroy run-level formatting. Always use the provided docx_utils.py script which operates at the XML run level.
The Python script is located at: {PLUGIN_DIR}/skills/docx-editor/scripts/docx_utils.py
Run all commands via Bash tool with python3:
python3 {SCRIPT} info "path/to/file.docx"
python3 {SCRIPT} structure "path/to/file.docx" [table_index]
python3 {SCRIPT} replace "input.docx" "output.docx" "old text" "new text"
python3 {SCRIPT} batch_replace "input.docx" "output.docx" '{"${name}": "Alice", "${date}": "2026-01-01"}'
python3 {SCRIPT} fill_cell "input.docx" "output.docx" <table_index> <row> <col> "text"
python3 {SCRIPT} batch_fill "input.docx" "output.docx" '[{"row":0,"col":1,"text":"value1"},{"row":1,"col":2,"text":"value2"}]'
python3 {SCRIPT} read_cell "file.docx" <table_index> <row> <col>
When the user wants to edit a Word document:
info to see document structure, then structure to map table cell coordinatesreplace, batch_replace, fill_cell, or batch_fill as appropriatepython-docx installed: pip install python-docxstructure command to identify which coordinates are primary vs duplicates (marked as "merged")Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub fengerwoo/docx-editor --plugin docx-editor