docx

Create, edit, and analyze .docx files with tracked changes and formatting preservation.

27|6|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/5kahoisaac/opencode-configs --skill docx-5kahoisaac
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/5kahoisaac/opencode-configs/tree/main/skills/docx
Command: npx skills add https://github.com/5kahoisaac/opencode-configs --skill docx-5kahoisaac

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation, editing, and analysis of professional Word documents, handling complex formatting, tracked changes, and comments efficiently.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using JavaScript/TypeScript.
  • Content Editing: Modify existing .docx files, including basic text changes and complex OOXML manipulation.
  • Tracked Changes (Redlining): Implement precise tracked changes for document review and collaboration, preserving original formatting and author information.
  • Text Extraction: Convert .docx to Markdown using pandoc while preserving tracked changes.
  • Use Case: A legal team needs to review a contract. They can use this Skill to apply specific edits with tracked changes, add comments, and ensure all formatting is preserved according to company standards.

Quick Start

Use the docx skill to convert the document 'contract_v1.docx' into a markdown file with tracked changes.

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 to a Word document programmatically?

To add tracked changes to a Word document, this Skill modifies the OOXML structure directly to insert redlines while preserving original formatting and author information for professional review workflows.

Can I convert a docx file to Markdown while preserving tracked changes?

Yes, you can convert a docx file to Markdown with tracked changes preserved by using the integrated pandoc dependency to extract text and formatting accurately.

What is the best way to generate a new docx file from scratch?

The best way to generate a new docx file from scratch is using the included docx-js JavaScript library, which facilitates comprehensive document creation and complex formatting.

Does this approach require LibreOffice or pandoc to edit existing Word documents?

Editing existing Word documents relies on Python libraries and OOXML manipulation, while pandoc and LibreOffice are listed as dependencies for text extraction and format conversion tasks.

How do I extract text and comments from a docx file without losing formatting?

You can extract text and comments from a docx file without losing formatting by leveraging the defusedxml and Python OOXML libraries to parse the document structure and preserve original styles.