{"id":116067,"plugin_id":"plugin_asdk_app_6ae37a13301c81919b3c62b884f60c6b","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-25T18:15:57.649Z","digest":"b6f23fe09bddc9babffec51098cc7e1ba120f81338107bfa8f3de27ffdb53fe6","against":null,"payload":{"description":"Use when changing an existing ChatGPT pet or Codex pet sprite sheet with Scenario: fixing a broken row, frame, jump or edge, regenerating one animation state, adding the sixteen look directions to a 1536x1872 v1 sheet, giving the pet a new outfit, color or accessory, renaming it in its pet.json, or checking a pet sheet and previewing it as an animated GIF.","included_files":[{"relative_path":"README.md","size_in_bytes":2074}],"name":"scenario-chatgpt-pet-update","skill_md_contents":"---\nname: scenario-chatgpt-pet-update\ndescription: \"Use when changing an existing ChatGPT pet or Codex pet sprite sheet with Scenario: fixing a broken row, frame, jump or edge, regenerating one animation state, adding the sixteen look directions to a 1536x1872 v1 sheet, giving the pet a new outfit, color or accessory, renaming it in its pet.json, or checking a pet sheet and previewing it as an animated GIF.\"\nlicense: MIT\n---\n\n# Scenario ChatGPT Pet: Update\n\n## Overview\n\nAn existing pet is its sprite sheet: a PNG or WebP the user downloaded from ChatGPT, a Codex pet\nfolder (`pet.json` plus the sheet it names), or a Scenario asset id of a sheet made earlier. That\nfile is the pet's identity here; there is no pet record to look up. The update never overwrites it:\nthe result is a new package next to the run, with the same id and name unless the user changes them.\n\nThis skill runs the scripts and follows the sheet contract of `scenario-chatgpt-pet-create`, which\nmust be installed; run each script by its path in that skill's `scripts/` folder, from the user's\nworking folder, and read the contract before generating a row or writing direction verdicts:\n[pet_frames.py](../scenario-chatgpt-pet-create/scripts/pet_frames.py),\n[pet_prepare.py](../scenario-chatgpt-pet-create/scripts/pet_prepare.py),\n[pet_build.py](../scenario-chatgpt-pet-create/scripts/pet_build.py),\n[pet_check.py](../scenario-chatgpt-pet-create/scripts/pet_check.py),\n[pet_preview.py](../scenario-chatgpt-pet-create/scripts/pet_preview.py),\n[pet_package.py](../scenario-chatgpt-pet-create/scripts/pet_package.py), and\n[the contract](../scenario-chatgpt-pet-create/references/sheet-contract.md). Generation follows that\nskill's loop and model order (`model_openai-gpt-image-2-5-sunburst`, then\n`model_google-gemini-nano-banana-2-1`, then `recommend` only when both are blocked); connection and\nscope: the `scenario` skill. If a sibling skill named here is missing from your available skills,\nload it with `skill_get` (Scenario MCP) or ask the user to install it\n(https://github.com/scenario-labs/skills#install); unattended, proceed from tool schemas and flag\nthe gap.\n\n## Quick reference\n\nRead the sheet first, then pick the smallest change that does the job. Every row below runs in a run\nmade by `pet_prepare.py init --from-split` (step 3 of the example): it records the original sheet,\nwhich the build, the check and the package all need. Unattended, the approvals are your own judgment\nagainst the request, recorded in the run, and nothing is installed.\n\n| The user wants                                 | Do                                                                                                                  | Generations   |\n| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------- |\n| To see or check it                             | `pet_check.py`, `pet_preview.py contact` and `gif`                                                                  | 0             |\n| A rename or new description                    | `init`, `pet_check.py <sheet> --run RUN`, then `pet_package.py make RUN --sheet <sheet> --name ...`                 | 0             |\n| Leftover pixels, color under transparency      | `pet_build.py RUN --clean`                                                                                          | 0             |\n| A row whose frames pop up and down or sideways | `pet_build.py RUN --reregister <row>`: re-places the existing frames on one ground line and anchor                  | 0             |\n| One or a few states redone                     | `init --only <rows>` (a look row too), generate those rows, `pet_build.py RUN`: every other row stays byte for byte | one per row   |\n| Look directions on a v1 sheet                  | `init --version 2 --only look`: cardinals, then rows 9 and 10                                                       | 3             |\n| A new look (outfit, color, accessory)          | `init --change \"<the change>\"`: edit the identity, approve it, regenerate every row                                 | 1 + every row |\n\n`split` refuses anything that is not 1536x1872 or 1536x2288: other art is a new pet, made with\n`scenario-chatgpt-pet-create` using that art as a reference.\n\n## Worked example: Pepper's stiff run, then a red scarf for next season\n\n1. **Get the sheet.** The user points at `~/.codex/pets/pepper/`: read `pet.json` (`id`,\n   `displayName`, `description`, `spritesheetPath`) and copy the sheet into a work folder. From an\n   asset id: `asset_download` with `format: \"png\"`, then `curl -L`.\n2. **Read it.** `pet_frames.py split pepper.png --out work/split` prints the version, a background\n   key that contrasts with the pet, and `pixel_grid` (set when the sheet is pixel art with on/off\n   alpha; the update then keeps that grid and palette).\n   `pet_check.py pepper.png --json-out work/before.json` measures it: height per row against idle,\n   jump lift, look-row drift. `pet_preview.py contact` and `pet_preview.py gif` show the current\n   pet. Ask what should change if the request is vague, naming what the check found.\n3. **Redo the run.**\n   `pet_prepare.py init --name Pepper --id pepper --description \"<from pet.json>\" --from-split work/split --only running-right,running-left --out work/run`\n   (every row of the table starts with an `init --from-split` like this; `--only` names the rows to\n   generate). The `match` style keeps the sheet's look; each job's `references` are\n   `references/base.png` (the idle frame, enlarged on the key) and `references/rows/<row>.png` (the\n   current row). Each job maps onto one `model_run`: its `references` uploaded with `upload_asset`\n   and passed as `referenceImages` (an array), its `prompt` verbatim, its `sizes` for the model,\n   `background: \"opaque\"` on Sunburst, priced with `dry_run` first; download the result to the job's\n   `output`. When the old row's motion or directions are what is wrong (a jump that never lifts, a\n   run that does not alternate, a head that turns the wrong way), add `--no-current-row` to `init`\n   so the old strip is not a reference, since the model copies what it is shown, and say what\n   changes with `pet_prepare.py note work/run --jobs <row> --text \"...\"`; a redone look row still\n   references the kept other half of the sweep. Then\n   `pet_frames.py extract work/run --job running-right`, read the report and preview, and mirror it\n   with `--mirror-left` or generate `running-left` the same way.\n4. **Rebuild.** `pet_build.py work/run --mirror-left`. With the original sheet as the base (recorded\n   by `init`), only the rebuilt rows change, scaled to the existing idle row's height, ground line\n   and anchor; the edge cleanup touches only them.\n   `pet_check.py work/run/final/spritesheet.webp --run work/run` must print `ok: true`; kept look\n   rows only bring a warning that they were not reviewed, while a redone look row needs fresh\n   verdicts in `qa/direction-semantics.json` (format in the contract) or the check fails.\n5. **Show and package.**\n   `pet_preview.py gif work/run/final/spritesheet.webp --out-dir work/run/previews`, show `pet.gif`,\n   upload the sheet and both GIFs into a collection as the create skill does, then\n   `pet_package.py make work/run --id pepper`. Ask before `pet_package.py install work/run --force`,\n   which backs up the installed Pepper into the run before replacing it.\n6. **The scarf, later.** A new look changes every frame, so it is a new generation grounded in the\n   old pet:\n   `init --name Pepper --id pepper --description \"<from pet.json>\" --from-split work/split --change \"add a red knitted scarf\" --out work/scarf`\n   adds an edit job on the identity image. Approve the edited base, then run every row as\n   `scenario-chatgpt-pet-create` does from its rows step (look rows included for a v2 sheet, with\n   fresh direction verdicts). The old sheet still sets the pet's size, so the new pet does not grow\n   or shrink.\n\nFor a v1 to v2 upgrade (`init --version 2 --only look`), run `look-cardinals`, `look-9` and\n`look-10` as the create skill describes and write the direction verdicts; the build keeps rows 0-8\nand adds the two look rows.\n\n## Common mistakes\n\n- Overwriting the user's file or installed pet: work on a copy, and replace an installed Codex pet\n  only after a yes, with `--force` (which backs it up).\n- Regenerating the whole pet for one bad row: redo that row; the build copies the others byte for\n  byte.\n- Sending the whole sheet to an image model as the reference: it reads as a grid of small frames and\n  the model copies the grid. Use `references/base.png` and the row strip `split` made.\n- Regenerating to fix what the build can fix: leftover pixels, color under transparency and a row\n  that drifts are `--clean` and `--reregister`, at no cost.\n- Rebuilding without the original sheet: a new row is then sized from nothing; `init --from-split`\n  records the sheet so the build keeps the pet's size.\n- Changing the pet's id on a rename: Codex finds the pet by its folder, so keep the id and change\n  `displayName`.\n- Handing a v2 result to someone uploading on ChatGPT web: give them `package/spritesheet-v1.png`.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}