agentleFS
phanghonghaophanghonghao/THU-Awesome-Skills/skills/word2html/SKILL.md

word2html

Skill8 starsChanged 3 months agoMITView on GitHub

Convert Word (.docx) files to standalone HTML with tables, images, and math formulas. Handles merged cells (colspan/rowspan), embedded images, bold/italic/underline, and OMML math via MathJax.

  • Installs packages

The file

Files
SKILL.md

Word to HTML Converter

Convert Word (.docx) files to a self-contained HTML page with proper table rendering, images, and math formulas.

When to Use

  • User says "word2html", "docx转html", "word to html"
  • User needs to view/docx content in a browser-friendly format
  • User wants to preserve tables with merged cells and embedded images

How to Use

python ~/.claude/skills/word2html/word2html.py "<input.docx>" ["<output.html>"]
  • input.docx (required): Path to the Word file
  • output.html (optional): Output file path. Defaults to same name with .html extension

Examples

# Convert (output = input_name.html)
python ~/.claude/skills/word2html/word2html.py "document.docx"

# Convert with specific output path
python ~/.claude/skills/word2html/word2html.py "document.docx" "output.html"

Features

FeatureDetails
TablesFull support including merged cells (colspan/rowspan)
ImagesExtracted to images/ folder, embedded as <img> tags
MathOMML formulas converted to LaTeX, rendered via MathJax CDN
FormattingBold, italic, underline, strikethrough
StylingBuilt-in CSS with Chinese fonts, responsive layout

Dependencies

  • python-docx must be installed: python -m pip install python-docx
  • MathJax loads from CDN (requires internet for math rendering)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.