Claude Skill

scenario-side-view-game-kit

Use when making the art for a side-scroller or 2D platformer: side-view pixel-art sprite sheets for a hero and ground enemies (run, walk, idle, attack, hurt cycles, air spin, jump and fall poses) and per-level layers (parallax background and midground, seamless wall texture, plat

LLM Mart · 0 points · 5 views 0 listing impressions 0 install-command copies
Download scenario-labs-skills-skills_scenario-side-view-game-kit-5d68b48.zip · 34 KB

Install

skills CLI npx skills add https://github.com/scenario-labs/skills/tree/main/skills/scenario-side-view-game-kit
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install scenario-labs-skills@llmmart
Git git clone https://github.com/scenario-labs/skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole scenario-labs/skills collection as a plugin from our marketplace. Git is the plain clone.

README

scenario-side-view-game-kit: maintainer notes

Not read at runtime. How the skill was built and why it makes its choices.

Origin

Distilled on 2026-09-30 from a browser side-scroller built over two days in one agent session: one hero, two ground enemies, five levels of one setting. Every generation ran through the Scenario MCP server (recommend, model_schema_get, model_run with dry_run and wait: false, jobs_wait, upload_asset and upload_asset_complete, asset_download); keying, loop search, pixelation, seamless tiles, prop cutting and WebP conversion ran as local Python. The sources were the build journal, the verbatim prompt record and the build's own processing scripts.

The hero route is an earlier isometric sprite-cycle pipeline (two-pose still on flat magenta, reframe, image-to-video clips, loop-window search, one shared palette) adapted to a single side-view facing. The build used a text-to-image model for the stills, the pose sheet and the level layers; an image-to-video model with a last-frame input for the clips; and a pixel-art model for a superseded first pass. The skill names no model and discovers both lanes with recommend (txt2img, and img2video with features: ["endImage"] for pinned clips), because availability differs per team and these generations will be superseded. The record has no credit costs, which is why the body prices with dry_run instead of quoting a figure.

Why audio was dropped

The build also scored every level and gave each action a sound effect. One skill, one output type: the deliverables here are images (sprite strips and level layers; the clips are intermediates), so music and effects stay with scenario-audio and scenario-elevenlabs. The body says in one sentence that they are outside this skill without naming those siblings: a named sibling joins the context fan-out and the install commands, and the image workflow never calls them. The prompt templates and processing settings carry no audio sections for the same reason.

Why the finish is local

Keying, the loop search, the shared-canvas palette and the seamless cross-fade all need the pixels on disk, and the deliverables are game files, not platform assets. scenario-sprite-animation lists "assembling locally" as a mistake for sheets the platform can tile itself; this skill's local steps are the ones no MCP tool performs, so the body says why once and offers upload_asset into a collection for users who want the finished strips on the platform.

Choices the build tested

  • Static poses (fall, wall cling, plunge, dash) come from one pose sheet split by connected components. Splitting by column runs failed: the poses overlap horizontally.
  • The first attack's third frame keyed a white slash trail into a solid block, and the heavy enemy's impact frame keyed its dust cloud into a blob; both were dropped after processing. --drop reproduces that, applied after the canvas and palette, which is what matches the shipped strips.
  • The heavy enemy's walk loop closes at 1.03x baseline. Widening the search range did not help; it was kept after review, which is why the body's threshold (0.6x) is a target, not a rejection rule.
  • The first armed-enemy walk swung its weapon mid-stride and could not loop (1.44x). Regenerated with a still-arms sentence and a lower guidance value, it closed at 0.42x. That pair became the "loop that will not close" mistake.
  • The first-pass environments were judged too retro after a playtest. The "richly detailed high-resolution pixel art" replacement was validated on level 1 before levels 2 to 5 were generated, which is the order the body teaches.
  • Texture renders asked to be "seamless tileable" did not reliably tile, hence the cross-fade in process_env.py rather than trusting the prompt.

Scripts

All four run in plain Python 3 with Pillow and NumPy; side_sprites.py also needs ffmpeg.

  • reframe_stills.py: from the isometric pipeline, pixels unchanged. The output names lost their isometric facings: it now writes <name>_rest.png (left pose, the first frame of every ground clip) and <name>_action.png (right pose: hero jump or enemy attack wind-up). The build ran its own copy with an auto split column and a death cycle; the shared copy reproduced all six of the build's first frames pixel for pixel, so those extras were not ported.
  • sprite_cycles.py: the isometric pipeline's processing core, now a helper module imported by side_sprites.py only. Its four-facing command line and anything only that command line used were removed. Two changes after the port's review: pick takes the cycle's mode and windows by it (it used to branch on the name attack, so a loop named attack got one-shot windowing), and read_frames stops on a clip more than 2% off square instead of squashing it, since the figure scale and feet anchor assume a square frame. Square clips process as before.
  • side_sprites.py: the build's one-facing wrapper, generalized. The hard-coded hero cycle table, pose names and file names became --cycles, --pose-names and <name>_pose_*; loop cycles other than walk, run and idle need a --range; --drop was added for the frames removed by hand; missing clips are an error instead of a silent skip; overwrites need --force; --webp writes lossless WebP; sprite_cycles.py is imported from the script's own folder.
  • process_env.py: the build's script, generalized. Hard-coded input and output folders and the fixed five-level loop became --env, --out, --levels and --file KIND=PATH; texture size, fade share, ledge height, prop count and height, alpha threshold and the three WebP qualities became flags; --dry-run and --force were added. The processing is unchanged.

Comments, docstrings and help text were moved to American spelling and house style in the port; no processing changed.

Script verification

Run on 2026-09-30 (Windows, Python 3.14.2, NumPy 2.5.0, Pillow 12.2.0, ffmpeg 8.1.1) against the build's intermediate files, writing only to a temporary folder, with the scripts as they stood before the port's renames:

  • --help printed usage for every script.
  • reframe_stills.py on the hero still and both enemy stills: all six first frames pixel-identical to the build's.
  • side_sprites.py for the hero (eight cycles, the pose sheet, the jump still, --drop atk1=2), the heavy enemy (--drop attack=5) and the armed enemy (--range walk=12:48): all 19 strips and poses pixel-identical to the build's. Cells, anchors and fps matched the build's meta files: hero 98x81 anchored at 49,75; heavy enemy 137x123 at 68,111; armed enemy 116x93 at 58,92. Seams printed: hero run 0.32, idle 0.282, heavy-enemy walk 1.032 (flagged), armed-enemy walk 0.421, the first armed-enemy walk 1.445 (flagged). Without --drop the hero's first attack has 7 frames and the heavy enemy's attack 8, as recorded.
  • side_sprites.py refused to overwrite without --force, stopped on a missing clip, and asked for --range on an unknown loop cycle; --webp wrote lossless WebP.
  • process_env.py over five levels: all 35 outputs byte-identical to the build's WebP layers. A second run refused to overwrite; --file tex=... --file props=... wrote env_tex_<stem>.webp and env_prop_<stem>_<k>.webp; with neither --env nor --file it stopped with an error. On the five textures the mean wrap-edge difference after the cross-fade sat at the neighboring-pixel level.

Apart from the two sprite_cycles.py fixes above, the port changes names and text only. tests/scenario-side-view-game-kit/ runs on synthetic inputs: the build's own files are not in this repository, so the byte-level reproduction above is not re-run in CI.

What the record does not cover

  • The worked example (a fox knight, a mole miner, two levels) is a recommended route built from the shipped build; the build made one hero, two ground enemies and five levels of one setting.
  • The pose-sheet prompt is recorded only as a description; references/prompt-templates.md gives a template in the style of the other prompts and says so. The attack, lunge, shot, hurt and spin motion sentences are abbreviated in the record; the templates keep their recorded opening and closing words.
  • The enemy stills are recorded only as "follow the hero still template (standing / attack wind-up)", and their attack and hurt prompts are not recorded. Their heights (78 and 66 px) and the drop indices come from the shipped strips.
  • How the two frames were removed from the attack strips is not recorded; the drop indices (hero first attack index 2, heavy-enemy attack index 5) were recovered by matching the shipped strips.
  • The ledge was requested at 1536x384 and came back 1536x512. The trim makes the output the same either way.
  • The pose-sheet scale (0.122) was set by eye; the skill says to tune it.
  • The first-pass pixel-art route (some enemies, pickups and icons that still ship) is mentioned in the record but not taught; its prompts are not recorded.
  • Game code (combat, wall runs, parallax, the ledge 3-slice draw) is out of scope beyond a few drawing rules; the skill stops at game-ready assets.

Skill manifest

Scenario Side-View Game Kit

Overview

A side-scroller needs two families of image assets no single generation gives: pixel sprites that animate cleanly on one feet line, and painted level layers that stack into parallax and repeat without seams. This route comes from a browser side-scroller made in one agent session (one hero, two ground enemies, five levels):

  1. Characters. A text-to-image still with two poses on flat magenta (hero: rest and jump; enemy: rest and attack wind-up), reframed with headroom, then one 3 second image-to-video clip per cycle, the character running or walking "like a treadmill" in a pure side profile facing right. A local script keys the magenta, cuts a loop or one-shot window, and pixelates every cycle of a character onto one shared canvas and palette. Fall, wall cling, plunge and dash come from one pose sheet. Make one facing; the game mirrors it.
  2. Levels. Per level, five renders in "richly detailed high-resolution pixel art" (background, midground, wall texture, platform strip, props), made into WebP layers locally.

The finish is local on purpose: keying, the loop search, the shared palette and the seamless cross-fade need pixels on disk, and the deliverables are game files. If the user wants the finished strips on the platform too, upload_asset them into a collection.

Connection, scope and the core loop: the scenario skill. Frame tools, GIF previews and engine slicing: scenario-sprite-animation. Pixel cleanup and other statics: scenario-game-assets. Clip model families: scenario-video. Music and sound effects are outside this image skill. If a sibling skill named here is missing from your available skills, load it with skill_get (Scenario MCP) or ask the user to install it (https://github.com/scenario-labs/skills#install); unattended, proceed from tool schemas and flag the gap.

The agent runs the scripts locally (Python 3, Pillow, NumPy; side_sprites.py also needs ffmpeg): reframe_stills.py makes the clip first frames, side_sprites.py builds the strips and imports sprite_cycles.py (never run directly), and process_env.py finishes the level layers. Prompts with slots: references/prompt-templates.md. Read references/processing-settings.md before changing a script flag or when --report flags a loop.

Quick reference

Step How Keep when
Models recommend with capability: "txt2img" (stills, pose sheet, layers) or "img2video" plus features: ["endImage"] (clips), the user's words as prompt; then model_schema_get You know each schema's field names, enums and caps
Reframe and upload reframe_stills.py: figure 58% of a 960 square, feet at 82%; upload_asset + upload_asset_complete the rest frame, and the action frame for the hero's air spin Headroom for a raised weapon or a somersault
Pose sheet Text to image, chosen still as reference, 4 poses in a row on magenta Same design and palette as the strips
Price and wait dry_run: true per distinct payload, then wait: false in waves under the concurrency ceiling and jobs_wait, re-called with pending_job_ids until done The user heard the total before spending
Strips side_sprites.py --report, then without --report Loop seams (idle aside) under 0.6x baseline; no solid blocks
Level layers Five renders per level, level 1 first Dark lower middle, empty midground center, props apart
Level finish process_env.py --env env --out assets --levels N Texture tiles, ledge trims flat, prop count matches
Deliver Strips and pose images as lossless WebP plus <name>_meta.json (cell, feet anchor, fps); layers as lossy WebP One anchor per character; nothing magenta at the edges

Payload names below (startImage, endImage, referenceImages, background, quality, numOutputs, cfgScale) are the build's schemas' examples: use the fields your pick's model_schema_get lists. The image pick needs strong layout adherence, a reference-image input, a transparent-background option and the template's 1536x1024; if its schema lacks one (a pixel-art specialty pick can cap far below that size), take the next ranked pick, even when recommend asks you to choose between such capped picks.

Worked example

A user asks: "Make the art for my side-scroller: a fox knight hero with a rapier, a mole miner enemy with a pickaxe, and two levels, a mushroom forest and a crystal mine." Pass team_id and project_id on every call (the scenario skill covers picking them).

  1. Hero still. recommend { "capability": "txt2img", "prompt": "<the user's request>; needs reference image input, transparent output" }, model_schema_get the pick, price the two-pose template (left: standing ready facing right; right: mid-jump facing right) with model_run { "model_id": "<pick>", "dry_run": true, "parameters": { "prompt": "...", "width": 1536, "height": 1024, "quality": "high", "background": "opaque", "numOutputs": 2 } }. Tell the user the price, run (jobs_wait with its job_id if it returns in progress), asset_display both takes; keep one with both poses on model, in a pure side profile (every clip inherits a three-quarter body), and nothing pink or purple, asset_download it and curl -L it to fox_two_pose.png.

  2. First frames. python3 scripts/reframe_stills.py fox_two_pose.png --name fox --out frames writes frames/fox_rest.png (left pose, the first frame of every ground clip) and frames/fox_action.png (the jump). Check both, then upload_asset { "file_name": "fox_rest.png", "content_type": "image/png", "kind": "image", "file_size": <bytes> }, PUT the parts, upload_asset_complete { "upload_id": "<id>" }; same for the action frame, which only the air spin uses.

  3. Hero clips. recommend { "capability": "img2video", "features": ["endImage"], "prompt": "<the user's request>; square clip, no audio" }, then model_schema_get. One payload per cycle from the motion templates. With the build's schema:

    run:  { "prompt": "<run sentence> <facing and tail>", "negativePrompt": "<negative>, slowing down, stopping, standing still",
            "startImage": "<fox_rest id>", "duration": "3", "aspectRatio": "1:1", "generateAudio": false }
    atk1: { "prompt": "<attack: a fast rapier thrust ... returns to the starting ready pose> <facing and tail>", "negativePrompt": "<negative>",
            "startImage": "<fox_rest id>", "endImage": "<fox_rest id>", "duration": "3", "aspectRatio": "1:1", "generateAudio": false }
    

    Idle and hurt pin like the attack; the air spin uses the action id as both frames. Price each distinct payload with dry_run: true (first frame only, pinned, changed guidance), give the user the total, launch the clips with "wait": false in waves within the team's concurrency ceiling (the parallel-custom-jobs row in the scenario skill: a launch refused with that 429 created no job, so relaunch it in the next wave instead of dropping it), and collect them with one jobs_wait { "job_ids": [...] }, re-called with the returned pending_job_ids as job_ids while any is in progress (never poll job_get). asset_download each (omit format on video) and save as clips/fox_<cycle>.mp4, <cycle> being exactly the step 5 --cycles name (run, idle, atk1, spin, hurt). Review each as a local contact sheet (ffmpeg -i clips/fox_run.mp4 -vf "fps=6,scale=240:-1,tile=6x3" fox_run_sheet.png), since asset_display shows no frames of a video; re-run only one that turns toward or away from the camera or travels.

  4. Pose sheet. Text to image with referenceImages: ["<chosen still id>"] and the pose-sheet template (fall, wall cling, plunge, dash). Price, tell the user, run, download as fox_poses.png.

  5. Strips.

    python3 scripts/side_sprites.py --clips clips --name fox --cycles run:loop:8,idle:loop:8,atk1:attack:7,spin:attack:8,hurt:attack:5 --report
    python3 scripts/side_sprites.py --clips clips --name fox --height 56 --palette 28 \
        --cycles run:loop:8,idle:loop:8,atk1:attack:7,spin:attack:8,hurt:attack:5 \
        --poses fox_poses.png --jump frames/fox_action.png --webp --out sprites
    

    View the strips at 4x, nearest-neighbor. If the slash trail keyed into a white block, re-run with --drop atk1=<index> (0-based) and --force.

  6. Enemy. Same route: two-pose still (rest, and an attack wind-up that keeps the design consistent), reframe, upload only mole_rest.png; walk with the first frame only, the armed-enemy walk wording and a lower guidance such as cfgScale: 0.7 if the schema has one; attack and hurt pinned. side_sprites.py --clips clips --name mole --height 72 --cycles walk:loop:8,attack:attack:8,hurt:attack:5 --report; a walk flagged as a weak loop gets --range walk=12:48 before any re-run.

  7. Level layers. Fill the five environment templates for the mushroom forest (opaque background and texture, the rest transparent). dry_run each distinct setting, tell the user the total, run, download as env/bg1.png, env/mid1.png, env/tex1.png, env/ledge1.png, env/props1.png, then python3 scripts/process_env.py --env env --out assets --levels 1. Put level 1 in the game with the fox on it before generating the crystal mine; process that one alone with --levels 2, (a bare 2 is a count and redoes level 1), --force after a re-render.

  8. Check. Play each strip at its fps from <name>_meta.json, tile the texture across a wall, and draw a long and a short platform.

Common mistakes

  • An end frame on run or walk. Pinning the still at both ends of short locomotion spends the clip speeding up and slowing down. First frame only for run and walk; pin first = last for idle and every one-shot so they return to rest.
  • An armed enemy's walk using its weapon. The build's first armed walk swung its weapon mid-stride and closed at 1.44x baseline. "His arms stay still ... never lifts, swings or twirls it", the weapon terms in the negative and a guidance of 0.7 closed it at 0.42x.
  • Keeping a frame where an effect keyed into a block. A white slash trail and an impact dust cloud came out of the key as solid blobs; --drop removes the sampled frame without changing the shared canvas or palette.
  • Paying to regenerate every weak loop. A heavy walk closed at 1.03x, a wider range found the same window, and it shipped after review. Widen the range, look at the loop, and pay only when it visibly hitches.
  • Splitting a pose sheet by columns. Poses overlap horizontally; split by connected components (--poses does) and ask for wide gaps.
  • Trusting "seamless tileable" in a texture prompt. The renders do not tile reliably; process_env.py cross-fades opposite edges instead of a re-render.
  • Stretching a platform strip. Draw left cap + repeated middle + right cap so every length keeps the carved ends.
  • Retro-scale level art. Small retro paintings failed the first playtest; 1920x1152 detailed layers drawn at 2x replaced them while sprites kept nearest-neighbor scaling. Validate level 1 in the game before the rest.
  • Pink or purple on a character. Everything strongly magenta is keyed away; say "no pink, no purple, no magenta anywhere on the character" and reject takes that show any. A fast weapon swing can pick up a purple motion-blur tint and key away mid-strike, which --drop cannot fix since it would remove the strike itself: reject that take, or re-run with "no motion blur, the weapon keeps its colors" in the prompt and "purple or magenta tint on the weapon" in the negative (in one validation run this cleared the tint, and one impact frame still needed --drop).
  • Rewording a blocked combat clip. A thrust or pickaxe swing can come back moderation_blocked, and the filter is the provider's: read the error, then run the unchanged payload on a pick from another provider (same recommend, endImage feature kept) per scenario-moderation before softening the beat.
  • Lossy sprite strips. Lossy WebP shifts the shared palette; only the HD layers ship lossy.
Files (skills)
  • references
    • processing-settings.md 9.7 KB
      Loading…
    • prompt-templates.md 15.3 KB
      Loading…
  • scripts
    • process_env.py 10.7 KB
      Loading…
    • reframe_stills.py 4.8 KB
      Loading…
    • side_sprites.py 16.4 KB
      Loading…
    • sprite_cycles.py 7.8 KB
      Loading…
  • README.md 9.1 KB
    # scenario-side-view-game-kit: maintainer notes
    
    Not read at runtime. How the skill was built and why it makes its choices.
    
    ## Origin
    
    Distilled on 2026-09-30 from a browser side-scroller built over two days in one agent session: one
    hero, two ground enemies, five levels of one setting. Every generation ran through the Scenario MCP
    server (`recommend`, `model_schema_get`, `model_run` with `dry_run` and `wait: false`, `jobs_wait`,
    `upload_asset` and `upload_asset_complete`, `asset_download`); keying, loop search, pixelation,
    seamless tiles, prop cutting and WebP conversion ran as local Python. The sources were the build
    journal, the verbatim prompt record and the build's own processing scripts.
    
    The hero route is an earlier isometric sprite-cycle pipeline (two-pose still on flat magenta,
    reframe, image-to-video clips, loop-window search, one shared palette) adapted to a single side-view
    facing. The build used a text-to-image model for the stills, the pose sheet and the level layers; an
    image-to-video model with a last-frame input for the clips; and a pixel-art model for a superseded
    first pass. The skill names no model and discovers both lanes with `recommend` (`txt2img`, and
    `img2video` with `features: ["endImage"]` for pinned clips), because availability differs per team
    and these generations will be superseded. The record has no credit costs, which is why the body
    prices with `dry_run` instead of quoting a figure.
    
    ## Why audio was dropped
    
    The build also scored every level and gave each action a sound effect. One skill, one output type:
    the deliverables here are images (sprite strips and level layers; the clips are intermediates), so
    music and effects stay with `scenario-audio` and `scenario-elevenlabs`. The body says in one
    sentence that they are outside this skill without naming those siblings: a named sibling joins the
    context fan-out and the install commands, and the image workflow never calls them. The prompt
    templates and processing settings carry no audio sections for the same reason.
    
    ## Why the finish is local
    
    Keying, the loop search, the shared-canvas palette and the seamless cross-fade all need the pixels
    on disk, and the deliverables are game files, not platform assets. `scenario-sprite-animation` lists
    "assembling locally" as a mistake for sheets the platform can tile itself; this skill's local steps
    are the ones no MCP tool performs, so the body says why once and offers `upload_asset` into a
    collection for users who want the finished strips on the platform.
    
    ## Choices the build tested
    
    - Static poses (fall, wall cling, plunge, dash) come from one pose sheet split by connected
      components. Splitting by column runs failed: the poses overlap horizontally.
    - The first attack's third frame keyed a white slash trail into a solid block, and the heavy enemy's
      impact frame keyed its dust cloud into a blob; both were dropped after processing. `--drop`
      reproduces that, applied after the canvas and palette, which is what matches the shipped strips.
    - The heavy enemy's walk loop closes at 1.03x baseline. Widening the search range did not help; it
      was kept after review, which is why the body's threshold (0.6x) is a target, not a rejection rule.
    - The first armed-enemy walk swung its weapon mid-stride and could not loop (1.44x). Regenerated
      with a still-arms sentence and a lower guidance value, it closed at 0.42x. That pair became the
      "loop that will not close" mistake.
    - The first-pass environments were judged too retro after a playtest. The "richly detailed
      high-resolution pixel art" replacement was validated on level 1 before levels 2 to 5 were
      generated, which is the order the body teaches.
    - Texture renders asked to be "seamless tileable" did not reliably tile, hence the cross-fade in
      `process_env.py` rather than trusting the prompt.
    
    ## Scripts
    
    All four run in plain Python 3 with Pillow and NumPy; `side_sprites.py` also needs ffmpeg.
    
    - `reframe_stills.py`: from the isometric pipeline, pixels unchanged. The output names lost their
      isometric facings: it now writes `<name>_rest.png` (left pose, the first frame of every ground
      clip) and `<name>_action.png` (right pose: hero jump or enemy attack wind-up). The build ran its
      own copy with an auto split column and a death cycle; the shared copy reproduced all six of the
      build's first frames pixel for pixel, so those extras were not ported.
    - `sprite_cycles.py`: the isometric pipeline's processing core, now a helper module imported by
      `side_sprites.py` only. Its four-facing command line and anything only that command line used were
      removed. Two changes after the port's review: `pick` takes the cycle's mode and windows by it (it
      used to branch on the name `attack`, so a loop named `attack` got one-shot windowing), and
      `read_frames` stops on a clip more than 2% off square instead of squashing it, since the figure
      scale and feet anchor assume a square frame. Square clips process as before.
    - `side_sprites.py`: the build's one-facing wrapper, generalized. The hard-coded hero cycle table,
      pose names and file names became `--cycles`, `--pose-names` and `<name>_pose_*`; loop cycles other
      than walk, run and idle need a `--range`; `--drop` was added for the frames removed by hand;
      missing clips are an error instead of a silent skip; overwrites need `--force`; `--webp` writes
      lossless WebP; `sprite_cycles.py` is imported from the script's own folder.
    - `process_env.py`: the build's script, generalized. Hard-coded input and output folders and the
      fixed five-level loop became `--env`, `--out`, `--levels` and `--file KIND=PATH`; texture size,
      fade share, ledge height, prop count and height, alpha threshold and the three WebP qualities
      became flags; `--dry-run` and `--force` were added. The processing is unchanged.
    
    Comments, docstrings and help text were moved to American spelling and house style in the port; no
    processing changed.
    
    ## Script verification
    
    Run on 2026-09-30 (Windows, Python 3.14.2, NumPy 2.5.0, Pillow 12.2.0, ffmpeg 8.1.1) against the
    build's intermediate files, writing only to a temporary folder, with the scripts as they stood
    before the port's renames:
    
    - `--help` printed usage for every script.
    - `reframe_stills.py` on the hero still and both enemy stills: all six first frames pixel-identical
      to the build's.
    - `side_sprites.py` for the hero (eight cycles, the pose sheet, the jump still, `--drop atk1=2`),
      the heavy enemy (`--drop attack=5`) and the armed enemy (`--range walk=12:48`): all 19 strips and
      poses pixel-identical to the build's. Cells, anchors and fps matched the build's meta files: hero
      98x81 anchored at 49,75; heavy enemy 137x123 at 68,111; armed enemy 116x93 at 58,92. Seams
      printed: hero run 0.32, idle 0.282, heavy-enemy walk 1.032 (flagged), armed-enemy walk 0.421, the
      first armed-enemy walk 1.445 (flagged). Without `--drop` the hero's first attack has 7 frames and
      the heavy enemy's attack 8, as recorded.
    - `side_sprites.py` refused to overwrite without `--force`, stopped on a missing clip, and asked for
      `--range` on an unknown loop cycle; `--webp` wrote lossless WebP.
    - `process_env.py` over five levels: all 35 outputs byte-identical to the build's WebP layers. A
      second run refused to overwrite; `--file tex=... --file props=...` wrote `env_tex_<stem>.webp` and
      `env_prop_<stem>_<k>.webp`; with neither `--env` nor `--file` it stopped with an error. On the
      five textures the mean wrap-edge difference after the cross-fade sat at the neighboring-pixel
      level.
    
    Apart from the two `sprite_cycles.py` fixes above, the port changes names and text only.
    `tests/scenario-side-view-game-kit/` runs on synthetic inputs: the build's own files are not in this
    repository, so the byte-level reproduction above is not re-run in CI.
    
    ## What the record does not cover
    
    - The worked example (a fox knight, a mole miner, two levels) is a recommended route built from the
      shipped build; the build made one hero, two ground enemies and five levels of one setting.
    - The pose-sheet prompt is recorded only as a description; `references/prompt-templates.md` gives a
      template in the style of the other prompts and says so. The attack, lunge, shot, hurt and spin
      motion sentences are abbreviated in the record; the templates keep their recorded opening and
      closing words.
    - The enemy stills are recorded only as "follow the hero still template (standing / attack
      wind-up)", and their attack and hurt prompts are not recorded. Their heights (78 and 66 px) and
      the drop indices come from the shipped strips.
    - How the two frames were removed from the attack strips is not recorded; the drop indices (hero
      first attack index 2, heavy-enemy attack index 5) were recovered by matching the shipped strips.
    - The ledge was requested at 1536x384 and came back 1536x512. The trim makes the output the same
      either way.
    - The pose-sheet scale (0.122) was set by eye; the skill says to tune it.
    - The first-pass pixel-art route (some enemies, pickups and icons that still ship) is mentioned in
      the record but not taught; its prompts are not recorded.
    - Game code (combat, wall runs, parallax, the ledge 3-slice draw) is out of scope beyond a few
      drawing rules; the skill stops at game-ready assets.
    
  • SKILL.md 14.3 KB
    ---
    name: scenario-side-view-game-kit
    description: "Use when making the art for a side-scroller or 2D platformer: side-view pixel-art sprite sheets for a hero and ground enemies (run, walk, idle, attack, hurt cycles, air spin, jump and fall poses) and per-level layers (parallax background and midground, seamless wall texture, platform strip, props). Also use when a magenta key eats part of a sprite, a walk loop will not close, a slash trail keys into a solid block, generated textures do not tile, or poses on one sheet will not split."
    license: MIT
    ---
    
    # Scenario Side-View Game Kit
    
    ## Overview
    
    A side-scroller needs two families of image assets no single generation gives: pixel sprites that
    animate cleanly on one feet line, and painted level layers that stack into parallax and repeat
    without seams. This route comes from a browser side-scroller made in one agent session (one hero,
    two ground enemies, five levels):
    
    1. **Characters.** A text-to-image still with two poses on flat magenta (hero: rest and jump; enemy:
       rest and attack wind-up), reframed with headroom, then one 3 second image-to-video clip per
       cycle, the character running or walking "like a treadmill" in a pure side profile facing right. A
       local script keys the magenta, cuts a loop or one-shot window, and pixelates every cycle of a
       character onto one shared canvas and palette. Fall, wall cling, plunge and dash come from one
       pose sheet. Make one facing; the game mirrors it.
    2. **Levels.** Per level, five renders in "richly detailed high-resolution pixel art" (background,
       midground, wall texture, platform strip, props), made into WebP layers locally.
    
    The finish is local on purpose: keying, the loop search, the shared palette and the seamless
    cross-fade need pixels on disk, and the deliverables are game files. If the user wants the finished
    strips on the platform too, `upload_asset` them into a collection.
    
    Connection, scope and the core loop: the `scenario` skill. Frame tools, GIF previews and engine
    slicing: `scenario-sprite-animation`. Pixel cleanup and other statics: `scenario-game-assets`. Clip
    model families: `scenario-video`. Music and sound effects are outside this image skill. If a sibling
    skill named here is missing from your available skills, load it with `skill_get` (Scenario MCP) or
    ask the user to install it (https://github.com/scenario-labs/skills#install); unattended, proceed
    from tool schemas and flag the gap.
    
    The agent runs the scripts locally (Python 3, Pillow, NumPy; `side_sprites.py` also needs ffmpeg):
    [reframe_stills.py](scripts/reframe_stills.py) makes the clip first frames,
    [side_sprites.py](scripts/side_sprites.py) builds the strips and imports
    [sprite_cycles.py](scripts/sprite_cycles.py) (never run directly), and
    [process_env.py](scripts/process_env.py) finishes the level layers. Prompts with slots:
    [references/prompt-templates.md](references/prompt-templates.md). Read
    [references/processing-settings.md](references/processing-settings.md) before changing a script flag
    or when `--report` flags a loop.
    
    ## Quick reference
    
    | Step               | How                                                                                                                                                                                 | Keep when                                                    |
    | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
    | Models             | `recommend` with `capability: "txt2img"` (stills, pose sheet, layers) or `"img2video"` plus `features: ["endImage"]` (clips), the user's words as `prompt`; then `model_schema_get` | You know each schema's field names, enums and caps           |
    | Reframe and upload | `reframe_stills.py`: figure 58% of a 960 square, feet at 82%; `upload_asset` + `upload_asset_complete` the rest frame, and the action frame for the hero's air spin                 | Headroom for a raised weapon or a somersault                 |
    | Pose sheet         | Text to image, chosen still as reference, 4 poses in a row on magenta                                                                                                               | Same design and palette as the strips                        |
    | Price and wait     | `dry_run: true` per distinct payload, then `wait: false` in waves under the concurrency ceiling and `jobs_wait`, re-called with `pending_job_ids` until done                        | The user heard the total before spending                     |
    | Strips             | `side_sprites.py --report`, then without `--report`                                                                                                                                 | Loop seams (idle aside) under 0.6x baseline; no solid blocks |
    | Level layers       | Five renders per level, level 1 first                                                                                                                                               | Dark lower middle, empty midground center, props apart       |
    | Level finish       | `process_env.py --env env --out assets --levels N`                                                                                                                                  | Texture tiles, ledge trims flat, prop count matches          |
    | Deliver            | Strips and pose images as lossless WebP plus `<name>_meta.json` (cell, feet anchor, fps); layers as lossy WebP                                                                      | One anchor per character; nothing magenta at the edges       |
    
    Payload names below (`startImage`, `endImage`, `referenceImages`, `background`, `quality`,
    `numOutputs`, `cfgScale`) are the build's schemas' examples: use the fields your pick's
    `model_schema_get` lists. The image pick needs strong layout adherence, a reference-image input, a
    transparent-background option and the template's 1536x1024; if its schema lacks one (a pixel-art
    specialty pick can cap far below that size), take the next ranked pick, even when `recommend` asks
    you to choose between such capped picks.
    
    ## Worked example
    
    A user asks: "Make the art for my side-scroller: a fox knight hero with a rapier, a mole miner enemy
    with a pickaxe, and two levels, a mushroom forest and a crystal mine." Pass `team_id` and
    `project_id` on every call (the `scenario` skill covers picking them).
    
    1. **Hero still.**
       `recommend { "capability": "txt2img", "prompt": "<the user's request>; needs reference image input, transparent output" }`,
       `model_schema_get` the pick, price the
       [two-pose template](references/prompt-templates.md#1-two-pose-still-text-to-image) (left:
       standing ready facing right; right: mid-jump facing right) with
       `model_run { "model_id": "<pick>", "dry_run": true, "parameters": { "prompt": "...", "width": 1536, "height": 1024, "quality": "high", "background": "opaque", "numOutputs": 2 } }`.
       Tell the user the price, run (`jobs_wait` with its `job_id` if it returns in progress),
       `asset_display` both takes; keep one with both poses on model, in a pure side profile (every clip
       inherits a three-quarter body), and nothing pink or purple, `asset_download` it and `curl -L` it
       to `fox_two_pose.png`.
    
    2. **First frames.** `python3 scripts/reframe_stills.py fox_two_pose.png --name fox --out frames`
       writes `frames/fox_rest.png` (left pose, the first frame of every ground clip) and
       `frames/fox_action.png` (the jump). Check both, then
       `upload_asset { "file_name": "fox_rest.png", "content_type": "image/png", "kind": "image", "file_size": <bytes> }`,
       PUT the parts, `upload_asset_complete { "upload_id": "<id>" }`; same for the action frame, which
       only the air spin uses.
    
    3. **Hero clips.**
       `recommend { "capability": "img2video", "features": ["endImage"], "prompt": "<the user's request>; square clip, no audio" }`,
       then `model_schema_get`. One payload per cycle from the
       [motion templates](references/prompt-templates.md#2-motion-prompts-image-to-video). With the
       build's schema:
    
       ```
       run:  { "prompt": "<run sentence> <facing and tail>", "negativePrompt": "<negative>, slowing down, stopping, standing still",
               "startImage": "<fox_rest id>", "duration": "3", "aspectRatio": "1:1", "generateAudio": false }
       atk1: { "prompt": "<attack: a fast rapier thrust ... returns to the starting ready pose> <facing and tail>", "negativePrompt": "<negative>",
               "startImage": "<fox_rest id>", "endImage": "<fox_rest id>", "duration": "3", "aspectRatio": "1:1", "generateAudio": false }
       ```
    
       Idle and hurt pin like the attack; the air spin uses the action id as both frames. Price each
       distinct payload with `dry_run: true` (first frame only, pinned, changed guidance), give the user
       the total, launch the clips with `"wait": false` in waves within the team's concurrency ceiling
       (the `parallel-custom-jobs` row in the `scenario` skill: a launch refused with that 429 created
       no job, so relaunch it in the next wave instead of dropping it), and collect them with one
       `jobs_wait { "job_ids": [...] }`, re-called with the returned `pending_job_ids` as `job_ids`
       while any is in progress (never poll `job_get`). `asset_download` each (omit `format` on video)
       and save as `clips/fox_<cycle>.mp4`, `<cycle>` being exactly the step 5 `--cycles` name (`run`,
       `idle`, `atk1`, `spin`, `hurt`). Review each as a local contact sheet
       (`ffmpeg -i clips/fox_run.mp4 -vf "fps=6,scale=240:-1,tile=6x3" fox_run_sheet.png`), since
       `asset_display` shows no frames of a video; re-run only one that turns toward or away from the
       camera or travels.
    
    4. **Pose sheet.** Text to image with `referenceImages: ["<chosen still id>"]` and the
       [pose-sheet template](references/prompt-templates.md#3-static-pose-sheet) (fall, wall cling,
       plunge, dash). Price, tell the user, run, download as `fox_poses.png`.
    
    5. **Strips.**
    
       ```
       python3 scripts/side_sprites.py --clips clips --name fox --cycles run:loop:8,idle:loop:8,atk1:attack:7,spin:attack:8,hurt:attack:5 --report
       python3 scripts/side_sprites.py --clips clips --name fox --height 56 --palette 28 \
           --cycles run:loop:8,idle:loop:8,atk1:attack:7,spin:attack:8,hurt:attack:5 \
           --poses fox_poses.png --jump frames/fox_action.png --webp --out sprites
       ```
    
       View the strips at 4x, nearest-neighbor. If the slash trail keyed into a white block, re-run with
       `--drop atk1=<index>` (0-based) and `--force`.
    
    6. **Enemy.** Same route: two-pose still (rest, and an attack wind-up that keeps the design
       consistent), reframe, upload only `mole_rest.png`; walk with the first frame only, the
       [armed-enemy walk wording](references/prompt-templates.md#armed-enemy-walk) and a lower guidance
       such as `cfgScale: 0.7` if the schema has one; attack and hurt pinned.
       `side_sprites.py --clips clips --name mole --height 72 --cycles walk:loop:8,attack:attack:8,hurt:attack:5 --report`;
       a walk flagged as a weak loop gets `--range walk=12:48` before any re-run.
    
    7. **Level layers.** Fill the five
       [environment templates](references/prompt-templates.md#4-environment-layer-set) for the mushroom
       forest (opaque background and texture, the rest transparent). `dry_run` each distinct setting,
       tell the user the total, run, download as `env/bg1.png`, `env/mid1.png`, `env/tex1.png`,
       `env/ledge1.png`, `env/props1.png`, then
       `python3 scripts/process_env.py --env env --out assets --levels 1`. Put level 1 in the game with
       the fox on it before generating the crystal mine; process that one alone with `--levels 2,` (a
       bare `2` is a count and redoes level 1), `--force` after a re-render.
    
    8. **Check.** Play each strip at its fps from `<name>_meta.json`, tile the texture across a wall,
       and draw a long and a short platform.
    
    ## Common mistakes
    
    - **An end frame on run or walk.** Pinning the still at both ends of short locomotion spends the
      clip speeding up and slowing down. First frame only for run and walk; pin first = last for idle
      and every one-shot so they return to rest.
    - **An armed enemy's walk using its weapon.** The build's first armed walk swung its weapon
      mid-stride and closed at 1.44x baseline. "His arms stay still ... never lifts, swings or twirls
      it", the weapon terms in the negative and a guidance of 0.7 closed it at 0.42x.
    - **Keeping a frame where an effect keyed into a block.** A white slash trail and an impact dust
      cloud came out of the key as solid blobs; `--drop` removes the sampled frame without changing the
      shared canvas or palette.
    - **Paying to regenerate every weak loop.** A heavy walk closed at 1.03x, a wider range found the
      same window, and it shipped after review. Widen the range, look at the loop, and pay only when it
      visibly hitches.
    - **Splitting a pose sheet by columns.** Poses overlap horizontally; split by connected components
      (`--poses` does) and ask for wide gaps.
    - **Trusting "seamless tileable" in a texture prompt.** The renders do not tile reliably;
      `process_env.py` cross-fades opposite edges instead of a re-render.
    - **Stretching a platform strip.** Draw left cap + repeated middle + right cap so every length keeps
      the carved ends.
    - **Retro-scale level art.** Small retro paintings failed the first playtest; 1920x1152 detailed
      layers drawn at 2x replaced them while sprites kept nearest-neighbor scaling. Validate level 1 in
      the game before the rest.
    - **Pink or purple on a character.** Everything strongly magenta is keyed away; say "no pink, no
      purple, no magenta anywhere on the character" and reject takes that show any. A fast weapon swing
      can pick up a purple motion-blur tint and key away mid-strike, which `--drop` cannot fix since it
      would remove the strike itself: reject that take, or re-run with "no motion blur, the weapon keeps
      its colors" in the prompt and "purple or magenta tint on the weapon" in the negative (in one
      validation run this cleared the tint, and one impact frame still needed `--drop`).
    - **Rewording a blocked combat clip.** A thrust or pickaxe swing can come back `moderation_blocked`,
      and the filter is the provider's: read the error, then run the unchanged payload on a pick from
      another provider (same `recommend`, `endImage` feature kept) per `scenario-moderation` before
      softening the beat.
    - **Lossy sprite strips.** Lossy WebP shifts the shared palette; only the HD layers ship lossy.
    

Comments

Sign in to join the conversation.

No comments yet. Start the conversation.

Reviews (0)

No reviews yet.