/q-explain:explain-diagramfrom q-explain
Use when the user says "explain with a diagram", "draw this", "draw a diagram", "visualize how X works", "show me the architecture/flow", "sơ đồ", "diagram this", or when a written answer would need more than about 3 paragraphs to describe structure, sequence, or relationships. Explains a concept, system, codebase, flow, or LLM output as a static diagram instead of prose, and picks a drawing tool that is available (Mermaid always works). Do NOT use for data charts (use dataviz if available), for an interactive page with controls (use q-explain:explain-html), for a narrated video (use q-explain:explain-video), or for plain-English rewriting (use q-explain:ste-writing).
Ships in q-explain. 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.
None: SKILL.md is the whole skill.
A diagram is often faster to read than text. Your job: pick the right diagram type, pick a tool that is available, and make the diagram show the real mechanism.
| The question is about... | Diagram type |
|---|---|
| Parts and how they connect | Box-and-arrow architecture or component diagram |
| Steps over time, who calls whom | Sequence diagram |
| Decisions and branches | Flowchart |
| States and transitions | State diagram |
| Data shapes and relations | ER or class diagram |
| A concept with sub-concepts | Annotated anatomy sheet (like an engineering drawing: labeled panels A, B, C) |
| Before vs after, A vs B | Side-by-side comparison |
For a big topic, use a multi-panel sheet: 3-6 small panels, each one answers one sub-question. Label the panels A, B, C so the user can refer to them.
Every row except the first two needs something that may not be installed. Check first; fall back to Mermaid when in doubt.
| Where the user will look | Tool | Needs |
|---|---|---|
| Terminal only, quick answer | Mermaid code block, or ASCII art for fewer than 10 boxes | Nothing |
| Diagram file inside a repo's docs | Mermaid in a .md file (diffable) | Nothing |
| Browser page, shareable | Load the artifact-diagramming skill and draw inline SVG in an Artifact | The Artifact tool and the artifact-diagramming skill, if available |
| Browser page, no Artifact tool | One self-contained local .html file with inline SVG (or Mermaid from a CDN). Give the user the absolute path | Nothing |
| Editable canvas, export PNG/SVG/.excalidraw | Load the excalidraw-skill skill | excalidraw-skill, if installed (see below) |
Default: if the Artifact tool is available and the diagram has more than about 8 nodes, use artifact-diagramming. Otherwise use Mermaid.
Excalidraw gate. Use excalidraw-skill only if it is in your skill list. Its CLI runs through npx (it can download a package). Ask the user before the first npx command. If the user says no, use Mermaid.
q-explain:ste-writing).q-explain:explain-html.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub phuquocchamp/q-harness --plugin q-explain4 skills in this plugin
/explain-htmlUse when the user says "explain in HTML", "make an interactive explainer", "make an interactive page", "build a page that teaches X", "visual explainer", "interactive walkthrough", "giải thích bằng web", or wants something more engaging than text or a static diagram. Explains a topic, codebase, algorithm, or LLM output as a custom interactive web page with step-through controls, sliders, toggles, animations, and live examples. The outcome is a shareable page: an Artifact when the Artifact tool is available, otherwise one self-contained local .html file. Do NOT use for a single static diagram (use q-explain:explain-diagram), for a data dashboard (use dataviz or a Dashboard type if available), for a narrated video (use q-explain:explain-video), or for plain-English rewriting (use q-explain:ste-writing)./explain-videoUse when the user says "explainer video", "animated explanation with narration", "make a video that explains X", "math animation video", "narrated animation", "Manim video", or wants a long-form (1-10 min) 16:9 landscape teaching video on a technical or math topic. Makes a narrated explainer in a math-animation style (dark background, geometric shapes that build up step by step, calm voice-over) with a Python animation library and text-to-speech. Asks before any install and gets script approval before render. Do NOT use for 9:16 vertical short reels (use code-motion-explainer if installed), for an interactive page (use q-explain:explain-html), for a static diagram (use q-explain:explain-diagram), or for plain-English rewriting (use q-explain:ste-writing).Other plugins' skills for the same job