word-documents

word-documents is a skill for Claude Code, Codex from aws-samples/sample-strands-agent-with-agentcore. It costs 13 tokens per session (1,471 once invoked), scanned A, original, MIT.

A tool for creating, reading, modifying, previewing, and managing Microsoft Word documents.

In plain words
What is it for?
Use it to create new Word files, edit existing ones, list available documents, read comments, download content, and preview page layout.
Why use it?
It helps produce or update documents while checking how pages, images, charts, and other layout details actually appear.

Skill for Claude CodeCodex

About the project

Sample Strands Agent with Amazon Bedrock AgentCore is an end-to-end reference architecture for building multi-agent chatbots on AWS. Teams use it to explore agent orchestration, tool execution, memory, browser automation, and agent-to-agent collaboration with Strands Agents and Bedrock AgentCore.

aws-samples/sample-strands-agent-with-agentcore · 192 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/aws-samples/sample-strands-agent-with-agentcore/word-documents
Any agent
npx skills add aws-samples/sample-strands-agent-with-agentcore --skill word-documents
Clone the repo
git clone --depth 1 https://github.com/aws-samples/sample-strands-agent-with-agentcore

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for word-documents

README.md
[![agentmods](https://agentmods.dev/badge/skills/aws-samples/sample-strands-agent-with-agentcore/word-documents.svg)](https://agentmods.dev/skills/aws-samples/sample-strands-agent-with-agentcore/word-documents)
Your own site
<a href="https://agentmods.dev/skills/aws-samples/sample-strands-agent-with-agentcore/word-documents"><img src="https://agentmods.dev/badge/skills/aws-samples/sample-strands-agent-with-agentcore/word-documents.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,471 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00013 $0.01471
Opus 5 $0.00006 $0.00736
Sonnet 5 $0.00003 $0.00294
Haiku 4.5 $0.00001 $0.00147

Measured 5d ago against content hash cbd5a7ac3723, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

word-documents scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

chatbot-app/agentcore/skills/word-documents/SKILL.md · 158 lines

How it starts

The opening of the file, as written. The whole thing — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Word Documents

When to Use

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)

Workflow

  1. Before modifying: call preview_word_page to check current layout.
  2. After creation/modification: call preview_word_page to verify.
  3. Run tools sequentially (never parallel) to prevent file race conditions.

Page Setup

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)

Professional Formatting

  • Font: Arial as default. Set via style.font.name = 'Arial'.
  • Headings: Use proper heading styles for TOC compatibility: doc.add_heading('Title', level=1) or doc.add_paragraph(style='Heading 1').
  • Bullet lists: doc.add_paragraph(style='List Bullet'). NEVER insert unicode bullet characters.
  • Numbered lists: doc.add_paragraph(style='List Number').
  • Always preserve existing styles, fonts, and colors when modifying.

Images

from docx.shared import Inches
paragraph = doc.add_paragraph()
run = paragraph.add_run()
run.add_picture('file.png', width=Inches(6))

Code Rules

  • The document is pre-initialized as doc = Document() (create) or loaded as doc (modify). Do NOT include Document() or doc.save().
  • Available libraries: python-docx, matplotlib, pandas, numpy (seaborn NOT available)
  • Use add_paragraph(style='List Bullet') for bullet lists. NEVER insert unicode bullet characters.
  • NEVER use paragraph.text = 'new text' (destroys formatting). Use runs instead.
  • Filenames: letters, numbers, hyphens only.

Read the full file on GitHub · 158 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 158 lines · 13 tokens per session scan A cbd5a7ac3723

Subscribe to this mod's changes

word-documents is a skill published in the GitHub repository aws-samples/sample-strands-agent-with-agentcore (192 stars, last pushed yesterday), licensed MIT. It adds 13 tokens to every session and 1,471 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories