docx

Create, edit, and analyze .docx files using JavaScript and Python libraries.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/chacha95/advanced-harness --skill docx-chacha95
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/chacha95/advanced-harness/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/chacha95/advanced-harness --skill docx-chacha95

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx, pandoc, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation, editing, and analysis of Word documents (.docx), saving significant time on repetitive document generation and manipulation tasks.

Core Features & Use Cases

  • Programmatic Document Creation: Generate .docx files from scratch using JavaScript with the docx-js library, including complex formatting like tables, lists, and headers/footers.
  • Document Editing: Modify existing .docx files by unpacking, editing XML, and repacking, including handling tracked changes and comments.
  • Content Extraction & Conversion: Utilize pandoc for text extraction and conversion, and LibreOffice for format conversions (e.g., .doc to .docx).
  • Use Case: Automatically generate a client report in .docx format, incorporating data tables, custom headers, and accepted tracked changes, all driven by a script.

Quick Start

Use the docx skill to create a new Word document with a title and a paragraph.

Frequently Asked Questions about docx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Word document programmatically with complex formatting like tables and headers?

Yes, you can edit existing Word documents by unpacking the .docx file, directly manipulating its underlying XML structure, and repacking it to modify content, styles, and document elements.

How do I accept tracked changes and add comments to an existing .docx file?

You can handle tracked changes and comments in a .docx file by unpacking the document, editing the XML to accept revisions or insert annotations, and repacking the file to finalize the updates.

Can I use pandoc to extract text and convert Word documents to other formats?

Yes, you can utilize pandoc for text extraction and content conversion from Word documents, and leverage LibreOffice to convert older formats like .doc into .docx files for further processing.

Do I need JavaScript and Python environments to automate document generation and editing?

Yes, automating document generation and editing requires both environments, using JavaScript with the docx-js library for creation and Python libraries for manipulating XML and handling format conversions.

What is the best way to automate generating a client report in .docx format with data tables?

The best way to automate client report generation is by running a script that uses the docx-js library to programmatically build a .docx file, incorporating custom data tables, headers, and accepted tracked changes.