{
  "slug": "cutscene-script",
  "skill": "cutscene-script",
  "upstream": "GameSkill original (onsite/<slug>/original)",
  "sourceHash": "a3b5037193ce49c5c1e47a14529a3cb8dbe5c704e82ba2a538b6f791312f94ed",
  "date": "2026-11-09",
  "engine": "Canvas 2D in headless Chrome + Node 22",
  "env": [
    "Node v22.23.4",
    "Node 22 standard library only (built-in WebSocket for the DevTools protocol), no npm packages",
    "Google Chrome headless=new, driven over the DevTools protocol"
  ],
  "trigger": "static",
  "passed": 29,
  "total": 29,
  "commands": [
    "(cd ../original && node test/run_tests.mjs)",
    "(cd . && node ../original/test/run_tests.mjs --shot screenshot.png)"
  ],
  "checks": [
    {
      "criterion": "trigger",
      "name": "SKILL.md description says when to use it",
      "pass": true,
      "detail": "Write in-engine cutscenes for small 2D games as data - a list of beats (fade, move, say, camera, wait, cue, set) placed "
    },
    {
      "criterion": "trigger",
      "name": "triggers on: \"Add an intro cutscene to my browser game with dialogue, a camera move and a fade, and make it skippable\"",
      "pass": true,
      "detail": "rank 1/129, overlap 7"
    },
    {
      "criterion": "trigger",
      "name": "triggers on: \"My scripted scene's dialogue disappears before players can read it and the sound cue plays twice when skipping\"",
      "pass": true,
      "detail": "rank 1/129, overlap 8"
    },
    {
      "criterion": "trigger",
      "name": "triggers on: \"Write the ending cutscene of my canvas game as a timeline I can test\"",
      "pass": true,
      "detail": "rank 1/129, overlap 5"
    },
    {
      "criterion": "trigger",
      "name": "does not trigger on: \"Make a gameplay trailer video of my game\"",
      "pass": true,
      "detail": "rank 17/129, overlap 0"
    },
    {
      "criterion": "trigger",
      "name": "does not trigger on: \"Balance the economy of my idle game\"",
      "pass": true,
      "detail": "rank 6/129, overlap 0"
    },
    {
      "criterion": "runs",
      "name": "lint on The Lantern Ferry and planted problems, schedule, pure state, cues with seek and skip; pixel-identical renders, dialogue, fades and Esc skip in headless Chrome: the Lantern Ferry script lints clean in --strict mode",
      "pass": true,
      "detail": "13 beats, 17.42 s - cutscene lantern-ferry: 13 beats, 17.42 s"
    },
    {
      "criterion": "runs",
      "name": "lint on The Lantern Ferry and planted problems, schedule, pure state, cues with seek and skip; pixel-identical renders, dialogue, fades and Esc skip in headless Chrome: the broken script fails on its 3 planted errors (unknown actor, unknown beat type, overlapping moves) - 3 errors",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "lint on The Lantern Ferry and planted problems, schedule, pure state, cues with seek and skip; pixel-identical renders, dialogue, fades and Esc skip in headless Chrome: and warns on its 4 planted problems (line too short to read, overlapping lines, off-stage move, abrupt end)",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "lint on The Lantern Ferry and planted problems, schedule, pure state, cues with seek and skip; pixel-identical renders, dialogue, fades and Esc skip in headless Chrome: --max-length flags a cutscene that runs too long",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "lint on The Lantern Ferry and planted problems, schedule, pure state, cues with seek and skip; pixel-identical renders, dialogue, fades and Esc skip in headless Chrome: after",
      "pass": true,
      "detail": "N runs the traveller's step beside the camera move, and the wait follows the camera"
    },
    {
      "criterion": "runs",
      "name": "lint on The Lantern Ferry and planted problems, schedule, pure state, cues with seek and skip; pixel-identical renders, dialogue, fades and Esc skip in headless Chrome: dur",
      "pass": true,
      "detail": "'auto' gives a line its reading time (0.32 s a word + 0.6 s) - 3.16 s"
    },
    {
      "criterion": "runs",
      "name": "lint on The Lantern Ferry and planted problems, schedule, pure state, cues with seek and skip; pixel-identical renders, dialogue, fades and Esc skip in headless Chrome: stateAt is pure",
      "pass": true,
      "detail": "same t, same state, script untouched; ferry halfway at t = 3 (inOut)"
    },
    {
      "criterion": "runs",
      "name": "lint on The Lantern Ferry and planted problems, schedule, pure state, cues with seek and skip; pixel-identical renders, dialogue, fades and Esc skip in headless Chrome: moves and camera land on their targets, and the scene ends faded out",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "lint on The Lantern Ferry and planted problems, schedule, pure state, cues with seek and skip; pixel-identical renders, dialogue, fades and Esc skip in headless Chrome: cues fire once as time passes them, and re-arm only when seeking back before them - bell,bell",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "lint on The Lantern Ferry and planted problems, schedule, pure state, cues with seek and skip; pixel-identical renders, dialogue, fades and Esc skip in headless Chrome: skip jumps to the end and still fires skipped cues exactly once",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "lint on The Lantern Ferry and planted problems, schedule, pure state, cues with seek and skip; pixel-identical renders, dialogue, fades and Esc skip in headless Chrome: The Lantern Ferry loads in headless Chrome and starts playing",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "lint on The Lantern Ferry and planted problems, schedule, pure state, cues with seek and skip; pixel-identical renders, dialogue, fades and Esc skip in headless Chrome: rendering is a pure function of t",
      "pass": true,
      "detail": "the same t gives identical pixels, another t differs"
    },
    {
      "criterion": "runs",
      "name": "lint on The Lantern Ferry and planted problems, schedule, pure state, cues with seek and skip; pixel-identical renders, dialogue, fades and Esc skip in headless Chrome: the dialogue box appears only during a line and types the text out - 772 -> 1090 lit pixels",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "lint on The Lantern Ferry and planted problems, schedule, pure state, cues with seek and skip; pixel-identical renders, dialogue, fades and Esc skip in headless Chrome: fades in from black and ends on black - mean 0.0 / 75.8 / 0.0",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "lint on The Lantern Ferry and planted problems, schedule, pure state, cues with seek and skip; pixel-identical renders, dialogue, fades and Esc skip in headless Chrome: Esc skips to the end in the page and the bell cue reaches the game once",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "lint on The Lantern Ferry and planted problems, schedule, pure state, cues with seek and skip; pixel-identical renders, dialogue, fades and Esc skip in headless Chrome: no console errors or exceptions",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "lint on The Lantern Ferry and planted problems, schedule, pure state, cues with seek and skip; pixel-identical renders, dialogue, fades and Esc skip in headless Chrome: exits 0 with no script errors",
      "pass": true,
      "detail": "exit 0"
    },
    {
      "criterion": "output",
      "name": "screenshot screenshot.png rendered",
      "pass": true
    },
    {
      "criterion": "output",
      "name": "self-check list has at least 3 items",
      "pass": true,
      "detail": "3 items"
    },
    {
      "criterion": "single",
      "name": "one job per skill (reviewed)",
      "pass": true,
      "detail": "One job: in-engine cutscenes as checked data with a pure state function and a player. Trailers and rendered video stay with game-trailer-from-code; dialogue trees and branching stay with narrative skills."
    },
    {
      "criterion": "bilingual",
      "name": "English SKILL.md",
      "pass": true
    },
    {
      "criterion": "bilingual",
      "name": "Chinese SKILL.zh.md shipped next to SKILL.md",
      "pass": true,
      "detail": "954 chars"
    },
    {
      "criterion": "bilingual",
      "name": "Chinese guide written",
      "pass": true,
      "detail": "1100 chars"
    }
  ]
}
