gameplay-harness
Use when a game needs an executable driver beside the runtime to inject semantic inputs, replay deterministic tapes, step the project's existing logic clock…
от jammyfu★ 27 звёзд на GitHub
Установить gameplay-harness в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Gameplay harness
Use this skill to drive and observe a game build. Stack gameplay-validation to decide what the resulting session may prove, game-qa to decide which QA column is required, and gameplay-capture for video/edit provenance.
Ownership
This skill owns:
- input tape schema and driver mode
- adapter probes into the game runtime
- deterministic replay orchestration
- session/evidence identity
- stable oracle comparison
It does not own:
- evidence/claim taxonomy (
gameplay-validation) - QA coverage taxonomy (
game-qa) - capture/edit truthfulness (
gameplay-capture) - hitstop, damage, hitboxes, AI, save rules, or other gameplay semantics
- a new fixed timestep
Driver modes
Ask for one driver mode:
| Driver mode | Driver | Required classification behavior |
|---|---|---|
| logic | fixture/function inputs | usually supports logic-regression; claim still comes from gameplay-validation |
| replay | committed semantic tape | supports deterministic regression only for the recorded scope |
| scripted | tape plus explicit setup overrides | forces scripted-scene evidence classification |
| soak | idle or random legal inputs | may collect stability evidence; cheats reclassify the run as scripted |
| human | real input device | may support real-input; only a qualified study is new-player-watch |
Driver mode is execution metadata, not a claim. A human driver does not automatically prove new-player usability.
Adapter contract
Bind the harness to the game's existing simulation/update boundary. Do not invent a 60 Hz clock.
| Probe | Purpose |
|---|---|
inject_input(frame, actions) |
inject semantic actions/quantized axes for the next project logic frame |
now_logical_frame() |
stable identity of the project's current gameplay frame/tick |
advance_project_tick() |
request exactly one step through the project's existing simulation boundary |
snapshot_state() |
return the versioned state subset used by the oracle |
drain_events() |
return ordered gameplay events emitted since the previous step |
presentation_marker() |
optional correlation marker for video/visual logs; never the gameplay oracle |
advance_project_tick() delegates to the project's clock. Its delta and substep policy come from the engine/project adapter, never from this skill.
Publish adapter version, engine/runtime version, project clock configuration, seed, save identity, difficulty, input profile, device class, and active overrides.
Tape format
Use a versioned semantic JSONL tape. One row targets one logical frame:
{"schema":1,"f":1204,"held":["jump"],"press":["light"],"axis":{"move_x":0.2,"move_y":0.0}}
Rules:
fis a project logical-frame identity, not wall-clock time.- Store semantic actions, not physical key codes.
- Quantization and axis ranges are versioned.
- The tape never stores rendered pixels as gameplay truth.
- If input schema changes, migrate or version the tape; do not silently reinterpret old rows.
- Video belongs to
gameplay-captureand is correlated bysession_id.
Versioned oracle
A golden file compares only an explicitly versioned, stable subset:
- selected state fields
- ordered gameplay event IDs/payloads
- optional deterministic state/event hash
Do not compare incidental object addresses, unordered containers, presentation particles, camera shake, raw floating-point noise, or timestamps unless the project explicitly canonicalizes them.
A golden update requires a reason and the build/contract change that made the prior expectation obsolete. Never auto-accept a mismatch.
Session report
Every run writes a stable report:
{
"session_id": "2026-09-13-a",
"build": "<git sha>",
"harness_version": 1,
"adapter_version": "threejs-v2",
"driver_mode": "replay",
"validation_mode": "logic-regression",
"seed": 7,
"save_id": "slot-a@rev-42",
"difficulty": "normal",
"device": "desktop",
"input_profile": "pad-default",
"overrides": [],
"oracle": "combat-light-v3",
"chain": {
"boot": "pass",
"teach": "not-run",
"challenge": "fail",
"retry": "not-run"
},
"bucket": "game",
"evidence": ["sessions/2026-09-13-a/events.jsonl"]
}
bucket is game | player | setup | harness and is an attribution hypothesis backed by reproduction. A browser/session loss starts as harness or setup; a player miss is player until a controlled replay demonstrates a game defect.
Execution loop
- Resolve build, adapter/runtime versions, project clock, seed/save, driver mode, validation mode, and overrides.
- Load the tape/or input source.
- For each row: inject input → advance one project tick → snapshot stable state → drain ordered events.
- Compare the declared oracle subset. A mismatch fails and records the first divergent frame/event.
- Replay the same tape at at least two presentation/render cadences when render/simulation separation is under test. Project logical rows and ca
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- assets/trace.example.json
- reference/regression-diagnosis.md
- scripts/trace_compare.py
FAQ
Что делает скилл gameplay-harness?
Use when a game needs an executable driver beside the runtime to inject semantic inputs, replay deterministic tapes, step the project's existing logic clock, and collect inspectable evidence. It does not decide what a session proves, replace game QA, or create a second gameplay clock.
Как установить скилл gameplay-harness?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gameplay-harness запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
slack-gif-creator
AnthropicKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
automate-this
GitHubAnalyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
from-the-other-side-vega
GitHubPatterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
plantuml-ascii
GitHubGenerate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…