DOCX Editor

Lossless DOCX unpack / edit / repack toolkit. Treats a .docx as a ZIP of OOXML parts, edits the raw XML with lxml, and on save copies every UNMODIFIED part byte-for-byte — only the parts you actually edited are re-serialised. Guarantees that opening, editing and saving a document leaves its formatting completely intact. Triggers when: Editing a .docx while preserving format exactly (改文字但不改格式), unpacking a .docx into a folder of raw XML/media/files then repacking it back, swapping an embedded image or font, editing headers/footers/footnotes/endnotes/comments directly, editing table cells without disturbing the table style, doing global find-and-replace across runs while keeping each run's formatting, or any task that requires "open docx → change something → save, and nothing else changes". Commands: - /docx编辑 <文件> - Open a docx in the lossless editor (describe what to edit in natural language) - /docx编辑 unpack <文件> [目录] - Unpack a .docx into a folder of raw parts - /docx编辑 pack <目录> <输出.docx> - Repack a folder

cycleuser 4a6dac3 10 files · 102.1 KB Updated

File contents

cycleuser/skills/tree/main/skills/docx-editor commit 4a6dac380d

Frequently asked questions

npx skillmds@latest add cycleuser/docx-editor