docx

Edit and generate DOCX files while preserving OOXML structure and formatting.

126|11|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/HybridAIOne/hybridclaw --skill docx-hybridaione
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/HybridAIOne/hybridclaw/tree/main/skills/docx
Command: npx skills add https://github.com/HybridAIOne/hybridclaw --skill docx-hybridaione

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx, and includes scripts (resource) components.

What problem does it solve?

It solves the problem of creating or updating Word .docx documents reliably, without breaking formatting or losing tracked edits when users need precise document changes.

Core Features & Use Cases

  • Safe DOCX creation: Generate new .docx files from scratch using Node’s docx library, avoiding fragile round-trips.
  • OOXML-preserving editing: Update existing documents by unpacking OOXML parts, editing only the relevant XML, and repacking to preserve layout.
  • Commenting and review support: Insert review comments around exact text matches and accept tracked changes with helper scripts.

Quick Start

Use the docx skill to insert a comment into an existing document by telling the assistant which exact text to match and what comment note to attach.

Frequently Asked Questions about docx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I edit an existing DOCX file without breaking formatting or losing Word comments?

To edit an existing DOCX file without breaking formatting, you must unpack the OOXML parts, edit only the relevant XML, and repack the document. This approach ensures layout preservation and maintains correct DOCX part relationships.

What is the best way to programmatically generate a new Word document while preserving structure?

The best way to programmatically generate a new Word document is using the docx library to create the file from scratch, avoiding fragile round-trips and ensuring correct content types and document structure.

Can I insert review comments into specific text matches within an OOXML document?

Yes, you can insert review comments into an OOXML document by matching exact text strings and attaching comment notes. This allows precise commenting around specific text matches without altering the original layout.

How does OOXML manipulation handle tracked changes in Word documents?

OOXML manipulation handles tracked changes by providing helper scripts to accept tracked changes directly within the unpacked XML. This ensures revisions are safely integrated while maintaining correct document IDs and relationships.

Does the docx library support in-place editing of existing Word files?

Yes, the docx library supports in-place editing of existing Word files by requiring an OOXML unpack, edit, and pack workflow. This method updates existing documents while preserving Word-compatible formatting.

Why do my Word documents reflow when I try to update them programmatically?

Word documents reflow during programmatic updates because standard round-trips often break formatting. To prevent this, edit existing documents by unpacking OOXML parts, manipulating only the necessary XML, and repacking safely.