Skip to content

Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.

release: v2.37.0

Soohong Kimf870c75f5a21
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fb3a206..836304e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,7 +2,9 @@
All notable public changes to `sprite-gen` are recorded here. Versions track the `version:` field in `SKILL.md` and `pyproject.toml`.
-## Unreleased
+## v2.37.0 - A lead-in or a stray speck no longer costs a walk its loop; follow-through reads the body and moves each part on its own gain; a diagonal still turns its body; the same cut on every machine
+
+v2.36.0 was cut but not published on its own: its release was held for a cut that differed by machine, fixed here. This release is the first to carry its changes too — see `v2.36.0` in [CHANGELOG.md](https://github.com/aldegad/sprite-gen/blob/main/CHANGELOG.md).
- **Output change: a diagonal still turns its chest or back and its legs, not only its head** (`STILL_VIEW_TEXT["front_diagonal"]`, `["back_diagonal"]`, read by `still_view_text` and `gen --direction`; an app that draws its own still takes it too). The sentences said the turn, the head and the feet, and a still that turns only its head and shoes, the chest (back) and the legs standing as from the front (straight behind), meets those words. They now say what that angle shows: not a front (back) view with only the head turned, the middle of the chest (back) and of the waist about three quarters of the way across the body toward its far edge, the near shoulder and side seen broad, the far shoulder and arm partly hidden, the legs at the same angle with the far foot set a little higher and partly behind the near leg, and not to follow a reference picture's angle. `STILL_VIEW_TEXT` takes `{other}`, the side opposite `{facing}` (the near side of a front diagonal, the far side of a back one); facing left is the same sentence with the sides swapped. The clip's view sentences (`VIEW_TEXT`, `VIEW_MOTION_TEXT`, `GAIT_HOLD_TEXT`) and the body plan's (`STILL_VIEW_TEXT_ANY_BODY`) are unchanged. The words were chosen by a before-and-after comparison on the still model; its measurements are kept in private evidence and none is recorded here ([video-pipeline](docs/video-pipeline.md#2-clip--sprite-gen-video)).
- **`tests/video/test_video_pipeline.py`** holds both diagonal still sentences, facing right and left: the chest (back) and hips turn with the head, where the middle of the body sits, the near side broad, the far shoulder, arm and foot on the far side, the reference picture not followed, and facing left the same sentence with the sides swapped. **`tests/gen/test_prompt_freeze.py`** lists the two 2.22.0 sentences and the words measured in their place (`MEASURED`): the still prompts that hold the old words are compared with the measured ones, those prompts and no others differ from 2.22.0, and a measured sentence reworded again fails as any other prompt would.
@@ -36,6 +38,8 @@ All notable public changes to `sprite-gen` are recorded here. Versions track the
## v2.36.0 - A slow walk cut one step long is named, and cut again on a count; a staff that closes only on two steps is cut as one cycle
+Not published on its own: it ships in v2.37.0.
+
- **New record: `cycle.step_screen` on every walk and run `video-loop --anchor motion-auto` cuts.** A walk slower than its window holds (0.5 to 1.6 s, at most half the clip) is cut one step long where its legs are drawn alike: the step repeats in pixels, the loop walks on one leg, its arms jump at the wrap, and a set aligned with it plays one step where its other directions play two. Nothing said so — the two-cycle screen looks only below the cut. Now the cut is screened the other way, over the whole clip (`period.step_screen`): the lag within 3 frames of twice the cut that repeats best (`lag`, `searched`), its distance over the cut's own over the same frames (`ratio`, `pairs`), its dip under the clip's profile (`depth`), how much of a second cycle the clip holds past it (`coverage`), and the step signal's peaks over the cut (`leg_peaks`, a record only). A repeat there (`depth` at least 0.15) better than at the cut (`ratio` at most **0.85**, `period.STEP_RATIO_MAX`) is a `suspect`. **Nothing is cut on it**: a cycle on a frame count that is not whole repeats better at its double too, so only a count of the steps settles it. Images, `strip.json`, warnings and stderr are as before, byte for byte; the report's `cycle` and the printed summary gain `step_screen`. [docs/loop-repair.md](docs/loop-repair.md#the-step-screen--a-slow-walk-cut-one-step-long).
- **New option: `video-loop --steps 1|2`** (with `--anchor motion-auto`), the count of steps in the cut it takes without it, from whoever looked at the loop. `1` cuts the walk again in the window [2L − 1, 2L + 1] — not bounded by half the clip, but held inside an explicit `--min-len`/`--max-len` (below) — with the same search, the equivalent cut whose wrap the clip itself plays taken (`choice: "closure"`) and no window twice that; a clip too short to see that window repeat is cut all the same, the count standing for the repeat (`method: "counted-window-v1"`, `unseen`). `2` keeps the cut. Either way `cycle.steps` records the count (`by: "given"`, `given`, and for `1` `first_cut` and `window`), `strip.json` says `steps: 2`, and `cycle.coverage` is (n − L) / L. **New warning**: a cut two steps long whose clip holds under 0.25 of a cycle past it (`loop.COVERAGE_MIN`) — `the cut is two steps long (… frames, one cycle) and the clip holds … of a cycle past it (under 0.25): its repeat is barely seen — the seam says whether it closes; a longer take shows it repeat`. It is cut, not refused; the seam gate judges it.
- **Output change: an explicit `--min-len`/`--max-len` window is the window, on every path that sets a cut's length.** `--anchor motion-auto` cut the caller's ceiling back to half the clip, so asking for a slow walk's cycle (`--min-len 41 --max-len 43` on 73 frames) searched [41, 36] and failed. Only the state's default window is bounded by half the clip now. The window is worked out once (`loop.CutWindow`) and every search reads its own off it — the first search, a window two steps long, the count (`--steps 1`), the gait fallback, the one-shot failover — so none sets a bound of its own: the `--cycle auto` one-shot failover of an action state widened an explicit `--max-len` to nine tenths of the clip (a 16-frame hop asked under `--max-len 14` was cut 36 long) and the one-shot search took no `--min-len` at all; both are held to the caller's bounds now (`detect_one_shot` honours `min_len`; `run_loop` passes `ONE_SHOT_MIN_LEN` unless `--min-len` is given, so a run without one cuts as before), and a one-shot the bounds leave no room for says so (`no complete one-shot return … — in 8-14 frames, inside --min-len 8 --max-len 14`). Whatever chose the cut, `--cycle fixed` and `pinned` included, a cut outside an explicit bound fails: `the cut is … frames long (…), outside --max-len N`. **A count and a window with no length in common fail**: `--steps 1` on a 21-frame step under `--max-len 25` cut 42 frames; now `--steps 1: the cut of 21 frames from 18 is one step, so the cycle is 41-43 frames long, and --max-len 25 leaves none of that: the count and the window disagree — drop one, or give a window that holds the cycle` (exit 1, the failed report's `cycle.steps` with `counted_window`, `window: null` and `refused`). Where they share part of the window, only that part is read (`cycle.steps.window`, `counted_window` beside it). A run with no explicit bound cuts byte for byte as before.
diff --git a/SKILL.md b/SKILL.md
index 2845d16..37e6dce 100644
--- a/SKILL.md
+++ b/SKILL.md
@@ -1,6 +1,6 @@
---
name: sprite-gen
-version: 2.36.0
+version: 2.37.0
description: "Generates images and game sprites through GPT or Grok with guided provider choices, separate saved defaults, automatic cleanup and optional curation. Handles sprite requests, ordinary image generation/editing, standalone image-to-video clips (i2v, animate this still, 그록 영상, 이매진 비디오, 스틸 움직여줘, first/last frame, reference-to-video, 영상 이어붙이기, 영상 편집, extend/edit a clip), clips from a video MCP on the agent (ZCRE, 지크 MCP), chroma removal, animation atlases, video loops, 큐레이션뷰, image candidates, 팔레트 스왑, palette swap, recolor, rig layers, engine exports, repeating backgrounds, projected shadows, motion/contact inspection and optional scene composition from existing assets."
license: Apache-2.0
depends_on:
diff --git a/docs/release.md b/docs/release.md
index bb9bb92..a909616 100644
--- a/docs/release.md
+++ b/docs/release.md
@@ -19,7 +19,7 @@ lavapipe 에서는 첫 업로드에서 죽는다 — 그래서 그런 호스트
**미결 (2026-10-06)**: GitHub CI 를 걷어낸 뒤로 리눅스 RIFE(`--rife-only`)는 아직 한 번도 재지 못했다 —
마지막 측정은 v2.35.0 의 CI 다. 진짜 리눅스 커널의 x86-64 호스트가 준비되면 이 변경이 들어간 커밋과
-다음 릴리즈(v2.36.0) 커밋에서 `--rife-only` 를 돌려 채운다. 채우면 이 문단을 지운다.
+다음 릴리즈(v2.37.0) 커밋에서 `--rife-only` 를 돌려 채운다. 채우면 이 문단을 지운다.
## 한 묶음
diff --git a/pyproject.toml b/pyproject.toml
index 29af160..c3eac40 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
name = "sprite-gen"
# Release discipline: keep this package metadata version synchronized with
# SKILL.md's `version:` field in the same release commit.
-version = "2.36.0"
+version = "2.37.0"
description = "Component-row pipeline for clean 2D game sprites and animation atlases"
readme = "README.md"
license = "Apache-2.0"