markdown-html-orchestrator
Skill0 starsChanged 48 days agoApache-2.0View on GitHub
Use when a user wants to convert any markdown file in their Claude project into a single-file, lightly-interactive HTML — long-form documents (specs, plans, RFCs, reports, explainers), code reviews with diffs and severity-tagged annotations, or slide decks. Triggers on "convert this markdown to HTML", "make this an HTML file", "turn this into an interactive document", "render this report as HTML", "PR writeup as HTML", "slides from this markdown". Forks context to route to one of three converter sub-skills (md-document, md-review, md-slides) based on a deterministic doctype classifier, after the user has run the design-system onboarding once. Refuses if input is under 100 lines (per Shihipar — markdown still wins below the threshold) or design-system isn't onboarded. Distinct from Anthropic's official Playground plugin (which is interactive prompt-tuning controls with sliders/knobs/prompt-copy-back) and from marketing/landing/ (which is a landing-page generator).
3 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- Hassaan146/claude-skillsword for word, first seen Jul 25, 2026
- mahiunfiltered/claude-code-skillsword for word, first seen Jul 8, 2026
- Hussain-Elfalah/Agentic-Skillsedited, first seen Jun 4, 2026
Other versions3 projects use a version of this.
Word for word · 2
- Hassaan146/claude-skills★ 18100% same
- mahiunfiltered/claude-code-skills★ 1100% same
Edited · 1
- Hussain-Elfalah/Agentic-Skills★ 276% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository198 other files it gives its agents.
- a11y-auditSkill
- ab-test-setupSkill
- ad-creativeSkill
- adversarial-reviewerSkill
- aeoSkill
- agent-designerSkill
- agent-protocolSkill
- agent-workflow-designerSkill
- ai-securitySkill
- analytics-trackingSkill
- andreessenSkill
- api-design-reviewerSkill
- api-test-suite-builderSkill
- apple-hig-expertSkill
- app-store-optimizationSkill
- autoresearch-agentSkill
- aws-solution-architectSkill
- azure-cloud-architectSkill
- board-deck-builderSkill
- board-meetingSkill
- book-to-skillSkill
- brand-guidelinesSkill
- browser-automationSkill
- business-growth-skillsSkill
- business-investment-advisorSkill
- campaign-analyticsSkill
- ceo-advisorSkill
- cfo-advisorSkill
- changelog-generatorSkill
- change-managementSkill
- chaos-engineeringSkill
- chief-ai-officer-advisorSkill
- chief-customer-officer-advisorSkill
- chief-data-officer-advisorSkill
- chief-of-staffSkill
- chro-advisorSkill
- churn-preventionSkill
- ci-cd-pipeline-builderSkill
- ciso-advisorSkill
- claude-coachSkill
- cloud-securitySkill
- cmo-advisorSkill
- codebase-onboardingSkill
- code-reviewerSkill
- cold-emailSkill
- company-osSkill
- competitive-intelSkill
- competitive-teardownSkill
- competitor-alternativesSkill
- content-creatorSkill
- content-humanizerSkill
- content-productionSkill
- content-strategySkill
- context-engineSkill
- contract-and-proposal-writerSkill
- copy-editingSkill
- copywritingSkill
- cpo-advisorSkill
- cro-advisorSkill
- cs-onboardSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Domain status (complete): all five skills are live — orchestrator + design-system (onboarding + shared brand tokens) + the three converter …
- Very specific: line 31
Design-system not onboarded: If ~/.config/markdown-html/design-system.json doesn't exist (or its setup_completed_at is null), refuse.
- Distinctive: line 60
If the user has never run onboarding, surface the one-time setup:
- Very specific: line 70
Run doctype_classifier.py on the markdown.
- Distinctive: line 104
Never run a sub-skill before the lane is locked.
- Very specific: line 115
Not a landing-page generator (use marketing/landing/).
- Very specific: line 116
Not an interactive prompt-tuning playground (use Anthropic's official playground plugin).
- Distinctive: line 117
Not a static-site generator (no multi-file output, no site index).
- Very specific: line 118
Not a PDF generator (slides use @media print.
- Distinctive: line 119
Not a watch / live-reload pipeline (conversion is one-shot).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.pyroute_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.pyTen 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|review|slides>Collision handling defaults to -2 / -3 / ... suffix; --on-collision timestamp for stamped names.
Step 5 — Hand off to the sub-skill
The routed converter sub-skill's renderer (md-document/scripts/, md-review/scripts/, or md-slides/scripts/) takes the input markdown, the design-system config, and the resolved output path, and writes a single self-contained HTML file. The orchestrator returns a ≤ 100-word digest: input lines, output path, design style applied, top 3 features used (TOC, search, code-copy, etc.), and one forcing question for the user. Never render HTML by hand — the converter scripts own the rendering.
Forcing-question library (Matt Pocock grill-with-docs pattern)
Walk these one at a time, with a recommended answer per question, citing the canon. Lift this list into /cs:grill-markdown-html for plan-stage interrogation.
- What decision does this HTML drive — is the reader skimming, deciding, or presenting? Recommended: name it first; density follows from purpose. Canon: Shihipar — "match output format to consumption context"; Tufte — Visual Display of Quantitative Information, ch. 1.
- Is the input markdown ≥ 100 lines? Recommended: yes — below that, keep it as markdown. Canon: Shihipar — markdown still wins under 100 lines.
- Is the design-system onboarded?
Recommended: yes, globally (
~/.config/markdown-html/design-system.json). Canon: research-ops onboarding pattern (research-ops/CLAUDE.md§8); WCAG 2.2 §1.4.3 (text contrast 4.5:1). - Where does the output save, and will it overwrite anything?
Recommended: the configured
default_output_dirwith--on-collision suffix. Canon: Matt Pocockhandoffskill — never silently overwrite a working artifact. - Document type confidence — silent-route or one question?
Recommended: silent-route only when the classifier's verdict is one of
document/review/slidesANDsilent_route_allowed: true. Otherwise ask. Canon: research-ops two-signal threshold (research-ops/skills/research-ops-skills/SKILL.md§"Routing logic").
Never run a sub-skill before the lane is locked.
Assumptions
- User has a markdown file ≥ 100 lines they want to convert.
- User has run onboarding once (
~/.config/markdown-html/design-system.jsonexists withsetup_completed_atpopulated). - Single-file HTML output is acceptable (no multi-file site, no embedded server, no build step).
- Externals limited to Google Fonts CSS + Prism.js CDN (jsdelivr / cdnjs).
Non-goals
- Not a landing-page generator (use
marketing/landing/). - Not an interactive prompt-tuning playground (use Anthropic's official
playgroundplugin). - Not a static-site generator (no multi-file output, no site index).
- Not a PDF generator (slides use
@media print; user prints from browser). - Not a watch / live-reload pipeline (conversion is one-shot).
Distinct from
- Anthropic Playground plugin (
/playground) — builds interactive controls (sliders, knobs, drag-drop) for prompt tuning, with a copy-prompt-back loop. This plugin converts existing markdown documents to HTML. Different tools for different jobs. marketing/landing/— generates landing pages from scratch (Phase-0 intake → 3 sections → branded TSX/HTML). This plugin converts an existing markdown file you already have.engineering/handoff/+productivity/handoff/— preserve session continuity between Claude conversations. Different artifact type (handoff brief vs. document conversion).
Output artifacts
| Sub-skill | Artifact | Status |
md-document | doc-<slug>.html (single file, sticky TOC, collapsibles, search, code-copy, scrollspy) | ✓ live |
md-review | review-<slug>.html (2-col diff + severity margin notes + jump-nav) | ✓ live |
md-slides | deck-<slug>.html (arrow-key nav + presenter mode + print-to-PDF) | ✓ live |
Anti-patterns (do not)
- ❌ Convert markdown < 100 lines — markdown still wins. Refuse and tell the user.
- ❌ Run the orchestrator before the design-system is onboarded. The output looks broken without tokens.
- ❌ Silently chain two sub-skills (e.g., "convert doc AND make slides from it"). Pick one, finish, ask before chaining.
- ❌ Use external JS frameworks (React/Vue/Svelte). Vanilla JS + IntersectionObserver only. Prism.js CDN is the single exception.
- ❌ Multi-file output (extracted CSS, asset directories). Single file or nothing — that's the whole point.
- ❌ Overwrite an existing output file by default. The path resolver suffixes
-2,-3, …;--on-collision overwriteis opt-in only.
References
- Spec: Thariq Shihipar — "Claude Code HTML output" (Medium, 2026)
- Forking pattern:
research-ops/skills/research-ops-skills/SKILL.md(context: fork, two-signal routing) - Customization pattern:
research-ops/skills/clinical-research/scripts/(onboard.py,config_loader.py) - Brand palette math:
marketing/landing/skills/landing/scripts/brand_palette_validator.py(WCAG + HSL derive) - Information-density canon: Tufte; Shihipar's
thariqs.github.io/html-effectiveness/gallery; Wattenberger interactive essays; Maggie Appleton digital gardens
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
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.

