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で、AIスキル全体5,078件中5,066位、オフィス効率化では435件中433位です。

インストール数
106
ダウンロード数
872
スター数
-
総合順位
#5,066
全体の上位 100% · オフィス効率化の上位 100%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗21847--
SkillHub ↗106872-—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

主文では Python ラッパーと Node.js の mammoth を使って文書構造、表、リスト、画像を変換し、ブラウザー表示、要約、Q&A、索引作成、抽出に利用する方法を説明しています。変換後の HTML には全文、埋め込み画像、有効なリンクが残る場合があります。現在のワークスペースで処理が承認された文書だけを扱い、出力は管理された場所に保存してください。生成 HTML は未サニタイズの可能性があるため、アプリへの埋め込みや公開前に確認・サニタイズしてください。

資料公開日 2026-10-29

できること

  • DOCX から見出し、表、リストを抽出する
  • ブラウザー表示用に文書を HTML へ変換する
  • 索引作成や Q&A 用に文書内容を準備する

使う場面

  • 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 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 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)から月単位で集計しています。詳しくはデータの方法論をご覧ください。