diagram-first
БесплатноБез исполняемых скриптовНе проверенDiagram-first explanations using ASCII visualizations (sequence diagrams, flowcharts, component maps) to explain code, systems, request/response flows…
от mzbac★ 27 звёзд на GitHubОб этом скилле
Diagram First
Overview
Answer questions with a short ASCII diagram first, then a concise explanation. Prefer visual structure over prose when describing flows, architecture, or logic.
Default Output Pattern
- Diagram first (in a code block for alignment).
- Legend (1–3 bullets, only if needed).
- Explanation (map diagram nodes/edges to the user’s question; cite key files/functions if relevant).
- Next check (optional: one quick validation step or a clarifying question).
Choose a Diagram Type
Use the smallest diagram that answers the question:
- Flowchart: branching logic, error paths, validation, “what happens when…”.
- Sequence diagram: request/response, streaming, callbacks, cancellation, distributed coordination.
- Component diagram: modules/services and their responsibilities.
- Pipeline diagram: stage-by-stage compute (tokenization → forward → sampling → decode), incl. distributed ranks.
- State machine: lifecycle of a request, streaming states, tool-call modes.
- Side-by-side: comparisons (“left vs right”, “old vs new”, “A vs B”) using two columns.
Diagram Templates
Sequence (streaming / HTTP)
Client -> HTTP Handler (rank0) -> (broadcast request) -> All Ranks: generate loop
Client <- HTTP Handler (rank0) <- (stream tokens/chunks) <- rank0 only
Flowchart (validation / routing)
request
|
v
parse -> validate -> route -> run -> shape response -> send
\-> error -> JSON error
Component map (codebase)
api/ (HTTP schemas + shaping) -> model_provider (load) -> tool_fixes (normalize) -> mlx_lm (generate)
Side-by-side compare
LEFT (A) RIGHT (B)
--------- ---------
... ...
Practical Rules
- Keep diagrams tight: ~10–30 lines; add a second diagram only if it reduces confusion.
- Include the happy path; add the most important failure/cancel path if relevant.
- Use stable labels (same node name = same thing) and avoid vague boxes (“stuff happens”).
- If you need to assume something, label it clearly in-diagram (e.g., “(assumption)”) and ask a clarifying question.
- Don’t leak secrets/PII in diagrams unless the user already provided it and asked to include it.
Установить diagram-first в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл diagram-first?
Diagram-first explanations using ASCII visualizations (sequence diagrams, flowcharts, component maps) to explain code, systems, request/response flows, pipelines, concurrency, and comparisons. Use when the user asks to "draw an ASCII diagram", "show the flow/logic", "visualize the architecture", "explain how it works", or when a diagram would reduce ambiguity in a technical explanation.
Как установить скилл diagram-first?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл diagram-first запускает скрипты?
Нет, скилл состоит только из инструкций (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