docx

Create and edit Word documents with headings, TOC, and tracked changes.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/leogomez74/studio --skill docx-leogomez74
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/leogomez74/studio/tree/main/.agents/skills/docx
Command: npx skills add https://github.com/leogomez74/studio --skill docx-leogomez74

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml.

What problem does it solve?

Word document workflows are manual, error-prone, and time-consuming when creating, formatting, inserting media, or updating tracked changes. This skill automates these tasks across Word documents to streamline professional writing.

Core Features & Use Cases

  • Create new .docx documents with consistent formatting (headings, TOC, page numbers) and branding.
  • Read, edit, and reorganize content in existing Word docs, including images and find/replace.
  • Manage tracked changes and comments, or convert content into polished Word documents.

Quick Start

Create a polished Word document from a draft content block with proper heading structure and a table of contents.

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 formatting?

You can automate Word document creation to draft professional reports, letters, and proposals with consistent formatting, structured headings, and table of contents integration. It enforces .docx compatibility while streamlining formatting workflows.

Can I edit existing .docx files and insert images programmatically?

Editing existing .docx files programmatically allows you to reorganize content, perform find/replace operations, and insert images with validation. It safely updates Word documents while maintaining formatting and media integrity.

Does this document automation approach support tracked changes and comments?

Document automation supports managing tracked changes and comments within Word files. You can programmatically add, review, or resolve revisions and annotations to streamline collaborative editing workflows safely.

What's the best way to generate a Word document with a table of contents?

Generating a Word document with a table of contents requires structured headings and automated page numbering. Document automation tools enforce .docx compatibility to build polished reports, templates, and proposals with proper TOC formatting.

Do I need lxml or defusedxml dependencies to process Word documents?

Processing Word documents programmatically relies on lxml and defusedxml dependencies to parse and validate XML structures safely. These libraries ensure secure .docx file manipulation and prevent XML-based vulnerabilities.

Are there limitations when automating Word formatting for large reports?

Automating Word formatting for large reports requires valid .docx structures and proper heading hierarchies. Complex formatting, tracked changes, and media integration may face limitations if the source content lacks consistent structure or XML compatibility.