docx
できること
このスキルは、エージェントがMicrosoft Wordのファイルを扱えるようにします。読み取り、新規作成、慎重な編集ができます。Word文書の作成や更新が必要な人向けです。
使う場面
- ✓自分の内容から新しいWord文書を作りたいとき。
- ✓Wordファイルの書式を保ったまま、変更を加えたいとき。
- ✓Wordのテンプレートに記入する、または変更履歴やコメントを確認したいとき。
スキルのリンク
https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/docx/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このWordのテンプレートのプレースホルダーに、私のリストの顧客情報を入れてもらえますか。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントはまずファイルを調べ、その後、小さな補助スクリプトで読み取り、編集、コメントの追加、テンプレートの記入、結果の確認を行います。既定では、元のファイルを上書きせず、新しいコピーを保存します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Word documents
Use this Skill for .docx work. Preserve the user's content and formatting intent, and make the smallest change that satisfies the request.
Start here
Call skill_view for this Skill before using its resources. It returns baseDirectory; every bundled helper below lives under <baseDirectory>/scripts.
Default to a new output file. Replace the input only when the user explicitly asks for an in-place edit. Before changing a document, inspect it with docx_read.py and keep a recoverable original.
Core dependency:
python3 -m pip install python-docx lxml
Do not install dependencies silently. Check availability first and explain any missing dependency that blocks the task.
Helpers
- docx_read.py: extract paragraphs, headings, tables, links, comments, headers, footers, and document metadata.
- docx_create.py: create a document from structured JSON.
- docx_edit.py: perform targeted text, paragraph, table, image, header, and footer edits.
- docx_template.py: inspect placeholders and populate a template.
- docx_comments.py: add, list, or remove comments.
- docx_revisions.py: inspect, accept, or reject tracked revisions.
- docx_validate.py: validate the resulting package and report structural problems.
Run helpers with terminal_exec, passing python3 as the command and arguments as an array. Use --help when a helper's exact arguments are unclear.
python3 <baseDirectory>/scripts/docx_read.py input.docx --json
python3 <baseDirectory>/scripts/docx_create.py spec.json -o output.docx
python3 <baseDirectory>/scripts/docx_edit.py input.docx edits.json -o output.docx
python3 <baseDirectory>/scripts/docx_validate.py output.docx
For tracked changes and comments, read references/revisions-and-comments.md through skill_view before editing them.
Workflow
- Inspect the source document and identify the exact sections to preserve or change.
- Build a structured specification or edit plan. Do not approximate names, numbers, dates, citations, or legal wording.
- Generate or edit a new .docx.
- Run docx_validate.py.
- When layout matters, convert the result to PDF with LibreOffice if available, render the relevant PDF pages with the bundled pdf Skill, and inspect the images with view_image. Check clipping, page breaks, tables, headers, footers, and image placement.
- Return the final absolute path and summarize material changes.
If LibreOffice is unavailable, still perform structural validation and clearly state that visual rendering was not available.
Safety
- Never discard comments or tracked revisions unless the user requested that operation.
- Treat accept-all/reject-all revisions and remove-all comments as destructive transformations; confirm the intended scope when it is ambiguous.
- Do not execute macros or embedded objects.
- Avoid copying sensitive document text into external services unless the user requested a workflow that requires it.
よくある質問
元のファイルを上書きしますか?
いいえ。既定では新しい出力ファイルで作業し、あなたが明示的に依頼した場合にのみ元のファイルを編集します。
変更履歴も扱えますか?
はい。変更履歴を調べたり、承諾したり却下したりする補助機能があります。
追加のソフトウェアは必要ですか?
python-docxとlxmlのPythonパッケージが必要で、エージェントは開始前にそれらを確認します。
詳細
作者による元の説明
Create, inspect, edit, validate, and visually verify Microsoft Word .docx documents, including templates, comments, tracked revisions, tables, images, headers, and footers.
repo: EKKOLearnAI/ekko-studio
人気
- GitHubのスター
- 12k
- ランキング
- #11564
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
1password
12kエージェントが、1PasswordのCLIを使って、コマンドや設定ファイルに必要な秘密情報を、チャット、ログ、保存されたファイルに表示せずに取得できるよう支援します。
apple-notes
12kエージェントが、memoコマンドラインツールを使って、Macのメモ(Apple Notes)を作成、検索、読み取り、編集、移動、削除できるよう支援します。
apple-reminders
12kエージェントが、remindctlツールを使って、Macのリマインダーとリマインダーのリストを一覧表示、作成、編集、完了、削除できるよう支援します。
document-to-action-items
12kエージェントが、文書、会議の書き起こし、メモを、タスク、担当者、期限、決定事項の明確な表に変換できるよう支援します。
似ているスキル
feishu-doc
394kテキスト、画像、表を含むFeishuのクラウドドキュメントを、ドキュメントツールを使って読み、作成し、編集するようエージェントを支援します。
feishu-drive
394kボットと共有されたFeishuのクラウドフォルダ内のファイルを閲覧、整理、コメントできるようエージェントを支援します。
feishu-perm
394kFeishuのファイルにアクセスできる人を確認し、変更するようエージェントを支援します。依頼を満たす最小の権限を選びます。