word-documents

word-documents is a skill for Claude Code, Codex from alex-alecu/garden-desk. It costs 35 tokens per session (416 once invoked), scanned A, original, Apache-2.0.

A guide for reading and creating Microsoft Word documents, including DOCX files. It also explains how to extract text from older DOC files.

In plain words
What is it for?
Use it for DOCX deliverables, Word document edits, and extracting text from legacy DOC files.
Why use it?
It prevents binary Word files from being handled as plain text and helps preserve document content during edits. It includes a check that confirms the saved document contains the intended paragraphs or table rows.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for DOCX deliverables, Word document edits, and extracting text from legacy DOC files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alex-alecu/garden-desk/word-documents
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.

Any agent
npx skills add alex-alecu/garden-desk --skill word-documents
Clone the repo
git clone --depth 1 https://github.com/alex-alecu/garden-desk

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/alex-alecu/garden-desk/word-documents/github.svg)](https://agentmods.dev/skills/alex-alecu/garden-desk/word-documents)
Your own site
<a href="https://agentmods.dev/skills/alex-alecu/garden-desk/word-documents"><img src="https://agentmods.dev/badge/skills/alex-alecu/garden-desk/word-documents/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for word-documents

Your own site · 80×15
<a href="https://agentmods.dev/skills/alex-alecu/garden-desk/word-documents"><img src="https://agentmods.dev/badge/skills/alex-alecu/garden-desk/word-documents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 416 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00035 $0.00416
Opus 5 $0.00017 $0.00208
Sonnet 5 $0.00007 $0.00083
Haiku 4.5 $0.00003 $0.00042

Measured 7d ago against content hash 9743bb042c45, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 7d 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.

prompts/skills/word-documents/SKILL.md · 42 lines

What it actually says

Library

Use the installed python-docx through python for .docx. Do not install packages, and do not use bash or a shell to read one.

For legacy .doc, antiword is installed; run LC_ALL=C antiword -m UTF-8.txt -w 0 "/source/path/to/file.doc" with bash to get the text. For an attachment, use its listed /run/attachments/... path instead.

Find The Files

Search /source recursively for files ending in .docx or .doc, case-insensitive.

Recipe

from docx import Document

document = Document(path)
for paragraph in document.paragraphs:
    print(paragraph.text)
for table in document.tables:
    for row in table.rows:
        print([cell.text for cell in row.cells])

To create or edit a .docx, load it with Document(path), add or change paragraphs, table rows, or styles, then document.save(path). Never create or edit a .doc; produce a .docx deliverable instead.

Verify

Reopen every .docx you write with Document(path) and assert its paragraph or table row count matches what you intended.

Gotchas

  • A table's text lives in table.rows, not in document.paragraphs.
  • Tables become plain text; .doc layout and embedded content are lost when read through antiword.
  • antiword output is source text only; you cannot edit a .doc file with it.
  • On an encrypted, corrupt, or mislabeled file, stop and report it; there is no fallback reader.
  • Cite results by path and section, or by paragraph number for a .doc extract.
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. 7d ago Changed 9743bb042c45
  2. 11d ago First seen · 42 lines · 35 tokens per session scan A 8bbbb9818e21

Subscribe to this mod's changes

word-documents is a skill published in the GitHub repository alex-alecu/garden-desk (6 stars, last pushed 2d ago), licensed Apache-2.0. It adds 35 tokens to every session and 416 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…

MRWillisT/PullNexus · 92 tokens

pdf

PDF files: create, read, merge, fill, OCR, edit text.

NousResearch/hermes-agent · 18 tokens

pdf-toolkit

Structured .pdf operations: extract text/tables, merge pages from multiple PDFs, split a PDF by page ranges, fill PDF form fields, and generate fresh PDFs from JSON. Trigger when the user wants programmatic PDF work without natural-language rewriting — examples: pull tables from a report, combine three PDFs, extract…

opensquilla/opensquilla · 127 tokens

extracting-lab-tables

Detects and extracts tabular laboratory panels from PDFs, scans, and images into structured rows ready for OpenMed and FHIR. Use when the user has a CBC, CMP, lipid panel, or other lab report as a scanned image / PDF / spreadsheet and needs the test name, value, unit, reference range, and abnormal flag as clean rows.…

maziyarpanahi/openmed · 210 tokens

nano-pdf

Edit PDFs with natural-language instructions using the nano-pdf CLI.

opensquilla/opensquilla · 17 tokens

liteparse

Use this skill when the user asks to parse, perform multi-format document conversion or spatially extract text from an unstructured file (PDF, DOCX, PPTX, XLSX, images, etc.) locally without cloud dependencies.

synthetic-sciences/openscience · 49 tokens