docx-expert
Make surgical, style-preserving edits to .docx legal documents (keeps branding and JCT tables intact) via safe-docx tools. Use when asked to edit, fill placeholders in, or amend a Word (.docx) legal document.
Source: .opencode/skills/docx-expert/SKILL.md — site rebuilt 2026-09-05.
Core Mandates¶
- Use the
safe-docxMCP tools to modify documents. Do not attempt to write raw XML. - When filling placeholders, match the exact keys provided in the source JSON.
- Preserve all existing styles, headers, and footers.
- If a placeholder like
[ ]or{{tag}}is found, replace it with the corresponding value from the data. - If a data value is missing, leave the placeholder as is and alert the user.
Workflow¶
- Read the provided .docx and JSON data.
- Map the JSON values to the document placeholders.
- Call the
edit_docxtool to perform the replacements. - Verify the output formatting remains consistent with the original branding.