docx

Generate, convert, and modify Microsoft Word .docx files via OOXML structure.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/pycode4micro/bushserver --skill docx-pycode4micro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/pycode4micro/bushserver/tree/main/src/bushserver/seeds/skills/package/docx
Command: npx skills add https://github.com/pycode4micro/bushserver --skill docx-pycode4micro

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps you reliably generate, convert, and modify Microsoft Word documents (.docx) without breaking formatting, structure, or tracked-change semantics.

Core Features & Use Cases

  • Create and format DOCX documents: Generate new .docx files (including headings and tables of contents) with consistent layout rules.
  • Edit existing DOCX safely: Unpack the DOCX, edit the underlying WordprocessingML XML, then repack and validate/repair common issues.
  • Work with tracked changes and comments: Insert deletions/insertions with proper OOXML patterns and add Word comments via XML markers and relationship/content-type updates.
  • Image and conversion workflows: Convert legacy .doc to .docx, convert DOCX to PDF for previewing, and convert PDF pages to images when needed.

Quick Start

Use the docx skill to edit the attached Word file 'proposal.docx' by replacing a specific section while preserving formatting and tracked changes.

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

Generate Word documents with tables of contents by building the underlying OOXML structure to ensure consistent layout rules and correct heading formatting. This Skill creates new .docx files directly while maintaining document integrity.

Can I edit an existing .docx file without breaking its formatting?

Edit existing .docx files safely by unpacking the document, modifying the underlying WordprocessingML XML, and repacking with built-in validation and repair safeguards. This process preserves the original formatting and overall document integrity.

How do I insert tracked changes and comments into a DOCX file?

Insert tracked changes and comments into DOCX files using proper OOXML patterns for deletions and insertions. The Skill adds Word comments via XML markers and updates the necessary relationships and content-types to maintain document semantics.

What is the best way to convert a legacy .doc file to .docx?

Convert legacy .doc files to .docx by transforming the document into the correct OOXML structure. This Skill manages the conversion workflow and can also convert DOCX to PDF for previewing or PDF pages to images when needed.

Does this approach support inserting images into Word documents?

Yes, image insertion into Word documents is supported by editing the underlying OOXML structure. This Skill integrates images into the document workflow while maintaining correct formatting and validating the final .docx file.

Why does my DOCX document break after editing the XML?

DOCX documents often break when WordprocessingML XML is edited incorrectly without updating content relationships. This Skill applies validation and repair safeguards during the unpack, edit, and repack process to prevent formatting and structure corruption.