docx

Create, edit, and analyze Word documents using Python libraries.

Updated Dec 17, 2025
One-click install
npx skills add https://github.com/robotlearning123/claude-scientific-skills --skill docx-robotlearning123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/robotlearning123/claude-scientific-skills/tree/main/scientific-skills/document-skills/docx
Command: npx skills add https://github.com/robotlearning123/claude-scientific-skills --skill docx-robotlearning123

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill empowers you to create, edit, and analyze Word documents with precision and efficiency, providing tools for professional document processing, tracked changes, and content manipulation.

Core Features & Use Cases

  • Document Creation & Editing: Create new documents from scratch or edit existing ones with advanced features.
  • Scientific Schematics: Generate publication-quality diagrams to enhance visual communication.
  • Text Extraction & Analysis: Extract text and analyze document content with tools like Pandoc.
  • Redlining Workflow: Implement comprehensive tracked changes with minimal effort.
  • Document Conversion: Convert documents to images for visual analysis.
  • Use Case: Suppose you need to prepare a detailed technical report with complex diagrams. Use this Skill to create the document, add the diagrams, and track revisions with ease.

Quick Start

Use the docx skill to create a new Word document and add a scientific diagram.

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 creation and edit existing docx files in Python?

Automate Word document creation and editing by using Python libraries alongside Pandoc for text extraction and XML manipulation for precise formatting. This approach handles content manipulation, tracked changes, and technical writing workflows.

What's the best way to implement tracked changes and redlining workflows in a docx file?

Implement tracked changes and redlining workflows by manipulating the document's underlying XML structure. This method applies comprehensive revision tracking to content with minimal effort, ensuring professional document processing and editing precision.

Can I extract text and convert Word documents to images for visual analysis?

Extract text from Word documents using Pandoc, and convert documents to images for visual analysis using Poppler. These tools support content analysis workflows and enable downstream visual verification of document formatting.

Do I need LibreOffice and Pandoc installed to process Word documents with tracked changes?

Processing Word documents with tracked changes requires Pandoc, LibreOffice, Poppler, and defusedxml installed. These dependencies enable text extraction, document conversion, and secure XML manipulation for reliable formatting.

How does XML manipulation help with formatting and content manipulation in Word documents?

XML manipulation directly modifies the internal structure of Word documents to control formatting and content. This technique enables precise adjustments to text layout, tracked changes, and document elements that standard APIs cannot access.

Can I generate scientific schematics and diagrams within a Word document workflow?

Generate publication-quality scientific schematics and diagrams to enhance visual communication within your document workflow. This capability integrates visual elements into technical reports and documentation created through the processing pipeline.