/linejig:linejigfrom linejig
Creates interactive 3D line-art illustrations in three.js with consistent isometric style. Supports line art, brand, dots, readout, and pencil styles with hover/click interaction and drag-to-rotate.
Ships in linejig. 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.
Linejig draws one object per illustration as interactive 3D line art in three.js, on a shared engine that keeps every figure in the same style. Everything this skill needs is in this folder.
The drawing rules follow the Hairline figure kernel by Lucas Marques (MIT): https://hairline.lucasmarkes.com and
the npm package @lucasmarkes/hairline.
The user judges the idea before the execution.
references/metaphors.md): "Object Z, hero H, because ..., its intro and its one move M."
If one needs a caption to be understood, drop it. Recommend one and wait for the pick.These hold in line art; the styles change only what ## Style says.
Every figure is built on the shared kernel, https://linejig.com/kernel/linejig.js (MIT; its header comment is the API;
read it there, or at site/kernel/linejig.js when working in the source repo). A figure file
holds only its model, its ASSEMBLY table and its HERO handlers, about 100 to 150 lines:
import { createFigure } from '../kernel/linejig.js';
createFigure({ id, center, fit: { points }, ASSEMBLY, model(K, st) { ... }, state(K) { ... }, HERO: { onHover, onLeave, onClick } });
The kernel owns the camera and fit, the palette and styles, rounded prisms and painter fill, the line width and
0.5 px widths, the tween and spring, both intros, orbit, zoom, hit testing, cursors, reduced motion, capture hooks,
the embed contract, the action event (HERO.action, posted when the hero's move reaches its open state, so an
empty state or onboarding step can hand off to its host page) and ?mode=turntable (no hand, a slow swing for
loading screens and recorded loops). Import https://linejig.com/kernel/linejig.js and link
https://linejig.com/kernel/linejig.css, with the three.js import map, as scripts/starter.html does.
Every other style is an MIT add-on file beside it (Brand and Dots in linejig-pro.js, Readout in styles/readout.js,
Pencil in styles/pencil.js): the kernel loads a style's file by itself, once, only when a figure asks for that style,
so a line-art page never downloads it.
To see finished figures, open them from the gallery and read their source.
A figure draws in line art (references/styles.md), the kernel's default: white and black only, the grey ramp,
hi for the hero, text-free. Four more styles restyle the same drawing with one setting; the model, the assembly and
the hero stay the same, so a figure made in one style works in every style.
references/brand.md): quiet grey lines, and the hero as a solid part in the user's brand colour
(orange #f5821f by default) with a soft glow behind it. Short labels may sit engraved on part tops; optionally
the object sits in context on a rail with a dashed footprint.references/dots.md): the same drawing as a screen-space dot matrix, tone as dot size, the hero's dots
in the brand colour, with a cursor swell.references/readout.md): quiet lines on a dark grained plate, the walls printed with a band of binary
digits on one side and the same data as cells on the other, the hero in the brand colour with a soft bloom. Dark-first.references/pencil.md): the drawing by hand in graphite on the plate as paper, pencil strokes with
pressure and overshoot, tone as hatching in each face's plane, the hero in a brand-coloured pencil; silver on dark.Switch with style: 'lineart' | 'brand' | 'dots' | 'readout' | 'pencil' in createFigure, ?style= on a figure page,
or {type: 'style', value} after ready (the old names line and accent still work). Until a style's file arrives
the figure draws line art, and a figure that opens in another style sends ready only once it is in. A page may also
import the file itself to have the style at once.
brand: { color: '#hex' }, ?brand=<hex> (no #), or
{type: 'brand', value: '#hex'} live. The kernel derives every other tone from it; pass it as it is.--primary)
is the likely source, but only once the user confirms it is their brand colour. Convert the computed colour to
hex for both themes.references/brand.md, "Which part takes the colour").On top of references/verify.md: capture every style (?style=lineart, ?style=brand, ?style=dots,
?style=readout and ?style=pencil), and in Brand at least one colour besides orange (?brand=2f6bff), on both
plates. On white the hero must read clean and bright, not muddy; on black, not brown. Measure the rendered pixels.
Full rules and values in references/drawing.md.
lo lines rather than more weight.LineMaterial,
worldUnits: false). When the drawing is dense, use one line in place of two; a second line, if truly needed, is
about 0.5 px in lo.plate (ground and fills), edge (silhouettes), mid (default lines),
lo (dim and background lines) and hi, the one bright highlight on the one part that matters. Plus dashed
guides and dots. The drawing sets no other colour.Every illustration has one hero part, or one family of identical parts that each work the same way (the keys
of a keyboard): the part that carries the message (a compass's needle, a safe's lid, a
key, a balance's beam). Decide it while thinking, before you build, and write it down with the object: "Object Z,
hero H, because ...". The hero is the hi part, it makes the one move, and it is the only part that answers the
user. Everything else stays simple and still, and only moves as the whole object when the user turns or zooms it.
Full rules in references/interaction.md. After the intro lands:
Full rules in references/motion.md.
stack by default: draw (lines draw on) or stack (the object builds from the ground up, one
layer at a time), with more ideas in references/motion.md. One INTRO setting, overridable with ?intro=.cubic-bezier(.32,.72,0,1) for discrete moves; a spring (k 100, c 18, m 1) for
things that should overshoot a little and settle, like a needle. Draw-on about 1200 ms, left to right.prefers-reduced-motion or ?reduced=1): show the final state at once.?freeze=MS stops the clock MS after the start; ?click=ID@MS clicks the hero at MS.stack intro, also
write the object's assembly table (type, base, each part's mounting face and from direction; see
references/motion.md, "Planning the stack").scripts/starter.html: replace the placeholder model, ASSEMBLY and HERO
with yours (mark the hero's row hero: true), assign tones, set the move. Never copy kernel code into a figure.references/verify.md). Look hard; fix and rerender.site/<id>/index.html in the source repo, then add one entry to the gallery manifest
site/illustrations.json (id, name, path, category, message, hero, hover, click, intros,
locked, date, and action: {id, label} if the hero hands off) and nothing else; the gallery at
site/library.html groups entries by category (the manifest's categories list). To show the user a figure
before approval, add it with locked: false: the gallery shows it tagged draft (?drafts=0 hides drafts). Once
approved, set locked: true, push, and redeploy the site's Vercel project. The kernel keeps the embed contract, so the
gallery can drive every figure.Most figures go into a product that already has a look. Full notes in references/integration.md.
?plate=<light>,<dark>), the ink stays the kernel's grey ramp, the frame sits in a card at 5:4, and a class-based
dark mode is passed on with ?theme= and the theme message.The gallery, the kernel source and the figure pages live in the Linejig source repo (site/kernel/linejig.js,
site/<id>/, site/illustrations.json). Steps marked "only when working in the source repo" apply only there;
everywhere else, import the published kernel from https://linejig.com/kernel/.
references/metaphors.md: choosing an object for a message, with an example set.references/drawing.md: camera, rounded prisms, painter fill, the one width, the five tones, palettes.references/motion.md: moves, timings, springs, draw-on, reduced motion, hand-overs.references/styles.md: line art, which part is the hero, the floor grid and the shadow.references/brand.md: the brand colour and its derived tones, the Brand style, which part takes the colour,
recolouring live, and the lesson on muddy colour.references/dots.md, references/readout.md, references/pencil.md: each style and every setting.references/interaction.md: the hero part, hover and click responses, orbit, zoom, hit testing, cursors.references/verify.md: headless Chrome capture, frozen frames, console errors.references/integration.md: on top of a component library (tokens, cards, dark mode), and from the user's own
illustration or SVG.path is a figure page to read.scripts/starter.html: a minimal figure on the kernel with a placeholder object. Open it, or capture with
?freeze=MS.references/brand.md (opens in a new tab)references/dots.md (opens in a new tab)references/drawing.md (opens in a new tab)references/integration.md (opens in a new tab)references/interaction.md (opens in a new tab)references/metaphors.md (opens in a new tab)references/motion.md (opens in a new tab)references/pencil.md (opens in a new tab)references/readout.md (opens in a new tab)references/styles.md (opens in a new tab)references/verify.md (opens in a new tab)scripts/starter.html (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3d-illustration, line-art, isometric, three-js, interactive-figures
Generated from the plugin's indexed repository (37degree-studio/linejig) — no native marketplace selected
npx claudepluginhub p/37degree-studio-linejigOther plugins' skills for the same job