docx

Create, read, and edit Word documents from DOCX inputs using Python scripts.

4|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/fysoul17/one-query-v1 --skill docx-fysoul17
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/fysoul17/one-query-v1/tree/main/.agents/skills/docx
Command: npx skills add https://github.com/fysoul17/one-query-v1 --skill docx-fysoul17

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables automation for Word documents, allowing you to create, read, edit, and format .docx files programmatically to save time and ensure consistency.

Core Features & Use Cases

  • Create new documents with consistent styling and formatting.
  • Read and edit existing documents, including handling tracked changes and comments.
  • Validate, repair, and repackage Word content from unpacked XML to DOCX formats for repeatable pipelines.

Quick Start

Create a polished Word document from input data and return it as a .docx file.

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 editing from existing DOCX files?

Yes, you can read and edit existing Word documents including tracked changes and comments. The Skill unpacks the DOCX XML content, applies modifications using lxml, and repackages it back into a valid DOCX format.

What's the best way to programmatically validate and repair Word document XML?

The best way to validate and repair Word document XML is using Python scripts with defusedxml and lxml. These libraries parse the unpacked DOCX XML structure to ensure it is well-formed, repair inconsistencies, and repackage it into a valid DOCX file.

Does this approach for automating DOCX formatting work with complex documents like resumes and reports?

Yes, this approach works with formatting-heavy documents like resumes and reports. It applies consistent styling and formatting by directly manipulating the underlying XML content, ensuring repeatable pipelines for generating polished Word documents.

Why do I need lxml and defusedxml to manipulate Word document content?

You need lxml for fast, standards-compliant XML processing and defusedxml to safely parse untrusted XML structures within DOCX files. Together they allow Python scripts to securely validate, unpack, and repack Word document content without vulnerabilities.

Can I build a repeatable pipeline to generate formatted Word documents from input data?

Yes, you can build a repeatable pipeline to generate formatted Word documents. The Skill uses Python scripts to unpack DOCX XML, apply consistent formatting and edits, and repackage the output, returning a polished .docx file from your input data.