docx

Create and edit Microsoft Word .docx files using Python and JavaScript libraries.

1|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/LISANG3/Larj --skill docx-lisang3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/LISANG3/Larj/tree/main/skills/.agents/skills/docx
Command: npx skills add https://github.com/LISANG3/Larj --skill docx-lisang3

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill streamlines the creation, editing, and analysis of Microsoft Word documents (.docx files), eliminating the need for manual formatting and complex operations.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using JavaScript libraries.
  • Document Editing: Modify existing .docx files by unpacking, editing XML, and repacking.
  • Tracked Changes: Add, accept, or reject tracked changes and comments using specific tools.
  • Use Case: Automatically generate a professional report with a table of contents, specific formatting, and tracked changes based on provided data.

Quick Start

Use the docx skill to create a new document with a title and two headings.

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 generation with tracked changes and custom styles?

Automate Word document generation by using Python and JavaScript libraries to create .docx files from scratch, insert images, apply custom styles, and manage tracked changes without manual formatting.

Can I edit existing .docx files by modifying their XML content directly?

Yes, you can edit existing .docx files by unpacking the document, modifying the underlying XML content directly, and repacking it to update text, headers, footers, and tables of contents.

Does this approach support converting Word documents to other formats using pandoc and LibreOffice?

Yes, document conversion between formats is supported using pandoc and LibreOffice dependencies, allowing you to transform generated or edited .docx files into various target formats.

What is the best way to perform find-and-replace operations and insert images in a .docx file?

The best way to perform find-and-replace operations and insert images in a .docx file is using dedicated document editing libraries that unpack the XML, apply modifications programmatically, and repack the document.

Do I need Python and JavaScript libraries to manage tables of contents and headers in Word documents?

Yes, you need Python and JavaScript libraries to programmatically manage advanced Word document features like generating tables of contents, configuring headers and footers, and applying custom styles.

How does tracked changes management work when editing Word documents programmatically?

Tracked changes management works by using specific tools to programmatically add, accept, or reject tracked changes and comments within the .docx XML structure during document editing.