docx

Create and edit .docx files by modifying their underlying ZIP/XML structure.

7|2|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/MRWillisT/PullNexus --skill docx-mrwillist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/MRWillisT/PullNexus/tree/main/skills/docx
Command: npx skills add https://github.com/MRWillisT/PullNexus --skill docx-mrwillist

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill solves the problem of reliably creating and editing Word (.docx) documents without breaking formatting, structure, or layout details.

Core Features & Use Cases

  • Create and edit .docx files: Build new Word documents or unpack, modify, and repack existing ones while preserving valid DOCX structure.
  • Convert and extract content: Extract text (including tracked changes) and convert legacy .doc files to .docx before editing.
  • Control professional formatting: Apply Word-friendly conventions for page size, headings, tables, images, hyperlinks, footnotes, and table of contents.

Quick Start

Use the docx skill to convert and edit the document 'proposal.docx' into a polished version with updated headings, a table of contents, and embedded images.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I generate a Word document with a table of contents and images?

Generate Word documents by creating and modifying the underlying XML structure to embed images, format headings, and build a table of contents. The skill enforces valid DOCX structure so the final output renders correctly in Word.

Can I convert and extract text from a legacy .doc file?

Yes, you can extract text including tracked changes and convert legacy .doc files to .docx format. This conversion happens before unpacking and modifying the document to ensure structural integrity.

How does tracked changes acceptance work when editing a .docx file?

Tracked changes are handled by unpacking the DOCX ZIP archive, modifying the underlying XML to safely accept edits, and repacking the file. This approach preserves formatting constraints and prevents document corruption.

What is the best way to edit Word documents without breaking page sizing or layout?

The best way to edit Word documents without breaking layout is by validating the DOCX structure and enforcing constraints for page sizing and XML whitespace. This ensures deterministic office-document operations.

Does this approach support adding structured formatting like footnotes and hyperlinks?

Yes, applying structured formatting like footnotes, hyperlinks, and tables is supported. The skill validates DOCX structure while applying Word-friendly conventions for these elements.

Why does my Word document break after modifying the underlying XML?

Documents break when XML whitespace constraints or page sizing rules are violated. The skill prevents this by validating the DOCX structure and enforcing safe tracked-change and comment edits during repacking.