docx
What it does
This skill helps the agent work with Microsoft Word files. It can read them, make new ones and make careful edits. It is for anyone who needs a Word document produced or updated.
When to use it
- ✓When you want a new Word document created from your content.
- ✓When you want changes made to a Word file while its formatting stays intact.
- ✓When you need to fill in a Word template or review tracked changes and comments.
Skill link
https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/docx/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Fill in the placeholders in this Word template with the client details from my list.”
5 new skills a week. 1 minute to read.
How it works
The agent first inspects the file, then uses small helper scripts to read, edit, add comments, fill templates or check the result. It saves a new copy rather than overwriting the original by default.
Technical content (original SKILL.md)
Original text by the author, straight from 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.
FAQ
Will it overwrite my original file?
No. It works on a new output file by default and edits the original only when you explicitly ask.
Can it handle tracked changes?
Yes. The skill includes helpers to inspect, accept or reject tracked revisions.
Does it need extra software?
It needs the python-docx and lxml Python packages, and the agent checks for them before starting.
Details
Original description by the author
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
Popularity
- GitHub stars
- 12k
- Ranking position
- #11564
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
1password
12kHelps your agent use the 1Password CLI to get secrets for commands and config files without showing them in chat, logs or saved files.
apple-notes
12kHelps your agent create, search, read, edit, move or delete Apple Notes on a Mac, using the memo command line tool.
apple-reminders
12kHelps your agent list, create, edit, complete or delete Apple Reminders and reminder lists on a Mac, using the remindctl tool.
document-to-action-items
12kHelps your agent turn a document, meeting transcript or set of notes into a clear table of tasks, owners, deadlines and decisions.
Similar skills
feishu-doc
394kHelps your agent read, create, and edit Feishu cloud documents, including text, images, and tables, using the document tool.
feishu-drive
394kLets your agent browse, organize, and comment on files in a Feishu cloud folder that has been shared with the bot.
feishu-perm
394kHelps your agent check and change who can access a Feishu file, choosing the smallest permission that meets your request.