/stevestack:diagramsfrom stevestack
Draws minimal monospace box diagrams (architecture, trust boundaries, data flow, sequence of steps) for design docs, RFCs, READMEs, or slides. Renders to light-and-dark SVG plus PNGs from hand-placed coordinates.
Ships in stevestack. 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; scripts run unread.
Small, quiet box diagrams in the style of the Terminal Bench blog figures: monospace type, black and grey only, a handful of boxes, thin arrows, and nothing decorative. Each diagram is a Python dict of hand-placed shapes that the script renders to one SVG (which follows the viewer's light or dark mode) and a light and a dark PNG. The Python file stays next to the document as the editable source.
Use this when a design doc, RFC, README or slide needs an architecture, boundary, data-flow or sequence-of-steps picture. Do not use it for charts of data.
Before drawing anything, view these. They are the style; match them.
Their source is EXAMPLE in the script. The dark renders are
boundary-dark,
replay-dark,
steps-dark and
flow-dark.
zone is a trust or process boundary, a
dashed box is a component inside it, a dotted box is a filter or step a
thing passes through, a node is data or a thing at rest, a bar is the
shared substrate underneath.All coordinates are drawing units with the origin at the top-left. Multi-line
labels use \n.
zone(x, y, w, h, label): muted container, label top-left.bar(x, y, w, h, label): muted container, label centred; the host strip.node(x, y, w, h, label): slightly darker filled box with a thin outline.solid(x, y, w, h, label): foreground-filled box with inverted text.dashed(x, y, w, h, label, centered=False): dashed outline.dotted(x, y, w, h, label): dotted outline, label centred.arrow(points, label="", at=None, anchor="middle"): orthogonal polyline
with a filled head; points is a list of (x, y).note(x, y, text, anchor="start"): free text with its baseline at (x, y).dim(*shapes): draw the given shapes at 30% opacity.Sketch in text: the boundaries, what sits in each, which two or three arrows matter. Cut until it fits the rules above.
Pick a grid shared by every diagram in the set: same top row, same bottom
bar, same box sizes. Keep the numbers in constants (TOP, BAR_Y,
NODE_W) and reuse them.
Copy scripts/diagrams.py into the document's
directory (for example docs/<topic>/diagrams/diagrams.py) and fill in
DIAGRAMS: a slug mapped to {"title", "height", "shapes"}. Delete
EXAMPLE or leave it; it is only rendered with --example.
Run it. It writes <slug>.svg, <slug>.png and <slug>-dark.png next to
the file:
uv run diagrams.py # or: python3 diagrams.py, with Pillow installed
uv run diagrams.py --example # the four samples
uv run diagrams.py --scale 4 # larger PNGs
It needs Python 3.12+ and Pillow, nothing else. The PNG renderer requires a real font file: Google Sans Code (the blog's face, free from Google Fonts), or Adwaita Mono or DejaVu Sans Mono. It stops with a message naming the missing font rather than falling back to a bitmap font.
View every PNG, light and dark. Check that labels clear the box edges, arrows start and end on edges, and related diagrams line up. Adjust the coordinates and rerun until it is right.
diagrams.py, the SVGs and the PNGs.
Reference the SVG from Markdown; it switches with the reader's colour
scheme on GitHub and in browsers. Keep the PNGs for viewers that cannot
render SVG.agents/openai.yaml (opens in a new tab)assets/examples/boundary-dark.png (opens in a new tab)assets/examples/boundary.png (opens in a new tab)assets/examples/boundary.svg (opens in a new tab)assets/examples/flow-dark.png (opens in a new tab)assets/examples/flow.png (opens in a new tab)assets/examples/flow.svg (opens in a new tab)assets/examples/replay-dark.png (opens in a new tab)assets/examples/replay.png (opens in a new tab)assets/examples/replay.svg (opens in a new tab)assets/examples/steps-dark.png (opens in a new tab)assets/examples/steps.png (opens in a new tab)assets/examples/steps.svg (opens in a new tab)assets/icon.svg (opens in a new tab)scripts/diagrams.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub stbenjam/skills --plugin stevestack12 skills in this plugin
/ask-meBrainstorm an unsettled idea together, one question at a time./braintrustConvene a mini or mega panel of different models on a design, codebase or decision, and lead with the findings only one panelist raised. Use when the user asks for a braintrust, panel, council, mini-panel or mega-panel, or wants several independent opinions./deep-reviewUse when a deeper level of code review is requested. Multi-agent panel code review with specialist reviewers and forced runtime reproducers for all BLOCKING bug findings. Optionally posts to GitHub/GitLab as a PENDING review./design-docWrite a short, accurate design doc in Google Docs with diagrams. Use when asked to write or update a design doc./git-rulesUse this skill for critical Git rules whenever working with Git, especially before committing, pushing, rebasing, comparing branches, or preparing a pull request./landAuthorize merging the current PR yourself once it meets the bar.