docx

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

4|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/GeneralReasoning/env-skillsbench --skill docx-generalreasoning
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/GeneralReasoning/env-skillsbench/tree/main/organize-messy-files/environment/skills/docx
Command: npx skills add https://github.com/GeneralReasoning/env-skillsbench --skill docx-generalreasoning

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Word documents often require precise formatting, tracked changes, and consistent review workflows. This Skill provides programmatic capabilities to create, modify, and analyze .docx files, preserving formatting, enabling redlining, and extracting text for data pipelines.

Core Features & Use Cases

  • Create new Word documents with templates and consistent styles.
  • Edit existing documents with tracked changes and comments, preserving layout.
  • Extract text and structure from DOCX for analysis, auditing, or data export.
  • Use Case: draft a contract, apply redlines automatically, add reviewer comments, and export a clean text for compliance.
  • Use Case: batch-process multiple reports to extract sections and metadata.

Quick Start

Create a new DOCX, apply edits, and export extracted text in one streamlined workflow.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I apply tracked changes to a Word docx file programmatically?

You can apply tracked changes to a Word docx by manipulating document.xml and related OOXML parts using Python libraries like lxml and defusedxml, preserving formatting while inserting redlines and comments automatically.

Can I extract text from docx files for data pipelines without losing structure?

Extracting text from docx files is supported by parsing the underlying OOXML structure, allowing you to export extracted text and document sections for analysis, auditing, or data pipelines.

What is the best way to automate redlining and adding comments to contracts in Word?

Automating redlining for contracts involves using OOXML-aware manipulation to edit existing Word documents, programmatically applying tracked changes and inserting reviewer comments while preserving layout.

Does editing docx files with Python preserve the original formatting and styles?

Editing docx files with Python preserves formatting by directly modifying document.xml and related parts through OOXML-aware libraries like lxml, ensuring consistent styles and layout are maintained.

How do I batch process multiple Word documents to extract sections and metadata?

Batch processing multiple Word documents involves iterating over docx files to parse OOXML structures, extracting targeted sections and metadata for compliance auditing or data export.

Do I need OOXML knowledge to create new Word documents with tracked changes?

OOXML knowledge is beneficial but not strictly required, as the Skill abstracts document.xml manipulation using Python tooling to create new Word documents, apply edits, and manage tracked changes.