docx

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

1|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/Sologa/codex-pipeline --skill docx-sologa
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Sologa/codex-pipeline/tree/main/.codex/skills/docx
Command: npx skills add https://github.com/Sologa/codex-pipeline --skill docx-sologa

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 review of Microsoft Word documents, automating complex tasks like tracked changes and formatting preservation.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using JavaScript/TypeScript.
  • Document Editing: Modify existing .docx files using Python, including tracked changes and comments.
  • Redlining Workflow: Implement a systematic process for reviewing and editing documents with tracked changes.
  • Text Extraction & Conversion: Convert .docx to other formats (like Markdown) or images.
  • Use Case: A legal team needs to review a 50-page contract. They can use this Skill to apply specific edits, add comments, and track all changes made by different reviewers, ensuring a clean and auditable document history.

Quick Start

Use the docx skill to convert the document 'report.docx' into a markdown file named 'report.md'.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate tracked changes and redlining in Word documents?▼

Automating tracked changes in Word documents involves using Python libraries to modify .docx files while preserving formatting, managing comments, and maintaining an auditable history of reviewer edits.

Can I convert a .docx file to Markdown or images programmatically?▼

Converting a .docx file to Markdown or images is possible by leveraging text extraction and conversion libraries like pandoc, which transform Word document content into other formats while preserving structure.

What is the best way to generate a Word document from scratch using code?▼

Generating a Word document from scratch is best achieved using JavaScript or TypeScript libraries to programmatically construct .docx files, allowing full control over layout, text, and formatting.

Does this approach to Word document editing preserve complex formatting and OOXML structures?▼

Editing Word documents with Python libraries preserves complex formatting and OOXML structures by directly manipulating the document tree, ensuring original layouts remain intact when applying tracked changes.

What dependencies are required to manage and edit .docx files?▼

Managing and editing .docx files requires dependencies like pandoc for conversion, LibreOffice for rendering, poppler-utils for image extraction, and defusedxml for secure OOXML parsing.

How do I extract text and comments from an existing .docx file for review?▼

Extracting text and comments from an existing .docx file is done using Python scripts that parse the document structure, isolate reviewer annotations, and output the content for analysis.