omh-sprite-forge
它能做什么
该技能把 AI 生成的角色精灵图切割成对齐的动画帧,用于 2D 游戏。适合需要像素角色在游戏中流畅运动的游戏制作者。
适用场景
- ✓当你已经用图像工具生成了像素角色,并需要动画帧时。
- ✓当你的精灵帧出现抖动或大小偏移,需要对齐时。
- ✓当你希望在游戏中使用每一帧之前进行质量检查时。
技能链接
https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-sprite-forge/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的游戏角色制作一张像素精灵图,并将其切割成对齐的动画帧。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体从你的图像工具获取网格式精灵图,记录美术方向,并运行一个辅助程序来对齐各帧。它会检查每一帧,如果质量不佳,会请你提供新的图像。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Sprite Forge
This is an OMH sprite-forge workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
Why This Exists
Image models return character poses at drifting scales and offsets, so frames cut by hand jitter in play. This skill couples a grid-sheet contract to a fail-closed processor whose numeric QC decides whether to regenerate the source.
First Steps
- Read
toolkit/README.mdandreferences/execution-and-qa.mdbefore executingtoolkit/scripts/forge.py; installation and skill discovery never run it. - Obtain the raw sheet from the host's own image tool as a grid on flat #FF00FF; OMH generates no images, and a 1xN strip is regenerated as a grid, never processed.
- Record identity elements, rejected drafts, cell size and baseline in
references/character-art-direction.mdform before cutting frames.
Do Not Use When
- Create a product showcase video for a launch, with narration and subtitles; use
omh-show-reel. - The task is judging already-rendered UI screenshots or layout captures; use
omh-visual-qa. - The output is an image card or visual prompt card summarizing source material; use
omh-image-cards.
Examples
Good example:
- Prompt: Make a pixel sprite sheet for my game character.
- Expected behavior: Get a 2x3 #FF00FF grid from the host image tool, record art direction, run the helper, then read back frames and qc.json and regenerate on a REGENERATE verdict.
- Why: Animation frames need measured scale and baseline consistency, not a single illustration.
Bad example:
- Prompt: Tighten the CSS pixel spacing on this sheet of settings cards.
- Expected behavior: Answer as a front-end styling question; do not run a sprite processor.
- Why: Pixel and sheet vocabulary alone does not establish game-character frames.
Completion Checklist
- The source sheet is a host-generated grid on #FF00FF with a source record; real-person sources carry consent.
- The actual helper command and exit were observed; frames, sheet and qc.json were read back and hashed, or the blocker is stated.
- body_scale_cv and anchor_y_std are quoted from qc.json; a REGENERATE verdict led to a new sheet, not frame edits.
Recovery Notes
- If the sheet is a 1xN strip or packs a wide effect, ask the host image tool for a grid and a separate effect sheet; do not slice it by hand.
- If Pillow is missing, return the refusal and an explicit optional-environment setup recipe; never synthesize frames.
- If QC returns REGENERATE, regenerate the source with tighter pose and scale instructions and rerun into a new output directory.
When to Use
Use when a game character needs animation frames cut from an image-model grid sheet, with measured scale and baseline QC rather than hand-edited frames.
Strong routing signals: `sprite-forge`, `sprite sheet`, `pixel sprite`, `pixel art character`, `game sprite frames`, `2d sprite animation`, `도트 캐릭터`, `스프라이트 시트`, `도트 스프라이트`
Catalog Metadata
Category: analysis
Phase: sprite-production
Quality tier: execution-evidence-gated
Reasoning demand: heavy
Quality bar:
- Require a grid sheet on flat #FF00FF with exact cell division; strips and packed wide effects are regenerated, not cropped.
- Record the real interpreter, Pillow version, command, exit and output hashes; QC numbers come from qc.json, not from inspection by eye.
- Gate on body_scale_cv <= 0.08 and anchor_y_std <= 0.05, and keep technical PASS distinct from art-direction approval.
Required inputs:
- grid sheet from the host image tool on flat #FF00FF
- declared rows x cols, cell size and feet baseline
- new output directory and execution budget
Expert clarification questions:
grid sheet from the host image tool on flat #FF00FF- English: Which host image tool produces the sheet, which grid (2x2, 2x3, ...) holds which pose, and is the background flat #FF00FF?
- Korean: Which host image tool produces the sheet, which grid (2x2, 2x3, ...) holds which pose, and is the background flat #FF00FF?
Expected outputs:
- aligned equal-size frames and sheet
- sprite_forge_qc/v1 receipt
- character art-direction record
Artifact expectations:
- Actual
frame_000.png... equal-size RGBA frames with feet on one sharedbaseline_y, plus the re-composited alignedsheet.png. - Authored
sprite_forge_qc/v1inqc.json: frame count, grid, cell/frame size, per-frame bbox, body_scale_cv, anchor_y_std, thresholds, verdict, hashes and argv. - A character art
常见问题
它会自己创建角色图像吗?
不会。你需要从图像工具获得精灵图,然后由该技能进行处理。
它能制作视频或横幅的动画吗?
不能。它用于 2D 精灵动画帧,而不是一般的视频或横幅工作。
辅助程序什么时候运行?
辅助程序只在该技能描述的步骤中运行,而不是在安装时运行。
详情
作者的原始描述
[omh] Character art to animate in a game: turn image-model sprite sheets into aligned, QC-gated frames with a fail-closed Pillow helper. Use when the user says: sprite-forge, sprite sheet, pixel sprite, pixel art character, game sprite frames, 2d sprite animation, 도트 캐릭터, 스프라이트 시트.
repo: rlaope/oh-my-hermes
热度
- GitHub 星标
- 5.1k
- 排名
- #15169
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
omh-accessibility-audit
5.1k帮你的智能体检查某个界面或流程是否存在无障碍问题,例如键盘使用、屏幕阅读器标签、对比度和触控目标大小。
omh-adversarial-consensus
5.1k在你做出决定之前,帮你的智能体从几个独立角度质疑一个技术方案,然后总结哪些观点经得起推敲。
omh-agent-debug
5.1k帮你的智能体找出另一个 AI 智能体为何卡住、陷入循环或偏离任务,并提出最小且安全的恢复方法。
omh-agent-instructions
5.1k帮你的智能体编写或更新指令文件,例如 AGENTS.md 或 CLAUDE.md,告诉 AI 工具如何在项目中工作。