md-to-word SKILL.md skillA
md-to-word from huangwb8/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add huangwb8/skills/md-to-word@git:20260905.a346b91Pins git:20260905.a346b91 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- huangwb8/skills
- Path
skills/beta/md-to-word/SKILL.md- Versions recorded
- 5
- Latest version
- git:20260905.a346b91, committed Sep 5, 2026
- First version recorded
- Aug 25, 2026
- Size
- 10,764 bytes
- Repository stars
- 50
- License
- MIT
将一个或多个 Markdown 文档转换为格式优美的 Word(.docx),基于 Pandoc + 内置 reference.docx 模板(可选自定义模板),并确保不修改任何原始 Markdown 文件。内置模板已修复命名空间兼容性问题,支持 RGBA 图片自动转换。.
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
# md-to-word(Markdown 转 Word) ## 目标 将一个或多个 Markdown 文档转换为格式优美的 Word(.docx),基于 Pandoc + 内置 reference.docx 模板(可选自定义模板),并确保不修改任何原始 Markdown 文件。内置模板已修复命名空间兼容性问题,支持 RGBA 图片自动转换。 ## 流程 ### 输入 输入为一个或多个 Markdown 文件;可选输入包括内置或自定义 `reference.docx`、输出目录、Pandoc 参数和图片处理选项。转换不得修改原始 Markdown,输出路径须在用户授权范围内。 ### 执行步骤 #### 你要解决的问题 用户给你一个或多个标准 Markdown 文档,希望把它们转换成**排版美观、可审查、可交付**的 Word(`.docx`),并且能在不同项目里复用同一套转换流程与样式模板。 **常见问题解决方案**: - **RGBA PNG 导致 Word 警告**:使用 `--fix-images` 自动转换为 RGB 模式 - **图片路径问题**:脚本自动处理相对路径资源引用 - **中文排版问题**:使用 `--template cn-modern` 获得更好的中文样式 #### 内置模板(Pandoc reference.docx) 内置模板文件位于 `assets/`: - `default`:`assets/reference-default.docx` - `cn-modern`:`assets/reference-cn-modern.docx`(中文更友好字体/样式) - `compact`:`assets/reference-compact.docx`(更紧凑段落间距) #### 推荐执行方式 优先运行确定性脚本 `scripts/md_to_word.py`,避免 AI 手写 Pandoc 命令导致参数缺失或误覆盖。 示例: ```bash python3 md-to-word/scripts/md_to_word.py \ --template cn-modern \ --output-dir /path/to/out \ /path/to/a.md /path/to/b.md ``` 如用户需要自定义样式,允许: - 使用 `--reference-doc /path/to/reference.docx` 覆盖内置模板(用户自带)。 - 需要用同一份 Markdown 生成多套风格时,使用 `--output-suffix` 避免覆盖(默认不覆盖)。 …
Read the whole file at its exact version.
How to install
mdr add huangwb8/skills/md-to-word@sha256:dabbbbd327eabb79The line at the top of this page pins the label git:20260905.a346b91, 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_t3hq576ufw2nffzs)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Aug 25, 2026 and Sep 5, 2026, about one every 3 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260905.a346b91 latest | 2026-09-05 | a346b91 | 10,764 B | A | view · diff |
| git:20260905.7c0ea7c | 2026-09-05 | 7c0ea7c | 10,725 B | A | view · diff |
| git:20260905.8faacfe | 2026-09-05 | 8faacfe | 9,998 B | A | view · diff |
| git:20260905.a39953d | 2026-09-05 | a39953d | 9,687 B | A | view · diff |
| git:20260825.4f192d9 | 2026-08-25 | 4f192d9 | 8,781 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 (10764 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
huangwb8/skills · 50 stars · license MIT · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_t3hq576ufw2nffzs GET https://markdownregistry.com/api/v1/resolve?ref=huangwb8/skills/md-to-word GET https://markdownregistry.com/api/v1/blob/dabbbbd327eabb792ef95e7651e903f44f4d080b735864865e1004b3b3097d18
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.