agentleFS
tim-osterhustim-osterhus/millrace-skills/skills/docx-document-artifacts/SKILL.md

docx-document-artifacts

Skill0 starsChanged 7 months agoApache-2.0View on GitHub

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.

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 15 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill for .docx artifact work where visual layout, review markup, final cleanup, accessibility, redaction, or OOXML repair matters.

    line 4
  2. Distinctive:

    Use when the task is to create, edit, review, finalize, verify, or redact a DOCX.

    line 6
  3. Distinctive:

    Do not use when the work is plain text drafting, PDF-only output, or generic office advice with no DOCX artifact boundary.

    line 7
  4. Distinctive:

    Do not claim visual correctness from XML inspection, text extraction, or a successful save alone.

    line 19
  5. Distinctive:

    Do not trust headless PDF export to prove comments are correct.

    line 20
  6. Distinctive:

    Do not collapse review mode and final delivery mode into one indistinct cleanup pass.

    line 21
  7. Distinctive:

    Do not use OOXML patching as the default path when the normal editor or helper script can make the change safely.

    line 22
  8. Distinctive:

    Do not broaden the task into a generic document-authoring handbook.

    line 23
  9. Distinctive:

    Do not skip re-rendering after comments, tracked changes, redaction, accessibility fixes, or targeted OOXML edits.

    line 24
  10. Distinctive:

    Do not trust XML, text extraction, or a save operation as proof that the document looks right.

    line 50
  11. Distinctive:

    Do not assume comments will appear in headless renders.

    line 51
  12. Distinctive:

    Do not mix review markup cleanup with final delivery unless the request explicitly asks for finalization.

    line 52
  13. Distinctive:

    Do not use OOXML patching to replace the normal edit path when the surface editor can do the job.

    line 53
  14. Distinctive:

    Do not turn this skill into a broad office handbook.

    line 54
  15. Distinctive:

    Start with the smallest DOCX workflow that can satisfy the request honestly.

    line 57
  16. Distinctive:

    Keep the top-level skill short and let the references carry the stable implementation detail.

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Classify the task as create, edit, review, finalize, verify, or redact.
  2. Decide whether the document is in review mode or final delivery mode.
  3. Choose the smallest honest seam: surface editing first, OOXML patching only if the surface tool cannot do the job cleanly.
  4. Render every changed DOCX to PNGs, inspect every page at 100% zoom, and re-render after each layout-sensitive change.
  5. 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

  1. Classify the request as create, edit, review, finalize, verify, or redact.
  2. Decide whether the working copy should keep comments/tracked changes or be cleaned for final delivery.
  3. Make the smallest local change that honestly satisfies the request.
  4. For comments or tracked changes, route through references/review-lifecycle.md.
  5. For accessibility or redaction, route through references/accessibility-and-redaction.md.
  6. For targeted OOXML fixes, route through references/ooxml-patching.md.
  7. Render with scripts/render_docx.py, inspect every page, and iterate until the latest render is clean.
  8. 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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.