docx

Create, edit, and validate DOCX Word documents with OOXML structure.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/remiconnesson/insights-garden --skill docx-remiconnesson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/remiconnesson/insights-garden/tree/main/.agents/skills/docx
Command: npx skills add https://github.com/remiconnesson/insights-garden --skill docx-remiconnesson

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml, libreoffice, pandoc, gcc, git, and includes scripts (resource) components.

What problem does it solve?

This Skill removes the friction of working with Word documents by helping you create, inspect, edit, convert, and validate .docx files without manually wrestling with XML or formatting glitches.

Core Features & Use Cases

  • Document creation: Build polished Word files with consistent headings, tables, images, footers, and page layout.
  • Document editing and analysis: Read existing .docx content, unpack and repack files, manage tracked changes, and add or update comments.
  • Reliable document workflows: Convert legacy .doc files, turn documents into PDFs or images, and validate OOXML structure so outputs stay clean and compatible.
  • Use case: A report, memo, or letter can be assembled from source content, formatted professionally, and returned as a ready-to-share Word document.

Quick Start

Use the docx skill to turn the attached draft into a professionally formatted Word document with headings, tables, tracked changes, and comments preserved.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I create Word documents with tracked changes and comments from source content?

This skill creates Word documents with tracked changes and comments by generating and formatting .docx files from source content. It preserves revisions, headings, tables, and footers while validating OOXML structure for professional reports.

What is the best way to convert legacy .doc files to PDF or images while preserving formatting?

The best way to convert legacy .doc files to PDF or images while preserving formatting is using LibreOffice and pandoc. The skill handles document conversion workflows to ensure outputs remain clean and compatible across formats.

Can I edit Word document XML directly to fix formatting glitches without breaking the file structure?

Yes, you can edit Word document XML directly. The skill unpacks .docx files for XML-level editing using lxml and defusedxml, then repacks clean documents safely while validating OOXML structure to prevent formatting glitches.

Does this Word document validation approach require LibreOffice and pandoc to run?

Yes, Word document validation requires LibreOffice and pandoc, along with defusedxml, lxml, gcc, and git. These dependencies preserve formatting, validate OOXML structure, and repack clean documents safely.

Why does my Word document lose formatting when I unpack and repack the .docx file?

Your Word document loses formatting when unpacking and repacking .docx files if the OOXML structure is not properly validated. The skill uses lxml and defusedxml to inspect and repack documents safely, preventing formatting loss.