docx

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation, editing, and manipulation of Word documents (.docx files), enabling users to produce polished, professional documents with complex formatting.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using JavaScript (docx-js).
  • Document Editing: Modify existing .docx files by unpacking, editing XML, and repacking.
  • Tracked Changes: Add, accept, or reject tracked changes and comments using specific scripts.
  • Use Case: Automatically generate a client report with custom headers, footers, tables of contents, and specific styling, all from a structured data input.

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 automate Word document generation with complex formatting like tables and headers?

Automate Word document generation by using JavaScript and Python scripts to create .docx files with complex formatting, including custom headers, footers, and tables of contents from structured data inputs.

Can I edit an existing .docx file programmatically without losing its original styling?

Edit existing .docx files programmatically by unpacking the document, modifying its underlying XML structure, and repacking it, which preserves the original styling while applying targeted updates.

How do I accept tracked changes and add comments to a Word document automatically?

Accept tracked changes and add comments to Word documents automatically by executing specific scripts designed to manipulate revision marks and annotations within the .docx file structure.

Does this document editing approach require installing dependencies like pandoc and LibreOffice?

This document editing approach requires installing dependencies like pandoc, LibreOffice, and poppler-utils to handle format conversion and process .docx files effectively.

What is the best way to convert .docx files to other formats using scripts?

The best way to convert .docx files is by leveraging pandoc and LibreOffice within the script environment, enabling seamless transformation between Word documents and other file formats.

Why use XML manipulation for document editing instead of standard word processing libraries?

XML manipulation for document editing allows precise, granular control over the .docx file structure, handling complex formatting and tracked changes that standard libraries often cannot access directly.