About word
A skill for creating, editing, reviewing, and extracting content from Word documents. It emphasizes rendering documents to images for visual inspection and supports tracked changes through document XML workflows.
Key features
- 01Create documents with python-docx or docx-js
- 02Render documents to PDF and PNG
- 03Inspect and correct visual defects
- 04Manage tracked changes in XML
- 05Extract structured text with Pandoc
- 06Check chart and table readability
Use cases
- 01Creating professional Word documents
- 02Reviewing rendered pages for layout defects
- 03Preparing legal or business redlines
- 04Converting DOCX content to Markdown
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ igorwarzocha/ opencode-workflows --skill wordAfter installing, type/wordin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/docx-js.mdooxml.mdreferences/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsdopc-coreProperties.xsdopc-digSig.xsdopc-relationships.xsdreferences/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsddml-chartDrawing.xsddml-diagram.xsddml-lockedCanvas.xsddml-main.xsddml-picture.xsddml-spreadsheetDrawing.xsddml-wordprocessingDrawing.xsdpml.xsdshared-additionalCharacteristics.xsdshared-bibliography.xsdshared-commonSimpleTypes.xsdshared-customXmlDataProperties.xsdshared-customXmlSchemaProperties.xsdshared-documentPropertiesCustom.xsdshared-documentPropertiesExtended.xsdshared-documentPropertiesVariantTypes.xsdshared-math.xsdshared-relationshipReference.xsdsml.xsdvml-main.xsdvml-officeDrawing.xsdvml-presentationDrawing.xsdvml-spreadsheetDrawing.xsdDetails
From the project README<quality_workflow> For all professional deliverables, you MUST follow the "Render & Review" loop:
- Edit: Use
python-docxfor structure/styling or the Document library for XML edits. - Render: Convert to PDF/PNG using
sofficeandpdftoppm:soffice --headless --convert-to pdf document.docxpdftoppm -png -r 150 document.pdf page
- Inspect: Read the generated PNG images. You MUST look for clipped text, overlapping shapes, or misaligned margins.
- Fix: Address defects and repeat the loop until the document is visually flawless. </quality_workflow>
<technical_workflows>
1. Creating New Documents
- Python: You SHOULD use
python-docx. Establish hierarchy with HeadingLevel styles. - JavaScript: You SHOULD use
docx-js. Reference: Seereferences/docx-js.mdfor syntax. - CRITICAL: You MUST NOT use
\nfor line breaks (use Paragraphs). You MUST NOT use Unicode bullets (use numbering config).PageBreakMUST be inside a Paragraph.
2. Redlining & Tracked Changes
For legal or business review:
- Initialize: Use
scripts/document.py. Reference: Readreferences/ooxml.mdfor XML patterns. - Procedure: Unpack (
unpack.py), edit XML using the Document Library, then Pack (pack.py). - Standard: You MUST only mark text that actually changes. Keep unchanged text outside
<w:del>/<w:ins>.
3. Text Extraction
- You SHOULD use Pandoc to convert to markdown while preserving structure:
pandoc --track-changes=all path-to-file.docx -o output.md</technical_workflows>
<quality_expectations>
- Client-Ready: You MUST NOT use Unicode dashes (use ASCII hyphens). No internal AI tokens.
- Element Ordering: In
<w:pPr>, elements MUST follow schema order: Style -> Numbering -> Spacing -> Indent -> Alignment. - Visual Fidelity: Charts and tables MUST be sharp and legible in rendered previews. </quality_expectations>
</word_document_professional_suite>
Comments
Markdown supported