Word Document Reader and Writer
HKUDS/DeepTutor
Reads, creates and edits Word .docx files with python-docx, and drops to raw OOXML for tracked changes, comments and byte-exact edits.
Create, modify, and manage Word documents. An agent skill from aws-samples/sample-strands-agent-with-agentcore.
$ npx skills add aws-samples/sample-strands-agent-with-agentcore --skill word-documents -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install aws-samples/sample-strands-agent-with-agentcore word-documents --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/aws-samples/sample-strands-agent-with-agentcore.git skills-src && mkdir -p .claude/skills && cp -r skills-src/chatbot-app/agentcore/skills/word-documents .claude/skills/word-documents && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "word-documents" agent skill from https://github.com/aws-samples/sample-strands-agent-with-agentcore/tree/main/chatbot-app/agentcore/skills/word-documents into .claude/skills/word-documents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "word-documents", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/aws-samples/sample-strands-agent-with-agentcore/tree/main/chatbot-app/agentcore/skills/word-documentsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add aws-samples/sample-strands-agent-with-agentcore --skill word-documents -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install aws-samples/sample-strands-agent-with-agentcore word-documents --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aws-samples/sample-strands-agent-with-agentcore.git skills-src && mkdir -p .agents/skills && cp -r skills-src/chatbot-app/agentcore/skills/word-documents .agents/skills/word-documents && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "word-documents" agent skill from https://github.com/aws-samples/sample-strands-agent-with-agentcore/tree/main/chatbot-app/agentcore/skills/word-documents into .agents/skills/word-documents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "word-documents", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add aws-samples/sample-strands-agent-with-agentcore --skill word-documents -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install aws-samples/sample-strands-agent-with-agentcore word-documents --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aws-samples/sample-strands-agent-with-agentcore.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/chatbot-app/agentcore/skills/word-documents .cursor/skills/word-documents && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "word-documents" agent skill from https://github.com/aws-samples/sample-strands-agent-with-agentcore/tree/main/chatbot-app/agentcore/skills/word-documents into .cursor/skills/word-documents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "word-documents", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/aws-samples/sample-strands-agent-with-agentcore.git --path chatbot-app/agentcore/skills/word-documents--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add aws-samples/sample-strands-agent-with-agentcore --skill word-documents -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install aws-samples/sample-strands-agent-with-agentcore word-documents --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aws-samples/sample-strands-agent-with-agentcore.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/chatbot-app/agentcore/skills/word-documents .gemini/skills/word-documents && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "word-documents" agent skill from https://github.com/aws-samples/sample-strands-agent-with-agentcore/tree/main/chatbot-app/agentcore/skills/word-documents into .gemini/skills/word-documents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "word-documents", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install aws-samples/sample-strands-agent-with-agentcore word-documentsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add aws-samples/sample-strands-agent-with-agentcore --skill word-documents -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/aws-samples/sample-strands-agent-with-agentcore.git skills-src && mkdir -p .github/skills && cp -r skills-src/chatbot-app/agentcore/skills/word-documents .github/skills/word-documents && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "word-documents" agent skill from https://github.com/aws-samples/sample-strands-agent-with-agentcore/tree/main/chatbot-app/agentcore/skills/word-documents into .github/skills/word-documents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "word-documents", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add aws-samples/sample-strands-agent-with-agentcore --skill word-documents -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install aws-samples/sample-strands-agent-with-agentcore word-documents --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aws-samples/sample-strands-agent-with-agentcore.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/chatbot-app/agentcore/skills/word-documents .opencode/skills/word-documents && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "word-documents" agent skill from https://github.com/aws-samples/sample-strands-agent-with-agentcore/tree/main/chatbot-app/agentcore/skills/word-documents into .opencode/skills/word-documents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "word-documents", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
word-documentsCreate, modify, and manage Word documents. An agent skill from aws-samples/sample-strands-agent-with-agentcore.
Word Documents is an agent skill from aws-samples/sample-strands-agent-with-agentcore, published by the product's own GitHub organization. Create, modify, and manage Word documents.
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Documents & Office, covering Word documents. It works with Microsoft Word and python-docx. The repository describes itself as: Reference architecture for agentic AI chatbots with Strands Agents and Amazon Bedrock AgentCore. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 6dd9d13. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python and json).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Word Documents loads about 1.6k tokens when it runs. Until then it costs about 14 tokens; SKILL.md has 564 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from aws-samples/sample-strands-agent-with-agentcore at commit 6dd9d13, republished under its MIT licence (© aws-samples). 564 words, ~1,554 tokens.
.claude/skills/word-documents/SKILL.md (or your agent's skills folder).| Tool | Use When |
|---|---|
create_word_document | User asks to create/generate a NEW Word document |
modify_word_document | User asks to edit/update an EXISTING document or add content |
list_my_word_documents | User asks what documents are available |
read_word_document | User wants to download a document or read its comments |
preview_word_page | Check actual page appearance (charts, images, complex layouts) |
preview_word_page to check current layout.preview_word_page to verify.python-docx defaults to A4. For US Letter size:
from docx.shared import Inches
section = doc.sections[0]
section.page_width = Inches(8.5)
section.page_height = Inches(11)
# Set 1-inch margins
section.top_margin = Inches(1)
section.bottom_margin = Inches(1)
section.left_margin = Inches(1)
section.right_margin = Inches(1)style.font.name = 'Arial'.doc.add_heading('Title', level=1) or doc.add_paragraph(style='Heading 1').doc.add_paragraph(style='List Bullet'). NEVER insert unicode bullet characters.doc.add_paragraph(style='List Number').from docx.shared import Inches
paragraph = doc.add_paragraph()
run = paragraph.add_run()
run.add_picture('file.png', width=Inches(6))doc = Document() (create) or loaded as doc (modify). Do NOT include Document() or doc.save().add_paragraph(style='List Bullet') for bullet lists. NEVER insert unicode bullet characters.paragraph.text = 'new text' (destroys formatting). Use runs instead.Create a new Word document using python-docx code.
| Parameter | Type | Required | Description |
|---|---|---|---|
python_code | str | Yes | Python code using python-docx (see Code Rules above) |
document_name | str | Yes | Filename without extension (letters, numbers, hyphens only) |
Example tool_input:
{
"python_code": "doc.add_heading('Quarterly Report', 0)\ndoc.add_paragraph('This report summarizes Q4 performance.')\ndoc.add_heading('Revenue', level=1)\ndoc.add_paragraph('Total revenue: $1.2M')",
"document_name": "quarterly-report"
}WARNING: Parameter is document_name, NOT filename or name.
Modify an existing Word document and save with a new name.
| Parameter | Type | Required | Description |
|---|---|---|---|
source_name | str | Yes | Existing document name (without .docx) |
output_name | str | Yes | New output name (MUST differ from source) |
python_code | str | Yes | Python code to modify the document |
Example tool_input:
{
"source_name": "quarterly-report",
"output_name": "quarterly-report-v2",
"python_code": "doc.add_paragraph('Additional notes added.')"
}List all Word documents in workspace. No parameters needed.
Read document content. With include_comments=True, also shows all comments with author, date, text, and which paragraph they're attached to.
| Parameter | Type | Required | Description |
|---|---|---|---|
document_name | str | Yes | Document name without extension |
include_comments | bool | No | If true, extract and display comments with paragraph mapping (default: false) |
Get page screenshots for visual inspection before editing.
| Parameter | Type | Required | Description |
|---|---|---|---|
document_name | str | Yes | Document name without extension |
page_numbers | list[int] | Yes | 1-based page numbers to preview |
Sequential Execution Required: Run modification tools sequentially, never in parallel (prevents race conditions on S3 file read/write).
When to Use:
Before Modifying: Always use preview_word_page first to see the current layout.
Page Setup:
section.page_width = Inches(8.5); section.page_height = Inches(11)section.top_margin = section.bottom_margin = section.left_margin = section.right_margin = Inches(1)Professional Formatting:
style.font.name = 'Arial'document.add_heading('Title', level=1) or add_paragraph(style='Heading 1')add_paragraph(style='List Bullet') or add_paragraph(style='List Number'). NEVER insert unicode bullet characters manually.Formatting Preservation:
Filenames: Letters, numbers, hyphens only (e.g., "sales-report.docx")
Available Libraries: python-docx, matplotlib, pandas, numpy (seaborn NOT available)
Images: If workspace has relevant images: run.add_picture('file.png', width=Inches(6))
QA: Always use preview_word_page after creation to verify appearance.
© aws-samples, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in chatbot-app/agentcore/skills/word-documents of aws-samples/sample-strands-agent-with-agentcore.
Open the folder on GitHubat commit 6dd9d13
Word Documents next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Word Documents this skillaws-samples/sample-strands-agent-with-agentcore | 195 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Word Document Reader and WriterHKUDS/DeepTutor | 41k | — | ~2.5k | Automated safety check: Pass | Apache-2.0 | |
| BiSheng DOCX Builderdataelement/bisheng | 12k | — | ~2.6k | Automated safety check: Pass | Apache-2.0 | |
| DOCX ToolkitXiaomiMiMo/MiMo-Code | 14k | — | ~2.4k | Automated safety check: Pass | Apache-2.0 | |
| Word DOCX ToolkitTokenRhythm/opensquilla | 7.1k | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | |
| Markdown to Word Convertercat-xierluo/SuitAgent | 206 | — | ~559 | Automated safety check: Pass | MIT |
HKUDS/DeepTutor
Reads, creates and edits Word .docx files with python-docx, and drops to raw OOXML for tracked changes, comments and byte-exact edits.
dataelement/bisheng
Builds or edits Word .docx documents inside BiSheng's code executor with python-docx, handling Chinese fonts, tables of contents, page numbers and official-document layout.
XiaomiMiMo/MiMo-Code
Produces, edits and reads Microsoft Word files through python-docx and lxml, with a decision table for picking the lightest workflow for a given task.
TokenRhythm/opensquilla
Inspects, edits in place or creates Word .docx files with bundled Python scripts, keeping existing styles intact when content changes.
cat-xierluo/SuitAgent
Converts Markdown files into Word documents formatted to Chinese typesetting conventions, with presets for academic, legal, report and book layouts.
einverne/dotfiles
Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction.
aws-samples/sample-strands-agent-with-agentcore
Guide users through a structured workflow for co-authoring documentation.
aws-samples/sample-strands-agent-with-agentcore
Test and prototype code in a sandboxed environment. An agent skill from aws-samples/sample-strands-agent-with-agentcore.
aws-samples/sample-strands-agent-with-agentcore
Deep research with structured reports and charts. An agent skill from aws-samples/sample-strands-agent-with-agentcore.
aws-samples/sample-strands-agent-with-agentcore
Read and write files in the shared session workspace. An agent skill from aws-samples/sample-strands-agent-with-agentcore.
aws-samples/sample-strands-agent-with-agentcore
Autonomous coding agent. An agent skill from aws-samples/sample-strands-agent-with-agentcore.
aws-samples/sample-strands-agent-with-agentcore
Delegate one independent, context-heavy task to an isolated asynchronous analyst or reviewer.
Works with
Categories
Create, modify, and manage Word documents. An agent skill from aws-samples/sample-strands-agent-with-agentcore. Word Documents is an agent skill from aws-samples/sample-strands-agent-with-agentcore, published by the product's own GitHub organization. Create, modify, and manage Word documents.
Word Documents fits situations like: tasks that involve Word documents.
Run `npx skills add aws-samples/sample-strands-agent-with-agentcore --skill word-documents -a claude-code`. Or copy the skill folder (chatbot-app/agentcore/skills/word-documents in aws-samples/sample-strands-agent-with-agentcore) into .claude/skills/word-documents in your project. Claude Code loads it when a task matches its description.
Run `npx skills add aws-samples/sample-strands-agent-with-agentcore --skill word-documents -a codex`. Or copy the skill folder (chatbot-app/agentcore/skills/word-documents in aws-samples/sample-strands-agent-with-agentcore) into .agents/skills/word-documents in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aws-samples/sample-strands-agent-with-agentcore --skill word-documents -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/word-documents, .gemini/skills/word-documents, .github/skills/word-documents and .opencode/skills/word-documents in your project.
SKILL.md names no scripts, command-line tools or credentials: Word Documents is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Word Documents is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Word Documents: Word Document Reader and Writer (HKUDS/DeepTutor, 41k stars), BiSheng DOCX Builder (dataelement/bisheng, 12k stars), DOCX Toolkit (XiaomiMiMo/MiMo-Code, 14k stars) and Word DOCX Toolkit (TokenRhythm/opensquilla, 7.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
aws-samples (a GitHub organization, an official publisher) maintains it in aws-samples/sample-strands-agent-with-agentcore, which has 195 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on October 6, 2026.
Source: aws-samples/sample-strands-agent-with-agentcore on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.