lab
Skill1 starsChanged 2 months 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
- labSkill
- 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
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
6
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's gone.
- Distinctive: line 58
Avoid editing or reloading after handoff because it can reset the tune.
- Very specific: line 64
Delete the lab file. Verify it's gone (ls) and that it was never committed (it shouldn't appear in git status / git ls-files).
- Distinctive: line 69
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 71
Multiple render surfaces: if the element renders in more than one shell/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 + delete
LLMs guess at feel; the human 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're happy, you port the exact values into the real code and throw the lab away. This bridges "looks right in my head" → deterministic, agreed-on values in the actual codebase.
Works for any visual or feel element — game OR website.
The contract (read first)
A lab is scratch tooling, never product:
- Self-contained. One HTML file. Inline vanilla JS + 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 — they 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's gone. Forgotten labs accumulate into served-folder junk — don't start the pile.
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 (you'll reuse it as the JSON key).
Decide the template (see 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/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, 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 design for the file:// clipboard gotcha
A button that serializes the current control values to JSON. Keys = real constant names (contract rule 3).
Clipboard capability varies: on a file:// page navigator.clipboard is frequently undefined (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 never gets written → the button looks dead AND nothing is copyable.
So make the JSON readable without relying on the clipboard:
- Live mirror. A
<pre>/box that shows the JSON and updates on every input (not just on click), so the current settings are always on screen — the user can read/screenshot/paste them even if copy is 100% blocked. Seed it at load so it's never empty. - Write the box first, then select it. On click, set the box text BEFORE touching the clipboard, then auto-select its contents (Range + Selection) so a manual Ctrl+C works.
- Guard + fall back.
if (navigator.clipboard && navigator.clipboard.writeText)→ try it; else fall back todocument.execCommand("copy")on the selection. Wrap BOTH intry/catchso neither can abort the handler. - Never let any clipboard call execute before the visible mirror is written.
The skeletons in templates.md already implement this pattern — copy them rather than reinventing 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 rather than assuming the file cannot be staged. Inspect actual file, browser, server, and preview capabilities. Open a local file if supported, or use a reachable local server with supported controls. Verify the user can reach the chosen preview. Do not publish or install tools merely to show the lab.
Honor an explicit filename/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 controls and share the live JSON. When an exposed browser tool can read the live settings, use that capability with the 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 unavailable, explain the reset before a necessary edit. Wait for the user's chosen settings before porting.
6. Port the values
When the user pastes the JSON, map each key to its real constant and make the edits in the actual code. Flag any knob that does NOT map cleanly so the user knows the lab and the real thing will differ slightly — e.g. the lab had a per-effect duration knob but the real code shares one duration constant across effects, so that knob can't carry without a bigger change. Be honest about these gaps.
7. Tear down
Delete the lab file. Verify it's gone (ls) and that it was never committed (it shouldn't appear in git status / git ls-files). The lab has served its purpose.
General notes
- Naming: honor the user's requested filename/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 don't import the real engine/components. Keep them dependency-free so they open instantly.
- Multiple render surfaces: if the element renders in more than one shell/page, port knobs into the shared component so every surface inherits them.
See templates.md for copy-paste lab skeletons (canvas + DOM).
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.

