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 creating new documents, modifying content, working with tracked changes, or adding comments.
Security Assessment
About docx
The docx skill provides comprehensive tools for working with professional .docx documents, enabling users to create, edit, and analyze documents with precision. It solves the challenge of handling tracked changes, comments, formatting preservation, and text extraction in a straightforward and efficient manner. This skill supports document creation from scratch, modification of existing content, and even manipulation of document metadata, making it essential for any workflow that involves .docx files.
FAQ
How can I extract text from a .docx file?
You can extract text using Pandoc to convert the document to markdown with tracked changes, or you can directly access the raw XML by unpacking the .docx file and editing the 'word/document.xml' file.
What tool is recommended for creating new .docx documents?
The docx-js library is recommended for creating new .docx documents. It provides a simple API to define paragraphs, text runs, and apply basic formatting.
Can I work with tracked changes in a .docx file?
Yes, tracked changes (redlining) can be managed by directly editing the XML tags in the 'word/document.xml' file. Deletions and insertions are represented using <w:del> and <w:ins> tags, respectively.
Is there a way to convert .docx files to images?
Yes, you can convert a .docx file to a PDF using LibreOffice (soffice) and then convert the PDF to images using the 'pdftoppm' tool.
What are the best practices when editing .docx documents?
It is recommended to use Pandoc for text extraction, docx-js for creating new documents, and tracked changes for legal or business documents. Additionally, preserving the original RSIDs when editing is crucial for maintaining document integrity.
Install docx
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
skillcreatorai/Ai-Agent-Skills