DOCX工具 SKILL.md skillA
This file is byte-identical to the first copy the registry indexed. Same content hash, so the same checks give both the same grade.
DOCX工具 from xiaomacoltai/math-modeling-skill is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add xiaomacoltai/math-modeling-skill/DOCX工具@git:20260724.15aa6a3Pins git:20260724.15aa6a3 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- xiaomacoltai/math-modeling-skill
- Path
tools/docx/SKILL.md- Versions recorded
- 5
- Latest version
- git:20260724.15aa6a3, committed Jul 24, 2026
- First version recorded
- Jun 30, 2026
- Size
- 6,764 bytes
- Repository stars
- 1,886
- License
- none declared
创建、编辑、校验和转换 Word DOCX,支持把完整 LaTeX 论文转换为 DOCX,以及数学建模论文模板、原生公式、三线表、修订和批注。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# DOCX 工具
## 路径与写入
- 当前目录为本工具根目录,只读。
- 模板和脚本从本目录读取。
- 生成或修改后的 DOCX 必须写入用户 `PROJECT_ROOT`。
- 默认不覆盖输入文件或 Skill 文件。
## 数学建模论文推荐流程
采用“当届官方参考模板 + `python-docx` 构建 + OMML 公式 + OOXML 校验 + 渲染抽检”。官方模板控制页面、样式、分节、页眉页脚和编号;代码负责稳定写入内容。
```python
from pathlib import Path
import sys
scripts = Path("<SKILL_ROOT>") / "tools" / "docx" / "scripts"
sys.path.insert(0, str(scripts))
import paper_format as pf
doc = pf.new_document(
contest="cumcm",
template_path=Path("<PROJECT_ROOT>") / "当届官方模板.docx",
preserve_template_content=False,
)
# 此示例只借用模板样式后追加正文。
# 若官方模板包含固定摘要页或编号页,应改为 True 并在原位置填充。
pf.title(doc, "论文题目")
pf.abstract_title(doc)
pf.body(doc, "摘要正文。")
pf.keywords(doc, "优化;预测")
pf.equation(doc, r"\min f(x)=\sum_{i=1}^{n}x_i^2")
pf.three_line_table(doc, [["符号", "说明"], ["x", "决策变量"]])
pf.save_document(doc, Path("<PROJECT_ROOT>"), contest="cumcm")
```
## 公式
### 直接写入
`scripts/equations.py` 把常用 LaTeX 子集转成 Word 原生 OMML。未知命令、未闭合分组和不支持环境会报错,不会静默生成错误文本。
```powershell
python scripts/equations.py replace "输入.docx" `
--replace "EQ_OBJECTIVE" "\min f(x)=\sum_{i=1}^{n}x_i^2" `
--output "<PROJECT_ROOT>/输出.docx"
```
…Read the whole file at its exact version.
How to install
mdr add xiaomacoltai/math-modeling-skill/DOCX工具@sha256:f81aa71a841ed285The line at the top of this page pins the label git:20260724.15aa6a3, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_yuxoaz7d3baxguzc)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Jun 30, 2026 and Jul 24, 2026, about one every 6 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260724.15aa6a3 latest | 2026-07-24 | 15aa6a3 | 6,764 B | A | view · diff |
| git:20260724.b846ffb | 2026-07-24 | b846ffb | 5,356 B | A | view · diff |
| git:20260722.6036180 | 2026-07-22 | 6036180 | 5,320 B | A | view · diff |
| git:20260710.6a77adb | 2026-07-10 | 6a77adb | 3,923 B | A | view · diff |
| git:20260630.7acf374 | 2026-06-30 | 7acf374 | 37,952 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (6764 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
xiaomacoltai/math-modeling-skill · 1,886 stars · license none declared · pushed 2026-10-22 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_yuxoaz7d3baxguzc GET https://markdownregistry.com/api/v1/resolve?ref=xiaomacoltai/math-modeling-skill/DOCX工具 GET https://markdownregistry.com/api/v1/blob/f81aa71a841ed285dc155dd6f2df4c84e9b5e6ab9fd94eba8553329ce56f3a37
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from xiaomacoltai/math-modeling-skill
Every file in xiaomacoltai/math-modeling-skill