docx

Create, edit, and analyze OOXML Word documents with tracked changes.

2|Updated Jun 27, 2017
One-click install
npx skills add https://github.com/leafcoder/litefs --skill docx-leafcoder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/leafcoder/litefs/tree/main/.trae/skills/06_Office_Docx
Command: npx skills add https://github.com/leafcoder/litefs --skill docx-leafcoder

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill solves the complexity of programmatically creating, editing, and analyzing Microsoft Word (.docx) files, ensuring structural integrity and professional formatting without manual intervention.

Core Features & Use Cases

  • Document Automation: Generate complex reports, contracts, or templates from scratch using JavaScript/TypeScript.
  • Precision Editing: Perform tracked changes, add comments, and modify document structure using Python-based OOXML manipulation.
  • Content Analysis: Extract text or convert documents to images for visual review and verification.

Quick Start

Use the docx skill to unpack the provided contract.docx file and apply the requested tracked changes to the termination clause.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate Word document generation while ensuring OOXML schema compliance?

Automate Word document generation by using JavaScript and Python-based OOXML libraries to programmatically create complex reports and contracts from scratch while maintaining strict schema compliance and document integrity.

Can I apply tracked changes and redlining to a .docx file programmatically?

Apply tracked changes and redlining to a .docx file programmatically by unpacking the OOXML structure and using Python-based manipulation to perform precise content editing, such as modifying specific contract clauses.

What dependencies do I need to manipulate OOXML for content analysis?

Manipulating OOXML for content analysis requires installing pandoc, docx-js, and Python-based defusedxml libraries to ensure safe XML parsing, schema compliance, and structural document integrity during extraction or conversion.

What is the best way to extract text or convert Word documents to images for review?

Extract text or convert Word documents to images for visual review by leveraging the skill's content analysis capabilities, which unpack the OOXML structure to verify and process document content without manual intervention.

Does this approach work for modifying existing contracts without breaking the document structure?

Modifying existing contracts without breaking the document structure is fully supported, as the skill uses Python-based OOXML manipulation to ensure precise structural XML-level edits and professional formatting are preserved.