docx

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

415|49|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/Darwin-Agent/HarnessX --skill docx-darwin-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Darwin-Agent/HarnessX/tree/main/extensions/skills/docx
Command: npx skills add https://github.com/Darwin-Agent/HarnessX --skill docx-darwin-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automates end-to-end Word document creation, editing, and formatting to save time and ensure consistent, publication-ready .docx outputs.

Core Features & Use Cases

  • Create new documents with custom headers/footers, page layouts, and formatting.
  • Read, modify, and transform existing .docx files, including image insertion, table editing, find-and-replace, and content reorganization.
  • Extract, analyze, and convert content into polished Word documents suitable for reports, templates, or letters.

Quick Start

Generate a ready-to-deliver Word document from a brief outline and formatting requirements.

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 with custom headers and footers?

Automate Word document creation by defining page layouts, headers, footers, and formatting rules to generate professional .docx outputs. The pipeline validates inputs, orchestrates content insertion, and applies templates to ensure consistent, publication-ready results without manual editing.

Can I modify an existing .docx file to add images and edit tables?

Yes, modifying an existing .docx file supports image insertion, table editing, find-and-replace, and content reorganization. The Skill reads and transforms the document structure, handling content transformations while validating inputs to maintain correctness and reproducibility.

What's the best way to convert content into a formatted Word report?

The best way to convert content into a formatted Word report is to extract, analyze, and reorganize the source material through an automated docx pipeline. This process applies custom formatting, page layouts, and templates to produce polished documents suitable for professional reporting.

Does this Word automation approach work with lxml and defusedxml dependencies?

This Word automation approach integrates lxml and defusedxml to process XML structures within .docx files safely. These dependencies enable robust parsing, content transformation, and secure document manipulation while orchestrating the formatting pipeline for reproducible outputs.

Are there limitations when using automated document formatting for templates?

Automated document formatting for templates requires structured input validation to ensure correctness, so unstructured text or incompatible XML elements may cause processing failures. Complex layout requirements must be explicitly defined in the formatting pipeline to achieve the desired reproducible .docx output.

Do I need predefined templates to generate ready-to-deliver Word documents?

No, predefined templates are not strictly required to generate ready-to-deliver Word documents. You can provide a brief outline and specific formatting requirements, and the pipeline will validate inputs, apply custom page layouts, and orchestrate content creation to produce a polished .docx file.