Markdown → HTML — Domain Orchestrator
Premise (Shihipar, Claude Code HTML output, 2026): markdown collapses past ~100 lines for agent-generated artifacts — long specs, reviews, and decks lose density, hierarchy, and lightweight interaction; HTML restores all three as a single shareable file. This orchestrator classifies the input, routes to one of three converters, and returns a digest.
Pre-flight gates (hard refusals)
- < 100 lines — markdown still wins; refuse and tell the user to keep it as markdown.
- Design-system not onboarded — refuse until the one-time brand wizard has run (the
design-system skill); converters render unbranded without it.
- Unwritable output dir — refuse.
Routing (deterministic two-signal scoring)
Filename hint = 2 points; each content signal = 1 point. Silent-route when winner ≥3 AND (runner-up = 0 OR winner ≥ 2× runner-up); otherwise ask ONE question with a recommended answer.
| Lane |
Filename hints |
Content signals |
Converter |
| DOCUMENT |
report.md, spec.md, rfc-*.md, *-analysis.md, *-explainer.md |
## Table of Contents (2), #/##, tables, > [!NOTE]/[!TIP] callouts |
md-document |
| REVIEW |
review.md, *-pr-*.md, *.diff.md |
```diff (2), --- /+++ (2), @@ (2), > [!BLOCKER]/[!MAJOR]/[!MINOR]/[!NIT] (2), LGTM/nit: |
md-review |
| SLIDES |
deck.md, slides.md, *-talk.md, presentation*.md |
^---$ ≥3 (2+), <!-- notes: (2), H1 count ≥5 with median gap ≤12 lines (2) |
md-slides |
Workflow
- Confirm onboarding — if never run, surface the design-system wizard (10 questions, 1-2 min: brand primary/accent + heading/body Google Fonts + design style editorial/technical/minimal/playful + output dir + syntax theme + TOC behavior + optional logo/company; stored at
~/.config/markdown-html/design-system.json).
- Classify the input markdown.
- Route or ask — if silent-route, forward markdown + design-system config to the named converter; if not, ask one question.
- Resolve output path — kebab slug + collision suffix (
-2, -3, …; timestamp opt-in).
- Hand off — the converter writes a single self-contained HTML file. Return a ≤100-word digest: input lines, output path, design style applied, top 3 features used, one forcing question. Never render HTML by hand.
Forcing questions (one at a time, recommended answer)
- What decision does this HTML drive — skim, decide, or present? (Name it first; density follows.)
- Is the input ≥100 lines? (If not, keep as markdown.)
- Is the design-system onboarded? (Globally, by default.)
- Where does output save, and will it overwrite? (Configured dir + collision suffix — never silently overwrite.)
- Doctype confidence — silent-route or ask? (Silent only when verdict is one of document/review/slides AND silent_route_allowed.)
Never run a converter before the lane is locked.
Hard rules / non-goals
Single-file HTML only — externals limited to Google Fonts CSS + Prism.js CDN; no JS framework runtime (vanilla JS + IntersectionObserver only); no multi-file output, no build step, no live-reload. Never silently chain converters ("convert AND make slides" = two ops — finish one, ask before chaining). Customization must change behavior, not decorate. Not a landing-page generator, not a prompt-tuning playground, not a static-site generator, not a PDF generator (slides use @media print).
1---2name: markdown-html-orchestrator3description: Use when converting a markdown file (≥100 lines) into single-file interactive HTML — classifies it as document / code-review / slide-deck and routes to the right converter after a one-time design-system onboarding. Refuses below 100 lines or without onboarding.4tags: [markdown, html, converter, orchestrator, documentation, code-review, slides, doctype-classifier, single-file]5source: alirezarezvani/claude-skills6derived_from: markdown-html/skills/markdown-html-orchestrator7metadata:8 source: https://skillmd.com/skills/aashutosh396/markdown-html-orchestrator9---1011# Markdown → HTML — Domain Orchestrator1213Premise (Shihipar, *Claude Code HTML output*, 2026): **markdown collapses past ~100 lines** for agent-generated artifacts — long specs, reviews, and decks lose density, hierarchy, and lightweight interaction; HTML restores all three as a single shareable file. This orchestrator classifies the input, routes to one of three converters, and returns a digest.1415## Pre-flight gates (hard refusals)16171. **< 100 lines** — markdown still wins; refuse and tell the user to keep it as markdown.182. **Design-system not onboarded** — refuse until the one-time brand wizard has run (the `design-system` skill); converters render unbranded without it.193. **Unwritable output dir** — refuse.2021## Routing (deterministic two-signal scoring)2223Filename hint = 2 points; each content signal = 1 point. Silent-route when winner ≥3 AND (runner-up = 0 OR winner ≥ 2× runner-up); otherwise ask ONE question with a recommended answer.2425| Lane | Filename hints | Content signals | Converter |26|---|---|---|---|27| DOCUMENT | `report.md`, `spec.md`, `rfc-*.md`, `*-analysis.md`, `*-explainer.md` | `## Table of Contents` (2), `#`/`##`, tables, `> [!NOTE]/[!TIP]` callouts | `md-document` |28| REVIEW | `review.md`, `*-pr-*.md`, `*.diff.md` | ` ```diff ` (2), `--- `/`+++ ` (2), `@@` (2), `> [!BLOCKER]/[!MAJOR]/[!MINOR]/[!NIT]` (2), `LGTM`/`nit:` | `md-review` |29| SLIDES | `deck.md`, `slides.md`, `*-talk.md`, `presentation*.md` | `^---$` ≥3 (2+), `<!-- notes:` (2), H1 count ≥5 with median gap ≤12 lines (2) | `md-slides` |3031## Workflow32331. **Confirm onboarding** — if never run, surface the design-system wizard (10 questions, 1-2 min: brand primary/accent + heading/body Google Fonts + design style editorial/technical/minimal/playful + output dir + syntax theme + TOC behavior + optional logo/company; stored at `~/.config/markdown-html/design-system.json`).342. **Classify** the input markdown.353. **Route or ask** — if silent-route, forward markdown + design-system config to the named converter; if not, ask one question.364. **Resolve output path** — kebab slug + collision suffix (`-2`, `-3`, …; `timestamp` opt-in).375. **Hand off** — the converter writes a single self-contained HTML file. Return a ≤100-word digest: input lines, output path, design style applied, top 3 features used, one forcing question. Never render HTML by hand.3839## Forcing questions (one at a time, recommended answer)40411. What decision does this HTML drive — skim, decide, or present? (Name it first; density follows.)422. Is the input ≥100 lines? (If not, keep as markdown.)433. Is the design-system onboarded? (Globally, by default.)444. Where does output save, and will it overwrite? (Configured dir + collision suffix — never silently overwrite.)455. Doctype confidence — silent-route or ask? (Silent only when verdict is one of document/review/slides AND silent_route_allowed.)4647Never run a converter before the lane is locked.4849## Hard rules / non-goals5051Single-file HTML only — externals limited to Google Fonts CSS + Prism.js CDN; no JS framework runtime (vanilla JS + IntersectionObserver only); no multi-file output, no build step, no live-reload. Never silently chain converters ("convert AND make slides" = two ops — finish one, ask before chaining). Customization must change behavior, not decorate. Not a landing-page generator, not a prompt-tuning playground, not a static-site generator, not a PDF generator (slides use `@media print`).