docx

Create, read, edit, and format Word .docx documents.

2|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/alanharrryy-wq/hitech-os --skill docx-alanharrryy-wq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/alanharrryy-wq/hitech-os/tree/main/.agents/skills/D_worker/docx
Command: npx skills add https://github.com/alanharrryy-wq/hitech-os --skill docx-alanharrryy-wq

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The docx skill streamlines the creation, reading, editing, and formatting of Word documents (.docx), eliminating repetitive manual formatting and improving document quality.

Core Features & Use Cases

  • Create new .docx documents using docx-js templates and code samples stored in the skill.
  • Read and edit existing Word documents by unpacking the DOCX archive, manipulating the underlying WordprocessingML XML, and re-packaging.
  • Validate content, apply consistent styles, generate tables of contents, headings, and images for professional document production.

Quick Start

Create a new Word document using the included docx-js example and save it as doc.docx.

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 for report generation?

Automate Word document creation by using included docx-js templates and code samples to generate, format, and save professional .docx files programmatically. This eliminates repetitive manual formatting and streamlines report generation workflows.

Can I read and edit existing .docx files without breaking the document structure?

Read and edit existing Word documents by unpacking the .docx archive, manipulating the underlying WordprocessingML XML directly, and re-packaging the file. This approach ensures structural integrity while allowing precise content modifications.

Do I need specific XML libraries to manipulate WordprocessingML when editing docx files?

Editing .docx files via WordprocessingML XML manipulation requires defusedxml and lxml dependencies. These libraries parse and modify the internal XML structure safely during the document unpacking and re-packaging process.

What is the best way to generate tables of contents and apply consistent styles across Word documents?

Generate tables of contents and apply consistent styles programmatically using the docx skill's validation and formatting features. This ensures professional document production with standardized headings and structured content assembly.

Does this approach work for template assembly across professional documents?

Template assembly across professional documents is fully supported. The skill uses docx-js templates and code samples to validate content, apply styles, and assemble complete .docx files for professional document production.

Why does editing a Word document require unpacking and re-packaging the docx archive?

Unpacking and re-packaging the .docx archive is required because Word documents are ZIP archives containing WordprocessingML XML. Directly manipulating this underlying XML ensures accurate content edits while preserving the document's formatting and structure.