Bibek KC

DOCX TO HTML CONVERTER

辦公效率v1.0.0
作者:Bibek KC更新於 2026-05-11docx-to-html@clawhub_bibekyess/docx-to-html
檔案處理#Browser#Document

據 AlphaMoat 統計,截至 2026-09,DOCX TO HTML CONVERTER 累計下載 872 次、獲 0 個星標,在全部 5,078 個 AI 技能中排名第 5,066 位,在「辦公效率」分類(435 個)中排名第 433 位。

累計安裝
106
累計下載
872
星標
-
全站排名
#5,066
全站前 100% · 「辦公效率」前 100%
平台累計安裝累計下載星標評論
ClawHub ↗21847--
SkillHub ↗106872-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

主文描述使用 Python 包裝指令碼和 Node.js 的 mammoth 轉換文件結構、表格、列表與圖像,再用於瀏覽器檢視、摘要、問答、索引或資料提取。轉換可能保留文件全文、嵌入圖片和活動連結;只處理獲准的文件,並將輸出儲存在受控位置。生成的 HTML 可能未經清理,不應未經稽核或淨化就嵌入應用或公開提供。

資料釋出於 2026-10-29

可以用來做什麼

  • 提取 DOCX 中的標題、表格和列表
  • 將文件轉換為適合瀏覽器檢視的 HTML
  • 準備文件內容用於索引或問答

什麼時候用

  • 需要把 DOCX 轉換為 HTML 或提取結構化內容時
  • 文件已獲准在當前工作區處理時
  • 生成的 HTML 在釋出或嵌入前可以稽核或淨化時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

說明 DOCX 轉換流程,但不要處理未獲批准的文件
轉換後提醒檢查 HTML 是否含敏感內容和活動連結
在把輸出嵌入應用前先列出需要淨化的風險

月度資料趨勢

累計下載872
2655919172026-03 · 累計下載 3102026-05 · 累計下載 4842026-06 · 累計下載 5702026-07 · 累計下載 7252026-08 · 累計下載 7782026-09 · 累計下載 87226-0326-09
星標-
0112026-03 · 星標 -2026-05 · 星標 -2026-06 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -26-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-09872—-
2026-08778+7.3%-
2026-07725+27.2%-
2026-06570+17.8%-
2026-05484—-
2026-03310—-

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

3.7 KB · ClawHub v1.0.0
---
name: docx-to-html
description: "Use this skill whenever the user has a DOCX file (.docx) and wants to convert, read, view, extract content from, or process it in any way — including summarization, displaying in a browser, extracting tables or lists, or feeding into AI pipelines. Always use this skill for any task involving .docx files, even if the request seems simple. Triggers include: 'convert docx', 'open word file', 'read word document', 'extract tables from docx', or any mention of a .docx filename."
---

# DOCX to HTML Converter

This skill provides a straightforward method to convert Microsoft Word (.docx) documents into clean, semantic HTML, making them suitable for various web-based and AI-driven applications.

## Compatibility
展開全部(共 74 行)

- **Python 3** (for the conversion wrapper)
- **Node.js** with `mammoth` installed (core conversion engine)

To install Node.js dependencies, run once from the `scripts/` directory:
```bash
npm install
```

## Use Cases

- **Browser-Based Viewing**: Convert DOCX documents for display in web browsers without requiring Microsoft Word.
- **AI-Ready Content**: Prepare DOCX content for LLMs for tasks like summarization, Q&A, and semantic search.
- **Web Integration**: Integrate Word document content into web applications, CMS, or online editors.
- **Data Extraction**: Extract structured data (tables, lists, headings) from DOCX files for automated reporting and analysis.
- **Search and Indexing**: Enable full-text and vector search by converting DOCX content into easily indexable HTML.

## Workflow

1. **Locate DOCX File**: Identify the path to the `.docx` file to convert.

2. **Run Conversion Script**: Execute the Python wrapper from the skill's `scripts/` directory:
   ```bash
   python3 <skill-dir>/scripts/convert.py <input_path.docx> <output_path.html>
   ```
   Replace `<skill-dir>` with the actual path where this skill is installed.

3. **Verify Output**: Open the generated `.html` file in a browser and check:
   - Headings (`<h1>`, `<h2>`, etc.) appear at the correct hierarchy levels
   - Tables render with the expected rows and columns
   - Lists appear as bullet or numbered items (not plain text)
   - Bold, italic, and inline formatting are preserved
   - Images are visible (embedded as base64 by default)

4. **Process HTML**: Use the resulting HTML for further tasks like summarization, indexing, or display.

## Bundled Resources

- `scripts/docx-converter.js`: Core Node.js conversion logic using `mammoth.js`.
- `scripts/convert.py`: Python wrapper for invoking the Node.js converter.
- `scripts/package.json`: Node.js dependency manifest (includes `mammoth`).

## Technical Details

The conversion leverages `mammoth.js`, which prioritizes semantic meaning over visual replication:

- **Semantic Conversion**: Document structure maps to proper HTML — headings become `<h1>`/`<h2>`, lists become `<ul>`/`<ol>`, etc.
- **Basic Styling**: Bold, italics, and common paragraph styles are preserved.
- **Image Embedding**: Images are extracted and embedded as base64 data URIs in the HTML output.

## Troubleshooting

| Problem | Likely Cause | Fix |
|---|---|---|
| `node: command not found` | Node.js not installed | Install Node.js (v16+) |
| `Cannot find module 'mammoth'` | npm deps missing | Run `npm install` in `scripts/` |
| Empty or garbled output | Corrupted or password-protected DOCX | Try re-saving the file from Microsoft Word |
| Missing images | Large embedded images | Check `mammoth.js` image size limits in `docx-converter.js` |

## Limitations

- Advanced or highly specific styling from the original DOCX may not be perfectly replicated in the HTML output.
- Features like tracked changes, comments, or complex layout elements may be simplified or omitted.

「辦公效率」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。