Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

devdocs-diagrams

FreeNo executable scriptsNot checked

Use when converting a developer-docs schematic PNG (gas.png, evm.png, tx.png, accounts.png, nodes.png, mev.png, source-code-verification.png…

ethereumby ethereum★ 6,005 GitHub stars

About this skill

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
Full SKILL.md on GitHub

Install devdocs-diagrams in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the devdocs-diagrams skill do?

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.

How do I install the devdocs-diagrams skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the devdocs-diagrams skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare devdocs-diagrams with