docx

Create and edit Word documents with Python and JavaScript libraries.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

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

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch using JavaScript libraries, including complex layouts, tables, lists, and styles.
  • Content Editing: Modify existing .docx files by unpacking, editing XML, and repacking, including handling tracked changes and comments.
  • Format Conversion: Convert between document formats (e.g., .doc to .docx) and extract content into other formats (e.g., .docx to .md).
  • Use Case: Automatically generate a monthly report in .docx format with a table of contents, specific formatting, and embedded images, based on data provided by the user.

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 specific formatting and tables?

Automating Word document generation involves using Python and JavaScript libraries to create .docx files from scratch, applying specific formatting, tables, lists, and styles directly. This approach handles complex layouts and embedded images automatically.

Can I edit existing .docx files by unpacking and modifying XML directly?

Editing existing .docx files by unpacking and modifying XML directly is fully supported. You can manipulate the underlying XML structure, validate it against schemas, and repack the file to handle tracked changes and comments.

What is the best way to convert .doc files to .docx or extract .docx content to markdown?

The best way to convert .doc files to .docx or extract .docx content to markdown is using format conversion tools like pandoc and LibreOffice. These dependencies transform and extract document content into various polished formats.

Does this approach support inserting, replacing images, and performing find-and-replace operations in .docx?

Inserting, replacing images, and performing find-and-replace operations in .docx files are core supported features. The process manipulates document content programmatically to update text and media without manual intervention.

Do I need LibreOffice and Poppler installed to convert and manipulate Word documents?

LibreOffice and Poppler are required dependencies for converting and manipulating Word documents. LibreOffice handles format conversions like .doc to .docx, while Poppler assists in rendering and extracting document content.