---
name: generate-explainer-html
description: turn core.yaml + view.yaml (the explainer's meaning + presentation strategy) — plus quiz.yaml when present — into a self-contained html bundle that helps users understand documents, repositories, pull requests, design notes, or specifications. the bundle has a light/dark shell whose right pane switches between multiple iframe view documents, and copyable prompt templates that ask a local-file-reading ai to add another switchable view. an interactive quiz tab (comprehension check with instant grading) is added by default unless the user explicitly declines. use when the user has (or wants) a core.yaml/view.yaml pair and wants a visual html explainer, or wants to add a new representation (table, worktree, cards, faq, beginner, engineer, pdm view, quiz, …) to an existing bundle. produce the yaml first with the generate-explainer-yaml skill.
---
# generate-explainer-html
Turn a `core.yaml` (meaning) + `view.yaml` (presentation strategy) pair into a
**self-contained HTML bundle** that:
- shows a **tailored explanation UI inside an iframe**, with a **view switcher** in the
right pane so the reader can flip between multiple representations, and
- offers **copyable prompt templates outside the iframe** so the user can ask another
local-file-reading AI to **add another switchable view**.
This is the **second half** of the pipeline. The `core.yaml` / `view.yaml` come from the
**`generate-explainer-yaml`** skill (or the user). This skill reads them **by absolute
path**, authors iframe view documents, and assembles the bundle.
```
core.yaml + view.yaml (+ quiz.yaml) (from generate-explainer-yaml)
↓ design + generate (this skill)
HTML bundle: index.html (light/dark shell + view switcher + prompt cards)
+ views/NN-.html (one switchable iframe view each, incl. a quiz tab)
```
## The bundle (the output)
The output is a **directory**, not a single file:
```
/
index.html shell: header (theme toggle) + left prompt pane + right view switcher + ONE