docx-editing

docx-editing is a skill for Claude Code, Codex from UseJunior/safe-docx. It costs 109 tokens per session (4,385 once invoked), scanned A, original, Apache-2.0.

A tool for making targeted changes to existing Microsoft Word (.docx) files while keeping their formatting and recording edits as tracked changes.

In plain words
What is it for?
Editing contracts and other Word documents, reading files, creating redlines, comparing versions, and adding comments.
Why use it?
It avoids rebuilding a document or losing its layout when you need to revise an existing file, compare Word files, or add comments.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/usejunior/safe-docx/docx-editing.svg)](https://agentmods.dev/skills/usejunior/safe-docx/docx-editing)
Your own site
<a href="https://agentmods.dev/skills/usejunior/safe-docx/docx-editing"><img src="https://agentmods.dev/badge/skills/usejunior/safe-docx/docx-editing.svg" alt="Measured on agentmods" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,385 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.00109 $0.04385
Opus 5 $0.00055 $0.02193
Sonnet 5 $0.00022 $0.00877
Haiku 4.5 $0.00011 $0.00439

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

Security

Grade A, and why

docx-editing 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 3d 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.

skills/docx-editing/SKILL.md · 342 lines

How it starts

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

Editing .docx Files with Safe-DOCX

Safe-DOCX is a local MCP server for surgically editing existing .docx files. It preserves formatting, generates tracked-changes redlines, and — once installed — runs entirely on the local filesystem with zero network activity.

Source Code and Audit

Safe-DOCX is fully open source (Apache-2.0 license). Review the complete source before installing:

All security claims below are verifiable by reading the source.

Runtime Requirements

Safe-DOCX requires these binaries to be available on the host:

Binary Minimum version Why
node 18.0.0 Authoritative version from packages/safe-docx/package.json engines field
npx Bundled with npm Used by the recommended MCP connector to launch the server

If you prefer not to use npx, see Offline / Pinned Installation below for alternatives.

Safety Model

Safe-DOCX's safety model has two distinct phases: install time (when the package is fetched) and runtime (when the MCP server is running).

Install-Time Behavior (network required, one-time)

  • npm registry fetch — the recommended connector command npx -y @usejunior/safe-docx downloads the package from registry.npmjs.org on first run. Subsequent runs use the cached copy unless the cache is cleared.
  • No postinstall scripts — the package declares no postinstall, preinstall, or install hooks. Verify with npm view @usejunior/safe-docx scripts.
  • Provenance — releases are published with npm provenance (--provenance), so you can verify the package was built from the public GitHub repo via GitHub Actions.
  • If you need guaranteed offline install — pin a specific version and vendor it locally. See the next section.

Read the full file on GitHub · 342 lines

Files

What ships with it

1 file 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. 3d ago First seen · 342 lines · 109 tokens per session scan A bf62bd5fa7ca

Subscribe to this mod's changes

docx-editing is a skill published in the GitHub repository UseJunior/safe-docx (40 stars, last pushed 5d ago), licensed Apache-2.0. It adds 109 tokens to every session and 4,385 once invoked, about $0.0005 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.