/design:explainerfrom design
Create stunning, interactive single-file HTML explainer pages that visually explain code, projects, concepts, or processes with animations, diagrams, and interactive elements. Use this skill whenever the user wants to explain something visually, create a documentation page, build an interactive walkthrough, generate a project overview, make a 'how it works' page, or wants any kind of educational/explanatory HTML output. Also trigger when the user says 'explain this visually', 'create an explainer', 'make me a page that explains', 'build a walkthrough', 'show how this works as a website', or asks you to explain what you just did as an HTML page. Even if the user just says 'explain' in a context where visual output would help, use this skill.
Ships in design. 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.
Create self-contained, single-file HTML pages that explain code, projects, concepts, or processes through animation, diagrams, interactive elements, and beautiful design. The output is a premium interactive article — not a boring docs page.
Invoke the design:design skill before writing any HTML. It holds the aesthetic and UX rules that prevent generic, flat, AI-looking output; without it, the explainer will look like every other AI-generated page.
Skill tool call:
skill: "design:design"
Apply design:design's guidance to every visual decision: color palette, typography, spacing, component styling. The explainer skill handles the structure and content, design:design handles the aesthetics.
Inline <script> blocks often embed code or HTML as strings. In those strings, escape < as \u003c so a quoted </script> cannot end the script early. Before delivering, run node <design plugin>/skills/smoothbrain/scripts/check.mjs <page.html> and read only its "inline script" lines: it parses every inline script and reports the line of any that is cut short. Its other rows judge smoothbrain pages, not explainers.
A single .html file that someone can double-click to open in any browser and immediately understand the thing being explained. It should feel like reading an interactive Stripe docs page or a visual essay on Pudding.cool — polished, engaging, educational.
Hard requirements:
.html file (CSS in <style>, JS in <script>, libraries via CDN)Before touching any HTML:
Read the subject deeply. If explaining code you just wrote, re-read every file. If explaining a project, understand its architecture. If explaining a concept, know the edge cases.
Find the core insight. Every good explainer builds toward one "aha moment." What's the one thing that, once understood, makes everything else click? Structure the page to build toward that.
Pick the right metaphor. Ground technical concepts in something familiar before showing code. "A promise is like a restaurant pager" works because the reader has a mental model to hang the details on. Without an analogy, technical details float disconnected.
Identify the audience. Adjust depth — a junior dev needs context a senior architect doesn't. When in doubt, use progressive disclosure: simple overview visible by default, details behind collapsible sections.
Every explainer follows this arc — adapt sections as needed:
Choose the pattern that fits the content:
For code explanations — Code walkthrough with Prism.js:
For processes/architecture — Scrollytelling:
For concepts — Progressive revelation:
For comparisons — Before/After:
At least one of:
Read references/toolkit.md for the complete CDN catalog, code snippets, and patterns. It contains everything you need for:
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="color-scheme" content="dark light">
<title>[Explainer Title]</title>
<!-- Favicon — inline SVG, no extra request -->
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,...">
<!-- Fonts: preconnect BOTH domains, second needs crossorigin -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=...&display=swap" rel="stylesheet">
<!-- Libraries via CDN — see references/toolkit.md for URLs -->
<style>
/* 1. Custom Properties (light + dark tokens) */
/* 2. Reset / Base */
/* 3. Layout */
/* 4. Components */
/* 5. Animations */
/* 6. Media Queries */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
}
</style>
</head>
<body>
<a href="#main" class="skip-link">Skip to content</a>
<div class="progress-bar" aria-hidden="true"></div>
<header class="hero"><!-- Animated title, summary, visual hook --></header>
<nav class="toc" aria-label="Table of contents"><!-- Sticky ToC --></nav>
<main id="main">
<section id="overview"><!-- Diagram + key takeaways --></section>
<section id="deep-dive"><!-- Core explanatory content --></section>
<section id="interactive"><!-- Interactive elements --></section>
<section id="summary"><!-- Recap + FAQ --></section>
</main>
<footer><!-- Generated by, timestamp --></footer>
<script>
// Theme toggle, scroll reveals, interactive elements, Mermaid init
</script>
</body>
</html>
CSS-first, JS-second. CSS handles 80% of animation needs:
@keyframes for entrance animations (fade-up, slide-in)transition for hover/state changesnth-child delays for staggered revealsUse JavaScript (IntersectionObserver) for:
Performance: Only animate transform and opacity — these are compositor-safe and won't cause layout recalculation. Everything else (top, left, width, height, background-color) kills frame rate.
Mermaid.js is the primary tool. It turns a text DSL into rendered SVG — perfect for Claude to generate programmatically. Use it for flowcharts, sequence diagrams, architecture diagrams, timelines, Gantt charts, mind maps, and more.
Theme Mermaid to match your color scheme — don't use the default blue theme. See references/toolkit.md for theming config.
For data visualization (charts, graphs with numeric data), use Chart.js instead.
For custom interactive diagrams that need precise control, use D3.js or hand-crafted SVG.
Save the file as explain-[topic].html in ~/.explainer/. Create the directory if it doesn't exist.
mkdir -p ~/.explainer
# Save file
open ~/.explainer/explain-[topic].html
Naming examples:
~/.explainer/explain-auth-flow.html~/.explainer/explain-project-overview.html~/.explainer/explain-what-changed.htmlBefore delivering, verify:
prefers-reduced-motion media query disables animationsWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub tomaspalsson/flow --plugin design12 skills in this plugin
/designDesign process: UX and usability first, then fit to the client's real content, then a project-specific look with none of the AI-made tells (indigo, Inter, centred hero + 3 cards, cream + serif, mono eyebrow labels, "Build the future of X"). Ships the feel layer: every control answers hover, press and focus, changes are explained by small tiered transitions, one authored interaction, no scroll fade-ups or idle loops; verified by driving the page in a browser (scripts/probe.mjs). Use when generating, building, improving, polishing, critiquing or evaluating any UI or frontend, or when asked for microinteractions, transitions or polish. Phases: understand → UX (Nielsen) → direction → execute with interaction layer → graphics → polish and tell sweep → feel pass → external evaluator. Keywords: UI, UX, landing page, dashboard, not AI slop, microinteractions, design review. For a brand-new page that should differ between runs, prefer `vary`; use `design` for critique, audits, polish, or by name./diagramDraws clear, good-looking diagrams as one self-contained HTML file with inline SVG (export to SVG or PNG on request): architecture, AWS architecture with the official AWS icons (VPC, subnets, regions, Lambda, API Gateway, DynamoDB, S3 and 800 more), architecture delta, deployment, flowchart, sequence, state machine, ER/data model, database schema, UML class, timeline, Gantt, swimlane, process, data flow, service blueprint, user journey, story map, kanban, quadrant, radar, polar, loop/flywheel, nested, tree, org chart, layer stack, exploded axonometric, axonometric plan, Venn, pyramid/funnel, treemap/marimekko, heatmap, bar/dumbbell, waterfall, line/slopegraph/ridgeline/streamgraph/bump, scatter/bubble/beeswarm, Sankey, fishbone, Wardley map, dependency graph, high-level, medallion, DP integration, DP security matrix, IT current-state; also redraws .drawio, Mermaid and .excalidraw files. Use when the user says "draw a diagram", "diagram this", "architecture diagram", "AWS diagram", "draw our infra", "flowchart of", "sequence diagram", "make this Mermaid look good", or when design, graphics or explainer need a diagram. Not for illustrations, icon sets or brand art (use design:graphics) and not for live data dashboards./graphicsDraws custom graphics for websites and apps as code: icon sets, custom icons, spot illustrations, cartoons and mascots, hero or section art, drawings, SVG art, diagrams, maps, patterns, infographic art, empty-state illustrations, and brand objects (price tags, coupons, tickets, stamps, labels drawn as the trade's own artefacts). Picks a different illustration style every project, checks each asset at real size and delivers SVG files with alt text. Use when the user says "make me an icon set", "draw a cartoon of...", "illustrate this", "make it less generic with graphics". The design and vary skills call it when a page needs custom graphics. Not for photo editing or raster image generation./impeccableUse when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks./mobile-designMobile-native design for React Native/Expo and iOS/Android — the mobile layer the web /design skill lacks. Use when designing, building, reviewing, fixing, or evaluating any mobile app UI, screen, component, or flow; when a screen "looks bad on my phone"; when a glass/blur effect "renders flat on Android"; or to verify a build on a real device. Covers thumb-zone ergonomics, dynamic safe-area insets, iOS HIG vs Material 3 divergence, the iOS-only-effect-flat-on-Android trap, React Native craft (lineHeight/letterSpacing/shadow/elevation), and a device-driven adb loop that screenshots and drives the running app to confirm it matches the vision. Keywords - mobile design, app design, React Native, Expo, iOS, Android, tab bar, bottom sheet, safe area, notch, touch target, dark mode, native feel, not a web port, screenshot the app on device./polishPerforms a final quality pass fixing alignment, spacing, consistency, and micro-detail issues before shipping. Use when the user mentions polish, finishing touches, pre-launch review, something looks off, or wants to go from good to great.