docx
Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks
Why use this skill?
Master document automation with the OpenClaw docx skill. Learn to create, edit, redline, and analyze Word documents with professional precision and efficiency.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/seanphan/docxWhat This Skill Does
The docx skill for OpenClaw empowers the AI agent to interact with Microsoft Word (.docx) files at a professional level. It provides the ability to create new documents, modify existing content, manage tracked changes, and handle complex document structures such as comments, embedded metadata, and formatting. By utilizing specialized tools for different file interaction modes—specifically Pandoc for text extraction/analysis, docx-js for document creation, and the Document Python library for OOXML manipulation—this skill bridges the gap between raw data and polished, professional business documentation.
Installation
To integrate the docx skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/seanphan/docx
Ensure that your environment has sufficient permissions for file system operations, as this skill requires read/write access to manage document lifecycle tasks effectively.
Use Cases
- Automated Report Generation: Dynamically generate status reports, project summaries, or invoices by injecting structured data into branded Word templates.
- Redlining and Contract Review: Use the redlining workflow to propose edits, track changes, and insert comments on legal or academic drafts, ensuring auditability and compliance with standard business practices.
- Content Extraction and Analysis: Extract and analyze plain text or specific XML metadata from existing archives, enabling the AI to answer complex queries about historical documents without manual opening.
- Batch Document Transformation: Convert large volumes of proprietary documents into cleaner formats (like markdown) for inclusion in RAG (Retrieval-Augmented Generation) pipelines.
Example Prompts
- "Create a new business proposal document titled 'Project Alpha' using the standard header style, including sections for Executive Summary, Scope, and Budget."
- "Review the attached 'Service_Agreement_v2.docx', suggest changes to the liability clause using tracked changes, and leave a comment explaining why we should include an indemnification provision."
- "Extract the full text and all comments from 'Project_Update_Q3.docx' and summarize the key action items assigned to the team in a bulleted list."
Tips & Limitations
- Mandatory Reading: When creating new documents from scratch, always read the
docx-js.mddocumentation in its entirety. It contains critical syntax and formatting constraints that prevent document corruption. - Workflow Strategy: Use the 'Redlining Workflow' for any document that carries legal or professional weight. Never perform destructive edits directly on master copies without creating a backup or using tracked changes.
- XML Access: If you encounter issues with complex formatting or image rendering, the issue likely resides in the underlying XML structure. Switch to raw XML access using
unpack.pyto diagnose issues withinword/document.xmlorword/comments.xml. - Security: Be cautious when processing documents from untrusted sources, as the ability to manipulate XML structures implies potential exposure to malicious macro-like payloads if file handling is not performed within a secure, sandboxed container.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-seanphan-docx": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution
Related Skills
artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
template-skill
Replace with description of the skill and when Claude should use it.
canvas-design
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
xlsx
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
algorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.