docx

docx is a skill for Claude Code, Codex from desirecore/market. It costs 203 tokens per session (7,826 once invoked), scanned B, original, MIT.

A tool for creating, reading, editing, and converting Microsoft Word documents (.docx). It can work with document text, tables, formatting, and the file's internal structure.

In plain words
What is it for?
Use it to create reports, letters, contracts, and other Word files; edit existing documents; extract text or tables; and convert .doc or .docx files to other formats such as PDF.
Why use it?
It removes the need to manually edit Word files or handle their internal XML when documents need reliable changes or validation.

Skill for Claude CodeCodex

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/desirecore/market/docx
Any agent
npx skills add desirecore/market --skill docx
Clone the repo
git clone --depth 1 https://github.com/desirecore/market

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 docx

README.md
[![agentmods](https://agentmods.dev/badge/skills/desirecore/market/docx.svg)](https://agentmods.dev/skills/desirecore/market/docx)
Your own site
<a href="https://agentmods.dev/skills/desirecore/market/docx"><img src="https://agentmods.dev/badge/skills/desirecore/market/docx.svg" alt="Measured on agentmods" height="20"></a>
Per session 203 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,826 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00203 $0.07826
Opus 5 $0.00102 $0.03913
Sonnet 5 $0.00041 $0.01565
Haiku 4.5 $0.00020 $0.00783

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

Security

Grade B, and why

docx scanned grade B with 1 finding 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 4d ago.

The scan reads SKILL.md. This mod also ships 16 executable files (scripts/__init__.py, scripts/accept_changes.py, scripts/comment.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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **Linux (Debian/Ubuntu)**: `sudo apt install python3 python3-pip`
skills/docx/SKILL.md · 634 lines

How it starts

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

docx Skill

L0: One-line Summary

Create, edit, and process Word documents (.docx), with end-to-end support for creation, XML editing, and format validation.

L1: Overview and Use Cases

Capability

docx is a Procedural Skill that provides full processing capabilities for Word documents. It supports creating new documents via docx-js (Node.js), editing existing documents by unpacking and modifying XML, plus format validation and PDF conversion.

Use Cases

  • The user needs to create a new Word document (report, memo, contract, letter, etc.)
  • The user needs to edit an existing .docx file (modify content, add comments, track changes)
  • The user needs to extract text or table data from a .docx file
  • The user needs to perform document format conversion (.doc → .docx, .docx → PDF)

L2: Detailed Specification

Script Path Rule (mandatory)

The Python scripts bundled with this skill live inside the skill installation directory. You MUST use full paths when invoking them — never use bare relative paths.

The skill directory is provided by the <skill-dir> tag in the context. Always run the office Python scripts through the cross-platform launcher scripts/with-deps.py, so they reuse the runtime-preinstalled libraries (defusedxml, and lxml for full validation) with no pip install. The launcher is pure Python and behaves identically on macOS / Linux / Windows — it does NOT require bash:

python "<skill-dir>/scripts/with-deps.py" office/unpack.py document.docx unpacked/
python "<skill-dir>/scripts/with-deps.py" office/pack.py unpacked/ output.docx

The launcher runs the target script under a runtime-bundled Python that has lxml/defusedxml preinstalled, and falls back to the system python3 if that bundled Python is unavailable (in which case full XSD validation is skipped gracefully). The script path is relative to scripts/ (e.g. office/unpack.py, comment.py).

NEVER invoke an office script with a bare relative path like python scripts/office/unpack.py — that path does not exist in the user's working directory, and it bypasses the preinstalled libraries. Always go through <skill-dir>/scripts/with-deps.py.

Read the full file on GitHub · 634 lines

Files

What ships with it

60 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. 4d ago First seen · 634 lines · 203 tokens per session scan B 19087edf1cbe

Subscribe to this mod's changes

docx is a skill published in the GitHub repository desirecore/market (2 stars, last pushed 4d ago), licensed MIT. It adds 203 tokens to every session and 7,826 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.