/skills:explainerfrom skills
Generates a self-contained interactive HTML explainer for complex topics in a dark GitHub-inspired theme with Mermaid diagrams, before/after toggles, pipeline cards, timelines, risk tables, and decision checklists. Picks from four variant templates — PRs (code changes), issues/stories/epics (work items), concepts/frameworks/ADRs (ideas to evaluate), research/claims (evidence to evaluate) — each with its own narrative spine ending in an actionable decision checklist. Use when the user asks for a visual explainer, asks to "help me understand" something complex, wants an HTML write-up of a PR/issue/paper, asks for an interactive walkthrough, or invokes /explainer. Saves to /tmp/ by default.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Produce a self-contained HTML document that walks a reader from confusion to a confident decision. Output is one .html file (Mermaid is the only CDN dep).
An explainer is a guided tour, not an index card. It moves the reader along this arc:
what was → what changed and why → how the new shape works → what changed in code → tradeoffs → (rollout) → what to verify before acting
Every section earns its place by advancing that arc. If a section just describes without advancing understanding, cut it.
Trigger phrases: "explain this PR", "make me an explainer", "help me understand X", "visualize this", "walkthrough of Y", "rich documentation for Z", /explainer.
Pin down — by asking briefly OR inferring from context:
If genuinely unclear and would materially change the doc, ask one short question. Otherwise infer and state your inference in the hero so the reader can correct you.
Read the source in full — the diff hunks lie about context, the abstract hides the assumptions.
gh pr view <N> --json title,body,author,additions,deletions,changedFiles,files,baseRefName,headRefName,closingIssuesReferences, gh pr diff <N>, git log <base>..<head>, then read every changed file in full. Read referenced issues too.gh issue view <N> --comments, linked PRs, the code being discussed.Four templates, same dark GitHub theme, same components, different spines:
| Template | Use for | Spine |
|---|---|---|
| TEMPLATE-pr.html | Pull requests (code changes) | current shape → new shape → mechanics → file-by-file → tradeoffs → rollout → risks → decide |
| TEMPLATE-issue.html | Issues, bugs, stories, epics | observed/requested → known vs. unknown → model → hypotheses/criteria/scope → affected surface → sequencing → risks → decide |
| TEMPLATE-concept.html | Concepts, frameworks, ADRs | why it matters → prerequisites → mental model → worked example → what it's NOT → when to use → risks of misuse → decide |
| TEMPLATE-research.html | Papers, claims, studies | claim → methodology → evidence → limitations → where it generalises → related work → risks → decide |
Pick by what the reader is examining and what decision they're making:
If borderline, pick the one whose decision verb in §8 matches the user's actual decision. An ADR with no code goes in concept; an ADR delivered as a PR goes in PR.
The CSS block is identical across all four templates. If you change the palette or a component, change it in all four.
The components (in REFERENCE.md — read it):
| Component | Use for |
|---|---|
| Hero (pills + lede + topnav) | Always. The lede is the TL;DR. |
| Pipeline cards (numbered steps, danger/good variants) | Sequential systems, especially before/after |
| Before/After toggle | Anytime there's a "what changed" — almost every PR |
| Two-column compare | Conceptual deltas: "trust anchor before vs. after" |
| Mermaid (sequence / state / flowchart / gitGraph) | Mechanics that span actors or time |
| File-by-file accordion | PR walkthrough. Group by concern, not by file. |
| Selective diff snippet | A 3–10 line change whose shape carries the explanation |
| Version / option table | "Why X specifically?" decisions |
| Timeline w/ actor badges | Rollouts, multi-step ops, ordered procedures |
| Risk table (risk / likelihood / mitigation) | Always |
| Decision checklist (with "why this matters" subtitles) | Always — replaces "open questions" |
<p class="small"> clarifying footnotes | After diagrams/tables, prevent misreadings |
Each template has its own §1–§8 spine pre-numbered with placeholders. Fill them in; don't reorder or skip without reason. Sections present in a template are load-bearing for that variant — the spine is the variant's whole point.
Constant across all four templates:
Do not paste the full PR diff. The reader can see that in GitHub.
A diff snippet earns its place only when the shape of the change carries the explanation — when reading the hunk itself gives the reader something prose can't. A one-line flag flip can be load-bearing; a fifty-line method body rewrite can be too. A two-hundred-line file rename, by contrast, has no explanatory value and goes in the file accordion as a prose summary.
Heuristic: if a reader who reads only the snippet (no surrounding prose) gets a real "oh, that's what's happening" — include it. If the snippet is just textual evidence that something changed, summarise instead. High explanatory value is the test, not line count.
Title each section with what it says, not what kind of section it is.
Default path: /tmp/explainer-<slug>-<YYYY-MM-DD>.html where slug is the PR number, issue number, or kebab-case topic. Print the absolute path. Don't auto-open unless asked.
Per-variant guidance (PR, issue, concept, research, ADR — what to put in each section, which components fit) lives in REFERENCE.md. Read it before generating any explainer that isn't a plain PR.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (jvcorredor/skills) — no native marketplace selected
npx claudepluginhub p/jvcorredor-skills13 skills in this plugin
/better-sqlite3-rebuildUse when seeing errors about better-sqlite3 native module, NODE_MODULE_VERSION mismatch, "was compiled against a different Node.js version", or similar native binding errors./c-modelC4 architecture model and diagrams (context, container, component, code, deployment, sequence/dynamic) for any repo or named system, kept as one Structurizr workspace grounded in the code and rendered to SVG via C4-PlantUML. Use when the user asks for a model, a diagram, the architecture, a C1/C2/C3/C4 or L1-L4 level diagram of something (including "holistically"), a C4 view, a sequence diagram of a flow, how something works end to end, or what X looks like; or types /c-model./drive-prdDrive a PRD's tickets under a WIP cap through implementer, independent review, fixes, a head-pinned verdict, CI, and merge, parking human-only work, until no agent-ready ticket remains.