docx
このスキルは、ユーザーがWord文書(.docxファイル)を作成、読み込み、編集、操作したいときに使用します。以下の場合に実行してください:「Word文書」「.docx」などの記述、または目次・見出し・ページ番号・レターヘッドなどのフォーマットを含む専門的な文書の作成リクエスト。また、.docxファイルのコンテンツ抽出・再編成、文書への画像挿入・置換、Word形式での検索置換、変更履歴やコメント機能の使用、コンテンツを整形したWord文書への変換の場合も対象です。ユーザーが「レポート」「メモ」「手紙」「テンプレート」などの成果物をWord形式または.docxファイルで求める場合はこのスキルを使用してください。PDF、スプレッドシート、Google Docs、文書作成と無関係なコーディングタスクには使用しないでください。
description の原文を見る
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.
SKILL.md 本文
DOCX の作成、編集、分析
概要
.docx ファイルは XML ファイルを含む ZIP アーカイブです。
クイックリファレンス
| タスク | アプローチ |
|---|---|
| コンテンツの読み込み/分析 | pandoc または XML の場合は解凍 |
| 新しいドキュメントの作成 | docx-js を使用 - 下記の「新しいドキュメントの作成」を参照 |
| 既存ドキュメントの編集 | 解凍 → XML を編集 → 再圧縮 - 下記の「既存ドキュメントの編集」を参照 |
.doc から .docx への変換
レガシーの .doc ファイルは編集前に変換する必要があります。
python scripts/office/soffice.py --headless --convert-to docx document.doc
コンテンツの読み込み
# 変更履歴を含むテキスト抽出
pandoc --track-changes=all document.docx -o output.md
# 生の XML アクセス
python scripts/office/unpack.py document.docx unpacked/
画
...
詳細情報
- 作者
- anthropics
- リポジトリ
- anthropics/skills
- ライセンス
- 不明
- 最終更新
- 2026/5/9
Source: https://github.com/anthropics/skills / ライセンス: 未指定