docx

Create, edit, and analyze .docx files with Python and JavaScript.

6|1|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/boshi-xixixi/agenticflow-skills --skill docx-boshi-xixixi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/boshi-xixixi/agenticflow-skills/tree/main/skills/06_Office_Docx
Command: npx skills add https://github.com/boshi-xixixi/agenticflow-skills --skill docx-boshi-xixixi

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 creation, editing, and analysis of Word documents, eliminating manual formatting and complex tracked-change management.

Core Features & Use Cases

  • Document Creation: Generate complex .docx files from scratch using JavaScript.
  • Content Editing: Modify existing .docx files programmatically with Python, preserving formatting.
  • Tracked Changes: Implement precise redlining and review workflows, ensuring all modifications are tracked accurately.
  • Use Case: Automatically generate a legal contract based on a template, incorporating specific client details and ensuring all changes are marked with track changes enabled.

Quick Start

Use the docx skill to create a new document with a title and one heading.

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 tracked changes?

Programmatic creation and editing of Word documents with tracked changes is achieved by manipulating OOXML via Python and JavaScript libraries, enabling precise redlining and formatting preservation for review workflows.

How does OOXML manipulation handle redlining workflows for legal documents?

OOXML manipulation handles redlining workflows by directly modifying the XML structure to track all changes accurately, ensuring precise modification and review tracking for legal, academic, and business documents.

Can I modify an existing .docx file while preserving its original formatting?

Yes, you can modify existing .docx files programmatically with Python while preserving formatting, leveraging dependencies like pandoc and libreoffice to maintain document structure and styling integrity.

Do I need pandoc and libreoffice installed to generate .docx files from scratch?

Yes, generating complex .docx files from scratch and manipulating OOXML requires installing dependencies like pandoc, libreoffice, poppler-utils, and defusedxml in your environment for full functionality.

What is the best way to extract text from a Word document for automated analysis?

The best way to extract text from a Word document for automated analysis is using python-docx to parse the .docx structure, supported by poppler-utils for rendering and defusedxml for secure parsing.

Why does modifying OOXML directly result in more accurate tracked changes than using basic docx editors?

Modifying OOXML directly provides more accurate tracked changes because it bypasses high-level abstractions to control exact XML elements, ensuring all modifications and comments are precisely marked for review.