docx

Creates, edits, and analyzes Word (.docx) files with tracked changes and comments using docx-js and OOXML manipulation.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/take566/skills --skill docx-take566
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/take566/skills/tree/main/document-processing/docx
Command: npx skills add https://github.com/take566/skills --skill docx-take566

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, docx, libreoffice, poppler-utils, defusedxml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of creating, editing, and reviewing Word documents, eliminating manual formatting and complex tracked-change management.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using JavaScript/TypeScript.
  • Content Editing: Modify existing documents, including tracked changes, comments, and formatting.
  • Redlining: Implement precise tracked changes for document review and collaboration.
  • Use Case: Automatically update a legal contract by replacing outdated clauses with new ones, ensuring all changes are tracked and attributed correctly.

Quick Start

Use the docx skill to create a new document with a title and two headings.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically create and edit Word documents with preserved formatting?

You can create and edit Word documents programmatically using JavaScript and docx-js for generation, while OOXML manipulation handles complex edits and preserves formatting. This approach supports generating new .docx files or modifying existing ones with precise control over document structure.

What is the best way to add tracked changes and redlining to a .docx file?

Adding tracked changes to a .docx file is best handled through OOXML manipulation, which implements precise redlining workflows for document review. This ensures all modifications are properly tracked, attributed, and visible during collaboration without manual formatting intervention.

Can I extract text from existing Word documents using pandoc?

Yes, pandoc supports text extraction from existing Word documents by converting .docx content into plain text or other formats. This allows you to retrieve document content for further processing, analysis, or migration to different document systems.

Does this approach require LibreOffice and poppler-utils to convert Word documents to images?

Yes, converting Word documents to images requires both LibreOffice and poppler-utils installed in your environment. LibreOffice handles the initial document rendering while poppler-utils processes the output into image formats for visual document analysis.

How do I automatically update legal contracts with tracked changes using docx manipulation?

To automatically update legal contracts with tracked changes, use OOXML manipulation to replace outdated clauses with new ones while maintaining tracked change attribution. This ensures all modifications are visible for review and correctly attributed to the editing author.

What are the limitations of using JavaScript for Word document generation and editing?

JavaScript-based Word document generation relies on docx-js for standard formatting but may face limitations with highly complex OOXML structures or advanced Word features. For intricate redlining or formatting preservation, direct OOXML manipulation provides more granular control than the JavaScript library alone.