docx スキル
スキル Claude Code ドキュメント・コンテンツ作成以下の解説は生成 AI によるものです。出典と照らし合わせてご確認ください。
「docx」はWordの.docxファイルの作成・読み取り・編集を行うためのClaudeスキルです。SKILL.mdによると、新規文書はdocx-jsというJavaScriptライブラリで生成し、既存文書は.docxを展開して生のXMLを編集し、再度パックする手順で編集します。このスキルには、旧形式の.docから.docxへの変換、pandocによるテキスト抽出、PDFや画像への変換、変更履歴やコメントの操作に関する記載もあります。ページサイズ、表、画像、リスト、ヘッダー/フッター、脚注、ハイパーリンク、目次については、よくある不具合を避けるための細かいルールがまとめられています。依存ツールとしてpandoc、docxパッケージ、LibreOffice、Popplerが挙げられています。
概要
SaaSではありません。SKILL.mdによると、これはClaudeが.docxファイルを作成・読み取り・編集する際に使うスキル(スクリプト群と手順書)であり、ホスト型サービスではなく、pandocやdocx-jsライブラリ、LibreOffice、Popplerといったツールに依存しています。
docx でできること
- docx-jsを使って新規.docx文書を作成する(見出し、目次、表、画像、ヘッダー/フッター、段組み、脚注、ハイパーリンクに対応)
- pandocまたはXML展開により、.docxの内容を読み取り・抽出する
- 古い.docファイルを.docxに変換し、また.docxをPDFやページ画像に変換する
- 展開→XML���集→再パックという3段階の手順で既存文書を編集する(文書のXMLスキーマ規則に従う)
- 変更履歴やコメントを追加・管理し(著者名は原則「Claude」)、変更履歴をすべて反映したクリーンな文書を生成する
出典
原文の説明(英語)
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.
docx の変更履歴
- スキル docx を追加