sdo-docx-operations
Installation
SKILL.md
SDO DOCX Operations -- officecli guardrails
Use this skill for reliable, repeatable officecli operations that require XML-level edits on standards documents.
Workflow
- Open the document in resident mode before multi-step edits:
officecli open <doc> - Run one mutation command at a time and check exit codes.
- Use style/ordinal or explicit XPath targeting, not paraId targeting.
- Prefer
officecli batchfor template population, text updates, and paragraph additions. Python zipfile/ElementTree scripts can strip namespace declarations from the root element (see "Python OOXML manipulation — namespace caveat" below). Reserve Python scripts for edits that officecli cannot express. - Validate with
officecli view/get/querybefore and after mutation. - Close the document at the end:
officecli close <doc>