docx

Create and edit .docx files with XML-level modifications and tracked changes.

Updated Jun 19, 2026
One-click install
npx skills add https://github.com/MuhammadUA/Axe --skill docx-muhammadua
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/MuhammadUA/Axe/tree/main/.kortix/opencode/skills/GENERAL-KNOWLEDGE-WORKER/docx
Command: npx skills add https://github.com/MuhammadUA/Axe --skill docx-muhammadua

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lxml, and includes scripts (resource) components.

What problem does it solve?

Manually creating, editing, and converting Word documents is time-consuming and error-prone, especially when working with XML structure, tracked changes, or cross-format conversions.

Core Features & Use Cases

  • Document Creation from Scratch: Build professional .docx files programmatically using the docx npm module, with support for custom typography, tables, images, hyperlinks, page breaks, and table of contents.
  • XML-Level Document Editing: Modify existing Word documents by unpacking to raw XML, making precise changes, and repacking, with full support for tracked changes, comments, and formatting preservation.
  • Format Conversion & Content Extraction: Convert PDFs or legacy .doc files to editable .docx format, extract plain text with pandoc, and export document pages as images for review.
  • Use Case: A content team can use this skill to convert a PDF research report to an editable Word document, add editorial comments to the methodology section, accept all tracked changes, and export key pages as JPEG images for stakeholder review.

Quick Start

Use the docx skill to convert the attached PDF report 'q3-research.pdf' to an editable Word document, add editorial comments to the methodology section, and export the first three pages as JPEG images for the team review.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I convert a PDF to an editable Word document?

Converting PDF to an editable Word document is supported natively by this skill through cross-format migration. It transforms the PDF content into an editable .docx file, allowing subsequent text extraction or structural modification.

Can I modify the XML structure of an existing Word document directly?

Modifying the XML structure of an existing Word document is possible by unpacking the .docx file to raw XML, making precise changes, and repacking it. This approach preserves formatting, tracked changes, and comments during XML-level document editing.

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

Accepting tracked changes and adding comments programmatically requires XML-level document modification. The skill unpacks the Word document to raw XML, applies tracked change management and editorial comments, and repacks the file with formatting preserved.

Does this approach require lxml to edit Word documents?

Yes, lxml is required as a dependency to edit Word documents at the XML level. The skill relies on this library to unpack, parse, modify, and repack the raw XML structure of .docx files during document automation workflows.

What is the best way to extract plain text from a Word document for review?

Extracting plain text from a Word document is best handled using pandoc for content extraction. The skill leverages pre-installed sandbox tools to pull plain text from .docx files, and can also export document pages as JPEG images for stakeholder review.

Can I build a Word document from scratch with tables, images, and a table of contents?

Building a Word document from scratch with tables, images, hyperlinks, and a table of contents is fully supported. The skill constructs professional .docx files programmatically, allowing custom typography and page breaks to eliminate manual formatting errors.