docx

Create and edit .docx files with Python and JavaScript libraries.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/nonputtipong/Oryn --skill docx-nonputtipong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/nonputtipong/Oryn/tree/main/.agent/skills/docx
Command: npx skills add https://github.com/nonputtipong/Oryn --skill docx-nonputtipong

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation and modification of Word documents, handling complex formatting, tracked changes, and content manipulation efficiently.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch using JavaScript with precise control over layout, styles, and content.
  • Document Editing: Modify existing .docx files by unpacking, editing XML, and repacking, including managing tracked changes and comments.
  • Use Case: Generate a professional report with a table of contents, custom headings, and specific page formatting, or accept all tracked changes in a collaborative document to produce a clean final version.

Quick Start

Use the docx skill to create a new Word document with the title 'Project Proposal'.

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 a table of contents and custom headings?

You can generate a Word document with a table of contents, custom headings, and page numbers using JavaScript libraries for precise layout control and content styling. This approach allows creating new .docx files from scratch with specific formatting.

How do I accept all tracked changes in a Word document programmatically?

You can accept tracked changes programmatically by unpacking the .docx file, editing the underlying XML content directly, and repacking it. This method allows managing comments and producing a clean final document version.

Can I edit XML content directly inside an existing .docx file?

Yes, you can edit XML content directly inside an existing .docx file by unpacking it, modifying the XML structure, and repacking the file. This technique enables detailed document manipulation and validation against schemas.

Do I need pandoc and libreoffice installed to manipulate Word documents?

Yes, the environment requires dependencies like pandoc, libreoffice, poppler-utils, and the docx library to handle document generation, XML editing, and format conversion tasks effectively.

What is the best way to convert content into a polished Word document?

The best way to convert content into a polished Word document is by using Python and JavaScript libraries that support unpacking, editing XML, and repacking .docx files to ensure precise formatting and layout control.