docx

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

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/yuanshenjian-cn/yuanshenjian-cn --skill docx-yuanshenjian-cn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/yuanshenjian-cn/yuanshenjian-cn/tree/main/.opencode/skills/docx
Command: npx skills add https://github.com/yuanshenjian-cn/yuanshenjian-cn --skill docx-yuanshenjian-cn

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 complex document workflows by enabling AI to create, edit, analyze, and manage tracked changes within .docx files, eliminating manual drudgery and ensuring professional document handling.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using programmatic control over content and formatting.
  • Content Editing: Modify existing documents, including text replacement, formatting adjustments, and structural changes.
  • Tracked Changes & Comments: Implement detailed revisions, accept/reject changes, and add/reply to comments, crucial for collaborative or legal document review.
  • Data Extraction & Analysis: Convert .docx to Markdown for easy text extraction and analysis, preserving document structure and tracked changes.
  • Use Case: A legal team needs to review a 50-page contract. They can use this Skill to automatically apply specific edits, add comments to clauses, and track all changes made, ensuring a thorough and efficient review process.

Quick Start

Use the docx skill to convert the attached document 'contract_v1.docx' into markdown format with tracked changes enabled.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I create and edit Word documents programmatically?

To create and edit Word documents programmatically, you can generate new .docx files from scratch or modify existing content while preserving formatting. This allows automated text replacement, structural changes, and professional document creation.

Can I track changes and add comments to a contract for legal review?

Yes, you can track changes and add comments to a contract for legal review. The system supports implementing detailed revisions, accepting or rejecting changes, and replying to comments to ensure thorough collaborative document workflows.

How do I convert a .docx file to Markdown for text extraction?

To convert a .docx file to Markdown for text extraction, you can use integrated tools like pandoc. This process preserves the document structure and tracked changes, enabling seamless data extraction and content analysis.

Does this Word document manipulation approach follow OOXML standards?

Yes, this Word document manipulation approach strictly adheres to OOXML standards. By following Office Open XML specifications, it ensures robust workflows for complex document manipulation and reliable formatting preservation.

What dependencies are needed to manage .docx files effectively?

To manage .docx files effectively, dependencies such as pandoc, docx-js, libreoffice, and poppler-utils are required. These tools enable comprehensive document creation, conversion, redlining, and robust text extraction.

What is the best way to extract data from a 50-page Word document?

The best way to extract data from a 50-page Word document is converting the .docx file into Markdown format. This enables easy text extraction and analysis while preserving the original document structure and tracked changes.