docx

docx is a skill for Claude Code, Codex from woodfishhhh/EZ_math_model. It costs 40 tokens per session (685 once invoked), scanned A, original, MIT.

A document-handling skill for converting Markdown research reports to Word files and reading Word problem statements. Markdown is plain-text formatting, while DOCX is Microsoft Word’s document format.

In plain words
What is it for?
Use it to create or inspect paper.docx files, apply a Word template, embed images, convert equations and tables, and diagnose missing or incorrectly converted content.
Why use it?
It helps preserve equations, tables, images, and references when moving between text-based reports and Word. It also checks whether the exported document contains the expected document elements.

Skill for Claude CodeCodex

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

Good fit Use it to create or inspect paper.docx files, apply a Word template, embed images, convert equations and tables, and diagnose missing or incorrectly converted content.

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

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/woodfishhhh/ez_math_model/docx/github.svg)](https://agentmods.dev/skills/woodfishhhh/ez_math_model/docx)
Your own site
<a href="https://agentmods.dev/skills/woodfishhhh/ez_math_model/docx"><img src="https://agentmods.dev/badge/skills/woodfishhhh/ez_math_model/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 docx

Your own site · 80×15
<a href="https://agentmods.dev/skills/woodfishhhh/ez_math_model/docx"><img src="https://agentmods.dev/badge/skills/woodfishhhh/ez_math_model/docx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 685 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
  • 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.00040 $0.00685
Opus 5.5 $0.00016 $0.00274
Sonnet 5.5 $0.00008 $0.00137
Haiku 4.5 $0.00004 $0.00068

Measured 1mo ago against content hash 02372162e493, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 1mo 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/ez-math-model/tools/docx/SKILL.md · 70 lines

What it actually says

docx — Word 文档读写与打包

何时使用

  • 把 paper.md 转换为 paper.docx。
  • 读取用户上传的 .docx 题目。
  • 需要参考模板、图片嵌入、公式对象或表格保真。

优先链路

  1. 宿主 docx skill。
  2. pandoc 直调。
  3. python-docx 兜底。

Markdown 转 DOCX

pandoc paper.md `
  --from gfm+tex_math_dollars+pipe_tables `
  --to docx `
  --output paper.docx `
  --resource-path .

有参考模板时追加:

--reference-doc <template.docx>

DOCX 转文本

优先使用宿主 docx skill。没有宿主能力时,用 python-docx 提取段落和表格,再写成 Markdown 友好文本。

产出要求

  • 输出文件默认与 paper.md 同目录:paper.docx。
  • 图片必须嵌入,不保留失效本地链接。
  • $...$ 与 $$...$$ 尽量转换为 Word 可编辑公式;失败时保留原始 LaTeX 文本并写诊断。

对象级验收

DOCX 不是“文件存在就合格”。转换后必须把 .docx 当 zip 解包检查:

  • word/document.xml 必须存在且可读取。
  • 公式验收:统计 m:oMath / m:oMathPara。若 paper.md 有公式但 DOCX 中 公式对象数为 0,formal 模式失败。
  • 图片验收:统计 word/media/*。Markdown 图片引用数不得超过嵌入图片数; 缺图必须列出文件名。
  • 表格验收:统计 w:tbl。Markdown 表格应转换为 Word 表格对象;未转换时至少 降级为 warning,formal 视严重程度阻塞。
  • LaTeX fallback:统计 word/document.xml 中残留 $...$。formal 模式下残留 公式文本不得直接标为通过。

EZMM 内置 scripts/runtime/audit_export.py 会执行上述检查,生成 export_audit.json 与 export_audit.md。

失败诊断

情况 处理
宿主 skill、pandoc、python-docx 都不可用 保留 paper.md,在 diagnostics.md 写缺失工具
公式渲染异常 formal 模式阻塞正式发布;demo 模式保留 LaTeX 文本并降级
图片路径错误 检查 Markdown 相对路径和 --resource-path
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. 1mo ago First seen · 70 lines · 40 tokens per session scan A 02372162e493

Subscribe to this mod's changes

docx is a skill published in the GitHub repository woodfishhhh/EZ_math_model (43 stars, last pushed 2mo ago), licensed MIT. It adds 40 tokens to every session and 685 once invoked, about $0.0002 per session on Opus 5.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.