docx

Create and edit .docx files while preserving structure, formatting, and tracked changes.

74|5|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/dralkh/seerai --skill docx-dralkh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/dralkh/seerai/tree/main/skills/docx
Command: npx skills add https://github.com/dralkh/seerai --skill docx-dralkh

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill removes the friction of working with Word documents by making it easy to create, read, edit, and validate .docx files without breaking formatting, structure, or tracked changes.

Core Features & Use Cases

  • Document Creation: Build polished reports, letters, memos, and templates with headings, tables, images, headers, footers, and page numbering.
  • Document Editing: Modify existing Word files at the XML level, including text updates, tracked changes, comments, and accepted revisions.
  • Document Analysis: Extract content from .docx or legacy .doc files, inspect raw XML, and convert documents into images or cleaned text for review.
  • Use Case: A researcher can turn a draft manuscript into a submission-ready Word document while preserving tables, citations, comments, and revision history.

Quick Start

Use the docx skill to turn the attached Word document into a polished .docx with preserved formatting, headings, tables, and tracked changes handled correctly.

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 and preserve tracked changes and comments?

To preserve tracked changes and comments when editing a .docx file, this Skill modifies raw XML directly within the OOXML structure. It validates relationships and whitespace to ensure document integrity during text updates and comment insertion.

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

Converting legacy .doc files to .docx format requires LibreOffice-based document repair workflows. This Skill processes legacy documents, unpacks the OOXML structure, validates IDs, and repacks the content into a polished .docx file.

How do I create a Word document with tables, images, and headers from scratch?

Creating a Word document with tables, images, and headers requires generating valid OOXML structures from scratch. This Skill assembles document components including headings, tables, images, headers, and footers into a properly formatted .docx file.

Can I inspect and modify the raw XML of a .docx file without breaking formatting?

Yes, you can inspect and modify raw XML within a .docx file without breaking formatting. This Skill performs XML-level editing by unpacking OOXML structures, preserving whitespace, validating relationships and IDs, and repacking the document securely.

Does this approach require LibreOffice and pandoc to handle document conversion?

Yes, handling document conversion and repair requires LibreOffice and pandoc as dependencies. These tools enable legacy .doc file conversion, document validation, and format transformation while maintaining structural integrity throughout the OOXML workflow.

Why does my Word document break after editing the XML structure manually?

Word documents break after manual XML editing due to invalid relationships, broken IDs, or whitespace corruption. This Skill prevents document damage by validating OOXML relationships, preserving whitespace, and applying LibreOffice-based repair workflows.