Set up and verify the agent's harness for a Roblox project BEFORE any game work: the pinned toolchain (Rokit, Rojo, Lune, Selene, StyLua, luau-lsp), the three test tiers (Lune for pure rules, Open Cloud Luau Execution for a real DataModel headlessly, Studio MCP only for what a person must see), and `harness.py doctor`, which probes the capabilities a task needs and stops the work by name when one is missing instead of letting the agent substitute what it can do. Use WHENEVER the work is "set ...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Harness?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/th3r-dev-harness)
---
name: game-dev-harness
description: >-
Set up and verify the agent's harness for a Roblox project BEFORE any game work: the pinned
toolchain (Rokit, Rojo, Lune, Selene, StyLua, luau-lsp), the three test tiers (Lune for pure
rules, Open Cloud Luau Execution for a real DataModel headlessly, Studio MCP only for what a
person must see), and `harness.py doctor`, which probes the capabilities a task needs and stops
the work by name when one is missing instead of letting the agent substitute what it can do.
Use WHENEVER the work is "set up a harness", "set up the agent for Roblox", "before working with
Roblox", "what do I need installed", "wire the agent to Studio", "headless Roblox tests",
"test without Studio", "Open Cloud Luau Execution", "CI for a Roblox game", "the agent used
Python instead of Blender", "the agent ignored the skill", "ตั้ง harness", "เตรียมเครื่องมือ
ก่อนทำเกม", "เทสต์ Roblox แบบไม่เปิด Studio". Read this before the first task in a Roblox
project, and run the doctor again whenever a task changes kind.
---
# Harness: prove the capability, then work
An agent that cannot load a skill or start a tool **does not stop**. It reaches for the capability
it has: Python instead of Blender, generated geometry instead of a model, a parse instead of a run.
That substitution reads as progress for days. One project lost ten days to it — a full `modeling/`
skill and a Blender pipeline existed, the worker could not load them, and it baked the terrain from
Python instead; the resulting float check reached round 21.
So the harness is a **gate, not a scaffold**. Before a task, probe what that task needs.
```bash
uv run --no-project python scripts/harness.py doctor # everything
uv run --no-project python scripts/harness.py doctor --for model # a modelling task
uv run --no-project python scripts/harness.py doctor --for luau --strict
```
| `--for` | Needs | A miss stops |
|---|---|---|
| `luau` | rokit, rojo, lune, selene, stylua, a type gate, an LF pin | writing or checking Luau |
| `model` | Blender | **every modelling task — do not generate geometry instead** |
| `vfx`, `playtest` | Studio MCP | authoring effects, playtests, screenshots |
| `headless-test` | an Open Cloud key with the execution scope | tier 2 tests |
| `loop` | referenced skills resolvable, commit hooks installed | running the agent loop at all |
`MISS` exits 1. A probe that ran but cannot prove its answer prints `NOT ASSESSED` — a running
Studio is not provable from a script — and is never counted as a pass; `--strict` fails on it too.
**The doctor's answer is the whole point.** When it reports a miss, say which capability is missing
and stop. Do not route around it. That rule is the mechanical form of the flow's
[asset authoring law](../modeling/SKILL.md) and of
[`references/agentic-build.md`](../references/agentic-build.md#gates-that-count).
## The three test tiers
Most Roblox projects test in one place — a human clicking Play — and so they test almost nothing.
There are three tiers, and the cheap ones carry most of the load:
[`references/tiers.md`](references/tiers.md).
| Tier | Runs | Cost | What belongs here |
|---|---|---|---|
| 1. Lune | rules modules that never touch `game` | milliseconds, free, every commit | pacing, wallet, gear tiers, height rules, every remote validator |
| 2. Open Cloud Luau Execution | a real place, headless, full DataModel | API-rate-limited: a pre-merge gate, not a loop | streaming, replication, instance tree, anything needing a real DataModel |
| 3. Studio MCP | Studio on a person's machine | slow, serial, needs Studio open | rendering, real input, screenshots — what a person must see |
Design rules modules so tier 1 can reach them. A project whose logic only runs inside `game` has
chosen tier 3 for everything, which is why its tests become screenshots and its screenshots become
opinions.
## Set-up order
1. `rokit init`, then pin every tool in `rokit.toml` and run `rokit install`. Pinned *and* on PATH
is the only state the doctor accepts; either alone is version drift between you and CI.
2. `.gitattributes` with `*.luau text eol=lf`. Without it a fresh Windows clone fails
`stylua --check` on every file, and the first thing an agent does is "fix" the formatting.
3. The project layout and the config module: [`../roblox/SKILL.md`](../roblox/SKILL.md).
4. Tier 1 first: `tests/run.luau` with Lune, with a rules module to test. Before any feature.
5. The Studio MCP server, from inside Studio: [`../engine-mcp/SKILL.md`](../engine-mcp/SKILL.md).
6. Tier 2 last, and only once a place is published: an API key scoped to Luau execution.
7. Vendor every skill the instruction files name into `.claude/skills/`, or the agent in a fresh
worktree cannot load it. A reference that cannot resolve is worse than no reference, because
the owner believes it is in force.
8. Install the commit hooks. Then `doctor --strict` and fix what it names.
## Check
`doctor --for <task>` exits 0 for the task you are about to do, and the project's own CI runs tiers
1 and 2. A tier-3 result is attached as a capture, never summarised as "looks right".
## Tests
```bash
cd skills/shipped/game-dev && uv run --no-project python harness/scripts/harness.py --selftest
uv run --no-project python -m pytest -q
```