/paprika3d:threejs-testfrom paprika3d
Tests three.js/WebGL games by recording state checks and rerunning them from fresh reloads after each edit. Useful for catching regressions in agent-built 3D scenes.
Ships in paprika3d. 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.
None: SKILL.md is the whole skill.
interact and add expect and save: interact { steps: [{ key: "Space" }], expect: { "player.y": [1.5, 3] }, save: "jump" }. expect keys are dotted paths into the state; a value is a number, string or boolean (equal), [min, max] (a range), a list of values (one of them; [null] is null), [] (an empty list) or null (exists, whatever its value). The check is written to game-tests.json in the project when every entry holds.test reruns every check saved on the open page, each from a fresh reload at frame 0, one line each: ✓ jump, or ✗ jump: with the value seen and the one expected.In Claude Code, the paprika3d plugin's after-edit hook reruns the saved checks after each edit and speaks only when one starts or stops failing; between checks it gives way to the agent's next call, so an edit never holds that call for the whole rerun. A check whose page would not load says launch_failed with what the page itself said under it (its first errors, such as a module that does not resolve), so a page that throws as it loads reads as the page's error, not the hook's. The checks read window.__game's state (the convention: ../threejs-game/SKILL.md). A Playwright suite still fits CI runs, real devices and multiplayer.
If open and test are not among your tools, the paprika3d MCP server is not installed: it runs as npx -y paprika3d serve (stdio), and https://paprika3d.com/docs/install?ref=skill has each agent's line.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
three.js, webgl, game-testing, visual-regression, playwright
12 skills in this plugin
/paprika-loopBuilds the person's three.js request over a set time (an hour, two hours, an afternoon) from a short brief in paprika-loop/PROMPT.md, which they can change while it runs, in a loop of fresh sessions, each as many improvements as fit, judged against the brief, scored and committed until the time is up. Use on /paprika-loop <request> for <time>, "keep improving this for two hours", or any 3D build the person wants done unattended over a long time./paprika-makeBuilds what the person asks for in three.js, React Three Fiber or WebGL with the paprika3d tools - a game, a 3D scene or a picture rebuilt in 3D, an interactive or educational piece, a product viewer or configurator, a portfolio or scroll site, a simulation, a shader demo. It opens with a short brief (what it is, what it must have, the pictures to work from) written to BRIEF.md, then builds start to finish. Use on /paprika-make <request>, "make me a 3D ...", "build a three.js ...", or any request for a new 3D page./paprika-publishPublish to <name>.paprika3d.app (invite-only preview) when the person asks for a public link; not for Vercel, Netlify, GitHub or Cloudflare Pages, or another named host./threejs-gameRuns, sees, plays, measures and speeds up any three.js, React Three Fiber or WebGL page as you build it - a game, a product viewer or configurator, a simulation, a shader or post-processing demo - in headless Chrome on a paused, seeded clock - what is on screen and what never appears (a model at the wrong scale, out of view or not loaded), frame-exact keyboard, mouse and touch input, the page state as JSON, mesh stats, feel and frame-time measurements. Use it, rather than a Playwright or Chrome DevTools script, to build and check the page in Chrome or Firefox whenever the user asks to make, fix, test, extend, screenshot or profile a three.js or WebGL page, new or existing; a Playwright suite still fits CI runs, real devices and multiplayer./threejs-glb-auditCheck and shrink the .glb, .gltf and USD models a three.js page loads - size, triangles, textures, Draco, meshopt and KTX2, a verdict for a website or Shopify, a smaller copy with WebP textures. Use for a large model file. paprika3d's model_audit tool./threejs-perfProfile a three.js or WebGL page from a coding agent - frame time (fps), draw calls, triangles and asset size against a budget, and which objects or settings cost the frame. Use when it stutters, has low fps or loads slowly. paprika3d's perf tool.npx claudepluginhub keeno-corp/paprika3d --plugin paprika3dOther plugins' skills for the same job