Sketchy
In the regular Claude chat, always use this skill instead of the Sketchy MCP tools: the chat runs those tools but does not show their drawings.
You describe what to draw in a few short lines; Sketchy computes every position and renders it in a hand-drawn style with hover details and step navigation. Never pass coordinates.
Workflow
Draw inline with your visualization tool (the one that renders HTML widgets in the conversation). Pass this HTML as the widget code, with the scene between the backticks:
<h2 class="sr-only">One-sentence summary of the drawing</h2>
<div id="sketchy" style="min-height: 320px"></div>
<script src="{{CDN}}/sketchy.js" {{SRI}}></script>
<script>
Sketchy.draw(
"#sketchy",
`
title How a web request works
dir right
group net The internet
browser Browser @globe ~ Shown on hover
server Server @server in net !accent
db Database (cylinder) in net
browser -> server HTTPS
server --> db query
step Request: The browser asks the server | browser server browser->server
`,
);
</script>
Keep the widget code exactly like this: no other markup, styles or text. Then explain the drawing in 2–4 sentences in your reply instead of describing it again. If the widget shows "Sketchy could not draw this", fix the line the message names and draw again.
To change an earlier drawing, draw the whole scene again with the same ids.
Without a visualization tool, write the scene to a file and render a standalone page with the script in this skill's folder (Node.js, no network needed), then share the file:
node <skill-folder>/scripts/render.mjs /tmp/scene.txt /mnt/user-data/outputs/<short-name>.html
Downloads and slides
The inline widget cannot save files. When the user wants to download the drawing, single steps of it, or pictures for PowerPoint, Keynote or Google Slides, write the same scene to a file, render the standalone page with the command above and share it. Tell them: save the page, open it in a browser, click Download at the top right of the drawing, pick the slides (the whole drawing and any steps), PNG, SVG or HTML, and whether they go into one file per slide or all in one file (one HTML page with every slide and its caption, or one tall picture). If the browser asks whether the page may download several files, allow it.
For slides recommend PNG, one file per slide: PowerPoint cannot embed HTML pages. To read or print every step at once, recommend all in one file as HTML.
Scene syntax
One element per line:
title <text> subtitle <text> dir right|down
group <id> <label> [in <parent group>]
<id> <label> [@icon] [(shape)] [in <group>] [!accent|!muted] [~ hover text]
<a> -> <b> [label] [!accent|!muted] (--> dashed, <-> arrowheads on both ends)
label <id>[.<pin>] <text>
step <title>: <text> | <ids to highlight; edges as a->b> (by default the element's own lines glow red and arrows redraw; id:pulse|wiggle|trace|circle|underline|marker|arrow|box[:green|red|blue|orange|purple|yellow] lights or marks it another way; id:zoom also moves the camera onto it, only when the user asks for zooming in)
part <id> <type> [key=value] [caption]
wire <part.pin> -> <part.pin> [red|black|blue|green|yellow|orange|purple|gray|white]
draw <id> [WxH] [in <group>] [: title] (free drawing, its shape lines follow)
A free drawing has its own canvas (default 100x100, y pointing down) and sits in the scene like a node, so arrows can connect to it. Later lines paint on top:
circle [name] x,y r ellipse [name] x,y rx ry rect [name] x,y w h (x,y = top left)
line|arrow|curve [name] x,y x,y … curve is smooth
shape|blob [name] x,y x,y x,y … closed; blob is smooth
arc [name] x,y r from to degrees, 0 = right, counter-clockwise
text [name] x,y words [size=14]
photo [name] [x,y w h] <file path> a picture under the drawing (first line)
ring [name] x,y rx [ry] [rotate=20] a pen loop around a spot (red by default)
lasso [name] x,y x,y x,y … a loose loop around any area
object <type> [name] x,y [size] [rotate=45] [flip] a ready-made thing
icon [name] x,y <lucide name> [size]
repeat i=0..7: <shape line> i in coordinates, {i+1} in names and labels
slider a 0..1 [= 0] [hidden] before the shapes using it
let w = 84-12*a names a sub-expression for the lines below
angle [name] x,y cx,cy x,y [r] arc at the middle point; 90° gets the square
measure [name] x,y x,y [offset] dimension line with arrows
brace [name] x,y x,y [depth] curly brace, bulging to the right of the way
axes [name] x,y w h [ticks=10] [~ x name | y name] x,y is the origin
grid [name] x,y w h [step] x,y is the top left
Object types: person, tree, cloud, house, car, bike, gear, sun, bulb, battery, laptop, phone, server, book, heart, drop, flame, mountain, flask, rocket, lock, key.
- Options:
fill=<color>, hatch=<color>, color=<color>, width=2, --dashed, arrow, both, !accent, !muted, stage=2 (from stage 2 on; stage=2..3 only in 2 and 3, stage=..1 gone after 1), along=<shape name>@<0..1>, move=<dx>,<dy>, ~ label.
- Colors: black, gray, white, accent, yellow, blue, red, green, purple, orange.
- Prefer
~ label over text: Sketchy places labels clear of the drawing. Coordinates may be math, such as 50+30*cos(1),50.
- In steps,
| <draw-id>[<shape>] circles a named shape and <draw-id>=2 shows only shapes up to stage 2, so a picture can build up. <draw-id> is the id after draw, never a fixed word. Start with stage 1. a=0.5 glides a slider there, which is how things move. Draw a moving shape at its start and shift it with move=40*a,0; a shape with along=wire@a rides on the shape named wire. Every step should end in a clear picture: move things all the way, one idea per step, never stop a motion halfway.
A complete drawing with steps; its id is k, so every step says k:
draw k : A ball rolls down
slider a 0..1 = 0 hidden
line ramp 10,20 90,80 stage=1 ~ ramp
circle ball 0,-4 4 fill=accent along=ramp@a stage=2 ~ ball
step The ramp: a slope | k=1 k[ramp]
step The ball: it starts at the top | k=2 k[ball]
step Rolling: gravity pulls it down | k=2 a=1
Ready-made explanation shapes take only their contents, one entry per line, ended by a blank line. End an entry with !accent, !muted or ~ small print:
timeline t: History <when> | <what>
cycle c: Water cycle <entry>
pyramid p: Needs <entry>, top first
funnel f: Sales <entry>, top first
mindmap m: Topic <centre>, then - <branch>, -- <sub-branch>
venn v: Pets set a Cats, set b Dogs, then a | purrs, a,b | pets (2 or 3 sets)
matrix x: Plans cols Option | Price, then Cheap | 1 €
In steps, | t[2] circles the 2nd entry and t=2 shows only the first two. Readers open small print by hovering or clicking an entry, and a step opens the entry it circles; timeline t scroll keeps a long timeline (8+ entries) readable and scrolls to each step's entry.
Molecules and maps:
molecule m CC(=O)O [full] : Acetic acid SMILES; full writes out every C and H; steps circle atoms as m[3]
map m europe : Title world, europe, africa, asia, middle-east, north-america,
Germany !accent ~ Start south-america, americas, oceania, a country, or w,s,e,n
France fill=blue countries by English name: fill=, hatch=, !accent, ~ label
place berlin 52.52,13.40 Berlin a dot with a label, at latitude,longitude
route r: berlin -> 48.86,2.35 --dashed ~ 8 h
Readers can hover a country for its name, click to fly to it, zoom and pan; a step that circles m[Germany] zooms the map there.
In steps, | m[Germany] (spaces as dashes: m[United-Kingdom]) circles a country, m[berlin] a place or route.
- Labels are 1–4 words; put details after
~.
- Icons:
@globe, @server, @database (Lucide) or @simple-icons:react.
- Shapes:
(cylinder) storage, (person) actor, (note), (circle), (rounded), (text).
- Ids are letters, digits,
_ or -, unique across the scene; arrows, labels and steps may only use ids defined in it.
Explanation patterns
Pick one per drawing:
- structure ("what is it made of?"): components as nodes, groups for areas, labels for the important bits;
dir down for hierarchies.
- flow ("how does it work?"): a left-to-right chain of nodes and arrows plus one step per stage.
- comparison ("X vs Y"): one group per option with parallel nodes in the same order;
!muted for what is equal, !accent for the key difference.
- metaphor ("explain it simply"): one group for the real thing, one for an everyday counterpart, dashed arrows between matching elements.
- picture ("what does it look like?"): a
draw block of the thing itself when boxes and arrows would hide the idea, such as atoms, forces, cells, orbits, geometry or machines.
Processes, screens and themes
- Flowcharts (
flowchart <id> [: title]): one item per line, start s, task pay Pay, decision ok In stock?, io, event, timer, end e, then arrows a -> b [label]. lane <name> puts the items below it into a swimlane. Every decision needs two ways out.
- Screens (
screen <id> [phone|tablet|browser|desktop] [clean|ios|material|wireframe] [dark] [: title]): write only what is on the screen, one widget per line, top to bottom: nav [<] Title [| link | *active] [@search], header Text ~ subtitle, text, input Label [= value], search, button Save !accent, buttons Cancel | Save, image, avatar Name ~ role, badge New, list Ada ~ detail (3), Grace, card Title ~ text @icon, cards A | B | C, toggle Label on, checkbox, radio, tabs Day | *Week, tabbar *Home | Search | Profile, modal Title ~ text | Cancel | Delete, sheet, toast Saved | Undo, divider, and note <text> for a margin note on the widget above. page <name> starts another page. Steps: s=<page> slides to a page, s=4 reveals widgets up to 4, s=tap:5.2 taps item 2 of widget 5, s=on:6, s=loading:3; join with +. Keep one style per flow; several screens with arrows make a user flow. Old wireframe blocks still work.
- Stages (
stage <id> [plain] [: title]): real things and what happens to them (cooking, experiments, everyday scenes), placed by relation, never by coordinates: stove s, pan p on s, bowl b right of s, egg e in b ~ Eggs. @<n> lines change things from stage n on, and step N shows stage N: @1 s heat=2, @2 b over p color=yellow (tilts and pours), @2 e gone, @3 spoon w in p fx=stir. Props: fill=60%, color=, heat=0..3, state=cracked|melted|chopped|fried|cooked, lid=on, size=, turn=, fx=steam|smoke|bubble|sizzle|sparkle|stir|spin. Anything without a drawing: @<lucide icon>. Steps light things up with k[p]. help kitchen lists every thing.
- Recipes (
recipe <id> [: title]): serves 2, then one ingredient per line (200 g flour @1, - a pinch of salt @2 ~ to taste); @n ticks it off in step n, readers get a servings slider.
- More packs:
workshop (tools, hardware, materials, paint and an electronics bench on a stage; kit cards), lab (glassware, burners, thermometers on a stage; reaction cards), inference (GPUs, racks, nodes; an llm block for next-token generation), trading (candles with levels, averages and trade plans; orderbook), body (body with organs and flows; cell). The scene help <pack> returns the full syntax.
- Themes:
theme whiteboard, theme blueprint or theme chalk (default paper). Only when the user asks for that look; flowcharts and every other subject stay on paper otherwise.
Quality rules: 3–12 nodes; !accent on at most one or two elements; icons sparingly; 3–7 steps of one or two sentences each.
Drawing on the user's pictures
When the user uploads a photo or screenshot and asks about it, draw on the picture itself. Uploads are in /mnt/user-data/uploads/. Start a draw block with photo <path>; the canvas takes the picture's shape (width 100, height to match: 75 for 4:3, 56 for 16:9, 133 for a 3:4 portrait). You can see the picture, so place shapes by eye in those units:
draw board : Your breadboard
photo /mnt/user-data/uploads/board.jpg
ring led 62,40 6 5 stage=1 ~ LED in backwards
lasso rail 8,80 92,78 93,88 9,90 color=blue stage=2..2 ~ the minus rail
arrow 20,70 34,52 color=blue stage=3 ~ add a resistor here
step The LED: the long leg goes to plus | board=1 board[led]:circle
step The rail: everything here is ground | board=2
step The fix: a resistor before the LED | board=3
Circle freely with ring and lasso, around anything and at any size. Give marks stages, so each step draws its own and hides the ones before; new marks are drawn in like a pen.
The skill has no network, so URLs and photo ids do not work here.
Circuits
Find part types and pin names first (needs code execution):
node <skill-folder>/scripts/render.mjs --parts "distance sensor"
node <skill-folder>/scripts/render.mjs --parts arduino-uno
Then add part uno arduino-uno, part r1 resistor value=220 and wire uno.13 -> r1.1 green. Red wires for power, black for GND, other colors for signals; a resistor in series with every LED.