huashu-md-html-r7jt

Script Markdown-to-HTML skill: for converting script-style Markdown content into HTML, supporting an AI agent in efficiently completing related conversion tasks.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "huashu-md-html-r7jt" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6e87dc263f533735b0a1a3908d1ddf3a38dd56142c9d3fae282222a4441c1885. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/huashu-md-html-r7jt before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Script Markdown-to-HTML skill: for converting script-style Markdown content into HTML, supporting an AI agent in efficiently completing related conversion tasks.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: 四向文档流水线
slug: huashu-md-html
version: 1.0.0
displayName: 四向文档流水线
description: >
  话术Markdown转HTML专用技能,帮助AI Agent高效完成相关任务。
summary: "话术Markdown转HTML专用技能,帮助AI Agent高效完成相关任务。"
license: MIT
category: 办公效率
framework:
  - Claude Code
  - Codex
  - Hermes Agent
  - OpenClaw
  - QClaw
  - WorkBuddy
platform: multi-platform
homepage: "https://github.com/1991513ccie-png"
repository: "https://github.com/1991513ccie-png"

花叔的 Markdown/HTML/DOCX 多向流水线

md 是源代码,html / docx 是产物。这个 skill 把多端的最优解打通成一条流水线。

四个能力(决策树)

用户说什么 走哪个能力 工具
"把 PDF/DOCX/PPTX/XLSX/EPUB/图片/音频转成 md" 能力1:万物→md scripts/any_to_md.py
"把 md 做成网页/出色 html" 能力2:md→精美html scripts/md_to_html.py
"这个 html 转回 md" / "博客 URL 转 md" 能力3:html→md scripts/html_to_md.py
"把 md 做成出版社可审校的 word" 能力4:md→精美docx scripts/md_to_docx.py

决策原则:能力1 产出的 md 可直接喂给能力2 组成一条龙。能力3 用于反向归档。能力4 是出版终点——给出版社用 docx,不用 html 或 md。

URL 场景分流

页面类型 走哪个 原因
结构化页面(产品详情、API doc、证书页) 能力1 保留 metadata、字段值、链接
正文类页面(博客、新闻、公众号文章) 能力3 自动去导航/广告/侧栏
不确定 两个都跑 对比看哪个合适

判断捷径:内容是「读」的走能力3,是「查」的走能力1。

核心审美底线

每份 html 必须符合以下标准,违反任一条都重做:

  • 配色:克制色(赤陶橙/象牙白/墨水蓝/安静灰),禁止紫渐变、赛博霓虹
  • 字体:中文衬线(思源宋)+ 英文 serif/Inter,禁止 Comic Sans
  • 图标:真图优先,禁止 emoji 作正式图标
  • 容器:诚实分隔(细线/留白/字体级差),禁止圆角卡片+左border烂大街组合
  • 节奏:行高 1.75-1.85(中文),最大宽度 680-820px

能力1:万物 → md

封装 markitdown v0.1.5+,兼容 20+ 种格式(PDF/DOCX/PPTX/XLSX/HTML/CSV/JSON/XML/图片/音频/YouTube/EPub/ZIP)。

python scripts/any_to_md.py input.pdf
python scripts/any_to_md.py input.docx -o output.md
python scripts/any_to_md.py "https://www.youtube.com/watch?v=xxx"
python scripts/any_to_md.py photo.jpg --llm-describe   # LLM 图片描述

已知坑:扫描 PDF 不做 OCR、复杂表格丢失语义、PPTX 丢动画、输出为 LLM 消费设计。

能力2:md → 精美html

封装 Pandoc + 4 套模板:

模板 风格 适合
article Tufte CSS 启发 essay、博客、深度阅读
report 出版社白皮书风 技术报告、白皮书
reading Medium 极简 公众号转接、纯阅读
interactive 长文档导航型 橙皮书章节、技术书籍
python scripts/md_to_html.py article.md                    # 默认 article
python scripts/md_to_html.py report.md --theme report
python scripts/md_to_html.py input.md --inline-images      # base64 嵌入

