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.

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/woodfishhhh/ez_math_model/docx
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.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.svg" alt="Measured on agentmods" 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. 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.1 $0.00040 $0.00685
Opus 5 $0.00020 $0.00342
Sonnet 5 $0.00008 $0.00137
Haiku 4.5 $0.00004 $0.00068

Measured 6d ago against content hash 02372162e493, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 6d 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.jsonexport_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. 6d 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 (40 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 685 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-08-30.

Related

Other skills, from other repositories

math-modeling-solver

数学建模竞赛解题全流程指导。覆盖国赛(CUMCM)和美赛(MCM/ICM)全部题型(A-F),提供12种问题本质分析、95+场景模型决策矩阵、5本算法Cookbook、11本完整例题Playbook、22个Python+7个MATLAB可运行代码模板。与math-modeling-paper形成"解题→写作"配对。当用户提及建模思路、选什么模型、怎么建模、赛题求解、粘贴赛题文本、美赛/国赛题目分析、CVaR/NSGA-II/Monte Carlo/时间序列/ANOVA/灰色关联、网络流/图论/生态建模、模型命名/Memo/Letter/Our Work流程图时,使用此skill。.

Lupynow/math-modeling-skills · 186 tokens

mathmodel-skill

CUMCM 国赛、MCM/ICM 美赛与电工杯数学建模竞赛的端到端协作工作流。Use when a user explicitly works on one of these modeling contests or asks to run/review a modeling-competition paper from problem selection through modeling, solving, robustness, writing, compliance, and final submission review. Provides 10 stages, persistent decision state…

handsomeZR-netizen/mathmodel-skill · 127 tokens

math-modeling-paper

数学建模竞赛论文写作全流程指导。覆盖国赛(CUMCM)和美赛(MCM/ICM),从论文结构规划、各章节撰写、模型检验、参考文献规范到最终格式检查。与math-modeling-solver形成"解题→写作"配对——可接收solver输出的论文草稿片段直接展开写作。当用户提及数学建模论文写作、建模比赛、国赛/美赛/电工杯/亚太杯/深圳杯/华为杯论文、CUMCM、MCM/ICM、数模论文结构、摘要写作、模型检验、灵敏度分析、latex建模模板、word建模排版、Memo/Letter写作、模型命名、Our Work流程图,或需要写/修改/优化/检查建模论文的任何部分时,都必须使用此 skill。.

Lupynow/math-modeling-skills · 202 tokens

math-modeling-finalizer

数学建模项目收口与终审 Skill。用于正式结果已基本冻结后的参赛者尺度代码简化与行为回归、最终完整复审、AI 工具使用详情 DOCX、Word/PDF 排版检查、支撑材料 ZIP 与提交前卫生检查。典型请求包括“结果已经定了,把代码改得更像学生项目”“最后完整审一遍”“检查最终 Word/PDF”“生成 AI 使用详情和支撑材料”。若需要重新建模、修改 evaluator 或正式结果,路由回 math-modeling-solver;正文、摘要、引用语义或公式写作问题路由回 math-modeling-paper;提交后的项目复盘/教学交给 math-modeling-growth。.

mantou6666/Math-Modeling-Agent-Flow · 160 tokens

modeling-delivery-gate

Final delivery checker for support archives, DOCX/static checks and exact-PDF visual review. Missing exact PDF remains NOTVERIFIED.

mantou6666/Math-Modeling-Agent-Flow · 33 tokens

xlsx

Skill "xlsx" from MrSGSA/math-modeling-skill-dify, covering excel 工具, 原则, 读取与写入, 第一行就是数据时必须显式使用 header=none。 and 从题目数据合同、附件说明或独立原始计数填写;未知时保留 none 并先完成核验。.

MrSGSA/math-modeling-skill-dify · 24 tokens