Use when working with "Word documents", "DOCX files", "tracked changes", "document editing", "docx creation", or asking about "Word file manipulation", "document comments", "redlining documents"
Creates, edits, and analyzes Word documents with tracked changes support.
/plugin marketplace add eyadsibai/ltk/plugin install ltk@ltk-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Create, edit, and analyze Word documents (.docx files).
What do you need to do?
├─ Read/Analyze → Use pandoc for text extraction
├─ Create New → Use docx-js (JavaScript)
└─ Edit Existing
├─ Simple changes → Basic OOXML editing
└─ Professional/Legal → Redlining workflow (tracked changes)
# Convert to markdown (preserves structure)
pandoc document.docx -o output.md
# Include tracked changes
pandoc --track-changes=all document.docx -o output.md
DOCX files are ZIP archives containing XML:
# Unpack to see structure
unzip document.docx -d unpacked/
Key files:
word/document.xml - Main contentword/comments.xml - Commentsword/media/ - Images and mediaUse docx-js (JavaScript library):
import { Document, Packer, Paragraph, TextRun } from "docx";
import * as fs from "fs";
const doc = new Document({
sections: [{
children: [
new Paragraph({
children: [
new TextRun({ text: "Hello World", bold: true }),
],
}),
],
}],
});
Packer.toBuffer(doc).then((buffer) => {
fs.writeFileSync("output.docx", buffer);
});
Install: npm install docx
Use Python with python-docx:
from docx import Document
doc = Document('input.docx')
for para in doc.paragraphs:
if 'old text' in para.text:
para.text = para.text.replace('old text', 'new text')
doc.save('output.docx')
Professional documents require tracked changes:
Extract current content:
pandoc --track-changes=all document.docx -o current.md
Unpack document:
unzip document.docx -d unpacked/
Edit XML directly with tracked change markers:
<!-- Deletion -->
<w:del><w:r><w:delText>old text</w:delText></w:r></w:del>
<!-- Insertion -->
<w:ins><w:r><w:t>new text</w:t></w:r></w:ins>
Repack document:
cd unpacked && zip -r ../output.docx *
# DOCX → PDF
soffice --headless --convert-to pdf document.docx
# PDF → Images
pdftoppm -jpeg -r 150 document.pdf page
# Creates: page-1.jpg, page-2.jpg, etc.
# Text extraction
sudo apt-get install pandoc
# PDF conversion
sudo apt-get install libreoffice poppler-utils
# JavaScript creation
npm install docx
# Python editing
pip install python-docx
This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation involving libraries, or mentions of specific frameworks like React, Vue, Next.js, Prisma, Supabase, etc.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
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.