Pixel Anim Check
ASecurityFind and repair what an image model's pixel-art sprite sheet loses between frames (a mouth, an eye or a mark gone in some frames, effects allowed to come and go), write the request that keeps those losses down before the sheet is drawn, and check a pixel-art sprite animation (idle, walk, attack or any loop of a character or creature) for faults that make sprite motion look broken. Takes sprite strips, frame folders or GIFs plus the eye colour. Reports lost eyes, mouths, marks and limbs, stray...
- 5 stars
- 0 votes
- 0 copies
- 3 views
- Added November 24, 2026
Works with
Security analysis
92/100- Installs packages at runtime which could introduce malicious dependencies
Pro scans all 4 files and shows the line behind each finding
npx -y skills add therwn/limberpix --skill pixel-anim-check --agent claude-codeAre you the author of Pixel Anim Check?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/therwn-pixel-anim-check)---
name: pixel-anim-check
description: Find and repair what an image model's pixel-art sprite sheet loses between frames (a mouth, an eye or a mark gone in some frames, effects allowed to come and go), write the request that keeps those losses down before the sheet is drawn, and check a pixel-art sprite animation (idle, walk, attack or any loop of a character or creature) for faults that make sprite motion look broken. Takes sprite strips, frame folders or GIFs plus the eye colour. Reports lost eyes, mouths, marks and limbs, stray specks, open outlines, size mismatches, feet off the ground or sliding, pops, texture shimmer, a frozen head, choppy or uneven timing, hops, vanishing parts, a redrawn face and colours off the palette; warns on walk bobs, seams, outline boil, action timing, part volume and lag, blends, orphan pixels and drift from the approved drawing; writes a contact sheet and a GIF for a look by eye. Use whenever a sprite animation is made or changed, and before showing or shipping one.
---
# Pixel-art animation check
Run this before an animation is shown to anyone or put into a game: the run should report **0 faults**, and the
inspection by eye below should find nothing. A reviewer's time is best spent on taste, not on defects a script can
find, so catch those first.
The check is itself tested (step 4). A check that is run only for show, or that cries wolf, is worse than none.
**A sheet an image model drew** (a grid of poses on a flat background) goes through `fix_sheet.py` in two runs:
```sh
python -I ${CLAUDE_SKILL_DIR}/fix_sheet.py sheet.png --ref drawing.png --features --eye "#495d89" --out out --name idle
python -I ${CLAUDE_SKILL_DIR}/fix_sheet.py sheet.png --ref drawing.png --keep out/idle_features.json --fps 8 --out out --name idle
```
The first lists what must stay (section 1, the keep list): show `out/idle_features.png` to the user. What matters
is the face (the mouth, the eyes), not a speck on a robe: with `--eye` (the eye's colour on the drawing; with
`--eye-at X,Y` when that colour shows elsewhere too, as the list's line then says) the face's marks come kept and
the rest unkept. Confirm the kept ones with the user, name them, and add `"transient"` boxes where effects come and
go. The second prepares the sheet (1a), draws back the kept marks the frames dropped (1b) and checks the result.
A walk or a run in place takes `--move` on both runs: it is then checked as the travel loop, whose feet step on
purpose (an idle's must stay on their pixels), and a kept limb not found as the drawing has it is named "lost, or
posed otherwise" and never drawn in (a walk poses its limbs otherwise than a standing drawing, and drawing one in
doubled a generated fighter's arm and leg): that frame gets a redraw prompt.
Show the user `out/idle_repair.png` and the GIF; report what was repaired, what was skipped and why, and what the
check still names. Do not call the sheet fixed from the exit code alone.
**0 faults means no listed defect was found, not that the motion is good.** Never report a fault count, or a count
going down, as the animation's quality. In one test (one viewer, one character: a cloaked wizard whose partly lined
drawing gives `outline` on every frame) a cut-out idle with no other fault was judged worse, played, than the
hand-drawn idle it copied, which adds a `choppy` at the rate it was watched at; a second cut-out idle, moved closer
to the hand-drawn one, added a `jump` and was judged worse again; and in `--style redrawn` all three get `stepped`
alike, the accepted one too. Say what the run found, and leave the verdict on the motion to whoever plays it.
**Paths.** The scripts sit next to this file. Claude Code fills `${CLAUDE_SKILL_DIR}` with that folder. Codex and
any other agent that leaves it as written read it as the folder this SKILL.md was loaded from (in Codex,
`~/.codex/skills/pixel-anim-check`). Python 3.11+ with NumPy 1.24.3+ and Pillow 13.0.0+. The commands
use `python -I` (isolated mode): it leaves the script's own folder, `PYTHON*` variables (such as a `PYTHONPATH` into
the project) and the user's site-packages off the import path, so a stray file named like a standard module
(`json.py`) cannot shadow it. It also hides packages installed with `pip install --user`: on `No module named 'numpy'`
(or `'PIL'`), install numpy and Pillow in a virtual environment or for the whole system, or drop the `-I`.
## Terms
- **On ones, twos, threes:** a new drawing every frame, every 2nd frame, every 3rd. At 30 fps, twos are 15 pictures a
second and threes 10.
- **Hold:** how many frames one drawing stays on screen. A **moving hold** is a pose that looks still but keeps a
small motion (a breath, a blink) so it never freezes.
- **Game px vs reference px:** a game pixel is one pixel of the sprite as the game shows it. A reference pixel is
one pixel of the larger drawing the animation was made from. Thresholds here are in game px unless they say
otherwise.
- **Contact sheet:** one image with every distinct pose side by side, zoomed, so poses can be compared at a glance.
- **Rig:** a pipeline that poses cut-out parts by numbers (angles, offsets) before rendering frames.
- **Lint:** a check run on the rig's pose numbers alone, without rendering, to catch a cause the frames cannot show.
## 1. Run it
The script is `pixel_anim_check.py`; its tests are in `pixel_anim_selftest.py`.
```
python -I ${CLAUDE_SKILL_DIR}/pixel_anim_check.py --loop idle=idle.png --loop move=walk.png --frame 32 \
--eye "#ffcc33" [--flier --shadow "#2b2430"] [--effects "#fff4c8,#ffd27a"] [--allow attack=12] \
[--glows-eye attack] [--idle idle --move move] [--facing left] [--legless] [--fps 30] \
[--action bite:strike:right] [--speed 0.5] [--parts move=move_parts.png --squash "#ff0000"] \
[--palette approved.png] [--ref approved.png] [--glow "#fff4c8"] [--mark "#5ad1e0"] [--sheet move] \
[--key "#ff00ff"] [--eye-at 20,9] --out check --name fox
```
- A loop is a horizontal strip PNG, a folder of frame PNGs, or a GIF.
- For a strip give `--frame W` (one frame's width) or `--frames N` (how many frames it holds). Without either,
square frames are assumed, and a strip whose width is not a whole number of its height is refused.
- A folder is read in file-name order: zero-pad the numbers (`f00.png`, `f01.png`, ...).
- GIF timing follows the stored delays. Elapsed time is rounded to game frames at `--fps`, so ten 50 ms poses
cover 15 frames at 30 fps. A pose shorter than a game frame may fall between samples.
- Keep the figure in a fixed-size frame across every loop. On a size mismatch the CLI reports `size` and exits
before comparing motion or rendering previews.
- Colours are given as `#rrggbb` (any case, the `#` optional).
- Air is read from transparency. A strip with a flat background and no transparency (common in AI sheets) would be
checked as one solid figure, so it is refused unless `--key #rrggbb` names the background colour; `--key` also
applies to `--parts`, `--ref` and `--palette`. It removes that exact colour only: clean a key's anti-aliased fringe
before, or the fringe reads as specks and open outline.
- The eye is found by its colour. When that colour is used elsewhere too (a gem, a bead, a glow), the run prints a
`note:` naming the piece it took: the biggest. That guess can be wrong: two eyes drawn a pixel apart are two 1-px
pieces, and a 2-px bead of the same red on a staff was taken for the eye, so the eye track, `frozen` and `reshape`
followed the bead. Read the note, and give `--eye-at X,Y` (the eye's column and row on each loop's first frame)
when it names the wrong piece.
- `--effects` is for colours the figure itself does not use: they are taken out of the figure before `apart` is
judged. Name a colour the figure also wears (a white burst on a white-haired figure) and its own hair and skull
become stray pieces on every frame. Use `--allow LOOP=N` for an effect in the figure's colours.
- A flier's ground-shadow colours must be given with `--shadow`, or the shadow counts as a stray piece (`apart`).
- The outline is every colour darker than lightness 40, unless `--ink` names it. A drawing lined only in places (lit
edges and pale limbs with no line) gives `outline` on every frame in the default style. Run the approved drawing
alone first: if it shows the same count, the fault is the drawing's style and not a pose's.
- `--facing left` for a creature whose head faces left (where `reshape` reads the face); `--legless` for a snake or
slug (no body rise asked of its move, and `hop` judges every loop); `--fps` the rate the game plays the loops at.
`choppy` and `stepped` are counted in time, so they turn on that rate: a sheet that comes with no rate has none
to check, and the rate you assume decides them (one hand-drawn 10-frame idle gets `stepped` at 8.3 and at 10 fps
and passes at 12). Say which rate you assumed.
- Name the rest and travel loops `idle` and `move`, or give `--idle NAME --move NAME`. Several checks are tied to
those two loops (`snap`, `hop`, `shallow` and `drift` to the idle; `still`, `stiff`, `skate` and `gait` to the
move), so under other names they do not run and the result looks cleaner than it is. The run prints a `note:` line
for each missing name, naming the checks that apply to that body; a name given with `--idle` or `--move` that
matches no loop is a usage error.
- `--action NAME[:KIND[:DIR]]` declares an action loop. Every declared action may hold up to two keys (a wind-up
and a follow-through, as a common attack pattern does), each up to 13 frames at 30 fps, outside `choppy` and `uneven`; the
second must be at least twice the median of the other holds. Its other frames keep every rule. KIND
`strike` judges its phases (DIR the way it strikes: right, left, up or down; default the facing). KIND `jump` may
leave the ground (`ground` is not asked). Any other word (`breath`, `spit`, `bell`) is a gesture: no phase checks,
since a breath or a bell has no counter-move.
- Every loop is read as a cycle, a declared action too. A one-shot that does not end where it began (a death
ending on the ground) has its last-to-first step read as a `jump` and its fallen figure as a `vanish`: at the
seam those two are the loop's end, not faults.
- `--speed PX` is the road's scroll in game px a frame, for a walker drawn walking in place. The planted feet's speed
is printed beside it, and the GIF scrolls a ground line under the move. The road may ease, so it is a read-out.
- `--parts LOOP=PATH` gives a part strip: the same frames with each rig part filled in one flat colour (the cut's
labels). Per-part `volume` and `lag` are read from it. `--squash` names the part colours whose area changes on
purpose (wings, a squashed body).
- `--palette PATH` (the approved drawing at game size) makes any colour outside it a fault; `--ref PATH` compares the
idle with it (`drift`); `--glow` names colours that show in some frames on purpose (glow steps, glints, blink lids).
- `--mark` names small defining marks (a gem, a lamp, a lone bright pixel) that must show on every frame and never
jump 2 px in one frame. `--sheet LOOP` says a loop was drawn as a sheet or by AI (`swap` looks for a part switched
off for a cell).
- `--style redrawn` is for frames in which every pose is a new drawing of the whole figure: drawn frame by frame, or
generated by a model (the default, `--style pixel`, is one drawing moved by whole pixels with its texture kept).
- Its faults are the frames that lose the character: a mark, the eye or the mouth gone (`lostmark`, `spots`,
`eye`, `mark`), a broken outline (`gaps`), a stray speck (`apart`), a colour off the palette, a pose knocked
sideways or off the ground, a part that vanishes. These are what a generated sheet gets wrong and what can be
repaired.
- How the body moves only warns: `stepped` (it takes the place of `choppy`, `uneven` and `lurch`: the whole body
moving at least 6 times a second, a new pose changing 40 % of the figure's tiles), `frozen`, `stiff`, `snap`,
`tick`, `hop`, `shallow` and `still`. The motion a model gave is judged by playing the loop.
- `shimmer` is not run, and `reshape` and `outline` only warn: a redrawn pose changes its texture and its face's
pixels on purpose, and may line its edges in colour.
- `lostmark` lets the poses vote. Each mark a patch of one colour closes in (a mouth or an eye on a face, a stud
on a coat) is followed by its place on the patch; one most poses keep (60 %) and some drop is lost there, even
in a single frame: a mouth missing in frames 2 and 9 of a 10-frame idle is named in exactly those, with the eyes
on the same face kept. No approved drawing or placed marks are needed. The outer outline touching the patch
closes a mark in too (a model often draws a mouth against the jaw's line), but a mark walled in by it needs 2 px
or more, its rim mostly on the patch, and at most a quarter of the patch's size. A mark of the `--eye` colour
lost once or twice a loop is a blink and passes; three times or more it is named. A mark must differ from its patch by 40 or
more in some colour channel (a grain speck or a shading tone does not) and have 1 px for every 80 rows of the
figure; a patch closing in over 8 such marks a pose is a texture and is not read. On the generated wizard idle
its reviewer judged it names the mouth in exactly the poses they named, and two of the robe's gold stars that
are gone in some poses.
- `gaps` finds an outline broken in short stretches (1-4 coloured pixels between ink on the edge, over 5 per 100
edge pixels). Give every outline colour with `--ink`, the lit ones too: a lit outline left out reads as gaps.
- `lostmark` does not see a mark that no one patch closes in (specks across a hat's shades, a line on a patch's
edge), nor a group losing only some of its members. For those, use `--spots`.
- `--spots PATH` (with `--ref`, the approved drawing at the loops' scale) names small marks that must show in every
pose: a JSON file `{"hat": [[4, 79], [7, 84], [13, 79], [15, 76]], "mouth": [[35, 86]]}`, rows and columns in the
drawing's pixels, placed by eye as body_parts' bones are (zoom the drawing on a grid and read each mark's pixel).
Group the marks that sit on one patch. Each pose is searched for each group at its place, and `spots` names the
poses showing fewer marks than the drawing. A mark that turned another colour (a yellow speck gone grey) or into a
pinhole still counts; one gone from its place does not. If a group's mark does not read as a mark in the drawing
itself (bigger than 3 px, or not set in its patch), a warning says so: move it onto the mark. It found a
generated idle's lost hat specks and missing mouth in exactly the poses its reviewer named (32 judgements of 32),
on one character only.
- Its margins are a guess from three idles of one character judged by playing them (one generated idle accepted,
two cut-out idles rejected as slow and stepped), not a fitted margin: rerun the check on every redrawn animation
you have judged whenever they change. A fourth sample already speaks against `stepped`'s 6 a second: a
hand-drawn 10-frame idle, accepted by its viewer played at 120 ms a frame, moves its whole body 4.2 times a
second and gets the warning.
- **A keep list says what must stay, and what may come and go.** A spark leaving a staff, a twinkle, a mote is
meant to vanish; the mouth and the eyes are not. Pixels alone cannot tell them apart, so ask the user:
1. `--features` (with `--ref`, else the first frame) lists the candidates and checks nothing: each mark a patch
closes in (an eye, a mouth, a stud; a patch is a colour and its near tones, so a face painted in three skins
still closes in its mouth; marks nearer each other than the keep check's reach are one) and each part thinner
than the body (a limb, a hand, a tail, a staff; kept) and each small piece apart from the figure (a spark, a
mote; not kept), numbered on `<name>_features.png` and written to `<name>_features.json` in `--out`. Kept: with
`--eye`, the marks of the patches near the eye (the face), the rest unkept, whatever the frames show (a model
that drops an eye in half the frames must not untick it); without it, the marks the frames hold in most poses.
Every part is kept: a limb lost is what a player sees first. `fix_sheet.py` reads a painted drawing (over 64
colours) brought onto the strip's palette (`<name>_drawing.png`), and the eye colour likewise.
2. Show the picture to the user. Name what they keep, set `"keep": false` on what is shading or texture, and add
`"transient": [{"name": "staff spark", "box": [top, left, bottom, right]}]` for the places where things come
and go on purpose (boxes on the drawing's pixels).
3. `--keep PATH` then judges it: `keep` names each kept feature in every frame it is missing from, a majority or
not (it takes `lostmark`'s place), an eye-coloured one may blink once or twice, and a piece wholly inside a
transient box is no `apart` fault. A kept mark is followed by its surroundings on the drawing (the list holds
them): on each frame they are found near the place the whole figure's move gives, and the mark is looked for
there, so a face that sinks while the body squashes is not lost; surroundings not found there are looked for
up to 15 % of the figure's height off, so a mouth on a head that sways on its own, or a stud on a swinging
hand, is followed too. An eye is any mark there holding the eye's
colour or a near tone, however the model drew it (lid, white and pupil, or the lid alone), and an eye against
the hair line, which no patch closes in, is read on the face's edge; so is any kept mark in its own colour or a
near tone, as a frame may draw a mouth a few px low, onto the chin's outline. A kept mark not at its place but
with a like mark up to 2.5 times as far off, one the drawing does not draw there itself, is named drawn off
its place, not missing (a mouth that jumps reads as broken when the loop plays; it was not lost). A kept part (a limb) is missing where under
half its pixels show in their colours where its surroundings put it, unless turned round where it meets the
figure (up to 35 degrees, as a walk swings its legs and arms) 80 % of it shows in near colours, its outside edge
in the air and not on another kept part's pixels; the repair copies it from the nearest frame that shows it. On the generated wizard idle, the mouth's frames are exactly the four its reviewer named, and the
staff's sparkles, 16 `apart` faults without a list, give none.
- Measured on six idle sheets an image model drew (two characters, `tests/known_losses.py`: each mark of the
first frame erased in chosen frames of the real frames): `keep` named 170 of 171 erased frames and no other;
the repair put the mark back, as the keep check reads it, in 141 of 171. Along the route `fix_sheet.py` runs
(`--ref`, `--eye`): the fighter's eye, erased in 3 separate frames, is named every time, and once or twice a
loop passes as a blink; the wizard's face, 4 of 4 and 3 of 3 on two sheets.
- Its limits: a mark followed by its surroundings is looked for within 1.6 % of the figure's height of where they
put it (2.6 px on a 160 px wizard; 2 px at least), and marks closer than that are one feature. The wizard's eye,
5 px from its mouth, is its own; its nose and mouth, 2.5 px apart and drawn as one mark on most frames, are one
(a nose kept apart would be named missing wherever the model drew the one mark). On a 17 px generated blob the
eye merges with the body's dark shading in a few frames and is named missing where it shows: on a figure that
small, look at the frames named. On a small painted face the model often redraws the mouth in another colour
and 2-3 px off: `lostmark` alone then misses it (2 of 12 on the wizard sheets) and the keep list finds it.
- `--json PATH` also writes the findings as data: each fault and warning with its rule, its loop, the 0-based
frames it names and its text; a `lostmark` finding adds the mark's place (top-left row and column) and size, a
`spots` finding its group and marks. A repair step reads this instead of the printed lines.
- In a project with its own pipeline, call `pixel_anim_check.check(loops, Spec(...))` from a small adapter, or
`findings(loops, Spec(...))` for the same data `--json` writes.
- Pixels may be any colour key; pass `lum` and `rgb` to read them.
- Import the module from the skill folder, or vendor a copy of `pixel_anim_check.py` and `pixel_anim_selftest.py`
(the selftest needs both). If you vendor them, make changes in one place first and copy them over, so the
copies do not drift apart.
It prints the faults, then warnings (`warn:` lines: the eye tick, `reshape` and `mark` outside the idle, where an
action may jump or open its jaw on purpose, and the later checks of section 2b; look at them, they do not count),
then per loop the **per-step change list** (the share of the figure changed from each frame to the next, a 1-px bob
forgiven), the **eye's row track** (runs of `(row, frames)`), and the later read-outs: the update rate against the
real-pose rate, the box's height, width and anchor (a sheet's scale drifting shows here), rare colours, the move's
bob and leg band and planted-foot speed, the eye's lag behind the figure's top, each action's phases and staging,
and each part's area and lag. The exit code is 0 for no fault, 1 for one or more, 2 for a usage
error. Frame numbers are 0-based: `move[3]` is the move's fourth frame, and "frame k" in a `jump` or `snap` is the
change from frame k to the next. Open the folder printed after `sheets:` for both previews. The
`<name>_check.json` file in the output folder gives their paths. Use `--no-preview` for checks and tracks only.
- `<name>_check.png`: the contact sheet, each distinct pose zoomed (at most 12 a loop, plus any a fault names) and
labelled with the frames it holds (`4-7`), and under each the pixels changed from the pose before, in red. The
poses a fault names are outlined in red.
- `<name>_check.gif` plays the loops side by side at `--fps`. It repeats at a shared cycle boundary, including
the scrolling road. When the cycles take too long to align, the preview plays once.
- In code: `check(loops, spec, warns)` fills the list `warns`; `tracks(loops, spec)` returns the two read-outs.
## 0. Before a sheet is drawn: the request
When the user is about to ask an image model for a sheet of an approved drawing, write the request with
`sheet_prompt.py` (what it gives the model and why, and what it changed on 14 generated sheets: [PROMPTS.md](PROMPTS.md)):
```sh
python -I ${CLAUDE_SKILL_DIR}/sheet_prompt.py drawing.png --who "WHO, one sentence" --motion "THE MOTION, in the user's words" --keep "THE MARKS THAT MUST STAY" --out ask
```
The motion and the marks are the user's words: ask for them, do not add your own. Hand over the two pictures (in
the order printed) and the prompt. When the sheet comes back, look at it beside the drawing first: a model that
redraws the design does so on every pose, and nothing is then lost between frames for the check to name.
## 1a. Prepare a sheet an image model drew
An image model gives a grid of poses on a flat background, at its own size. Bring it onto the approved drawing's
pixel grid before checking it:
```sh
python -I ${CLAUDE_SKILL_DIR}/prepare_sheet.py sheet.png --ref drawing.png --out out --name idle
```
It keys out the background (transparency, or the corners' colour, within six times the corners' own spread so a dark
outline on a dark ground stays, and a green key's fringe), drops a ground shadow drawn under the feet (the ground's
colour darkened, in the figure's lowest quarter), keeps a pocket the figure closes in all round unless it is the
ground's own colour (an eye drawn near the ground's colour stays; a gap between arm and staff goes), and on a
ground that is not a green key, one of the ground's colour too when it falls on the drawing's figure (a boy's dark
trousers on a dark ground stay; the gap between its legs, on the drawing's air, goes), finds the grid
(or takes `--grid CxR`), gives every pose one scale (a pose drawn over 8 % taller or shorter and 4 % wider or
narrower the same way keeps its own and is named; a squash or a crouch keeps the sheet's), puts the feet on the
drawing's feet, lays the game grid on the sheet's own pixel edges when it is crisp pixel art (else a game pixel
straddles two of its pixels: outlines doubled, feet broken), sets each pose up to 4 px sideways onto the first pose
where that makes them a tenth more alike (a model places each pose its own way, and the loop slid from side to
side), and brings each pose down by vote on one palette (the drawing's own colours when it has 64 or fewer). A pose
reaching past the drawing's box (a stretch, an antenna, a scarf's tail) gets room instead of a cut: the frames grow
by what it needs, and `<name>_ref.png` is the drawing with the same room (`fix_sheet.py` uses it; give it as
`--ref`, and move `--eye-at` by the room on the left and the top, when checking by hand). It writes
`<name>_strip.png`, frames of the drawing's size side by side, and prints the check command for it. Run that with
`--style redrawn` and the rate the game plays at.
- Look at the strip first: a pose cut by its cell, two poses in one cell (give `--grid`), a background colour left
on the figure.
- On a 2048 px generated sheet of a 160 px wizard (4x4, a green key, sparks beside the staff) it found the 16 poses
and matched the trial pipeline's silhouette on 99.6 % of the pixels.
## 1b. Repair what a generated sheet dropped
When `lostmark` or `keep` names a mark (a mouth, an eye, a stud) or a kept part (a limb) missing in some frames of a
generated sheet, `repair_sheet.py` draws it back:
```sh
python -I ${CLAUDE_SKILL_DIR}/repair_sheet.py idle.png --frame 64 --keep face_features.json --eye "#2b3a63" --out out --name idle
```
It checks the frames in `--style redrawn` (with `--keep`, the kept features; else `lostmark`'s vote), and for each
frame without the mark takes it from the nearest frame that has it. It places it by the marks beside it (the eyes
beside a mouth), or else by matching the pixels around it, and draws it only over the patch's own pixels, never
over air or an outline. A kept feature no frame shows is drawn from the approved drawing (the keep list holds its
pixels), with the skin a pixel round a mark, where the check looks for it. Frames that lose nothing stay pixel for
pixel. A kept mark the check names drawn off its place is moved back: its old place painted with its patch's
colour, its own pixels drawn where the check looks for it (within a pixel). Without a keep list a mark drawn a few
pixels off is left alone (it moved, it was not lost). A drawing or move the check still reads as lost or off is
undone, and the prompt for a frame still holding a mark off its place asks to put it back. It writes
`<name>_repaired.png`, `<name>_repair.json` (each repair and each skip, the faults before and after) and
`<name>_repair.png` (before and after, repaired frames framed green). Each frame still missing something after the
repair gets a prompt to redraw that frame alone with an image model (printed as `redraw frame k: ...`, and
`"redraw"` in the log): give it to the user with the frame's number. Exit 0: nothing left; 1: a mark still missing;
2: a usage error.
- Show the user `<name>_repair.png` and a GIF of the repaired strip before using it.
- On the generated wizard idle it put the mouth back in the four frames its reviewer named, and undid its drawings
of a robe star the check had read as lost where it had only moved.
- `--gaps` also closes the outline's gaps on every frame (a run of 1-4 coloured edge pixels with edge ink at both
ends takes the ink's colour), for a model that breaks the outline at random so it flickers. It touches every
frame, and a trim colour reaching the silhouette's edge between ink pixels turns to ink too: ask the user first,
and show the before-and-after picture. On the generated wizard idle it closed 1431 px over its 16 poses and the
check's `gaps` fault went away.
- On a generated wizard sheet whose every frame draws the mouth faint, the drawing lent it to 4 of 8 frames; the
other 4 shade the face so that a mouth drawn there does not read as one, and got a prompt each.
- Not repaired yet: a lost piece apart from the figure, colour, scale and anchor drift.
## 2. What each fault means and the usual fix
| Fault | Meaning | Usual cause, fix |
|---|---|---|
| `size` | frames differ in size | trimmed per frame: crop every loop to one union box |
| `apart` | a piece apart from the figure | a cut part's leftover edge, a thin joint lost when shrinking, loose bits (embers, hair) that blink in and out: keep the main piece, or `--allow` what is thrown on purpose |
| `eye` | the eye gone on a frame (not judged when a keep list keeps the eye: `keep` reads it by its near tones; the eye colour on no frame of a loop is one fault saying so), or in the idle or the move (a warning elsewhere) the eye's place jumping out of its head's box in one frame (2 × the box's half side + 1 px or more, along a row or a column). The eye is one piece of its colour: the biggest on the first frame (the frontmost on a tie), then the piece nearest its last place, so the same colour elsewhere on the body is not taken for it; a `note:` says which piece was read when the first frame has several | the eye not moved with its part (the head), or a glow recolouring it (`--glows-eye` that loop); a jump is a cell mirrored or placed off its anchor, or the eye lost while its colour shows elsewhere (the track then jumps to that patch) |
| `outline` | coloured edge pixels with no ink | two drawings put together: ink the seam. A figure cut by the cell edge shows here too (the border counts as open): size the cell from the farthest reach of every loop, with 1 px of air |
| `ground` | a walker's feet leave the ground line outside the move; a flier's shadow slides. In a legged walker's move the lowest drawn row moving is a warning, not a fault: a run, a gallop or a hopping gait leaves the ground on purpose (not asked of a move declared `--action ...:jump`) | a lift applied to the whole figure (in the walk: raise the body, not the feet); a limb turned about its hip pushes the toes through the floor: shift it back up, or shear instead of turning |
| `jump` | one change over 3.6 times the loop's usual step, or one pose knocked 2+ px sideways out of step. The usual step is the mean of the moving steps with the two biggest left out: a pose out of order makes two big steps (into it and out of it), and with them in the mean a loop of 6 moving steps or fewer could never fire, and one of 8 only on a step 12 times the others. A declared strike's own step and a declared jump's launch and landing are left out first, as big on purpose. With under 4 usual steps (a sparse idle) the change must also reach a quarter of the figure, so one ear flick among small blinks is not a jump; with under 2 (3 moving steps or fewer) only the sideways test runs. A pose held on twos or threes is one pose: it is compared with the distinct poses either side of the hold, and every frame of it is named (`move[6-7] (a held pose)`) | a pose out of order, a stray offset, a part stepping two levels at once, a sheet cell placed off its anchor |
| `still` | the move changes under 1.5 % of the figure a frame | amplitudes too small for the sprite's size |
| `shimmer` | pixels taking another tone for 0.1 s at most (3 frames at 30 fps, scaled with `--fps`) and going back to the tone before, often: on a sixth of the frames and at least three times a loop (a two-step walk passes a leg over a pixel twice, so two flips are not counted). Each pixel is read by its own runs of one tone, so a texture redrawn on drawings held on twos or threes is seen too. It is noise: flickering interior pixels that pull the eye from the motion, seen when the loop plays at full speed; the cure is fewer colours and simpler clusters (MOTION.md 3.0) | texture redrawn each frame (AI frames), or a part scaled or turned a fraction every frame and resampled: hold small motions two frames a step and in whole steps (whole pixels, 1.5° turns). A sub-pixel in-between (an edge's mid tone stepping monotonically into a 1-px move) is not counted; switching a few pixels on and off is |
| `stiff` | a walker's body never rises or falls in the move (not asked of a `--legless` crawler) | legs stepping under a board: raise the body (not the feet) a whole pixel as the legs pass under it, twice a stride; fill the hips with an overlap |
| `choppy` | a loop (4+ moves) updating under 10 times a second however small its steps, or dropping one update (median hold 3+ and one hold twice it); give `--fps`. An idle whose every pose change moves the body (the top of 80 %+ of its columns shifts, a body rising or swaying whole) may update 2.5 times a second (a pose held up to 0.4 s, as published pixel-art idles do) and hold one pose twice the others. A move whose every pose change is big (8 %+ of the figure, a new drawing of the stride) may update 5.2 times a second (published pixel-art walks hold 100-280 ms a pose); `--min-rate R` sets the idle's and the move's floor outright, for a style held longer. A rest (a hold of a third of the loop or more) is left out and the frames left must still update at 10/s; a rest with under 3 other holds (a blink) is a gesture. A declared `--action` leaves out its longest hold, and a second one twice the others' median (each up to 13 frames): the rest must still update at 10/s. A lost update among twos is not seen (section 2b, the end) | a few drawings each held long (a big animal's idle stepping one part every 6 frames: 5/s), or two quantised ticks running on one pose (a 3-frame cadence with one 6-frame hold). Give a new pose at least every 0.1 s: at 30 fps hold every pose 2 frames (15/s; 3 is the floor), at 12 fps 1 frame. What fails is the tempo: a usual hold of 4+ frames (under 10 updates a second) reads as a low frame rate. One longer hold belongs only where the motion stops: a sway's turn (a 1-2 frame base doubled, 4 at most), an idle's rest, an action's held keys; in a running motion it is a lost update; put all parts on one clock (`k // 2 * 2`) with phases staggered 0.4-1.2 rad so something changes on every tick; or draw in-betweens. Never lower the pose rate to silence `uneven` |
| `uneven` | the holds between moves jump in turn (1, 3, 1, 3) in a cycle of 4+ moves; an idle that breathes (its body moving whole, its other pose changes small) is not judged, since a breath is eased on purpose (slow over the top, quick on the drop), but an idle whose body stands while parts step at uneven holds is. A declared action's two held keys are left out | parts rounded on their own (each part's turn rounded separately lands on different frames), or a sequence of mixed holds: put every part on one beat (`k // 3 * 3`) and hold every pose alike. Ease doubling the hold at a sway's turns is fine |
| `lurch` | a held cycle (6+ moves) whose moves alternate big and small, in any loop but the idle (there a whole-body step between a free tip's small steps is the breath) | a whole-body bob on its own step between small leg steps, with frames held between: give the legs a new pose every frame and let the bob ride them; or a sine sampled so two poses running fall on one angle (sin 60 = sin 120): sample it half a step off |
| `frozen` | the head (round the eye) hardly changes in the idle or the move, read as drawn: a head carried whole on the body's rise and fall moves, and passes | a head pasted in place while the body moves under it: carry it on the body's breath and bob (at 1-px steps carry it whole, never a pixel off its neck), let it look about in the idle |
| `snap` | the idle stands dead still a third of a second or more, then changes a quarter of the figure in one step | an idle built from one long-held drawing and a burst of walk drawings: never stop dead (a breath, a blink, a glint at least every 12 frames: the moving hold); ease a big change in and out (holds 3, 2, 2, 3, each step under 25 %), or drop it. An action's held anticipation is not judged |
| `tick` | a whole-pixel level left and regained within a few frames: the eye's row in the idle (an extreme held under 3 frames, under 4 in a two-level square wave; these counts are for 30 fps, 0.1 s and 0.13 s, and scale with `--fps`; a cluster of 3+ short runs, a sniff, is exempt), or a flier's whole-body height in its idle or move (the shortest excursion under 0.18 of its share of the loop). That 0.18 fails only a lift peaking up to about 0.59 px (a rounded 1-px sine is up (π − 2·asin(0.5/A)) / 2π of the beat: 0.178 at A = 0.59, 0.313 at A = 0.9), so a peak of 0.6-0.9 px passes here though it still ticks: catch it with the rig's lift lint (section 3) | a lift peaking 0.5-0.9 px: only the curve's top rounds up, for 2 frames. Use no lift (peak under 0.5 px) or a whole one (1-1.2 px: up a third of the beat), written as `px * round(max(0, sin))` and checked after the rig's rounding; keep a neck or head turn's travel at the eye under 0.5 px or over 1. Read the eye track |
| `planted` | in a loop that stays in place (not the move, an action or a flier's), a foot on the ground row 2 px or more from where the first frame puts it (the figure's lowest row, specks apart left out; a foot is looked for in its lowest two rows) | feet drawn in another place each frame: an image model's idle sliding from foot to foot; a whole-frame sway that carries the feet along (sway the body over planted feet) |
| `hop` | a grounded body leaves its contact: the columns resting on the lowest row shrink under half the usual, or 60 %+ of a big step is the whole body shifted while air opens right above the contact on half its columns or more (the idle of any non-flier; every loop of a `--legless` body). A trunk rising whole over planted feet whose legs stretch to stay joined is a breath, and passes | a lift or a seat step that moves a whole layer or frame (the belly row stays while all above it rises): pin the body where it lies on the ground, move only the parts above it (neck, head, arches), never translate a frame |
| `vanish` | a piece of 8+ px switches off (or on), its place stays empty 3+ frames, while the rest is nearly still (the piece over 1.1 times the mean change while it is gone) | a far wing hidden at the turn of a shallow stroke (an edge-hidden rule firing where the stroke is slowest): hide a part only while it crosses edge-on, for at most 5 frames; otherwise keep 25-30 % of it showing. A part hidden behind others is not seen here: lint the rig's hide rule (see below) |
| `shallow` | a flier's idle puts under 0.3 times as much of its change in the lower half of the figure as its move does (with no move: under 80 % of its rows or 60 % of its pixels ever change) | a wing squeezed about its own lower edge only shortens from the top: beat the same wing more slowly, not less far (depth 0.7+, crossing the shoulder line: edge-on, then under the belly) in the idle too; turn spread wings about the shoulder point. Walkers are not judged: a standing idle rightly keeps its legs still |
| `palette` | (with `--palette`) a frame holds a colour outside the approved drawing's, `--effects`, `--shadow` and `--glow` | a resample or a per-cell quantise: map the whole sheet to one palette, clearing key fringe first; sub-pixel mid tones must come from the drawing's ramp; declare glow steps |
| `mark` | (with `--mark`) a mark missing on a frame, or its centroid jumping 2+ px in one frame, in the idle or the move (a warning elsewhere) | a small gem or lamp lost below `vanish`'s 8 px, or not moved with its part: paste it with its part, a pixel at a time |
| `reshape` | the face window (from 1 px behind the eye forward; `--facing`), aligned on itself, changes class (air, ink, colour) on over 10 % of its pixels per pose change on average, in the idle (a warning elsewhere) | a sheet or AI drawings redrawing the head in every cell, or block lines read per cell that merge a narrow snout column: draw the head once and paste one approved head at each drawing's place (placed by the eye), re-ink the seam; read every cell on one shared grid. A jaw opened on purpose in an action is a warning only |
A whole-figure bob of a pixel, a glow's pulse, a limb sweeping past, a wing coming back at the end of its stroke,
and tones too alike to tell apart are motion on purpose. The check aligns or ignores them. If one is reported, fix
the check, not the art (step 4).
## 2b. The later checks (warnings until fitted)
These were added from a review of common animation practice. Most margins are first guesses; those of `orphans`,
`speck`, `doubles` and `blend` were widened after a run on a set of accepted textured creatures, whose own variation
they had flagged. So they print `warn:` lines and never fail a run. Rerun them on your accepted set, and raise a margin rather than redraw an accepted loop for one of them.
| Warning | Meaning | Usual cause, fix |
|---|---|---|
| `boil` | 2+ steps change only the outline (80 %+ inside the 1-px edge band, under a quarter of the median step) and come back a pose or two later, and they are a quarter of the updates or hide a real-pose rate under 10/s | AI or sheet frames redrawing every edge: a frame that changes only the outline is not a pose. Drop it, or thin a generated clip evenly (every 2nd or 3rd frame). A sub-pixel lead is small and edge-only too, but it settles into the move and never reverts, so it is not counted |
| `seam` | the pose at the loop's seam (the run crossing from the last frame to the first) held longer than every other pose, while all the others are held alike | the first pose copied to the end: a repeated last pose doubles a hold where the loop closes. Drop the last frame. A loop whose holds differ is not judged (an idle's rest may fall on the seam) |
| `skate` | in the move, a planted foot (a run of cells on the lowest row, matched pose to pose by overlap) slides 1+ px forward, or one foot's steps while planted differ by over 2 px | drawn walking in place, a planted foot goes back the same amount every pose until it lifts: the road's speed: the distance it goes back while planted divided by the frames it is planted, which equals the stride's length divided by the loop's frames. A foot drawn at a sine of the phase goes back, then forward again while planted. Near and far feet merge on small sprites: a contact with another within 2 px in either pose (feet splitting apart or merging) is not judged; judge per foot with `--parts` |
| `gait` | the move's body-top track does not bob twice a loop, or the move has an odd number of poses | a two-step walk rises and sinks once a step; an odd pose count cannot mirror its two halves. The bob's size is printed as a share of the height (3-8 % is usual; a whole pixel is enough on a small sprite). Only a clear wave count is judged (every other count under 0.7 of it): a top row shifting a pixel at uneven times, as on a many-legged crawler, has none |
| `counter` | a declared strike: nothing (the eye or the leading edge) moves 1+ px against the strike before it | a still anticipation has no force: wind up the other way over 2-5 small poses. In a common attack pattern (one held anticipation frame, MOTION.md 3.13) it can show when the overshoot (the rest pose a pixel back for a frame) moves the whole figure more than the hit and is taken for the strike: then the frames judged as the anticipation are the follow-through's. Check which frame the warning names; a jab has no anticipation at all |
| `strike` | the strike step (the biggest step carrying the lead forward; a second forward step over half of it joined) is under 3 times the anticipation's median step | the strike spread over even steps: strike in 1-2 frames, after small eased ones. In that pattern the same overshoot can be taken for the strike (a whole-figure shift changes much of it), and the hit's own frames, a smear, a follow-through, are then read as the anticipation |
| `recover` | after a strike, or after a jump's landing, under 2 steps back to rest, or one over half the strike (the loop's biggest step for a jump) | snapping back: follow through, then return over 2-5 poses, steps growing then shrinking; a small overshoot is fine. That pattern recovers in one frame on purpose (a quick player attack, MOTION.md 3.13): there this warning is expected and the choice is the pattern's |
| `stage` | the strike's contact pose keeps 90 %+ of the rest pose's filled silhouette (effects included) | the key does not read: push it (a longer reach, a lower crouch). Every action prints its most changed pose's share as a read-out. When the overshoot is taken for the strike (see `counter`), the pose judged is the frame after it |
| `piston` | from the rest pose to the contact, the eye (or with `--parts` the farthest-travelling part's tip) strays under 1 px from a straight chord of 4+ px, over 3+ poses | a straight A-to-B slide: move the lead on an arc (the head rises, then drops into the bite) |
| `gravity` | an action whose figure's bottom rises 2+ px: airborne steps (px a frame) speeding up toward the apex, or a fall at an even pace | a jump spaced evenly: steps shrink on the way up, two drawings near the apex, steps grow on the fall |
| `squash` | in such an action, a pose changing height by 10 %+ narrows as it squashes (or widens as it stretches), changes its area by over 15 %, or stays deformed on the ground 3+ poses | squash wider, stretch narrower, keep the mass; a squash lasts 1-2 frames |
| `volume` | (with `--parts`) a part of 40+ px whose area leaves its median by over max(10 %, 2 px); `--squash` parts left out | a part scaled or cut differently per frame. Small parts are left out: a turned ear changes area by rasterising alone |
| `lag` | (with `--parts`) in the idle or the move, every part riding the body (off the ground, moving 0.75+ px, with the body's wave count) moves on the body's own frame while the body steps 1.5 px or more in a frame, or one trails it by over a quarter of the loop | no follow-through: let the head, ears or tail come a pose late (one pose is enough at sprite scale). At 1-px steps a part joined by a seam rides the body and the follow-through goes to a free tip, too small to move a part's centre, so it is not asked there. Without parts the eye's lag behind the figure's top is a read-out only: a whole-figure lift rightly gives 0 |
| `blend` | (a `--sheet` loop) a colour shown in under a quarter of the frames whose lightness lies between two tones it touches | a per-cell quantise or a resample: snap to the drawing's ramp, or declare a glow step with `--glow`. A rig turning parts a fraction makes such tones on purpose, so rigged loops get only the rare-colours read-out |
| `orphans` | a frame holds more lone pixels (matching none of the 8 round them; the eye and `--glow` left out) than twice the loop's usual count (its median, or the `--ref` drawing's if higher) plus 3 | stray pixels from a resample or a redraw. Compared with the loop itself: a shrunk texture holds many on purpose, and accepted loops vary up to 1.75 times |
| `speck` | a pixel steady in every bob-aligned frame takes a lone colour for 1-2 frames once a loop, while its 8 neighbours keep theirs, 60+ of lightness from its own colour and every neighbour, and lighter or darker than all of them (a tone between two neighbours, as between an outline and its fill, is an edge blending) | a glaring blinking speck (`shimmer` needs a flip on a sixth of the frames): clean it |
| `doubles` | a frame's outer outline holds more doubled cells (2x2 blocks, L-clumps) than twice the loop's usual count plus 2; the new places are named | an outline thickened by the shrink or re-inked on a turned part: thin it to one pixel. A leg or wing turning at a joint makes some on purpose |
| `drift` | (with `--ref`) the idle's nearest pose, after the best shift, differs from the approved drawing on over 2 % of it | the rest render drifted from the drawing: a part cut, a pivot off, a colour snapped differently |
| `swap` | (a `--sheet` loop) a colour group of 8+ px drops under 30 % of its median, or doubles, in one step for 1-3 poses and comes back in one step | an AI sheet dropping a shield or moving a sword across for a cell: keep every part on every cell. A foreshortening wing passes through the counts between and is not caught |
| `split` | from one pose to the next, the torso's topline or belly line moves by different amounts on the two sides of one column, each side rigidly over 30 %+ of the torso, with a 1-px step where the drawing's line is level. The torso is the band of the fullest rows, the columns filling it with nothing above them, the head and neck's end left out; a flier is not read | the rear band riding the hips and the front band the shoulders, a pose apart: keep the torso one piece; bend it over its whole length (a shear or a curve), turn it whole about a pivot, or let a 1-px step fall where the line already slopes |
| `hitch` | the head (the eye's track), or a `--parts` part of 40+ px, holds still 10+ frames at 30 fps, then steps a pixel or more as one block while the rest of the figure changes under half as much on that frame. A step back within 3 frames is `tick`'s; an action's held key may end in a step | a head nodded in slow whole-pixel steps with nothing else moving: move it with the body on a pose the body moves on (head, neck and trunk together, pixel-animate MOTION.md 3.0), on a short period; or move other parts on the same pose |
Not checked, on purpose: smears (an option, and good strikes exist without one), the figure touching the cell edge
(a loop cropped to one union box touches it in some frame; a cut reach shows as `outline`), footfall order (diagonal
pairs land together in a trot, and contacts merge on small sprites), a flier's rise and fall timing (wing pixels
change on both strokes), hit reactions (one source, nothing to fit on) and effect timing (a spark starts at full
size on purpose; a breath of fire lasts long on purpose). These are not caught either, and are looked for by eye:
- **A walk pose out of order is not caught.** Every walk step already changes 35-40 % of the figure, so a misplaced pose
reads 1.3-1.5 times the usual step against `jump`'s 3.6, and the test tried (how much better a pose fits elsewhere in
the loop) gave 0.58-0.62 on the clean bird and 0.16-0.59 on broken walks: find it by eye on the contact sheet, where
each pose should fall between its neighbours.
- **A texture redrawn at random on twos or threes is not caught.** One alternating between two tones is caught on ones,
twos and threes, but a random one changes half or a third as often there, so each pixel's flips stay under `shimmer`'s
3 a loop: watch the GIF at full speed for it.
- **One 4-frame hold among twos is not caught.** A lost update is seen only at the loop's seam (`seam`) or where the
usual hold is 3 or more (`choppy`), and the measure tried (how far the motion carries through a hold) read an accepted
flier idle's turns as worse than broken loops: check the rig's pose list for two identical ticks outside a turn
(pixel-animate, section 5) and look for the stall in the GIF.
- **A bob drawn upside down (the body up while the legs are spread) is not caught.** With part strips (each leg part's
centre against the body part's top row) the clean walks read +0.53 (the selftest walker), -0.03 (the lizard) and -0.24
(the beast) against -0.71 for the walker turned upside down, and without them (the lower band's width) +0.71, +1.0 and
-0.33 against -0.75, since a four-legged walk's legs do not follow one step: read the `legs widest ... body lowest
...` read-out and the GIF.
- **`shrink.py` cannot make a small move clean.** Even its best method changes a third of the pixels when the drawing
moves a fifth of a cell, so parts are moved by whole game pixels: look at the shrunk frames side by side.
## 3. Look at it yourself
First read the two tracks the run printed, before the GIF. A fault shows there before it shows in a GIF:
- **The eye's row track** (`(row, frames)` runs): a level reached for 2-3 frames and left (a tick), or a square wave
dwelling under 4 frames. Each level the eye takes should last 4+ frames at an extreme (3 on a smooth path).
- **The per-step change list**: a long run of zeros followed by a big step (a dead stop, then a lurch); a lone
doubled hold among even ones (a dropped update); steps alternating big and small (a lurch).
- **The later read-outs**: a real-pose rate well under the update rate (boil); a box whose height or anchor swings
more than 1 px with no design behind it (a sheet's cells scaled or anchored apart: anchor walkers by the feet,
fliers by the body's centre); the planted feet's speed against the road's (`--speed`).
- **The closing step** (the move's step from its last frame to its first, against its median moving step): clean
walks and wing beats here read 0.78-1.32; a 16-frame walk cut at 13 frames reads 1.64, at 11 frames 2.11. Over
about 1.5 the loop's end does not meet its start (cut short, or a pose missing at the seam). It is a read-out, not
a warning, since the margin is narrow; an idle may close on an accent and read higher.
- **The bob against the legs** (`legs widest at frame ..., body lowest at frame ...`): in a two-legged walk or a
trot the body is lowest about where the legs are widest (the contact) and highest where they are narrowest (the
passing pose). The two the other way round is a bob drawn upside down (not checked: section 2b, the end).
If you have a part strip, look at it first, at 1x: the motion should read on the flat colours before the texture
goes on. With `--speed`, watch the move over the GIF's scrolling ground line: a planted foot must not slide on it.
If your pipeline has a rig, also lint its pose curves, where the frame grid cannot see the cause: for example a
squeezed wing that never crosses 0 in its idle (a shallow stroke), a part hidden at a turn rather than while
crossing edge-on, a lift whose rounded peak falls in 0.5-0.9 px, and a seat or ground step that translates a whole
frame. These lints are checks to write in your own pipeline; this skill does not ship them.
Then open the contact sheet and the GIF, zoomed and at 1×, and look for:
- **Likeness:** it still looks like its approved drawing: shape, colours, eye, what it carries.
- **Seams:** where parts meet there is no gap, no doubled outline, no hard straight edge, no flat patch of fill.
- **Life everywhere:** each part moves, and in a chain.
- The head nods and looks; ears and tails follow a beat late.
- A tail bends along its length, not only at its tip and root.
- In the idle the creature *stands*: it is not caught mid-stride.
- **Motion reads at 1×:**
- Wings seen from the side beat by foreshortening, not by turning like a door. Spread wings seen from the front
turn about the shoulder.
- The foot swinging forward lifts.
- **Each loop does its job:** the idle is calm, the move travels, the action says what the creature does.
- **Glow and effects:**
- They light the creature's own light only, in a colour that stands out from what it lights.
- Effects sit where they belong.
- Their shapes carry no symbols you did not intend.
- **Rhythm:** nothing jerks, and nothing crawls.
## 4. When the check itself changes
Run `python -I ${CLAUDE_SKILL_DIR}/pixel_anim_check.py --selftest`.
- It draws a small walker and a small flier that animate well. They must pass with no false alarm.
- A third clean case, a walker breathing a pixel with a sub-pixel tone leading each step, must pass too (`shimmer`
must not count the in-between).
- It then breaks them on purpose: a speck, a lost eye, an opened outline, a hop off the ground, a sliding shadow, a
frame knocked sideways, a frozen walk, a crawling texture (alternating, random, and on a beating wing), a frozen
head, a body that never rises in the walk, a few drawings held long, an idle stepped every 6 frames, a dropped
update, a dead stop then a burst, a 2-frame 1-px blip, a body lifted off its feet's row, a far wing switched off
at the bottom of its stroke, a wing squeezed from its top only, a snout cut on every other pose, uneven holds, a
lurching bob, a narrowed frame. Each must be caught by its own fault.
- For the later checks it passes, with no fault and no warning of theirs: the walker on twos and on threes, its idle
swaying 2 px over 12 poses, a bite (a strike on threes with one 9-frame key) and a leap (a jump with one 6-frame key)
declared as actions, the walker with its part strip, against its palette and its drawing, with a gem, and with a patch
read as a sheet, the flier read as a sheet, and the walker breathing (its body, neck and head rising whole in an
8-pose breath held 3 frames over the top and 2 on the drop, the legs stretching under it). It then breaks them: a held
pose knocked 3 px on twos and 2 px on threes, a planted foot nudged forward, the bite left undeclared (`choppy`), a
bite with no wind-up, one spread over even steps, one snapping back, one barely changing shape, one on a straight
line, a leap falling evenly, one narrowing as it lands, one landing straight to rest, a boiled sheet, one bob a loop,
an odd pose count, a head riding a body that bobs 2 px with no lag, a part shrinking a row, a torso cut into two
bands, a head stepping alone after a long hold, a stray colour, a blend, a blinking speck, scattered lone pixels, a
doubled outline, a drawing with its snout cut, a gem lost and a gem jumping, a patch dropped for a cell. Each must be
reported as its own fault or warning.
- The thresholds of `choppy`, `snap`, `tick`, `hop`, `vanish`, `shallow` and `reshape` were fitted to a private
calibration set: 39 animated creatures, with 15 accept or reject judgements on them by one reviewer (the margins
are in each function's docstring). That set is not included here. No published pixel threshold for judder is
known, so treat the thresholds as tested defaults, and keep them honest with your own accepted animations as below.
A new check comes with its own case in `pixel_anim_selftest.py`. After the selftest, rerun the check on every
animation already accepted in your project:
- A new fault there is either a real one, which you report to whoever owns the art, or a false alarm, which you fix
in the check.
## 5. When showing it
Say in one line what was checked (the run's result and the inspection by eye) and what is still doubtful. Never say
"checked" for something not run. If the project has a review step (an art lead, a client, the person you are
working with), show the GIF and the contact sheet there before the animation goes into the game.
Files in this skill
- REFERENCES.md
- SKILL.md
- agents/openai.yaml
- pixel_anim_selftest.py
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.