/panelui:apparatusfrom panelui
Builds interactive isometric explainer figures for React Native/Expo apps using react-native-svg, Reanimated, and Gesture Handler, framed in a PanelUI card.
Ships in panelui. 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.
An apparatus figure explains an idea by building a machine that works the way the idea works, and letting the reader run it with a finger. The carriage is the animated value; the balls in the magazine are the tokens; the piston that stops at the top is top dead centre. The reader understands the idea because they recognise the machine, and every number the figure shows comes from the same model that moves its parts.
Five complete figures ship in examples/. Open the closest one before you
start — each is a model.ts, a geometry.ts and a figure.tsx, and the three
files are the shape every figure should have.
| Example | Idea | Machine | The reader |
|---|---|---|---|
spring-bench | Spring animation | A carriage on a rail, a coil, an oil dashpot, a pen on a paper strip | Drags the carriage and lets go; turns two knobs |
flywheel | Momentum scrolling | A flywheel driving a strip of rows, a brake with a rate knob | Flicks the wheel; touches it to stop |
token-hopper | Rate limiting | A glass magazine of balls, a feeder, a gate, a chute, a tray, a bin | Taps to send requests, fast enough to be refused |
car-engine | A four-stroke engine | An inline four cut open: pistons, rods, crank, valves, spark | Turns the crank by hand; sets the throttle |
human-cell | Cellular energy | A cell on a slide, cut in half; a transporter, mitochondria | Feeds it glucose and watches where ATP is made |
The machine is the explanation. No boxes with labels, no arrows, no words inside the drawing. Invent a real, well-made object whose mechanism maps one to one onto the idea, and say in one sentence what moves and what that motion means. If the mapping needs a caption to make sense, the object is wrong.
| Idea | Object |
|---|---|
| A value easing towards a target | A carriage pulled by a spring through oil |
| Requests limited to a rate | Balls fed into a magazine at a fixed rate, taken one per pull |
| A fling that decays | A flywheel with a brake |
| A list that reuses its rows | A belt of trays passing a window, relabelled behind the casing |
| Debouncing | A weight lifted by each tap, sinking through oil, ringing a bell only at the bottom |
| A cache hit | A pigeonhole rack with a clerk who checks it before walking to the archive |
Two ways this fails: too abstract (slabs and plates that are not anything) and too flat (one big shape with a few lines on it). The cure for both is a recognisable machine built from many small, purposeful parts.
Name the size before anything else. On a phone the budget is frame time, not just effort.
model.ts with no React Native
import: the motion, the readout and the caption all come from it. If the
figure slows time down to be followable, the caption says so; the counts
never change.references/craft.md has a vocabulary of parts.x
and y on the floor, z up. Pick the camera (azimuth 25–50°, elevation
26–32°) so the side that shows the mechanism faces the reader. List the
EXTENT points — the machine at its widest pose, every moving part included.geometry.ts that turns a View into paths
and solids, called in useMemo keyed on the canvas size. Moving parts are
built at rest and moved as layers.references/craft.md.ApparatusFrame from kit/figure.tsx: title and figure number
on top, the readout and a one-line hint below, a caption under the card.references/motion.md.references/accessibility.md.references/verify.md is the checklist, and every item on
it is there because a figure shipped without it once.These are the faults that have actually been made with this skill. Each one looked fine in a still and was wrong in motion.
'worklet' as its first line. Without it the app aborts on the UI thread
with "Tried to synchronously call a Remote Function", and there is no
JavaScript stack to point at it.manualActivation(true), decide what was touched in onTouchesDown and call
manager.activate() from onTouchesMove. Activating on touch-down does
nothing; the gesture finalizes without ever becoming active.manager.fail() an upright drag so the scroll view gets it. Taps use
Gesture.Tap(), which never blocks scrolling.Copy kit/ into the project (for example components/apparatus/kit/) and
import from it. references/kit.md has every export.
| File | What it is for |
|---|---|
kit/iso.ts | Pure geometry: camera, fitView, aspectOf, box, cylinder, prism, sphere, coil, ticks, ringFront, silhouette, halo, planeMatrix, projector. No React Native. |
kit/tones.ts | Pure colour: the four greys and the accent mixed from the theme's card, foreground and primary. |
kit/draw.tsx | FigureCanvas, IsoStage, Layer, Solid, Stroke, Fill, Dots, Halo, OnPlane, usePalette. |
kit/live.ts | UI-thread motion: useFigureClock, follow, springStep, rotateInPlane, stretchInPlane, slideStyle, matrixStyle, projectWith, useReadout, useDetents, tick, knock, useStillness. |
kit/figure.tsx | ApparatusFrame: the PanelUI card a figure sits in. |
references/craft.md — the look: tones, parts vocabulary, detail, painter's
order, sections and cutaways. Read before designing.references/kit.md — the kit's API.references/motion.md — frame loops, layers, pools, contact, gestures,
haptics, idle tours, reduced motion.references/accessibility.md — roles, values and actions for a figure.references/verify.md — recording a simulator, reading frames, the checklist.examples/car-engine/figure.tsx (opens in a new tab)examples/car-engine/geometry.ts (opens in a new tab)examples/car-engine/model.ts (opens in a new tab)examples/flywheel/figure.tsx (opens in a new tab)examples/flywheel/geometry.ts (opens in a new tab)examples/flywheel/model.ts (opens in a new tab)examples/human-cell/figure.tsx (opens in a new tab)examples/human-cell/geometry.ts (opens in a new tab)examples/human-cell/model.ts (opens in a new tab)examples/spring-bench/figure.tsx (opens in a new tab)examples/spring-bench/geometry.ts (opens in a new tab)examples/spring-bench/model.ts (opens in a new tab)examples/token-hopper/figure.tsx (opens in a new tab)examples/token-hopper/geometry.ts (opens in a new tab)examples/token-hopper/model.ts (opens in a new tab)kit/draw.tsx (opens in a new tab)kit/figure.tsx (opens in a new tab)kit/iso.ts (opens in a new tab)kit/live.ts (opens in a new tab)kit/tones.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
react-native, expo, isometric, interactive-diagram, reanimated, svg
npx claudepluginhub panel-ui/panelui --plugin panelui4 skills in this plugin
/logo-makerDesign an original app logo — a compact mascot or symbol that stays readable at 32 × 32 and works as an icon at every size. Use when asked to create, design or generate a logo, app icon, brand mark, mascot or avatar for a product, whether or not an image generator is available. Produces either a vector file the project can keep or a prompt for an image model, from one shared set of design rules./paneluiBuild React Native and Expo UIs with PanelUI — adding components, theming, composing overlays and forms, and debugging why something is unstyled. Applies when working in an Expo or React Native project that has panelui-native installed or a panelui.json, when the user mentions PanelUI, or when they ask for a bottom sheet, dialog, chart, chat transcript, form or any other screen UI in React Native./panelui-webBuild React web UIs with PanelUI's web collection — adding its components from the shadcn registry or from npm, colouring them from the theme, and composing them into framed panels. Applies when working in a React project that has shadcn/ui set up with a @panelui registry or has panelui-web installed, when the user mentions PanelUI on the web, or when they ask for a dotted globe, a KPI card, a kanban board, a node graph, an activity grid or a feedback dialog in React.Other plugins' skills for the same job