docx-authoring

docx-authoring is a skill for Claude Code, Codex from event4u-app/agent-config. It costs 49 tokens per session (1,339 once invoked), scanned A, original, MIT.

A workflow for creating or editing Microsoft Word .docx files, including filling templates and making small changes to document content.

In plain words
What is it for?
It helps generate structured documents, fill placeholders in templates, and edit headings, table cells, styles, or document XML.
Why use it?
It helps produce valid Word files while preserving the original template and checking that the saved document still works.

Skill for Claude CodeCodex

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

Good fit It helps generate structured documents, fill placeholders in templates, and edit headings, table cells, styles, or document XML.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/event4u-app/agent-config/docx-authoring
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 event4u-app/agent-config --skill docx-authoring
Clone the repo
git clone --depth 1 https://github.com/event4u-app/agent-config

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/event4u-app/agent-config/docx-authoring/github.svg)](https://agentmods.dev/skills/event4u-app/agent-config/docx-authoring)
Your own site
<a href="https://agentmods.dev/skills/event4u-app/agent-config/docx-authoring"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/docx-authoring/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 docx-authoring

Your own site · 80×15
<a href="https://agentmods.dev/skills/event4u-app/agent-config/docx-authoring"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/docx-authoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,339 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.00049 $0.01339
Opus 5 $0.00024 $0.00669
Sonnet 5 $0.00010 $0.00268
Haiku 4.5 $0.00005 $0.00134

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

Security

Grade A, and why

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

src/skills/docx-authoring/SKILL.md · 104 lines

How it starts

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

docx-authoring

Wing-1 engineering skill for writing Word documents — the generation half of the read→write cycle whose read side is markitdown. Ships zero runtime in this package: the agent drives a library the consumer already has (python-docx, or a zip+XML toolchain), exactly as markitdown wraps a consumer-installed converter. Re-implements the pattern, never any proprietary source.

When to use

  • "Generate a .docx report / letter / contract from this content."
  • "Fill this Word template with these values."
  • "Edit the body of this .docx" (a heading, a table cell, a style).

Do NOT use for: reading a docx → Markdown (that is markitdown); slide decks (html-deck, or the gated pptx surface); PDFs (pdf-tools).

Procedure

1. Pick the path by task

Task Path
Create from scratch / structured content Library create (python-docx Document()) — build paragraphs, tables, styles programmatically
Fill a supplied template Open the template, replace placeholder runs in place, save a copy — never mutate the original
Surgical edit of existing body unpack → edit XML → pack-with-validate: a .docx is a ZIP of XML; unzip, edit word/document.xml, re-zip preserving the archive structure

2. Honor the hard-won gotchas (encode as rules, not hope)

  • Page size defaults to US Letter in most libraries — set A4 explicitly when the locale needs it; never assume.
  • Table columns need dual widths — set BOTH the table grid width and each cell width, or renderers ignore one and collapse the layout.
  • No Unicode bullet glyphs as literal characters (, ) — use the list-style paragraph, or the document loses its list semantics and screen readers skip it.
  • Runs, not paragraphs, carry formatting — a placeholder that spans two runs will not match a naive whole-paragraph replace; split/merge runs first.

3. Validate — round-trip, do not trust the write

  1. Re-open the generated file with the SAME library; assert it parses (a corrupt ZIP or malformed XML throws here).
  2. Read back one written value (a heading text, a table cell) and assert it equals what was written.
  3. For the unpack→pack path: confirm the archive still contains [Content_Types].xml and word/document.xml (dropping either produces a file Word refuses to open).

Read the full file on GitHub · 104 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. 7d ago First seen · 104 lines · 49 tokens per session scan A ca8f071416d7

Subscribe to this mod's changes

docx-authoring is a skill published in the GitHub repository event4u-app/agent-config (10 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 1,339 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-09-03.