docx

Document toolkit (.docx). Create/edit documents, tracked changes, comments, formatting preservation, text extraction, for professional document processing.

Install

Hot:232

Download and extract to your skills directory

Copy command and send to OpenClaw for auto-install:

Download and install this skill https://openskills.cc/api/download?slug=k-dense-ai-scientific-skills-docx&locale=en&source=copy

DOCX Document Processing Skill

Skill Overview


The DOCX skill is a professional Word document processing tool that supports document creation, editing, analysis, and format conversion. It is especially suitable for scenarios that require batch processing or automated operations on Word documents.

Applicable Scenarios

1. Batch Document Revision and Review


Suitable for batch modification and review of professional documents such as legal contracts, academic papers, and business reports. Supports standard revision mode (Redlining), allowing precise tracking of all insertions, deletions, and formatting changes, ensuring transparency and auditability of the document modification process.

2. Automated Document Generation


Suitable for scenarios that require automatically generating formatted documents from templates, such as bulk generation of reports, contracts, certificates, etc. Supports creating professional documents with complex formatting, tables, and images via JavaScript/TypeScript or Python, greatly improving document generation efficiency.

3. Document Content Extraction and Analysis


Used to extract text content, comments, metadata, and other information from large numbers of Word documents. Supports document structure parsing and content analysis. Can be combined with chart generation tools to visualize document content, suitable for document management systems and content analysis platforms.

Core Features

Document Editing and Format Preservation


Supports precise editing of existing Word documents while perfectly preserving the original document's formatting, styles, and layout. By operating on the OOXML underlying structure, it can handle complex document structures, including tables, images, headers and footers, section breaks, and other elements, ensuring the edited document maintains a professional appearance.

Revision Mode Handling


Full support for document revision (Redlining) workflows, allowing revisions to be applied in bulk while retaining a complete history of changes. Supports insertion marks, deletion marks, and formatting change tracking; all modifications comply with professional document review standards, making it especially suitable for collaborative editing in legal and business contexts.

Document Format Conversion


Provides bidirectional conversion between DOCX and formats such as PDF and images. Can convert Word documents to PDF or high-resolution images for previewing and archiving, and also supports importing content from various formats. The conversion process preserves document structure and formatting, suitable for document archiving and cross-platform sharing.

Frequently Asked Questions

What dependencies does the DOCX skill require?


Main dependencies include: pandoc (text extraction), the docx-js library (creating new documents), Python OOXML libraries (editing documents), LibreOffice (PDF conversion), Poppler (image conversion), and defusedxml (secure XML parsing). Most dependencies can be quickly installed via package managers.

Can it handle documents with complex formatting?


Yes. The DOCX skill operates directly on the OOXML (Office Open XML) underlying structure and supports handling documents with complex formatting, including multiple styles, nested tables, floating elements, headers and footers, section breaks, etc. For particularly complex scenarios, it's also possible to directly access and modify the document's XML structure.

How to choose which workflow to use?


  • Creating new documents: use the docx-js workflow to generate documents via JavaScript/TypeScript

  • Simple edits to your own documents: use basic OOXML editing

  • Editing others' documents or professional scenarios: use the revision mode (Redlining) workflow

  • Read-only content access: use pandoc for text extraction or unzip and read the XML directly
  • The skill supports batch operations and can process multiple documents at once. It is recommended to group related changes into batches of 3–10 for easier debugging and verification.