docx

Create, edit, and analyze .docx files with Python and JavaScript.

Updated Feb 15, 2026
One-click install
npx skills add https://github.com/Dino-Stark/generic-agent-core --skill docx-dino-stark
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Dino-Stark/generic-agent-core/tree/main/.trae/skills/docx
Command: npx skills add https://github.com/Dino-Stark/generic-agent-core --skill docx-dino-stark

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill automates the creation, editing, and analysis of Word documents (.docx files), eliminating manual formatting and content manipulation tasks.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch using JavaScript and the docx-js library, including complex formatting like tables, lists, and headers.
  • Document Editing: Modify existing .docx files by unpacking, editing XML, and repacking, including accepting tracked changes and adding comments.
  • Content Extraction & Conversion: Extract text, convert documents to images, and manage tracked changes.

Quick Start

Use the docx skill to create a new Word document with a title and a heading.

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 lists?

Automate Word document generation by using JavaScript and the docx-js library to create .docx files from scratch, applying complex formatting like tables, lists, and headers without manual formatting.

Can I add comments or accept tracked changes in an existing .docx file programmatically?

Yes, you can edit existing .docx files by unpacking the document, modifying the underlying XML to manage tracked changes and add comments, and then repacking the file.

What's the best way to extract text from a .docx file or convert it to images?

Extract text from .docx files and convert documents to images using integrated tools like Poppler and LibreOffice, streamlining content extraction and document conversion workflows.

Do I need pandoc and LibreOffice installed to edit Word documents with this approach?

Yes, full functionality for creating, editing, and converting Word documents requires pandoc, docx-js, LibreOffice, and Poppler to be installed in your environment.

How does modifying XML content handle tracked changes in Word documents?

Modifying XML content handles tracked changes in Word documents by unpacking the .docx file structure, directly editing the XML markup to accept or reject revisions, and repacking the archive.

When do I need to convert .docx files to other formats using document conversion tools?

Convert .docx files to other formats when you need to extract content for analysis, generate document images for previews, or export text using pandoc and LibreOffice.