word-docx

word-docx is a skill for Claude Code from kennethkhoocy/legal-scholarship-skills. It costs 172 tokens per session (3,443 once invoked), scanned A, original, MIT.

A Word-document tool for reading, reviewing, creating, converting, and repairing Microsoft Word .docx files.

In plain words
What is it for?
Use it to read comments, tracked changes, text, and tables; build new Word documents; apply edits; inspect files; or render them as PDFs.
Why use it?
It extracts document content into structured text before analysis and avoids changing the original file directly.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the legal-scholarship plugin — 7 skills shipped together

Good fit Use it to read comments, tracked changes, text, and tables; build new Word documents; apply edits; inspect files; or render them as PDFs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kennethkhoocy/legal-scholarship-skills/word-docx
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 kennethkhoocy/legal-scholarship-skills --skill word-docx
Clone the repo
git clone --depth 1 https://github.com/kennethkhoocy/legal-scholarship-skills

Made for: Claude Code.

Or install legal-scholarship, the plugin that ships this one along with the rest of its 7 skills.

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-docx

README.md
[![agentmods](https://agentmods.dev/badge/skills/kennethkhoocy/legal-scholarship-skills/word-docx/github.svg)](https://agentmods.dev/skills/kennethkhoocy/legal-scholarship-skills/word-docx)
Your own site
<a href="https://agentmods.dev/skills/kennethkhoocy/legal-scholarship-skills/word-docx"><img src="https://agentmods.dev/badge/skills/kennethkhoocy/legal-scholarship-skills/word-docx/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-docx

Your own site · 80×15
<a href="https://agentmods.dev/skills/kennethkhoocy/legal-scholarship-skills/word-docx"><img src="https://agentmods.dev/badge/skills/kennethkhoocy/legal-scholarship-skills/word-docx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 172 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,443 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00172 $0.03443
Opus 5 $0.00086 $0.01722
Sonnet 5 $0.00034 $0.00689
Haiku 4.5 $0.00017 $0.00344

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

Security

Grade A, and why

word-docx 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 12d ago.

The scan reads SKILL.md. This mod also ships 37 executable files (scripts/add_comment.py, scripts/anthropic_bridge.py, scripts/apply_edits.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/legal-scholarship/skills/word-docx/SKILL.md · 371 lines

How it starts

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

word-docx

Unified CLI for Microsoft Word .docx review and generation workflows. Converts .docx content into structured JSON/Markdown before any LLM reasoning, and builds new .docx files from structured specs.

Core Principle

Never modify source .docx files in place. Never ask the LLM to parse raw .docx XML directly. The pipeline always works in two steps:

  1. Extract structured data (JSON/Markdown) from the .docx
  2. Reason over the structured data, then build a new .docx if needed

CLI Entry Point

All commands run through a single entry point:

python scripts/word_docx.py <command> [options]

The scripts directory is at ~/.claude/skills/word-docx/scripts/.

Command Routing

User intent Command Primary library
Read comments / reviewer feedback extract-comments docx2python
Read tracked changes / redlines extract-revisions docx-revisions, OOXML fallback
Read ordinary text and tables extract-text python-docx
Full inspection (all of the above) inspect all
Build a new Word document build python-docx or docxtpl
Render to PDF render-pdf LibreOffice
Apply edits (auto-detect mode) apply-edits lxml + zipfile (OOXML)
Apply tracked edits (force) apply-tracked-edits lxml + zipfile (OOXML)
Apply silent edits (force) apply-non-tracked-edits lxml + zipfile (OOXML)

Backend Matrix

Command Backend Notes
inspect, extract-comments, extract-revisions, extract-text Python (word-docx) docx2python / docx-revisions / python-docx
apply-edits, apply-tracked-edits, apply-non-tracked-edits Python (word-docx) lxml + zipfile
render-pdf, audit-ooxml Python (word-docx) LibreOffice / lxml
build Python or Node auto-routes via spec markers — see Build Reference
add-comment Hybrid unpack → Python edit → comment.py → pack
validate, accept-changes, convert-doc, unpack, pack, simplify-redlines, docx-to-images Python (anthropic) subprocess to anthropic-agent-skills plugin

Read the full file on GitHub · 371 lines

Files

What ships with it

53 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 371 lines · 172 tokens per session scan A 5c3df4a0fdeb

Subscribe to this mod's changes

word-docx is a skill published in the GitHub repository kennethkhoocy/legal-scholarship-skills (9 stars, last pushed 7d ago), licensed MIT. It adds 172 tokens to every session and 3,443 once invoked, about $0.0009 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

baoyu-youtube-transcript

A tool for downloading the written captions, subtitles, chapter information, speaker labels, and cover image from a YouTube video using its URL or ID.

JimLiu/baoyu-skills · 107 tokens

baoyu-url-to-markdown

Fetch any URL and convert to markdown using baoyu-fetch CLI (Chrome CDP with site-specific adapters). Built-in adapters for X/Twitter, YouTube transcripts, Hacker News threads, and generic pages via Defuddle. Handles login/CAPTCHA via interaction wait modes. Use when user wants to save a webpage as markdown.

JimLiu/baoyu-skills · 72 tokens

agent-wiki

Incremental LLM-friendly wiki generator for Obsidian note vaults. Use when: (1) Building wiki from notes, (2) Ingesting notes to wiki, (3) Obsidian LLM wiki, (4) Incremental knowledge base management. Triggers: 'build wiki from notes', 'ingest notes to wiki', 'Obsidian LLM wiki', 'incremental knowledge base'.

Dianel555/DSkills · 89 tokens

download-fulltext-pdf

A skill for downloading a research paper's complete PDF using an identifier such as a DOI, title, or BibTeX entry.

huangwb8/skills · 105 tokens

content-portability

Use when the user says 'export my site', 'backup my pages before editing', 'download my content locally', or 'migrate content to my other site'. Exports pages, posts, and custom posts to portable local packages with builder data, media, and markdown, then imports elsewhere with ID remapping.

respira-press/agent-skills-wordpress · 67 tokens

latex-empirical-tables

Set up, format, fix, and clean up LaTeX regression and estimation tables in empirical economics or finance papers. Use when (a) creating a .tex, results.tex, main.tex, or preamble to display regression or estimation output from Python (pyfixest), Stata, or R — including any mention of estout, esttab, estauto, estwide…

kennethkhoocy/applied-micro-skills · 240 tokens