docx

Create and edit DOCX files with tracked changes and comments.

1|Updated May 13, 2026
One-click install
npx skills add https://github.com/wtgoku-create/PopiStudio --skill docx-wtgoku-create
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/wtgoku-create/PopiStudio/tree/main/SKILLs/docx
Command: npx skills add https://github.com/wtgoku-create/PopiStudio --skill docx-wtgoku-create

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you reliably create, edit, and analyze Microsoft Word (.docx) documents—especially when you need professional tracked changes, comments, and precise formatting preservation.

Core Features & Use Cases

  • Create new DOCX documents using a DOCX authoring workflow (docx-js) with proper structure and styling guidance.
  • Edit existing DOCX files by unpacking to OOXML, applying deterministic edits, and repacking back into a valid .docx.
  • Implement tracked changes & comments (redlining) using a structured “redlining workflow” with batching, RSID handling, and validation-oriented patterns.
  • Extract text for lightweight analysis via conversion to Markdown (e.g., with pandoc), or perform deep inspection with raw OOXML/XML access when you need comments, structure, and metadata.

Quick Start

Use the docx skill to convert an existing .docx file into a version that applies a set of tracked changes with comments, then repack it into a valid .docx you can open in Word.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I add tracked changes and comments to an existing DOCX file?

To add tracked changes and comments to a DOCX file, you unpack the file to OOXML, apply deterministic edits using proper ins/del patterns and RSID handling, then repack it into a valid .docx with validated redlining.

Can I extract text from a DOCX file for lightweight analysis without losing structure?

Yes, you can extract text from a DOCX file for lightweight analysis by converting it to Markdown using pandoc, or by performing deep inspection through raw OOXML and XML access to retrieve comments, structure, and metadata.

What is the best way to programmatically create a new Word document with proper styling?

The best way to create a new Word document with proper styling is using a structured DOCX authoring workflow that ensures correct document structure, valid OOXML generation, and consistent formatting guidance.

Does editing OOXML directly preserve the original formatting when repacking a DOCX file?

Editing OOXML directly preserves original formatting by applying deterministic edits to the unpacked XML structure and validating the repacked .docx, ensuring careful formatting preservation throughout the workflow.

Do I need pandoc and libreoffice installed to convert and inspect DOCX files?

Yes, you need pandoc for Markdown conversion and text extraction, libreoffice for document processing, poppler-utils for PDF utilities, and defusedxml for safe XML validation during DOCX unpacking and repacking workflows.

Why do my tracked changes show errors when opening a modified DOCX in Word?

Tracked changes show errors in Word if the OOXML lacks proper validation or correct ins/del patterns and RSID handling, which this redlining workflow ensures by applying structured batching and validation-oriented patterns.