document-docx

document-docx is a skill for Claude Code, Codex from vasilyu1983/AI-Agents-public. It costs 38 tokens per session (3,226 once invoked), scanned A, original, MIT.

A toolkit for creating, editing, reviewing, and extracting content from DOCX files, the format used by Microsoft Word.

In plain words
What is it for?
Use it to generate or edit reports, contracts, proposals, and other Word documents.
Why use it?
It provides structured ways to handle Word documents, including styles, templates, comments, and content extraction.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present. Also seen: positional $N argument; mentions Claude Code; mentions Codex.

not rated 87repo +5 8d ago A scan Socket: passSnyk: passSkillSpector: pass 38 tokens original MIT

Good fit Use it to generate or edit reports, contracts, proposals, and other Word documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vasilyu1983/ai-agents-public/document-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 vasilyu1983/AI-Agents-public --skill document-docx
Clone the repo
git clone --depth 1 https://github.com/vasilyu1983/AI-Agents-public

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/document-docx/github.svg)](https://agentmods.dev/skills/vasilyu1983/ai-agents-public/document-docx)
Your own site
<a href="https://agentmods.dev/skills/vasilyu1983/ai-agents-public/document-docx"><img src="https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/document-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 document-docx

Your own site · 80×15
<a href="https://agentmods.dev/skills/vasilyu1983/ai-agents-public/document-docx"><img src="https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/document-docx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,226 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
  • Socket pass 18 Mar 2026
  • Snyk pass 12 Mar 2026
  • 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.00038 $0.03226
Opus 5 $0.00019 $0.01613
Sonnet 5 $0.00008 $0.00645
Haiku 4.5 $0.00004 $0.00323

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

Security

Grade A, and why

document-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 10d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/docx_extract.py, scripts/docx_inspect_ooxml.py, scripts/docx_quality_gate.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.

frameworks/shared-skills/skills/document-docx/SKILL.md · 256 lines

How it starts

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

Document DOCX Skill - Quick Reference

This skill covers creation, editing, review, extraction, and release workflows for .docx documents.

Modern best practices (Jul 2026):

  • Treat .docx as the editable source and PDF as a release artifact.
  • Prefer templates and built-in styles over manual formatting.
  • Use comments for review notes; use Word Compare for true redlines.
  • For LLM/RAG extraction, optimize for structure, trust level, and sanitization rather than visual fidelity.
  • Treat macro-enabled Office files (.docm, .dotm) as untrusted by default.
  • Before promising a feature (comments, alt text, tracked changes), check the installed library version — several of these APIs are recent additions and silently absent on older pins. See "Version-Gate Before Promising A Feature" below.

Core Decision Rules (2026)

  • If non-developers need to own layout/design, prefer docxtpl with a Word-authored template.
  • If the stack is Python and edits are structural, prefer python-docx.
  • If the stack is TypeScript/Node and the output is generated server-side, prefer docx.
  • If you need semantic HTML from a trusted document, prefer mammoth, then sanitize before rendering or storing the output.
  • If you need Markdown/JSON for search, indexing, or RAG, prefer MarkItDown or Docling.
  • If the user asks for tracked changes, do not promise high-level library support. Generate a revised .docx and use Word Compare, or switch to OOXML-specialized tooling.
  • If the user asks for PDF output, prefer Word automation for highest fidelity and LibreOffice headless for cross-platform batch workflows.
  • If the input is .doc, convert to .docx first. If it is .docm or .dotm, do not trust embedded macros.

Quick Reference

Task Tool/Library Language When to Use
Create/edit DOCX python-docx Python Structural edits, reports, contracts, section/table/image work
Create/edit DOCX docx Node.js Server-side generation in TypeScript-heavy stacks
Template fill docxtpl Python Word-authored templates, mail merge, batch documents
Add/access comments python-docx + Word review workflow Python / Word Review notes without tracked revisions
Convert DOCX to HTML mammoth Node.js Semantic HTML from trusted documents
Convert DOCX to Markdown MarkItDown Python LLM/RAG ingestion where Markdown is preferred
Convert DOCX to Markdown/HTML/JSON Docling Python / CLI Multi-format ingestion, structured extraction, batch conversion
Parse text/tables/metadata python-docx + OOXML inspection Python Extraction, audits, migration tooling
Parse tracked changes/comments OOXML, Open XML SDK, docx4j, Aspose.Words Python / .NET / Java Revision-heavy workflows and interoperability edge cases
Convert DOCX to PDF Word automation / LibreOffice headless OS tooling Release artifacts and cross-platform smoke checks

Read the full file on GitHub · 256 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. 10d ago First seen · 256 lines · 38 tokens per session scan A 929c7c665254

Subscribe to this mod's changes

document-docx is a skill published in the GitHub repository vasilyu1983/AI-Agents-public (87 stars, last pushed 8d ago), licensed MIT. It adds 38 tokens to every session and 3,226 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-30.

Related

Other skills, from other repositories

upload-artifact

Upload a file as a ClosedLoop document (PRD, implementation plan, feature, or template). Reads file content and uploads via MCP without consuming conversation context. Also supports creating new versions of existing documents. Triggers on: "upload artifact", "upload PRD", "upload implementation plan", "upload…

closedloop-ai/claude-plugins · 103 tokens

extract-plan-md

Sync plan.md with plan.json content. MUST be used after ANY edit to plan.json to keep plan.md in sync. Triggers: After editing plan.json with Edit tool (REQUIRED - always sync after edits) User asks to "sync plan.md", "update plan.md", "extract the md from a plan" Converting plan.json to markdown or viewing plan as…

closedloop-ai/claude-plugins · 99 tokens

frontmatter-guard

Injects the canonical vault frontmatter schema snippet into agent prompts before any vault-write task, preventing malformed YAML frontmatter in Obsidian notes. Context: wave-executor is about to dispatch a vault-mirror agent that writes learning notes under /Projects/vault/40-learnings/. user: "dispatch vault-write…

Kanevry/session-orchestrator · 173 tokens

vault-mirror

Use when you need to populate the Meta-Vault with machine-generated notes derived from session-orchestrator JSONL records. Converts entries from .orchestrator/metrics/sessions.jsonl and .orchestrator/metrics/learnings.jsonl into vault-conformant Markdown under 50-sessions/ and 40-learnings/. Called automatically at…

Kanevry/session-orchestrator · 221 tokens

vault-sync

Use when you need to validate the Meta-Vault's Markdown frontmatter and wiki-link integrity before closing a session or after vault edits. Runs as a hard gate at session-end Phase 1 — blocks close if any .md file fails the Zod frontmatter schema or has dangling [[wiki-links]]. Supports three modes: hard (blocks on…

Kanevry/session-orchestrator · 215 tokens

xlsx

Create, read and edit Microsoft Excel .xlsx spreadsheets — data tables, formulas, multiple sheets, number formats, conditional formatting, charts, frozen panes and named ranges. Also covers reading an existing workbook to extract values or formulas, recalculating formulas so cached values are correct, converting to…

smith-network-solutions/threadknot · 84 tokens