Skip to content

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

  1. Use the safe-docx MCP tools to modify documents. Do not attempt to write raw XML.
  2. When filling placeholders, match the exact keys provided in the source JSON.
  3. Preserve all existing styles, headers, and footers.
  4. If a placeholder like [ ] or {{tag}} is found, replace it with the corresponding value from the data.
  5. 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_docx tool to perform the replacements.
  • Verify the output formatting remains consistent with the original branding.