docx

Create and edit .docx files with JavaScript and docx-js.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/Jaydpatel01/.github --skill docx-jaydpatel01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Jaydpatel01/.github/tree/main/skills/docx
Command: npx skills add https://github.com/Jaydpatel01/.github --skill docx-jaydpatel01

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx, pandoc, soffice.py, unpack.py, pack.py, validate.py, accept_changes.py, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the creation, editing, and manipulation of Microsoft Word (.docx) documents, automating complex formatting and content management tasks.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch using JavaScript and docx-js.
  • Content Editing: Modify existing .docx files by unpacking, editing XML, and repacking.
  • Tracked Changes: Accept or manage tracked changes within documents.
  • Format Conversion: Convert between .doc and .docx, and extract content to Markdown.
  • Use Case: Generate a professional report with custom headers, footers, tables of contents, and specific styling, or automatically accept all tracked changes from a collaborator.

Quick Start

Use the docx skill to create a new 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 generate a Word document with custom formatting and headers?

Edit existing .docx files by unpacking them to directly manipulate the underlying XML structure, then repacking the document to save the modified content and formatting.

How can I automatically accept tracked changes in a .docx file?

Convert legacy .doc formats to .docx and extract document content to Markdown by utilizing pandoc and soffice, enabling format migration and text extraction for downstream processing.

What is the best way to edit existing .docx file content programmatically?

Edit existing .docx files by unpacking them to directly manipulate the underlying XML structure, then repacking the document to save the modified content and formatting.

Can I convert legacy .doc files to .docx and extract content to Markdown?

Convert legacy .doc formats to .docx and extract document content to Markdown by utilizing pandoc and soffice, enabling format migration and text extraction for downstream processing.

Do I need pandoc and soffice to handle Word document format conversions?

Yes, format conversions between .doc and .docx, along with content extraction to Markdown, rely on the pandoc and soffice dependencies to process legacy file types.

How does direct XML manipulation work when editing Word documents?

Direct XML manipulation unpacks the .docx file structure to expose raw markup, allowing targeted edits to elements like styles and tracked changes before repacking the file.