narraitor-playtest-loop
Drive real multi-turn game sessions in a browser against live Gemini and score whether the story is actually engaging. Use when asking "is this fun to play"…
от jerseycheese★ 32 звезды на GitHub
Установить narraitor-playtest-loop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Playtest loop
1. Purpose
Every automated tier in this repo can be green while the game is boring. Unit tests prove functions return, visual specs prove pixels match, and neither reads a single sentence of prose. This skill closes that gap by playing the actual game through the actual UI against live Gemini, capturing the transcript, and handing it to a judge who has never seen the app.
It answers one question: does the story hold up over a real session, or does it fall apart somewhere around turn twenty.
2. When to reach for this instead of a sibling skill
narraitor-qa-walkthrough finds defects before a release. It walks every surface and asks
whether things work. Its Phases 4 through 6 delegate the live story loop to this skill. Do
not copy its curl-chaining workaround for live generation: browser automation reaches the
real path on its own, per section 3. That skill has not been corrected yet.
narraitor-ai-quality-discipline sets the evidence bar. It says one good generation is a
signal, not evidence, and it owns the eval matrix for prompt changes. This skill is one
concrete way to meet that bar for story quality specifically.
visual-crawl and design-loop cover pixels. Neither reads the story.
3. The harness
Real AI runs fine under browser automation. isPlaywrightEnv() in
src/lib/utils/isPlaywrightEnv.ts trips only when the user agent contains "Playwright" or
window.__PLAYWRIGHT__ is set, and the second only happens inside
tests/visual/utils/seedTestData.ts. A browser session that avoids both runs the real
generation path end to end. Do not call seedTestData and do not call mockApiEndpoints,
or the whole loop silently no-ops.
Setup, in order:
- Reset the worktree onto
refs/remotes/origin/developso the build under test is current - Copy
.env.localfrom the main checkout, which already carriesGEMINI_API_KEY. Never type a key into the BYOK wizard. - Set
.claude/launch.json's Next.js port to this worktree's port fromnode scripts/worktree-port.js, then start the server through the preview tooling - Confirm the startup log says
Environments: .env.local
Driving a turn: click [data-testid^="choice-option-"], or type into
[aria-label="Custom response input"] and press [aria-label="Send"]. Both live in
src/components/shared/ChoiceSelector/ChoiceSelector.tsx. The custom input is an INPUT,
not a TEXTAREA, so the native value setter has to come off the right prototype or the
call throws "Illegal invocation".
Driving the wizards: their selects key off id, not name. #content-rating,
#narrative-style, #language-complexity.
One click per tick. Clicking five toggles in a single JavaScript call registers one,
because React re-renders between them and the later clicks land on stale nodes. Stagger
them with setTimeout(fn, 300 * i) inside one call, then verify the result in the next
call. Range inputs batch fine. Buttons do not.
Fire batches, do not await them. The JavaScript bridge times out at 30 seconds and a
turn costs 4 to 8, so any batch past three turns dies mid-run holding the tool call open.
Kick the loop off without awaiting it, park progress on a window flag, and poll that flag
from later calls. The work survives the timeout either way — round 4 lost a call to a 5-turn
await and found the batch had completed in the background regardless — but polling is the
difference between reading the result and guessing at it.
Handle the ending offer at the top of every action, and handle it per run. Somewhere around turn 14 the session offers "Your story could end here" with View Ending and Continue Playing. It suppresses the choice list, so a runner that ignores it stalls for the rest of its batch and reports a timeout that looks like a hung generation. Check for it before each action rather than once at the start.
What to click depends on the run. Fixed-length runs click Continue Playing — the offer fires well before turn 30 and accepting it ends the session early with the block scores unfinished. Run 4 clicks View Ending, because a naturally suggested ending is the thing that run exists to reach; dismissing it there leaves the run either circling forever or scoring a forced ending, which is a different question. A runner that hard-codes one branch breaks whichever run it did not consider.
Capturing a turn: one JavaScript call returning compact JSON from
window.useNarrativeStore.getState() for segments and decisions, plus
useJournalStore and useInventoryStore. All of them are exposed on window whenever
NODE_ENV is not production, per src/lib/utils/shouldExposeStoreOnWindow.ts. Note that
segments and decisions are both keyed records rather than arrays, so read turns in
order through getSessionSegments(sessionId) and not by index. Token counts are not
available on this path; see section 4.
The world clock rides along on the same capture. Every segment carries `m
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- rubric.md
- worlds/camp-crystal-lake.md
- worlds/harrowgate-mills.md
FAQ
Что делает скилл narraitor-playtest-loop?
Drive real multi-turn game sessions in a browser against live Gemini and score whether the story is actually engaging. Use when asking "is this fun to play", "does the narrative hold up over 30 turns", "why does the story get boring", when planning a release playtest, or when a change to prompts or narrative logic needs a before-and-after read on story quality. This is the taste instrument; narraitor-qa-walkthrough is the release defect gate and narraitor-ai-quality-discipline is the evidence bar both of them answer to.
Как установить скилл narraitor-playtest-loop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл narraitor-playtest-loop запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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…