docx

Create and edit DOCX files with tracked changes and comments.

3.4k|522|Updated Apr 7, 2025
One-click install
npx skills add https://github.com/Intelligent-Internet/ii-agent --skill docx-intelligent-internet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Intelligent-Internet/ii-agent/tree/main/src/ii_agent/settings/skills/builtin/docx
Command: npx skills add https://github.com/Intelligent-Internet/ii-agent --skill docx-intelligent-internet

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automate the end-to-end lifecycle of Word documents (.docx): creation, editing with tracked changes, comments, and formatting preservation to support collaborative workflows.

Core Features & Use Cases

  • DOCX creation: generate Word documents from code using docx (JavaScript/TypeScript).
  • Editing and formatting: apply edits, track changes, insert comments, and manage lists, tables, images as code-level constructs.
  • Redlining workflow: plan and review edits via tracked changes and comments before finalizing.

Quick Start

Create a new Word document using the docx library and export it to a .docx file, then modify an existing document using tracked changes and comments to review redlining.

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 generation from code?

Automate Word document generation by using the docx library in JavaScript or TypeScript to define content programmatically. You can generate templates, manage lists, tables, and images, then export the output to a .docx file.

Can I apply tracked changes and comments to a Word document programmatically?

Yes, you can apply tracked changes and insert comments into a Word document programmatically. This enables redlining workflows where teams can plan, review edits, and manage formatting preservation before finalizing documents.

What is the best way to preserve formatting when editing DOCX files?

The best way to preserve formatting when editing DOCX files is through deterministic scripting that manages code-level constructs for lists, tables, and images. This ensures structural integrity during collaborative workflows and redlining.

Does the docx library support inserting tables and images into Word documents?

Yes, the docx library supports inserting tables and images into Word documents. It treats these as code-level constructs, allowing precise control over document formatting and layout during automated generation and editing.

What do I need to set up before automating DOCX creation in JavaScript?

Before automating DOCX creation in JavaScript, you need a compatible environment with the defusedxml and lxml dependencies installed. This setup supports secure XML parsing and manipulation required for deterministic document workflows.

Why use deterministic scripting for DOCX generation instead of manual editing?

Deterministic scripting for DOCX generation ensures consistent formatting and reproducible document outputs across teams. It eliminates manual errors by treating formatting, tracked changes, and comments as reliable code-level constructs.