docx

Generate, read, edit, and convert DOCX files with OOXML validation.

1|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/pferretti99/learnshareremix-2026-labcamp-cursor-vs-copilot --skill docx-pferretti99
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/pferretti99/learnshareremix-2026-labcamp-cursor-vs-copilot/tree/main/skills/anthropic-official/skills/docx
Command: npx skills add https://github.com/pferretti99/learnshareremix-2026-labcamp-cursor-vs-copilot --skill docx-pferretti99

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, npm install -g docx, LibreOffice (soffice), pdftoppm, python, gcc, and includes scripts (resource) components.

What problem does it solve?

This Skill removes friction when you need to generate, transform, or surgically edit Microsoft Word documents while preserving formatting and tracked changes correctness.

Core Features & Use Cases

  • DOCX creation: Build new .docx files with structured layout (headings, tables, page size, headers/footers, hyperlinks, TOC).
  • DOCX editing & analysis: Unpack a DOCX into XML, modify content safely (including tracked changes/comments), then repack and validate.
  • Conversion & sanitation: Convert legacy .doc to .docx, extract text to Markdown, and convert document pages/images for downstream workflows.
  • Use Case: Turn a messy “draft-with-comments” Word file into a polished, TOC-ready report by extracting its content, updating headings and tables, adding comments where needed, and producing a validated clean .docx output.

Quick Start

Use the docx skill whenever the user asks you to produce or modify a .docx Word document with formatting, tables, headings/TOC, tracked changes, or comments.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I edit a Word document while preserving tracked changes and formatting?

To convert a legacy .doc file to .docx, you can use LibreOffice-based conversion tools to sanitize and modernize the document format while extracting its content for downstream workflows.

Can I generate a Word report with tables, headings, and a table of contents?

Yes, you can generate a .docx file with structured layout including headings, formatted tables, page size definitions, headers/footers, hyperlinks, and an automated table of contents.

Does converting DOCX to Markdown require Pandoc or LibreOffice?

Extracting text from DOCX to Markdown uses Pandoc and LibreOffice (soffice) for conversion, alongside pdftoppm for converting document pages and images for downstream workflows.

What's the best way to extract and reorganize content from a messy Word draft?

The best way to extract and reorganize content from a messy draft is to unpack the DOCX into its underlying XML, modify the content directly, and repack it into a polished, validated clean .docx output.

Why does modifying OOXML directly in a Word document require validation?

Modifying OOXML directly requires validation because unpacking, editing, and repacking a DOCX without structural correctness checks can corrupt page layout details, formatting, and tracked-change safety.