兜底模式(不耗 token):pandoc 二进制 5 秒出结果,是默认行为。设计师模式(耗 token):AI 读内容、推荐 3 个设计方向、定制视觉表达——说"做个出色的 html"或"看看几种风格"时触发。

能力3:html → md

封装 html-to-markdown(Rust 底层,150-280MB/s)+ trafilatura(正文提取)。

python scripts/html_to_md.py input.html                   # 本地 HTML
python scripts/html_to_md.py "https://example.com/article" # 博客 URL
python scripts/html_to_md.py input.html --no-extract

最适合博客/新闻/Essay/公众号长文。不适合产品页/API doc(改用能力1)。

能力4:md → 精美docx

封装 python-docx + 出版社级排版预设(大32开/思源宋体/Georgia/代码字体/章标题橙色分隔线/引用块配色/自动页码)。

python3 scripts/md_to_docx.py article.md
python3 scripts/md_to_docx.py ch*.md --book --title "书名" --author "作者" -o book.docx
python3 scripts/md_to_docx.py article.md --page-size a4   # A4 报告

支持图片自动嵌入(内联式和引用式),引用式支持按 ref 名约定路径自动查找。

异常处理

  • markitdown 未安装:pip install 'markitdown[all]'
  • pandoc 未安装:brew install pandoc
  • 输入文件不存在:立即报错
  • URL 请求失败:降级提示检查网络/VPN
  • python-docx 未安装:python3 -m pip install python-docx Pillow

一条龙工作流示例

# PDF 白皮书 → 精美阅读 html
python scripts/any_to_md.py whitepaper.pdf -o whitepaper.md
python scripts/md_to_html.py whitepaper.md --theme report

# YouTube 视频 → 文章博客
python scripts/any_to_md.py "https://youtube.com/watch?v=xxx" -o video.md
python scripts/md_to_html.py video.md --theme article

# 整本橙皮书 → 出版社审校 docx
python scripts/md_to_docx.py md-v2/ch*.md --book --title "书名" -o book.docx

核心提醒:md 是源、html 必反 slop、URL 输入双路径、docx 给人不给 LLM、Junior 先问再做。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供完整的文档格式转换流水线,覆盖 PDF/DOCX/HTML/Markdown 等多格式互转
  • 明确区分四种核心能力并给出决策树,用户可根据需求选择合适路径
  • 包含一条龙工作流示例,提升实际使用效率
Trigger Precision65/100

Areas to improve

  • 触发词覆盖不全 Reported severity: Minor

    description 仅提及'Markdown转HTML',但实际功能涵盖四种能力(万物→md、md→html、html→md、md→docx)

    Recommendation: 建议更新 description 为'文档格式多向转换流水线,支持 PDF/DOCX/HTML/Markdown 互转'

Highlights

  • 功能描述在 skill_body 中有详细说明,用户可了解完整能力范围
Structure and Standards75/100

Areas to improve

  • 缺少 When to Use 章节 Reported severity: Minor

    文档结构完整但未设置明确的 When to Use 使用场景说明章节

    Recommendation: 建议增加 When to Use 章节,明确说明适用场景和使用时机

Highlights

  • 文档结构清晰,分能力模块说明,配有决策树和示例
  • frontmatter 完整,包含版本、许可证、分类等信息
  • 提供异常处理说明和一条龙工作流示例
Execution Reliability80/100

Areas to improve

  • description内容截断 Reported severity: Major

    顶层 frontmatter 中 description 字段内容被截断,仅显示'话术Markdown转HTML专用技能,帮助AI Agent高效完成相关任务。'

    Recommendation: 建议将完整描述写入顶层 frontmatter 的 description 字段,或确保内容完整显示

Highlights

  • 工具来源明确,封装了 markitdown、pandoc、html-to-markdown、python-docx 等成熟工具
  • 参数说明清晰,提供多种使用示例和选项
  • 覆盖主要异常情况并提供解决方案
Evidence Verifiability (mean of the first four)76/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • example.com
  • github.com
  • www.youtube.com
  • youtube.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.