docx

Create, edit, and convert .docx files using the docx npm module and XML workflows.

28|2|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/thompson0012/agents-stack --skill docx-thompson0012
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/thompson0012/agents-stack/tree/main/skills-optional/using-documents/docx
Command: npx skills add https://github.com/thompson0012/agents-stack --skill docx-thompson0012

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lxml, and includes scripts (resource) components.

What problem does it solve?

Word document management often requires repetitive, error-prone manual edits, formatting tweaks, and format conversions. This skill enables automated creation, editing, and cleanup of .docx files to streamline workflows.

Core Features & Use Cases

  • Create documents from scratch using the docx npm module.
  • Unpack and edit Word XML to apply advanced edits, then repack into a valid .docx.
  • Convert between formats and extract content (e.g., to PDF, Markdown, or plain text) and apply or remove tracked changes as part of workflows.

Quick Start

Create a new document from scratch with a title and body text.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate Word document creation and editing in Python?

Automating Word document creation and editing involves unpacking the .docx XML structure, modifying the elements directly, and repacking it into a valid file. This skill uses the docx npm module for generation and XML unpack/modify for advanced edits.

What is the best way to convert a .docx file to Markdown or plain text?

Converting a .docx file to Markdown or plain text is handled through format conversion workflows that extract content from the document XML. This enables seamless transitions between formats like PDF, Markdown, and plain text.

Can I programmatically apply or remove tracked changes in a .docx file?

Yes, you can programmatically apply or remove tracked changes in a .docx file. This is achieved by unpacking the Word document XML, modifying the tracked changes elements, and repacking it into a valid .docx.

Does this approach require lxml to process Word XML?

Processing Word XML with this approach requires the lxml dependency to unpack, modify, and repack the internal document structure. It is necessary for parsing and manipulating the XML elements within the .docx archive.

How do I create a Word document from scratch with a title and body text?

To create a Word document from scratch with a title and body text, you use the docx npm module for generation. This allows you to programmatically define document structures and insert text content without manual formatting.