docx

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The docx skill provides a comprehensive, guidance-driven workflow for creating, editing, reviewing, and preserving formatting in Word documents (.docx). It supports tracked changes, comments, redlining, and template-based document generation to streamline professional publishing tasks.

Core Features & Use Cases

  • Document Creation: Scaffold new .docx files from templates, populate content, and preserve styles and formatting.
  • Editing & Review: Apply edits with tracked changes and redlining to support collaborative reviews.
  • Comments & Collaboration: Add, manage, and thread comments to facilitate approvals and discussions.
  • Operational Use Case: Draft standard proposals or reports by programmatically assembling sections and converting to polished Word documents.

Quick Start

Use the docx skill to create a new Word document from a template and apply a basic set of edits.

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 to a Word document?

To add tracked changes to a Word document, the skill applies edits with redlining and author tracking using RSIDs during OOXML manipulation. This enables collaborative review and approval workflows by preserving all modifications within the .docx file.

Can I generate a Word document from a template and preserve formatting?

Yes, you can generate a Word document from a template while preserving styles and formatting. The skill scaffolds new .docx files from templates, populates content, and ensures the original formatting remains intact throughout the document production process.

How do I insert comments into a .docx file for collaboration?

You can insert comments into a .docx file for collaboration using the document generation workflow. The skill allows you to add, manage, and thread comments directly within the OOXML structure to facilitate discussions and approvals.

What's the best way to automate drafting proposals as Word documents?

The best way to automate drafting proposals as Word documents is by programmatically assembling sections and converting them into polished .docx files. The skill streamlines this operational use case by supporting template-based document generation.

Does this docx skill require lxml to handle OOXML document manipulation?

Yes, this docx skill requires lxml and defusedxml to handle OOXML document manipulation. These dependencies provide the necessary XML parsing and security functions required to edit Word documents and apply tracked changes safely.

What are the limitations of using OOXML for Word document generation?

When using OOXML for Word document generation, limitations arise from complex style preservation and strict XML schema requirements. The skill mitigates these by using a guidance-driven workflow with a DocxXMLEditor to ensure proper RSID application and formatting integrity.