docx

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

3|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/JS-mark/super-client-r --skill docx-js-mark
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/JS-mark/super-client-r/tree/main/.trae/skills/docx
Command: npx skills add https://github.com/JS-mark/super-client-r --skill docx-js-mark

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, modification, and review of professional Word documents (.docx), handling everything from initial drafting to complex tracked changes.

Core Features & Use Cases

  • Document Creation: Generate new .docx files programmatically.
  • Content Editing: Modify existing documents with precision.
  • Tracked Changes: Implement and manage revisions effectively for collaborative review.
  • Text Extraction: Convert .docx content to markdown for analysis.
  • Use Case: A legal professional needs to review a contract, propose specific edits with tracked changes, and then export the revised document.

Quick Start

Use the docx skill to create a new document with a title and a single paragraph.

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?

You can add tracked changes to a .docx file by manipulating its OOXML structure to inject revision markup. This enables collaborative review by preserving specific edits and deletions within the document.

Can I convert docx content to markdown for text analysis?

Yes, .docx content can be converted to markdown for analysis. This text extraction strips complex formatting to provide clean, structured text for automated content analysis.

Does this docx editing approach preserve original formatting?

Yes, modifying .docx files through direct OOXML manipulation preserves original formatting. This ensures structural integrity and visual consistency are maintained while applying content updates.

Do I need LibreOffice to create and edit Word documents?

LibreOffice is a required dependency for managing .docx files, alongside pandoc and poppler-utils. These tools collectively support document creation, conversion, and rendering within the workflow.

What is the best way to generate a new Word document from code?

The best way to generate a new Word document from code is using docx-js to programmatically build the file structure. This automates initial drafting and creates professional .docx files.

Why does my docx file lose formatting when extracting text?

Extracting text from a .docx file to markdown intentionally removes complex formatting to yield clean content. If formatting is lost during editing, the OOXML structure was not preserved correctly during manipulation.