markdown-html-orchestrator
它能做什么
这个技能判断一个 Markdown 文件是文档、代码审查还是幻灯片,然后把它交给对应的转换器。适合希望把 Markdown 变成可分享 HTML 页面的人。
适用场景
- ✓当你希望把一份较长的 Markdown 规格说明、报告或解说文档变成单个 HTML 页面时。
- ✓当你有一份 Markdown 格式的代码审查,并希望把它变成双栏 HTML 视图时。
- ✓当你希望把 Markdown 文件变成 HTML 格式的幻灯片时。
技能链接
https://github.com/alirezarezvani/claude-skills/blob/main/markdown-html/skills/markdown-html-orchestrator/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把这份较长的项目规格 Markdown 文件转换成一个我可以分享的 HTML 页面。”
每周 5 个新技能,1 分钟读完。
工作原理
它用一个脚本对 Markdown 文件进行分类,将其分配给文档、审查或幻灯片转换器,并返回已完成 HTML 文件的路径。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Markdown → HTML — Domain Orchestrator
Thariq Shihipar's argument (Claude Code HTML output essay, Medium 2026): markdown collapses past 100 lines for agent-generated artifacts. Long specs, code reviews, and architecture explainers lose density, hierarchy, and lightweight interaction the moment they exceed a screen of text. HTML restores all three — single-file, browser-native, shareable.
This orchestrator forks context, classifies the input markdown deterministically, routes to the right converter sub-skill, and returns a digest with the output path. Heavy intake (full markdown bodies, diffs, slide decks) stays in the forked context.
Domain status (complete): all five skills are live — orchestrator + design-system (onboarding + shared brand tokens) + the three converter sub-skills (md-document, md-review, md-slides). Always route conversions to the shipped converter's scripts; never hand-render HTML inline.
When to invoke
| Symptom | Sub-skill |
|---|---|
| "Convert this RFC / spec / report / explainer to HTML" — long-form doc | md-document |
| "Turn this PR writeup / code review into HTML" — markdown with diff blocks | md-review |
"Make a slide deck from this markdown" — --- boundaries or H1 cadence |
md-slides |
Pre-flight gates (hard refusals)
- Below the 100-line threshold. Markdown wins below 100 lines (Shihipar). The classifier prints
below_min_lines: trueandroute_explainer.pyrefuses. Tell the user to keep their input as markdown. - Design-system not onboarded. If
~/.config/markdown-html/design-system.jsondoesn't exist (or itssetup_completed_atis null), refuse. Point the user atpython3 markdown-html/skills/design-system/scripts/onboard.py(or--defaultsfor a zero-touch run). - Unwritable save location.
output_path_resolver.pyrefuses if the configureddefault_output_dir(or--outoverride) isn't writable.
Routing logic (deterministic)
Two-signal threshold pattern lifted from research-ops/skills/research-ops-skills/SKILL.md. Filename hint = 2 points; each content signal = 1 point. Silent-route allowed when winner ≥ 3 AND (runner-up = 0 OR winner ≥ 2× runner-up). Below threshold → one clarifying question with a recommended answer.
Signal table
| Signal class | Filename hints | Content signals | Sub-skill |
|---|---|---|---|
| DOCUMENT | report.md, *-doc.md, spec.md, rfc-*.md, *-analysis.md, *-explainer.md |
## Table of Contents (2), ^# , ^## , markdown table rows, > [!NOTE]/[!TIP]/[!IMPORTANT] callouts |
md-document |
| REVIEW | review.md, *-pr-*.md, *.diff.md, code-review*.md |
```diff (2), ^[-+]{3} (2), ^@@ (2), > [!BLOCKER]/[!MAJOR]/[!MINOR]/[!NIT] (2), LGTM/nit:/blocker: |
md-review |
| SLIDES | deck.md, slides.md, *-talk.md, presentation*.md |
^---$ ≥ 3 (2 + per-boundary), <!-- notes: (2), H1 count ≥ 5 with median gap ≤ 12 lines (2) |
md-slides |
The pipeline:
python3 markdown-html/skills/markdown-html-orchestrator/scripts/doctype_classifier.py \
--input <path>.md --output json \
| python3 markdown-html/skills/markdown-html-orchestrator/scripts/route_explainer.py
route_explainer.py checks the design-system status, applies the < 100-line refusal, and prints one of: ROUTE_SILENTLY -> md-<type>, ASK_USER one question: ..., or REFUSE — fix the issues above.
Workflow
Step 1 — Confirm onboarding
If the user has never run onboarding, surface the one-time setup:
python3 markdown-html/skills/design-system/scripts/onboard.py
Ten questions, 1-2 minutes. Captures brand primary + accent + heading/body Google Fonts + design style (editorial/technical/minimal/playful) + default output dir + syntax theme + TOC behavior + optional logo/company. Stored at ~/.config/markdown-html/design-system.json. Re-runnable with --scope project for per-repo overrides.
Step 2 — Classify the input
Run doctype_classifier.py on the markdown. Inspect the verdict.
Step 3 — Route or ask
Pipe the classification into route_explainer.py. If it says ROUTE_SILENTLY, forward the original markdown + the design-system config into the named sub-skill's renderer in the forked context. If it says ASK_USER, ask ONE question with the recommended answer.
Step 4 — Resolve the output path
python3 markdown-html/skills/markdown-html-orchestrator/scripts/output_path_resolver.py \
--input <path>.md --doctype <document|
常见问题
有最短长度要求吗?
有。少于约 100 行的文件会被拒绝,因为这种长度下普通 Markdown 效果更好。
它会生成什么输出?
每次转换都会生成一个独立的 HTML 文件。
需要先设置品牌设置吗?
需要。转换运行前必须先设置好设计系统。
详情
作者的原始描述
Use when the user wants a markdown file turned into a single-file interactive HTML page (document, code review or slide deck). Classifies it with doctype_classifier.py and routes to md-document, md-review or md-slides.
热度
- GitHub 星标
- 29k
- 排名
- #9626
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-launcher-orchestrator
29k帮你的智能体从一个清晰的目标出发,逐步规划、构建、测试并定时运行你自己账户中的 Claude 托管智能体。
grade-iterate
29k让你的智能体按评分标准为托管 AI 智能体的工作打分,并在固定的轮次内改进,因此它永远不会无限循环。
interview
29k让你的智能体就一个 AI 智能体的想法对你进行访谈,并在任何上线之前,把你的回答整理成一份简单的构建计划。
run-without-you
29k帮你的智能体设置托管 AI 智能体,使其按计划或在某个事件发生时运行,并在启动前检查定时设置。