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.
npx skills add event4u-app/agent-config --skill docx-authoringgit clone --depth 1 https://github.com/event4u-app/agent-configWrote 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.
[](https://agentmods.dev/skills/event4u-app/agent-config/docx-authoring)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
- Re-open the generated file with the SAME library; assert it parses (a corrupt ZIP or malformed XML throws here).
- Read back one written value (a heading text, a table cell) and assert it equals what was written.
- For the unpack→pack path: confirm the archive still contains
[Content_Types].xmlandword/document.xml(dropping either produces a file Word refuses to open).
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.
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.
- 7d ago First seen · 104 lines · 49 tokens per session scan A ca8f071416d7
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.
Other skills, from other repositories
markitdown
Convert documents (PDF, Word, Excel, PowerPoint, images) to Markdown text for LLM processing.
lov-rich-export
A content-export workflow that converts one source document into HTML, Markdown, DOCX, PDF, or an offline delivery package. It accounts for images, audio, video, embedded pages, and interactive charts in each format.
notion-recipes
Use this skill when a user wants to turn meeting notes into a tracked Action Items database in Notion, or to bulk-edit, find-replace, normalize, or repair Notion database rows or page text at a scale past Notion's native find-and-replace limits. Uses easy-notion's MCP tools.
markdown
Documentation and content creation standards.
template-textbook
Modular fillable textbook scaffold — parts/chapters/labs/question banks from config.yaml, auto-numbering, deterministic figures, structural contract enforcement.
confluence-attachment
Manage file attachments - upload, download, list, and delete attachments. ALWAYS use when user wants to work with files on pages.