技能详情(站内镜像,无评论)
作者:rongyu @andyrong
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.0.0
统计:⭐ 3 · 361 · 2 current installs · 2 all-time installs
⭐ 3
安装量(当前) 2
🛡 VirusTotal :良性 · OpenClaw :良性
Package:andyrong/md2word-cn
安全扫描(ClawHub)
- VirusTotal :良性
- OpenClaw :良性
OpenClaw 评估
The skill's code and instructions match its description: a local, straightforward Markdown→Word converter that reads a provided .md and writes a .docx with no network calls, no secret access, and no elevated persistence.
目的
Name/description (Markdown→Word for Chinese, using 仿宋) align with the included script and examples. The single Python script implements the conversion and the SKILL.md shows how to run it; no unrelated binaries or credentials are requested.
说明范围
SKILL.md instructs installing python-docx and running the script on an input file to produce an output file. The instructions only reference the input/output files and the tool itself; they do not request reading other system files, environment variables, or sending data externally.
安装机制
There is no install spec for the skill bundle. SKILL.md recommends pip3 install python-docx which is appropriate and proportional. No downloads from unknown URLs or archive extraction are present.
证书
The skill requires no environment variables, credentials, or config paths. The script only reads the provided input file and writes the output .docx — no secrets or unrelated environment access.
持久
always is false and the skill is user-invocable. It does not request permanent presence or attempt to modify other skills or agent configuration.
综合结论
The bundle is self-contained and the Python source is readable and benign: it parses a Markdown file and writes a .docx locally using python-docx. Before installing, note that (1) source/homepage are unknown — you have the script here to inspect, which is good practice; (2) install python-docx in a virtual environment (venv) to avoid affecting system packages; (3) the script performs basic, manual Markdown parsing (not a full CommonMark implementation), so validate output on representative files; (4) ensure the target machine has the desired Chinese font (仿宋) or Word will substitute a fallback. No credentials or network access are requested by the skill.
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Markdown转Word(支持中文)」。简介:将 Markdown 文档转换为 Word 文档,专为中文文档设计。支持完整的 Markdown 语法,字体统一使用仿宋。适用于周报、日报、报告等中文办公文档…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/andyrong/md2word-cn/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: md2word-cn
developer: rongyu(荣彧)
description: |
将 Markdown 文档转换为 Word 文档,专为中文文档设计。支持完整的 Markdown 语法,字体统一使用仿宋。适用于周报、日报、报告等中文办公文档的转换。
---
# md2word-cn
专为中文文档设计的 Markdown 转 Word 转换器。
## 快速开始
```bash
# 安装依赖
pip3 install python-docx
# 转换文件
python3 <skill>/scripts/md2word.py <输入.md> <输出.docx>
```
## 支持的 Markdown 语法
| 语法 | 效果 |
|------|------|
| `# 一级标题` | 居中标题,22pt,加粗 |
| `## 二级标题` | 16pt,加粗 |
| `### 三级标题` | 14pt,加粗 |
| `#### 四级标题` | 12pt,加粗 |
| `**加粗**` | 加粗 |
| `*斜体*` | 斜体 |
| `~~删除线~~` | 删除线 |
| `` `代码` `` | 行内代码 |
| ```` ```代码块``` ```` | 代码块 |
| `[链接](url)` | 链接 |
| `1. 有序列表` | 有序列表(手动编号,避免重复) |
| `- 无序列表` | 无序列表 |
| `> 引用` | 引用 |
| `---` | 水平分割线 |
## 字体格式
- 正文:仿宋 12pt
- 一级标题:仿宋 22pt,居中加粗
- 二级标题:仿宋 16pt 加粗
- 三级标题:仿宋 14pt 加粗
- 四级标题:仿宋 12pt 加粗
## 使用示例
```bash
# 转换周报
python3 ~/.agents/skills/md2word-cn/scripts/md2word.py weekly_report.md weekly_report.docx
# 转换报告
python3 ~/.agents/skills/md2word-cn/scripts/md2word.py report.md report.docx
```
## 脚本
- `scripts/md2word.py` - 主转换脚本
## 注意事项
- 有序列表使用手动编号,避免 Word 自动编号导致的重复
- 代码块样式为灰色背景
- 链接自动添加下划线