docx

Create, edit, and analyze Microsoft Word .docx files with Python and JavaScript.

557|98|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/jimmc414/Kosmos --skill docx-jimmc414
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/jimmc414/Kosmos/tree/main/kosmos-reference/kosmos-claude-scientific-writer/.claude/skills/document-skills/docx
Command: npx skills add https://github.com/jimmc414/Kosmos --skill docx-jimmc414

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, docx, LibreOffice, Poppler, defusedxml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the creation, editing, and analysis of Microsoft Word (.docx) documents, eliminating manual formatting and complex XML manipulation.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using programmatic control over text, styles, tables, and formatting.
  • Document Editing: Modify existing .docx files, including applying tracked changes (redlining), adding comments, and preserving formatting.
  • Content Extraction: Extract text and analyze document structure from .docx files.
  • Use Case: A legal team needs to review a 50-page contract. They can use this Skill to automatically apply tracked changes for all proposed edits, add comments for specific clauses, and then extract the final text content for review.

Quick Start

Use the docx skill to convert the document located at '/path/to/your/document.docx' into markdown format.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automatically apply tracked changes and redlining to a Word document?

You can programmatically apply tracked changes to a Word document by manipulating the OOXML structure directly. This Skill enables automated redlining of .docx files, allowing you to insert proposed edits and add comments without manual formatting.

Can I extract text content from a .docx file for analysis?

Yes, you can extract text content from a .docx file by parsing its internal structure. This Skill supports extracting text and analyzing document formatting from Word files to support professional document processing workflows.

What is the best way to generate a Word document from scratch programmatically?

Generating a Word document programmatically is best achieved by using Python and JavaScript libraries for OOXML manipulation. This Skill automates the creation of new .docx files, offering control over text, styles, tables, and formatting.

Does this approach to Word document editing require any specific software dependencies?

Yes, programmatic Word document editing via this Skill requires specific dependencies including pandoc, LibreOffice, Poppler, and defusedxml to manipulate .docx files and convert documents into formats like markdown.

How do I convert a .docx document to markdown format?

To convert a .docx document to markdown format, you can use the Skill's integrated conversion capabilities. It leverages dependencies like pandoc to transform Word documents into markdown for easier text extraction and review.

What are the limitations of using OOXML manipulation for Word document automation?

OOXML manipulation for Word document automation requires handling complex XML structures and dependencies like LibreOffice and Poppler. While effective for generating, editing, and extracting .docx files, it may not perfectly replicate advanced Word UI features.