ooliuhao

docx-to-md

Officev1.0.0
By ooliuhaoUpdated 2026-05-17@clawhub_ooliuhao/docx-to-md
Documents#文档

According to AlphaMoat, as of 2026-09, docx-to-md has 2,198 downloads and 0 stars — ranked #4,290 of 5,078 AI skills overall, and #331 of 435 in Office.

Installs
287
Downloads
2.2K
Stars
-
Overall Rank
#4,290
Top 85% overall · Top 77% in Office
PlatformInstallsDownloadsStarsComments
ClawHub ↗581.8K--
SkillHub ↗2872.2K-—

Platforms count differently and update at different times.

What this skill does

Usage: call from docx_to_md import docx_to_md and run docx_to_md('input.docx', 'output_dir') in Python, or run python <skill_path>/scripts/docx_to_md.py "file.docx" on the command line (handle argument escaping yourself). Parameters: input_file is the .docx path; output_dir is optional and defaults to creating a same-named _output folder. Outputs: the converted *.md plus extracted image_*.png/jpg/gif. Conversion rules map headings 1-4 to #-####, ordered/unordered lists, tables and images. Requires Python 3.7+ and python-docx (pip install python-docx).

Profile published 2026-10-27

What you can do with it

  • Convert Word documents into Markdown files
  • Extract embedded images as local image files
  • Preserve heading levels, lists and tables per the rule set

When to use it

  • When migrating Word technical docs into Markdown
  • When bulk-extracting images from docx files
  • When preparing documents for Markdown-based publishing

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Convert this weekly report docx to Markdown and extract all images.
Put the conversion output into the docs directory I specify.
Show me how the tables in this document convert.

Monthly Trend

Downloads2.2K
7511.5K2.3K2026-03 · Downloads 8582026-05 · Downloads 1.4K2026-07 · Downloads 1.7K2026-08 · Downloads 1.9K2026-09 · Downloads 2.2K26-0326-09
Stars-
0112026-03 · Stars -2026-05 · Stars -2026-07 · Stars -2026-08 · Stars -2026-09 · Stars -26-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-092.2K—-
2026-081.9K+8.0%-
2026-071.7K—-
2026-051.4K—-
2026-03858—-

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

1.2 KB · ClawHub v1.0.0
---
name: docx-to-md
description: 将Word文档(.docx)转换为Markdown格式并提取图片。使用此技能当用户需要:(1)将Word文档转换为Markdown格式,(2)从Word文档中提取图片,(3)同时完成文档格式转换和图片提取任务。
---

# docx-to-md

将Word文档(.docx)转换为Markdown格式,并提取文档中的图片到指定目录。

## 使用方法
Show all (57 lines)

运行脚本进行转换:
```python
import sys
sys.path.insert(0, '<skill目录>/scripts')
from docx_to_md import docx_to_md

docx_to_md('输入文件.docx', '输出目录')
```

或在命令行运行(需手动处理参数转义):
```bash
python <skill路径>/scripts/docx_to_md.py "文件.docx"
```

## 参数

- `input_file`: Word文档路径(.docx)
- `output_dir`: 输出目录(可选,默认创建同名_output文件夹)

## 输出

- `*.md`: 转换后的Markdown文件
- `image_*.png/jpg/gif`: 提取的图片文件

## 转换规则

| Word格式 | Markdown |
|----------|----------|
| 标题1 | # 标题 |
| 标题2 | ## 标题 |
| 标题3 | ### 标题 |
| 标题4 | #### 标题 |
| 无序列表 | - 内容 |
| 有序列表 | 1. 内容 |
| 表格 | Markdown表格 |
| 图片 | ![](图片) |

## 依赖

- Python 3.7+
- python-docx

```bash
pip install python-docx
```

Popular in Office

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.