docx

Automate Word document creation, editing, and formatting for .docx files.

17|3|Updated Nov 21, 2025
One-click install
npx skills add https://github.com/archubbuck/workspace-architect --skill docx-archubbuck
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/archubbuck/workspace-architect/tree/main/assets/skills/docx
Command: npx skills add https://github.com/archubbuck/workspace-architect --skill docx-archubbuck

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml, Pillow.

What problem does it solve?

The docx skill streamlines the creation, reading, editing, and formatting of Word documents (.docx), reducing manual steps and ensuring consistent structure.

Core Features & Use Cases

  • Automates DOCX creation, editing, and formatting with consistent styles and structure.
  • Supports inserting or replacing images, tables, and other rich content inside Word docs.
  • Handles tracked changes and comments to support review workflows and professional document production.

Quick Start

Create a well-formatted Word document from the provided content with headings, tables, and images.

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 with formatting and images?

Automating Word document generation is handled by applying consistent styles, structured headings, tables, and image placement directly into .docx files. This reduces manual formatting steps and ensures professional structure across letters, reports, and templates.

Can I add tracked changes and comments to a docx file programmatically?

Tracked changes and comments are supported within .docx files to facilitate review workflows and professional document production. You can programmatically insert, edit, and manage these review elements alongside standard text and rich content formatting.

Does this docx automation approach work with existing Word templates?

Existing Word templates are fully supported for reading, editing, and formatting .docx files. You can programmatically populate templates with dynamic content, replace images, and generate tables of contents while maintaining the original document's defined styles.

Do I need Pillow and lxml to automate document formatting in Word?

Yes, Pillow and lxml are required dependencies for processing Word documents, handling image placement, and parsing XML structures within .docx files. The defusedxml dependency is also used to securely manage the underlying XML document structure.

What is the best way to insert and replace images inside a Word document?

The best way to insert or replace images inside a Word document is by using automated .docx manipulation that leverages Pillow for image processing. This ensures images, tables, and other rich content are placed accurately within the document structure.

Why does my automated Word document lose formatting when generating tables of contents?

Losing formatting when generating tables of contents usually happens when heading styles are not consistently applied before automation. Proper .docx generation requires enforcing structured headings and consistent styles prior to building the table of contents.