DOCX Document Artifacts
Purpose
Use this skill for .docx artifact work where visual layout, review markup, final cleanup, accessibility, redaction, or OOXML repair matters.
Use when the task is to create, edit, review, finalize, verify, or redact a DOCX.
Do not use when the work is plain text drafting, PDF-only output, or generic office advice with no DOCX artifact boundary.
This skill is a guardrail, not a Word-processing manual.
Quick Start
- Classify the task as
create, edit, review, finalize, verify, or redact.
- Decide whether the document is in review mode or final delivery mode.
- Choose the smallest honest seam: surface editing first, OOXML patching only if the surface tool cannot do the job cleanly.
- Render every changed DOCX to PNGs, inspect every page at 100% zoom, and re-render after each layout-sensitive change.
- End with the next verifier and the evidence artifact it should capture.
Operating Constraints
- Do not claim visual correctness from XML inspection, text extraction, or a successful save alone.
- Do not trust headless PDF export to prove comments are correct; comments need structural checks too.
- Do not collapse review mode and final delivery mode into one indistinct cleanup pass.
- Do not use OOXML patching as the default path when the normal editor or helper script can make the change safely.
- Do not broaden the task into a generic document-authoring handbook.
- Do not skip re-rendering after comments, tracked changes, redaction, accessibility fixes, or targeted OOXML edits.
Inputs This Skill Expects
- A DOCX file or working copy to create, edit, review, or verify.
- The desired mode: review, final cleanup, accessibility check, redaction, or targeted OOXML repair.
- The requested proof surface: render PNGs, comment structure, tracked-change cleanup, or audit output.
- Any scope constraints for what must stay visible, what must be removed, and what must remain unchanged.
Output Contract
- A DOCX in the requested mode.
- The latest render PNGs used to verify layout before delivery.
- Comment or tracked-change structural evidence when review markup is involved.
- Accessibility or redaction evidence when those checks are part of the request.
- The next verifier to run and the artifact it should capture.
Procedure
- Classify the request as create, edit, review, finalize, verify, or redact.
- Decide whether the working copy should keep comments/tracked changes or be cleaned for final delivery.
- Make the smallest local change that honestly satisfies the request.
- For comments or tracked changes, route through
references/review-lifecycle.md.
- For accessibility or redaction, route through
references/accessibility-and-redaction.md.
- For targeted OOXML fixes, route through
references/ooxml-patching.md.
- Render with
scripts/render_docx.py, inspect every page, and iterate until the latest render is clean.
- Deliver only the requested final artifact, not the internal QA intermediates.
Pitfalls And Gotchas
- Do not trust XML, text extraction, or a save operation as proof that the document looks right.
- Do not assume comments will appear in headless renders.
- Do not mix review markup cleanup with final delivery unless the request explicitly asks for finalization.
- Do not use OOXML patching to replace the normal edit path when the surface editor can do the job.
- Do not turn this skill into a broad office handbook.
Progressive Disclosure
Start with the smallest DOCX workflow that can satisfy the request honestly.
Pull in review, accessibility/redaction, or OOXML references only when that boundary is present.
Keep the top-level skill short and let the references carry the stable implementation detail.
Verification Pattern
- Next verifier:
scripts/render_docx.py.
- Evidence artifact: the latest
page-*.png set, plus the relevant comment, accessibility, or redaction report when those modes are active.
1---2name: docx-document-artifacts3description: DOCX Document Artifacts4---5# DOCX Document Artifacts67## Purpose8Use this skill for `.docx` artifact work where visual layout, review markup, final cleanup, accessibility, redaction, or OOXML repair matters.910Use when the task is to create, edit, review, finalize, verify, or redact a DOCX.11Do not use when the work is plain text drafting, PDF-only output, or generic office advice with no DOCX artifact boundary.1213This skill is a guardrail, not a Word-processing manual.1415## Quick Start161. Classify the task as `create`, `edit`, `review`, `finalize`, `verify`, or `redact`.172. Decide whether the document is in review mode or final delivery mode.183. Choose the smallest honest seam: surface editing first, OOXML patching only if the surface tool cannot do the job cleanly.194. Render every changed DOCX to PNGs, inspect every page at 100% zoom, and re-render after each layout-sensitive change.205. End with the next verifier and the evidence artifact it should capture.2122## Operating Constraints23- Do not claim visual correctness from XML inspection, text extraction, or a successful save alone.24- Do not trust headless PDF export to prove comments are correct; comments need structural checks too.25- Do not collapse review mode and final delivery mode into one indistinct cleanup pass.26- Do not use OOXML patching as the default path when the normal editor or helper script can make the change safely.27- Do not broaden the task into a generic document-authoring handbook.28- Do not skip re-rendering after comments, tracked changes, redaction, accessibility fixes, or targeted OOXML edits.2930## Inputs This Skill Expects31- A DOCX file or working copy to create, edit, review, or verify.32- The desired mode: review, final cleanup, accessibility check, redaction, or targeted OOXML repair.33- The requested proof surface: render PNGs, comment structure, tracked-change cleanup, or audit output.34- Any scope constraints for what must stay visible, what must be removed, and what must remain unchanged.3536## Output Contract37- A DOCX in the requested mode.38- The latest render PNGs used to verify layout before delivery.39- Comment or tracked-change structural evidence when review markup is involved.40- Accessibility or redaction evidence when those checks are part of the request.41- The next verifier to run and the artifact it should capture.4243## Procedure441. Classify the request as create, edit, review, finalize, verify, or redact.452. Decide whether the working copy should keep comments/tracked changes or be cleaned for final delivery.463. Make the smallest local change that honestly satisfies the request.474. For comments or tracked changes, route through `references/review-lifecycle.md`.485. For accessibility or redaction, route through `references/accessibility-and-redaction.md`.496. For targeted OOXML fixes, route through `references/ooxml-patching.md`.507. Render with `scripts/render_docx.py`, inspect every page, and iterate until the latest render is clean.518. Deliver only the requested final artifact, not the internal QA intermediates.5253## Pitfalls And Gotchas54- Do not trust XML, text extraction, or a save operation as proof that the document looks right.55- Do not assume comments will appear in headless renders.56- Do not mix review markup cleanup with final delivery unless the request explicitly asks for finalization.57- Do not use OOXML patching to replace the normal edit path when the surface editor can do the job.58- Do not turn this skill into a broad office handbook.5960## Progressive Disclosure61Start with the smallest DOCX workflow that can satisfy the request honestly.62Pull in review, accessibility/redaction, or OOXML references only when that boundary is present.63Keep the top-level skill short and let the references carry the stable implementation detail.6465## Verification Pattern66- Next verifier: `scripts/render_docx.py`.67- Evidence artifact: the latest `page-*.png` set, plus the relevant comment, accessibility, or redaction report when those modes are active.