docx

Create, edit, and analyze Word documents with XML manipulation.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/liujiayi3703/scientific-research-skills --skill docx-liujiayi3703
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/liujiayi3703/scientific-research-skills/tree/main/library/skills/docx
Command: npx skills add https://github.com/liujiayi3703/scientific-research-skills --skill docx-liujiayi3703

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill empowers users to efficiently create, edit, and analyze Word documents (.docx) with a focus on advanced formatting and manipulation capabilities.

Core Features & Use Cases

  • Document Creation: Generate new .docx files with custom styles, tables, images, and more.
  • Document Editing: Modify existing .docx files by unpacking, editing XML, repacking, and validating.
  • Analysis: Extract text, convert to images, and accept tracked changes in .docx files.
  • Use Case: If you need to create a complex report with a table of contents, headers, footers, and images, this Skill can help you automate the process without manual formatting.

Quick Start

Use the docx skill to create a new Word document with a table of contents and headers. Save the document as 'report.docx'.

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 creation with custom styles, tables, and images?

To automate Word document creation, generate new .docx files with custom styles, tables, and images. This Skill supports advanced formatting to build complex reports with tables of contents, headers, and footers without manual formatting.

What's the best way to edit an existing .docx file by modifying its XML?

The best way to edit an existing .docx file via XML is unpacking the document, editing the XML directly, repacking, and validating. This approach enables precise manipulation of document structure and advanced formatting.

Do I need pandoc and LibreOffice installed to process and analyze .docx files?

Yes, you need pandoc and LibreOffice installed to process and analyze .docx files. The Skill integrates with docx-js, pandoc, and LibreOffice to support various operations like document creation, XML editing, and format conversion.

Can I extract text and accept tracked changes in a .docx file programmatically?

Yes, you can extract text and accept tracked changes in a .docx file programmatically. The Skill provides analysis capabilities to extract document content, convert documents to images, and process tracked changes automatically.

How does converting a .docx file to images work for document analysis?

Converting a .docx file to images for document analysis works by leveraging LibreOffice integration. This process renders document pages into image formats, enabling visual review and analysis of the document's layout and formatting.