devdocs-diagrams
БесплатноБез исполняемых скриптовНе проверенUse when converting a developer-docs schematic PNG (gas.png, evm.png, tx.png, accounts.png, nodes.png, mev.png, source-code-verification.png…
от ethereum★ 6 005 звёзд на GitHubОб этом скилле
Devdocs diagrams
Developer-docs schematics are being replaced, one PR per PNG, by theme-aware, translatable, accessible interactive figures. Each is a small isometric "anatomy" drawing on shared primitives, inside one shared shell (InteractiveDiagram). Done so far: gas-tx.png (GasTx), gas.png (GasEvm), tx.png (TxApply), evm.png (EvmZones), accounts.png (Accounts), tx-block.png (BlockState), eth1eth2client.png, node-architecture-text-background.png, nodes.png, run-a-node's diagram.png and the networking-layer cons_client_net_layer.png / exe_client_net_layer.png (NodeClients: NodeClientsDiagram, NodeArchitectureDiagram, NodeAccessDiagram, ClientSetupDiagram and NodeNetworksDiagram, the last replacing both networking PNGs), attestation_schematic.png (Attestations), validator-key-schematic.png and multiple-keys.png (ValidatorKeys: ValidatorKeysDiagram and KeyDerivationDiagram) reorg-schematic.png (ExAnteReorg), mev.png (MevBoost), source-code-verification.png (SourceVerify), portal-network-devp2p-libp2p.png (PortalHistory), and on the token-standard pages map-of-erc-4626.png plus the three ERC-7540 SVGs (TokenVault: VaultInterfaceDiagram, VaultDepositDiagram, AsyncVaultDiagram and VaultRequestDiagram, one rig whose layout varies per figure). Figures without a PNG predecessor: BaseFeeDiagram (/gas/, draggable block fullness), GasperFinalityDiagram, OptimisticRollupDiagram and ZkRollupDiagram (one OptimisticRollup rig, a kind per figure), and MerkleProofDiagram on the Merkle proofs tutorial (the Tutorial layout spreads mdxDiagramComponents too). Also load the design-system skill.
This file is the canonical reference. The Storybook page Components / Data Viz / Diagrams / Overview is a short visual intro that links here; don't duplicate rules there.
File shape
Every diagram folder has the same files:
| File | Role |
|---|---|
<Name>/index.tsx |
Server wrapper, the default export registered in mdxDiagramComponents. Wraps the player in DiagramMessages prefix="<key-prefix>" |
<Name>/lazy-player.tsx |
"use client" next/dynamic import of the player. Keeps its JS off docs pages that don't render it (the docs layout imports every diagram statically) |
<Name>/player.tsx |
"use client" state: presets, useStepPlayer, model view, strings, the InteractiveDiagram slots |
<Name>/rig.tsx |
The isometric drawing, memo-wrapped default export. Server-rendered with the player |
<Name>/model.ts |
Plain TS, no React: presets, steps, get<Name>View(preset, step), get<Name>Values(text) and the drawing's viewBox size <NAME>_SIZE |
<Name>/use-*.ts |
Optional hook shared by a folder's players (NodeClients/use-node-parts.ts) |
<Name>/*.stories.tsx |
Co-located stories, title Components / Data Viz / Diagrams / <Name> |
Figures that draw the same subject share one folder, one rig and one model, with a player per figure (NodeClients: player.tsx, architecture-player.tsx, access-player.tsx, setup-player.tsx and networks-player.tsx, all but the first named exports from index.tsx; ValidatorKeys: player.tsx and derivation-player.tsx). Put the per-figure differences in the model's view (NodeRigView: level of detail, which links carry a message, whether the validator client and the Engine API's JWT lock are drawn), not in the rig, so the next figure on that subject is a new player rather than a new drawing.
Shared pieces in src/components/Diagrams/:
| Piece | What it does |
|---|---|
interactive-diagram.tsx |
InteractiveDiagram shell plus DiagramPresets, DiagramTransport, DiagramCaption, DiagramReadout, DiagramCountUp, useDiagramFormat |
use-step-player.ts |
useStepPlayer({ idle, last, initial, dwellMs, dwellReducedMs, paused }): step state, run, goTo, reset |
diagram-hover.tsx |
Shared h |
Установить devdocs-diagrams в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл devdocs-diagrams?
Use when converting a developer-docs schematic PNG (gas.png, evm.png, tx.png, accounts.png, nodes.png, mev.png, source-code-verification.png, attestation_schematic.png, ...) into an interactive React diagram, or when editing src/components/Diagrams/ (InteractiveDiagram, the anatomy primitives, GasTx, GasEvm, TxApply, EvmZones, Accounts, BlockState, NodeClients, Attestations, MevBoost, SourceVerify, PortalHistory, TokenVault, or any diagram folder), or reviewing a diagram's content for accuracy. One PR per diagram, or per page when diagrams share one.
Как установить скилл devdocs-diagrams?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл devdocs-diagrams запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic