docx

Generate and edit .docx files with images and tracked changes.

1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/Postalocity/template-microsite --skill docx-postalocity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Postalocity/template-microsite/tree/main/.opencode/skills/anthropic-skills--docx
Command: npx skills add https://github.com/Postalocity/template-microsite --skill docx-postalocity

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the end-to-end workflow for Word documents, enabling you to create, read, edit, and format Word (.docx) files without manual steps.

Core Features & Use Cases

  • Word document creation and editing with rich formatting, image embedding, and template support.
  • Handling tracked changes and comments, including insertion, deletion, and reconciliation during review.
  • Use Case: generate a professional report or letter with consistent styling, insert images, and export as a finalized .docx.

Quick Start

Create a polished Word document by providing text and images, applying consistent styles and formatting.

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 with Python?

Automating Word document creation with Python is done by applying consistent styles, embedding text, and inserting images to generate polished .docx files without manual formatting steps.

Can I handle tracked changes and comments in a .docx file programmatically?

Tracked changes and comments in a .docx file can be handled programmatically, supporting insertion, deletion, and reconciliation during document review to automate the editing workflow.

Does this approach to Word document editing support embedded images and rich formatting?

Yes, this approach to Word document editing supports embedded images and rich formatting, allowing you to generate professional reports and letters with consistent styling directly in the .docx format.

What is the best way to generate a professional report from text and images into a Word document?

The best way to generate a professional report from text and images is to provide the content to an automated Python-based tool that applies consistent styles and exports a finalized .docx file.

Do I need lxml or defusedxml dependencies to edit Word documents programmatically?

You need lxml and defusedxml dependencies to reliably handle .docx content, as these libraries provide the XML parsing and manipulation required for document generation and editing.