docx

Create, edit, and analyze Word .docx documents via OOXML manipulation.

284|94|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/mikeOnBreeze/cc-crossbeam --skill docx-mikeonbreeze
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/mikeOnBreeze/cc-crossbeam/tree/main/adu-skill-development/skill/document-skills/docx
Command: npx skills add https://github.com/mikeOnBreeze/cc-crossbeam --skill docx-mikeonbreeze

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Working with Microsoft Word .docx files programmatically is challenging because they are compressed archives containing complex XML structures, relationships, and media resources. This Skill removes the burden of manual OOXML parsing and inconsistent formatting by providing robust, validated workflows for creating, editing, reviewing, and analyzing professional Word documents.

Core Features & Use Cases

  • Document Creation: Generate new Word documents from scratch using JavaScript with professional styling, tables, lists, headers, footers, and page layout control.
  • Redlining & Tracked Changes: Safely edit existing documents with tracked insertions and deletions, comments, and structured batching strategies that preserve original authorship and formatting.
  • Text Extraction & Analysis: Convert documents to markdown or inspect raw XML to extract text, review comments, analyze formatting, and understand document structure.
  • Use Case: A contractor receives a corrections letter from a city building department and uses this Skill to generate a professional response package with tracked revisions, comments, and properly formatted attachments ready for resubmission.

Quick Start

Use the docx skill to create a new Word document with a title, several paragraphs of text, and a bulleted list, then export it as a .docx file.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically add tracked changes and comments to a Word document?

By manipulating structured OOXML, you can add tracked changes and comments to Word documents, safely inserting tracked revisions and comments while preserving original authorship and formatting.

What is the best way to extract text from a .docx file without losing formatting?

The best way to extract text from a .docx file without losing formatting is to convert the document to markdown or inspect the raw XML, which allows you to extract text, review comments, and analyze formatting without manual OOXML parsing.

Can I generate a new Word document from scratch using JavaScript?

Yes, you can generate a new Word document from scratch using JavaScript to apply professional styling, tables, lists, headers, footers, and page layout control directly through structured OOXML generation.

Do I need pandoc and LibreOffice to automate .docx document creation and analysis?

Yes, you need pandoc, LibreOffice, defusedxml, and lxml to handle automated .docx document creation and analysis, as they manage tracked changes, comments, formatting preservation, and image conversion.

How do I redline contracts and apply tracked revisions to legal correspondence?

You can redline contracts and apply tracked revisions to legal correspondence by using structured batching strategies that edit existing Word documents with tracked insertions and deletions while preserving original formatting.

Why does programmatic OOXML manipulation require defusedxml?

Programmatic OOXML manipulation requires defusedxml because .docx files are compressed archives containing complex XML structures, and defusedxml provides validated workflows to handle parsing and formatting preservation safely.