lab
Skill1 starsChanged 59 days agoMITView on GitHub
Use when the user explicitly asks to lab or prototype a visual, UI, motion, or game-feel element with live tuning before production implementation.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- ryanportfolio/Corewise.Academyword for word, first seen Oct 3, 2026
- ryanportfolio/HarnessFirmware.comword for word, first seen Sep 29, 2026
- modeled-information-format/research-harness-templatetheir own version, first seen Jul 24, 2026
- GhostlyGawd/recursive-harnesstheir own version, first seen Jul 20, 2026
- orkait/hyperstacktheir own version, first seen Jun 14, 2026
Other versions5 projects use a version of this.
Word for word · 2
- ryanportfolio/Corewise.Academy★ 1100% same
- ryanportfolio/HarnessFirmware.com★ 0100% same
Edited · 0
None found.
Wrote their own version · 3
- GhostlyGawd/recursive-harness★ 3same name
- modeled-information-format/research-harness-template★ 2same name
- orkait/hyperstack★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository76 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- addskillSkill
- adopt-repoSkill
- advocateSkill
- arenaSkill
- astra-reviewSkill
- babysit-ciSkill
- brainstormingSkill
- broSkill
- cavemanSkill
- claude-reviewSkill
- codex-reviewSkill
- dareSkill
- deep-planSkill
- enhance-promptSkill
- external-reviewSkill
- fable-modeSkill
- forge-repo-ui-skillSkill
- handoff-auditSkill
- impartial-reviewSkill
- init-projectSkill
- long-horizonSkill
- optimize-contextSkill
- opus-fullreviewSkill
- perf-loopSkill
- recallSkill
- refineSkill
- serversSkill
- session-hubSkill
- showpieceSkill
- sync-starterSkill
- whySkill
- wow-loopSkill
- wrapupSkill
- writing-plansSkill
- writingSkill
- addskillSkill
- adopt-repoSkill
- advocateSkill
- arenaSkill
- astra-fullreviewSkill
- astra-reviewSkill
- babysit-ciSkill
- brainstormingSkill
- broSkill
- cavemanSkill
- claude-reviewSkill
- codex-fullreviewSkill
- codex-reviewSkill
- compact-reviewSkill
- dareSkill
- deep-planSkill
- enhance-promptSkill
- fable-modeSkill
- forge-repo-ui-skillSkill
- handoff-auditSkill
- impartial-reviewSkill
- init-projectSkill
- labSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Seeded at parity: Every control starts at the element's current real value, so the lab opens looking exactly like the live thing.
- Distinctive: line 19
Never committed: Do not git add the lab file.
- Distinctive: line 20
Deleted when done: After porting, delete the lab and verify it is gone.
- Distinctive: line 41
Add a button that serializes the current control values to JSON, keyed by real constant names (contract rule 3).
- Distinctive: line 64
Avoid editing or reloading after handoff, because it can reset the tune.
- Very specific: line 72
Delete the lab file. Verify it is gone (ls) and that it was never committed: it must not appear in git status or git ls-files.
- Distinctive: line 77
Determinism boundary: if the real code has a deterministic core (a sim engine, a pure-function reducer), keep it that way when porting.
- Distinctive: line 79
Multiple render surfaces: if the element renders in more than one shell or page, port knobs into the shared component so every surface …
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lab: live-tune an element in an isolated sandbox, then port and delete
Models guess at feel; the user's eye knows it. A lab is a single throwaway HTML file with live controls that renders the element in isolation, so the user dials in the numbers instead of you guessing. Once they are happy, port the exact values into the real code and delete the lab. The result is agreed, deterministic values in the actual codebase.
Works for any visual or feel element, in a game or a website.
The contract
A lab is scratch tooling, never product:
- Self-contained. One HTML file. Inline vanilla JS and CSS. No external imports, no build step, no framework, no bundler. It must open and run as a plain file.
- Seeded at parity. Every control starts at the element's current real value, so the lab opens looking exactly like the live thing. The user tunes away from the baseline and can always see what changed.
- 1:1 key mapping. The "Copy Settings" JSON uses keys that match the real constant names, so porting is a paste-map, not a translation.
- Never committed. Do not
git addthe lab file. It does not ship. - Deleted when done. After porting, delete the lab and verify it is gone. Forgotten labs pile up as served-folder junk.
Invoking lab authorizes the scratch file and, once the user supplies settings, the port into the real code. It does not authorize commit, push, PR, merge, deploy, publication, or dependency installation unless that action is the user's explicit request.
Workflow
1. Scope the knobs
Read the real code for the element. List every tunable parameter and its current value; these become the lab's controls. A knob is anything the user might want to feel out: durations, magnitudes, counts, radii, easing, colors, alphas, spacing, font sizes, delays, thresholds. Note the real constant name for each; it becomes the JSON key.
Pick the template from templates.md:
- Game / canvas: anything drawn to a
<canvas>: particles, flashes, shake, trails, sprites, motion, timing. Mock the world procedurally (dummy actors, auto-fire). Do not import the real engine. - Web / DOM: a component, layout, type scale, color, spacing, motion or transition, a redesign. Mock the markup with placeholder content.
2. Build the lab
Start from the matching skeleton in templates.md. For each knob, add a labeled control (range slider, number, color picker, or toggle) bound live to the preview: moving it updates the render immediately, with no reload. Seed each control's default at the current real value (contract rule 2). Group related knobs. Keep the preview large and the panel compact.
3. Add "Copy Settings" and handle the file:// clipboard gotcha
Add a button that serializes the current control values to JSON, keyed by real constant names (contract rule 3).
Clipboard capability varies. On a file:// page navigator.clipboard is often undefined, because the Clipboard API needs a secure context. navigator.clipboard.writeText(...) then throws a synchronous TypeError, not a rejected promise, so a naive .catch(() => {}) never runs, the click handler aborts, and the visible JSON mirror is never written. The button looks dead and nothing is copyable.
Make the JSON readable without relying on the clipboard:
- Live mirror. A
<pre>or box that shows the JSON and updates on every input, not only on click, so the current settings are always on screen. The user can read, screenshot, or paste them even when copy is blocked. Seed it at load so it is never empty. - Write the box first, then select it. On click, set the box text before touching the clipboard, then select its contents (Range plus Selection) so a manual Ctrl+C works.
- Guard and fall back.
if (navigator.clipboard && navigator.clipboard.writeText)try it; otherwise fall back todocument.execCommand("copy")on the selection. Wrap both intry/catchso neither can abort the handler. - Never let a clipboard call run before the visible mirror is written.
The skeletons in templates.md already implement this pattern. Copy them rather than writing the naive navigator.clipboard.writeText(json) one-liner.
4. Place and open it
Use an authorized scratch location, defaulting to .tmp/<name>.html; verify ignore status with Git rather than assuming the file cannot be staged. Inspect the actual file, browser, server, and preview capabilities exposed in this session. Open a local file if supported, or use a reachable local server with supported controls. Browser work follows the browser-per-session rule in AGENTS.md. Verify the user can reach the chosen preview. Do not publish or install tools merely to show the lab.
Honor an explicit filename or title throughout. Otherwise use <element>-lab.html. Keep the lab standalone even when served.
5. Hand off to the user
Provide the usable absolute file link or verified preview URL. Tell the user to tune the controls and share the live JSON. When an exposed browser tool can read the live settings, use it within existing authorization; otherwise ask for pasted JSON. Never assume a particular preview host has or lacks an evaluation bridge.
Avoid editing or reloading after handoff, because it can reset the tune. Capture current values through available controls first; if that is not possible, explain the reset before a necessary edit. Wait for the user's chosen settings before porting.
6. Port the values
When the user supplies the JSON, map each key to its real constant and edit the actual code. Flag any knob that does not map cleanly so the user knows the lab and the real thing will differ. Example: the lab had a per-effect duration knob, but the real code shares one duration constant across effects, so that knob cannot carry over without a bigger change. Be honest about these gaps.
7. Tear down
Delete the lab file. Verify it is gone (ls) and that it was never committed: it must not appear in git status or git ls-files.
General notes
- Naming: honor the user's requested filename or title verbatim. They may ask for a generic name and require the element word to appear nowhere: not the filename, not the
<title>, not a visible heading. Check all three. - Determinism boundary: if the real code has a deterministic core (a sim engine, a pure-function reducer), keep it that way when porting. Sim-affecting knobs become plain constants in the core; cosmetic-only knobs go in the renderer. Never port lab-style
Math.randominto a deterministic core. - Mock, don't import: labs reproduce the look with throwaway code; they do not import the real engine or components. Keep them dependency-free so they open instantly.
- Multiple render surfaces: if the element renders in more than one shell or page, port knobs into the shared component so every surface inherits them.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

