docx

Create, format, and edit Word documents from natural-language prompts.

1|1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/Randi-Agent/randi-agent --skill docx-randi-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Randi-Agent/randi-agent/tree/main/src/skills/anthropic-repo/skills/docx
Command: npx skills add https://github.com/Randi-Agent/randi-agent --skill docx-randi-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation, formatting, and editing of Word documents (.docx) from prompts, reducing manual document production time and improving consistency across outputs.

Core Features & Use Cases

  • Document creation: generate polished Word documents from structured prompts with headings, tables, and styles.
  • Editing & formatting: modify existing .docx files, insert images and tables, apply formatting, and manage tracked changes or comments.
  • Use Case: convert a rough memo into a formatted corporate report with a title page, table of contents, and consistent typography.

Quick Start

Provide a prompt describing the desired Word document and receive a ready-to-download .docx with the requested 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 generation from a natural language prompt?

You can automate Word document generation by providing a prompt describing the desired content and formatting. The Skill uses a deterministic Python-based workflow with docx manipulation and XML validation to produce a ready-to-download .docx file.

Can I insert images and tables into an existing .docx file programmatically?

Yes, you can modify existing .docx files by inserting images and tables. The Skill handles content manipulation tasks by unpacking the DOCX package, applying changes, and repackaging it with validated XML.

What is the best way to apply tracked changes and comments to a Word document?

The best way to apply tracked changes is through an automated docx editing workflow. The Skill supports adding tracked changes and comments to Word documents using Python-based tooling and natural-language prompts.

Do I need Python dependencies like lxml and defusedxml to format Word documents?

Yes, you need Python dependencies like lxml and defusedxml. These libraries handle XML validation and packaging/unpacking of DOCX files, ensuring the generated Word documents are structurally valid.

Does this docx automation tool support corporate report formatting with headers and footers?

Yes, the docx automation tool supports corporate report formatting. It can convert rough memos into formatted reports by applying consistent typography, inserting headers and footers, and generating tables of contents.

Why does my generated Word document fail to open after automated editing?

If a generated Word document fails to open, it may be due to invalid XML. This Skill uses defusedxml and lxml for XML validation and deterministic packaging to prevent structural errors in the .docx file.