docx

Create, edit, and analyze Word documents via XML manipulation and docx-js.

229|5|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/760485464/qyclaw --skill docx-760485464
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/760485464/qyclaw/tree/main/skills-builtin/docx
Command: npx skills add https://github.com/760485464/qyclaw --skill docx-760485464

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automates Word document creation, editing, and analysis to reduce manual toil and ensure consistent, well-formatted outputs across teams.

Core Features & Use Cases

  • DOCX creation, editing, and analysis via a robust workflow that unpacks the .docx, edits its XML, and repacks it.
  • Use cases include drafting reports, embedding images, applying professional styles, and exporting content to polished Word documents from prompts.
  • Supports tracking changes, comments, and templates to standardize document workflows.

Quick Start

Create a new .docx document named Sample.docx with a formatted title and body text.

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 from prompts?

Automate Word document creation by using a workflow that unpacks the .docx ZIP, manipulates its XML, and repacks it. This enables you to draft reports, apply professional headings, and embed images directly from prompts.

Can I extract content and track changes from an existing .docx file?

You can extract content and track changes from an existing .docx file by unpacking the archive and parsing the underlying XML. This allows you to analyze document workflows, including comments and tracked revisions.

Does this approach support converting Word documents with soffice and pandoc?

Yes, document workflows support optional conversion and validation via soffice and pandoc. This ensures you can export and validate polished Word documents across various professional formats.

What is the best way to edit a .docx file without breaking its formatting?

The best way to edit a .docx file without breaking formatting is through direct XML manipulation. By unpacking the ZIP, modifying the XML structure, and repacking it, you preserve styles, tables, and images.

Do I need lxml and defusedxml to process Word documents?

You need lxml and defusedxml dependencies to securely process Word documents. These libraries handle XML parsing and manipulation, which are essential for reading, editing, and analyzing .docx content.

How do I create a new .docx with formatted titles and body text?

Create a new .docx with formatted titles and body text using docx-js. This allows you to generate professional Word documents with structured headings, tables, and body text from start to finish.