docx

Automates DOCX creation, XML editing, and tracked-changes management via docx-js and Python scripts.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/Jackiexiao/jackie-skills-cn-top50 --skill docx-jackiexiao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Jackiexiao/jackie-skills-cn-top50/tree/main/skills/docx
Command: npx skills add https://github.com/Jackiexiao/jackie-skills-cn-top50 --skill docx-jackiexiao

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 analysis of Microsoft Word (.docx) documents, eliminating manual formatting errors and complex XML manipulation.

Core Features & Use Cases

  • Programmatic Document Generation: Create new DOCX files from scratch using JavaScript and the docx-js library.
  • XML-based Editing: Edit existing DOCX files by directly manipulating their underlying XML structure.
  • Tracked Changes Management: Accept or reject tracked changes, and add comments using Python scripts.
  • Use Case: Automatically generate personalized legal contracts, reports, or proposals based on templates and data inputs, ensuring consistent formatting and professional presentation.

Quick Start

Use the docx skill to convert the attached file 'report_draft.docx' to a clean document with all tracked changes accepted.

Frequently Asked Questions about docx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate DOCX document generation using JavaScript?

To automate DOCX document generation with JavaScript, this Skill leverages the docx-js library to create new Microsoft Word files programmatically. It builds documents from scratch, ensuring consistent formatting for personalized reports or legal contracts based on data inputs.

What is the best way to accept tracked changes in a DOCX file?

The best way to accept tracked changes in a DOCX file is using Python scripts provided by this Skill. These scripts manage tracked changes by accepting or rejecting revisions and adding comments, automating the cleanup of collaborative documents.

How do I edit the underlying XML of an existing DOCX file?

To edit the underlying XML of an existing DOCX file, this Skill uses Python scripts for direct XML manipulation. This approach allows precise modifications to the document structure, enabling advanced editing tasks beyond standard visual formatting.

Do I need LibreOffice to convert legacy DOC formats to DOCX?

Yes, LibreOffice is required as a dependency to convert legacy DOC formats to DOCX. This Skill supports format conversion from older Word files, utilizing LibreOffice alongside Poppler and pandoc to process and modernize documents.

Can I generate legal contracts automatically from templates using docx-js?

Yes, you can generate personalized legal contracts automatically using docx-js. This Skill programmatically creates DOCX files from templates and data inputs, eliminating manual formatting errors and ensuring professional presentation.

What are the limitations of XML manipulation for DOCX editing?

XML manipulation for DOCX editing requires understanding the underlying document structure to avoid corruption. While this Skill provides detailed XML references for advanced editing, direct structural changes are complex and best suited for targeted modifications rather than full document rewrites.