visual-explainer
БесплатноБез исполняемых скриптовНе проверенUse when the user asks to explain a problem, issue, PR, or feature as an infographic. Create a step-by-step visual explanation starting from user code or…
от vercel-labs★ 2 808 звёзд на GitHubОб этом скилле
Visual explainer
Explain the mechanism so a reader unfamiliar with the implementation can follow it from their own code to the outcome. This is the shared visual and narrative style for the repository; it does not grant permission to implement a fix or publish a PR. Follow the active workflow in AGENTS.md. Write in the user's language for personal explanations and the repository's language for PR descriptions unless directed otherwise.
Establish what is being explained
Read the issue or request, relevant source/API docs, and available reproduction or validation evidence. For a PR, identify its base and head and inspect both versions where behavior changed. Distinguish the reported symptom, confirmed cause, proposed solution and implemented result. If the fix is only proposed, label it as proposed throughout; do not present predictions as results. Use one representative example throughout the explanation. Name omitted setup and define terms when the reader first needs them. Do not infer an API from a diagram or an old draft.
Narrative: problem first, then solution
- Make the problem explicit before the first snippet. Name who encounters it, the trigger, expected behavior and actual outcome. Use a heading such as "The problem — before this PR" and state that the following steps trace the old behavior. For an unfixed issue, say "The current problem". "Summary" or "User code" alone does not establish what is being shown.
- Start at user code or an action. Show a small, representative snippet with syntax highlighting. Explain whether it is valid code exposing a library problem, incorrect usage, or a workaround. If the code is valid, do not imply the user needs to repair it.
- Follow the system step by step. Connect the user call to the necessary internal work, the failure point and its observable consequence. Use short sections, one causal step each. Separate correct mechanisms required for safety or semantics from the actual defect.
- Mark the transition to the solution. Use a separate heading such as "The solution — after this PR" or "Proposed solution". Trace the same example through the changed steps, explain why they fix the problem, and state whether user code changes. For a feature, use "Previous limitation" and "New behavior" instead of inventing a bug. For a refactor, state that observable behavior is unchanged.
- Show the result and limits. Give supported before/after evidence with units, workload, environment and conditions such as warmup. Separate allocations, CPU time and GPU throughput; mock and native results; measured outcomes and expectations. Keep unmet targets and material limitations visible in the human explanation, not only in a technical appendix.
Scale the number of steps to the mechanism. A simple change may need only a short before/after. See the example and counterexamples for the intended transitions.
Visual style
- Use a calm technical layout: clear hierarchy, generous spacing, dark ink on a light neutral background, and restrained accents. Blue can identify resources, teal the reused/corrected path, and red the defect. Always use labels as well as color to distinguish states.
- Each diagram explains one relationship: ownership, ranges, identity, order, dependencies or a measured comparison. Put it beside the paragraph that explains it. Keep prose outside the graphic; labels should be brief. Arrows must describe an actual flow, dependency or transition.
- When an image is warranted (for PRs, apply the eligibility rules below first), prefer small, self-contained SVGs made from shapes, paths and text. Include viewBox, explicit dimensions, title/description, and alt text when embedded. Use an explicit background and sufficient contrast. Avoid scripts, foreignObject, external fonts/resources and raster embeds.
- For a PR, target compact or vertical diagrams around 320–480 viewBox units wide with labels around 18–22 units. Inspect them at a narrow ~320px content width and a desktop width. Split wide diagrams rather than assuming vector zoom makes them readable on a phone.
- Code stays text, with syntax highlighting. In Markdown, use native language fences; in a PDF, render selectable monospaced text with token colors. Do not use screenshots of code. Mark partial/historical/pseudocode examples in adjacent prose; verify real API snippets against the version they demonstrate. State omitted setup rather than making a partial example look executable by itself.
- Keep essential meaning in prose, too: the explanation must work for readers and agents that cannot see the diagrams. For PRs, prefer native Mermaid when a necessary diagram can be expressed clearly that way; custom images must meet the eligibility rules below.
Choose the output mode
Honor the requested format. If the user asks for an infographic for their own understanding and does not na
Установить visual-explainer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл visual-explainer?
Use when the user asks to explain a problem, issue, PR, or feature as an infographic. Create a step-by-step visual explanation starting from user code or actions, with a clear problem/solution boundary, syntax-highlighted snippets, and focused diagrams. Support standalone educational PDFs and Markdown-first PR explanations, with optional images only for complex diagrams. Also apply when explicitly invoked by the repository PR writer.
Как установить скилл visual-explainer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл visual-explainer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic