{
  "slug": "code-sprites-16",
  "skill": "code-sprites-16",
  "upstream": "GameSkill original (onsite/<slug>/original)",
  "sourceHash": "8fa5c7725fba4121ae49d966f3d9ffa0eaea4af0c24b16ee6291ebaaf3fafa50",
  "date": "2026-11-09",
  "engine": "Canvas 2D in headless Chrome + Node 22",
  "env": [
    "Node v22.23.4",
    "Node 22 standard library only (zlib for the PNG sheet, built-in WebSocket for the DevTools protocol), no npm packages",
    "Google Chrome headless=new, driven over the DevTools protocol"
  ],
  "trigger": "static",
  "passed": 30,
  "total": 30,
  "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": "Draw every sprite of a small browser game in code - text rows of palette indices over a locked 16-colour palette - and s"
    },
    {
      "criterion": "trigger",
      "name": "triggers on: \"Make a pixel art browser game where all the sprites are drawn in code with a 16 colour palette, no image files\"",
      "pass": true,
      "detail": "rank 1/129, overlap 10"
    },
    {
      "criterion": "trigger",
      "name": "triggers on: \"My code-drawn sprites have ragged rows and blurry scaling, check them and fix the drawing\"",
      "pass": true,
      "detail": "rank 1/129, overlap 9"
    },
    {
      "criterion": "trigger",
      "name": "triggers on: \"Write the sprites for my canvas platformer as text with a fixed palette and test that only palette colours are on screen\"",
      "pass": true,
      "detail": "rank 1/129, overlap 8"
    },
    {
      "criterion": "trigger",
      "name": "does not trigger on: \"Balance the economy of my idle game\"",
      "pass": true,
      "detail": "rank 6/129, overlap 0"
    },
    {
      "criterion": "trigger",
      "name": "does not trigger on: \"Write the save system for my Godot RPG\"",
      "pass": true,
      "detail": "rank 49/129, overlap 0"
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay in headless Chrome: sprite_check passes the Seed Courier data",
      "pass": true,
      "detail": "10 sprites, 34 frames, 16-colour palette - PASS 10 sprites, 34 frames, palette 16 colours"
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay in headless Chrome: sprite_check confirms the beetle is 12x10 and a tile is 8x8",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay in headless Chrome: contact sheet PNG written at a whole-number scale - 364x352",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay in headless Chrome: sprite_check fails the broken data on exactly its 5 planted errors (17 colours, ragged row, bad char, empty frame, resized frame) - 5 FAIL lines",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay in headless Chrome: --max-colors 8 fails a sprite set that uses 13 colours",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay in headless Chrome: toRGBA decodes the beetle to 12x10 palette pixels without a DOM - 72 opaque",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay in headless Chrome: validate and stats work in Node",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay in headless Chrome: bake refuses invalid data with the validate messages",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay in headless Chrome: Seed Courier loads in headless Chrome with the sprite set baked",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay in headless Chrome: every pixel of the 320x180 frame is one of the 16 palette colours, HUD text included - 0 off-palette, 14 colours on screen",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay in headless Chrome: the beetle lands on the grass with 3 hearts",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay in headless Chrome: Space jumps (more than 30 px up) and the beetle lands again - peak dy 38.5",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay in headless Chrome: holding ArrowRight for 60 fixed steps runs 80 px (one second at 80 px/s) - 80.0 px",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay in headless Chrome: touching a seed carries it and the burrow banks it - carried 1->2, banked 2",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay in headless Chrome: three wasp hits end the run, and the game-over panel is palette-only too - hearts 0, 0 off-palette",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay in headless Chrome: Enter restarts with 3 hearts",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay in headless Chrome: no console errors or exceptions",
      "pass": true
    },
    {
      "criterion": "runs",
      "name": "checker on Seed Courier and on planted errors, library in Node, palette-only frames and gameplay 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: keep a browser game's sprites as checked 16-colour code data and draw them crisp; cleaning up AI-generated pixel images stays with pixel-snap-cleanup and 3D-to-pixel rendering with pixel-render-3d."
    },
    {
      "criterion": "bilingual",
      "name": "English SKILL.md",
      "pass": true
    },
    {
      "criterion": "bilingual",
      "name": "Chinese SKILL.zh.md shipped next to SKILL.md",
      "pass": true,
      "detail": "951 chars"
    },
    {
      "criterion": "bilingual",
      "name": "Chinese guide written",
      "pass": true,
      "detail": "1081 chars"
    }
  ]
}
