← スキル一覧に戻る

docx
by mshafei721
Multi-agent AI coding platform powered by Vercel Sandbox and AI Gateway - Phase 3: Skills & MCP Integration Complete
⭐ 0🍴 0📅 2026年1月15日
SKILL.md
name: docx description: "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"
DOCX Creation, Editing, and Analysis
Overview
Work with .docx files which are ZIP archives containing XML files. Different tools and workflows available for different tasks.
Workflow Decision Tree
Reading/Analyzing Content
Use text extraction or raw XML access
Creating New Document
Use docx-js workflow
Editing Existing Document
- Your own document + simple changes: Basic OOXML editing
- Someone else's document: Redlining workflow (recommended)
- Legal, academic, business docs: Redlining workflow (required)
Reading and Analyzing Content
Text Extraction
# Convert to markdown with tracked changes
pandoc --track-changes=all path-to-file.docx -o output.md
Raw XML Access
For comments, complex formatting, document structure, embedded media, and metadata:
# Unpack document
python ooxml/scripts/unpack.py <office_file> <output_directory>
Key file structures:
word/document.xml- Main document contentsword/comments.xml- Commentsword/media/- Embedded images and media
Creating New Documents
Use docx-js (JavaScript/TypeScript):
import { Document, Paragraph, TextRun, Packer } from 'docx';
const doc = new Document({
sections: [{
properties: {},
children: [
new Paragraph({
children: [new TextRun("Hello World!")],
}),
],
}],
});
// Export
const buffer = await Packer.toBuffer(doc);
Editing Existing Documents
Use the Document library (Python) for OOXML manipulation:
- Unpack:
python ooxml/scripts/unpack.py <file.docx> <dir> - Create Python script using Document library
- Pack:
python ooxml/scripts/pack.py <dir> <file.docx>
Redlining Workflow
For tracked changes:
- Convert to markdown:
pandoc --track-changes=all file.docx -o current.md - Identify and group changes
- Unpack document
- Implement changes in batches using Document library
- Pack the document
- Verify all changes applied correctly
Dependencies
- pandoc: For text extraction
- docx:
npm install -g docxfor creating new documents - LibreOffice: For PDF conversion
- defusedxml: For secure XML parsing
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です