/pixel-run:pixel-runfrom pixel-run
Generates a clean, looping pixel-art run cycle from a character reference image. Produces a transparent GIF, 4x4 sprite sheet PNG, and ZIP of individual frames with in-place centering.
Ships in pixel-run. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
공통 규칙 (이 스킬의 모든 단계에 적용)
사용하는 도구
| 도구 | 쓰는 곳 | 꼭 필요? | 없으면 |
|---|---|---|---|
| 이미지 생성 도구 | 16프레임 달리기 시트 만들기 | 예 | 프롬프트만 넘기고, 사용자가 다른 곳에서 만든 시트를 받아 이어서 처리한다 |
| Python 3 + Pillow | scripts/pack_run_cycle.py 자르기 · 정렬 · GIF · QA | 예 (마무리) | 설치 명령(pip install pillow)을 알려 주고, 포장과 QA 는 안 했다고 적는다 |
| 캐릭터 참조 이미지 | 생김새 고정 | 예 | 참조 한 장을 묻는다 |
도구 위치. 위 scripts/… 는 사용자 작업 폴더가 아니라 이 플러그인 폴더에 있다. 이 스킬의 기본 폴더 경로 끝에서 skills/pixel-run 를 떼고 scripts/ 를 붙이면 된다. 예: 기본 폴더가 …/pixel-run/skills/pixel-run 이면 도구는 …/pixel-run/scripts/ 안에 있다. 이 절대 경로로 부른다. 그래도 못 찾으면 다른 방법으로 넘어가기 전에 「도구를 못 찾았다」고 결과 맨 위에 적는다.
This skill has two layers. Use both. Do not skip the script.
scripts/pack_run_cycle.py — that slices the sheet, re-centers each frame so the character runs in place, assembles a transparent looping GIF with no ghosting, writes the 16 PNG frames + a ZIP, and prints a QA report.The hard-won reason for layer 2: slicing a sheet on cell borders alone makes the character drift sideways across the cycle (a body slides ~half a cell per loop) and the feet bob off the ground line. The post-processor fixes both by anchoring each frame's alpha centroid to the cell center and the feet to a fixed baseline. Never hand the raw cell crops back as the final animation.
python3 scripts/pack_run_cycle.py <sheet.png> --out ./out
(only dependency: pip install pillow). Read the QA report it prints.out/run.gif, out/frames/frame_00..15.png, out/frames.zip — and a short QA summary. Show the GIF. Do not stop at describing the prompt.Fill the {braces}, then send this as the image prompt. Keep it in English.
Create a 4x4 pixel-art sprite sheet: one complete RIGHT-facing RUN CYCLE of
{CHARACTER}, split into 16 sequential frames (not 16 unrelated poses).
CHARACTER FIDELITY — identical in every frame:
- face and expression, head size and shape, body proportions
- outfit and colors: {OUTFIT/COLORS}
- accessories and their positions: {ACCESSORIES, or "none"}
- overall character size, pixel size, and outline thickness
Do not warp the face or body between frames. Recognizable chibi pixel-art
character. If the reference is already pixel art, preserve its style and palette.
RUN MECHANICS — running in place, camera fixed:
- torso leans slightly forward into the run
- clear stride: legs cross far front-to-back
- ground contact -> compression -> push-off -> short airborne -> other foot contact
- the planted foot stays at a FIXED height and moves backward relative to the body;
it does not slide on the ground or sink below it
- the recovering foot lifts and swings forward
- two short airborne beats per cycle
- small, regular vertical bob synced to footfalls; slight torso rotation/weight shift
ARMS — both attached at the shoulders, exact opposite phase to the legs:
- right leg forward -> LEFT arm forward; left leg forward -> RIGHT arm forward
- elbows stay naturally bent; upper/lower arm lengths constant every frame
- never: an arm detached from the shoulder, a hand fused to the torso, rubber-band
stretching, reversed elbows, both arms swinging the same way, or an arm frozen
by the head. Do not add any object to the hands that the character was not holding.
ACCESSORIES: hat / hair / ears / tail / scarf follow the body with a slight lag,
small and restrained; they never change shape or detach.
16-FRAME ORDER (one cycle, seamless 16 -> 1, do NOT clone frame 1 as frame 16):
left-foot contact -> compression -> push-off -> short airborne -> right-foot contact
-> compression -> push-off -> short airborne -> back to the opening pose.
STYLE: crisp 16-bit game pixel art, readable silhouette, uniform square pixels,
sharp edges, limited palette, nearest-neighbor scaling only. No blur, no
anti-aliasing, no soft gradients, no motion blur. No per-frame style drift.
SHEET: exactly 4 columns x 4 rows = 16 cells, total 1024x1024, each cell 256x256,
read left-to-right then top-to-bottom. Equal cells, fixed camera, same character
size and a stable ground baseline in every cell, one character per cell, whole body
+ accessories inside the cell with transparent margin on all sides. Cells must not
bleed into neighbors. No text, numbers, gridlines, borders, watermark, or background.
TRANSPARENCY: real RGBA alpha. Do NOT paint a checkerboard, green, white, or any
solid color as a fake transparent background.
16 frames at 30 ms each = a 480 ms (~0.48 s) loop, repeating forever. The
post-processor sets exactly this. If a reference motion GIF is attached, match its
overall cycle speed instead and pass --ms <value> accordingly.
--no-recenter keeps raw cell crops (only if the sheet is already perfectly centered).--cols/--rows for non-4x4 sheets. --ms to change frame duration.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pixel-art, animation, sprite-sheet, run-cycle, gif-generation
npx claudepluginhub hanmariyang/giting-skills --plugin pixel-runOther plugins' skills for the same job