docx

Create and edit .docx files with tracked changes and comments.

4|1|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/an8079/take-skills --skill docx-an8079
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/an8079/take-skills/tree/main/skills/docx
Command: npx skills add https://github.com/an8079/take-skills --skill docx-an8079

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 complex document management tasks, from creating professional .docx files from scratch to meticulously editing existing ones with tracked changes and comments.

Core Features & Use Cases

  • Document Creation: Generate new .docx files using JavaScript/TypeScript with the docx-js library.
  • Document Editing: Modify existing .docx files using the Python Document library for OOXML manipulation.
  • Tracked Changes: Implement precise redlining and review workflows, essential for legal, academic, and business documents.
  • Content Analysis: Extract text or raw XML for in-depth document understanding.
  • Use Case: A legal team needs to review a contract. They can use this Skill to apply specific edits, add comments, and track all changes made by different reviewers, ensuring a clear audit trail.

Quick Start

Use the docx skill to create a new Word 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 add tracked changes and comments to an existing Word document?

To add tracked changes to a Word document, this Skill uses a Python OOXML library to manipulate the .docx file directly, enabling precise redlining, comments insertion, and formatting preservation for review workflows.

What is the best way to generate a new .docx file from scratch using JavaScript?

Generating a new .docx file is handled via the docx-js library using JavaScript or TypeScript, allowing you to programmatically define document structures like titles, headings, and text formatting to produce professional Word files.

Can I extract raw XML or text content from a .docx file for document analysis?

Yes, you can extract text or raw OOXML from a .docx file for in-depth content analysis, enabling detailed document understanding and supporting complex workflows by exposing the underlying XML structure.

Does this approach preserve complex formatting when editing existing Word documents?

Yes, editing existing Word documents through Python OOXML manipulation preserves the original complex formatting, ensuring that structural integrity and visual styles remain intact while applying programmatic edits and tracked changes.

Do I need LibreOffice or pandoc installed to manage .docx creation and editing workflows?

Yes, the environment requires dependencies including pandoc, LibreOffice, poppler-utils, and defusedxml to fully support document generation, editing, format conversion, and secure XML parsing within complex document workflows.