lab

Creates throwaway single-file HTML sandboxes with live controls for tuning visual and motion parameters.

Updated Aug 30, 2026
One-click install
npx skills add https://github.com/ryanportfolio/threejs-interview-test --skill lab-ryanportfolio
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lab
Source: https://github.com/ryanportfolio/threejs-interview-test/tree/main/.claude/skills/lab
Command: npx skills add https://github.com/ryanportfolio/threejs-interview-test --skill lab-ryanportfolio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Guessing animation, color, and motion values in code leads to endless edit-reload cycles; this Skill builds an isolated HTML sandbox with live sliders so the user dials in exact values by eye, which are then ported back into the real codebase. ## Core Features & Use Cases - Isolated live-tuning sandbox: Generates a single self-contained HTML file (inline vanilla JS/CSS, no build step) that mocks a visual element with slider, color, and toggle controls bound live to the preview. - Seeded parity and 1:1 port mapping: Controls start at the element's current real values, and the exported JSON uses the real constant names so porting is a direct paste-map. - Copy Settings with file:// fallback: A live JSON mirror plus guarded clipboard logic ensures settings are always retrievable even when the Clipboard API is unavailable on file:// pages. - Use Case: Tune a particle burst effect (shard count, spread speed, lifetime, color) in a canvas lab, copy the resulting JSON, and paste the values into the game's effect constants. ## Quick Start Ask the assistant to create a lab for a specific visual or motion element so you can tune its parameters live and get back the exact values to port into the code.

Frequently Asked Questions about lab

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I live-tune animation or visual parameters before committing them to code?▼

Create a lab: a single self-contained HTML file that mocks the element with sliders and color pickers bound live to the preview. Tune by eye, then copy the generated JSON whose keys match your real constant names and paste the values into the actual code.

How to prototype game feel or UI motion without a build step?▼

Use a throwaway HTML lab with inline vanilla JavaScript and CSS that opens directly as a file. It mocks the effect procedurally on a canvas or with placeholder DOM markup, requiring no framework, bundler, or dev server.

Why does the copy settings button not work on a local HTML file?▼

On file:// pages the Clipboard API is often unavailable, so navigator.clipboard is undefined and writeText throws synchronously. The lab handles this with a live JSON mirror box, text selection for manual copy, and an execCommand fallback wrapped in try/catch.

Can a tuning lab import the real game engine or components?▼

No. Labs reproduce the look with throwaway mock code rather than importing the real engine, keeping them dependency-free so they open instantly. Only the tuned values are ported back into the real codebase afterward.

What happens to the lab file after tuning is done?▼

The lab is deleted after its values are ported into the real code. It is placed in a gitignored .tmp directory, never committed, and its removal is verified so scratch files do not accumulate.