用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/asashiki/oblivion-haven --skill grok-galgame-sprites命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Generate consistency-locked Galgame full-body character sprites plus WebGAL-ready mouth-sync and blink differentials through guarded chroma cutout, three distinct closed-mouth runtime-normal poses, sparse expressive mothers, and pixel-forced eye/mouth frames and replacement parts. Use for transparent Galgame standing sprites, pose or expression 差分立绘, WebGAL image-sprite lip sync, blinking, transparent-edge cleanup, age/proportion-faithful conversion, or a browser runtime that composes eye/mouth parts without GIFs.
Generate consistency-locked Galgame full-body character sprites plus WebGAL-ready mouth-sync and blink differentials through guarded chroma cutout, three distinct closed-mouth runtime-normal poses, sparse expressive mothers, and pixel-forced eye/mouth frames and replacement parts. Use for transparent Galgame standing sprites, pose or expression 差分立绘, WebGAL image-sprite lip sync, blinking, transparent-edge cleanup, age/proportion-faithful conversion, or a browser runtime that composes eye/mouth parts without GIFs.
基于 SOC 职业分类
正在显示 SKILL.md
| name | grok-galgame-sprites |
| description | Generate consistency-locked Galgame full-body standing sprites with solid |
Grok-side workflow for transparent Galgame standing sprites. Built from the real pipeline used on maid_princess and similar runs.
This is not the Codex generate-galgame-sprite-diffs skill. That skill targets WebGAL eye/mouth forced composites and browser lip-sync. This skill does not produce runtime blink or mouth-sync parts. It stops at approved transparent full-body mothers (reference, poses, expressions).
reference_normal — identity lock, full-body, closed mouth, open eyeseyes_close / eyes_half / mouth_half_open / mouth_open runtime framesoutside_mask_changed_pixels pipeline)If the user later asks for blink/mouth differential, say clearly that Grok Imagine full-body regenerations drift enough that local eye/mouth paste is unreliable, and keep those requests out of this skill’s default path.
#FF00FF. No gradients. No auto key picker. User preference is fixed magenta so cutout is deterministic.edit_image (preferred for identity-preserving pose and expression edits) or generate_image when no source exists yet.scripts/sprite_tools.py in this skill directory.Resolve SKILL_DIR to this SKILL.md folder.
python "$SKILL_DIR/scripts/sprite_tools.py" cutout \
<chroma-source> <out-transparent.png> \
--key-color '#FF00FF' --scope all \
--soft-matte --despill --auto-refine \
--auto-refine-max-alpha-loss 0.025
python "$SKILL_DIR/scripts/sprite_tools.py" normalize \
<transparent.png> <final-1024x1536.png> \
--canvas 1024x1536 --margin-percent 6
python "$SKILL_DIR/scripts/sprite_tools.py" validate \
<final.png> --expect-size 1024x1536 --key-color '#FF00FF'
python "$SKILL_DIR/scripts/sprite_tools.py" rekey \
<transparent.png> <chroma-out.png> --key-color '#FF00FF'
If residual magenta fringe remains on fine hair or lace after a normal cutout, run a stronger pass (higher opaque distance / extra despill) and compare alpha area loss. Keep the stronger result only when fringe is gone and silhouette is not eaten.
Always sample the actual border of a generated chroma image. Grok Imagine sometimes returns a near-magenta that is not exact #FF00FF; pass the sampled color into cutout when needed.
BASE_PENDING → BASE_REVIEW
POSES_PENDING → POSES_REVIEW
EXPRESSIONS_PENDING → EXPRESSIONS_REVIEW
COMPLETE (export transparent pack)
reference_normal)If the user supplies a front character sheet:
edit_image to replace only the background with pure solid #FF00FF. Do not redesign the character.If there is no image, generate one full-body front stance on pure #FF00FF with a tight identity prompt, then the same cutout path.
Reject age-up, leg stretch, costume rewrite, or face drift.
Default lean set (override only when the user asks):
| id | intent |
|---|---|
idle | relaxed asymmetrical conversational stance |
side | clear three-quarter lean (~25–35° body), face still readable, eyes to viewer |
reserved | inward, hands gathered, narrower stance |
Optional extras used successfully in production: note (holding a small paper and reading), welcome (open greeting hands), guide (side-lean with one hand raised as if presenting).
Rules:
edit_image. Never chain pose → pose.POSES_REVIEW.Prompt pattern (keep identity locked):
Precise full-body edit. Same character identity, age, proportions, costume, colors, pure solid #FF00FF background.
Change ONLY the pose to: <pose description>.
Eyes open, mouth fully closed. No other redesign.
Map expressions to an approved pose (example defaults):
| expression | from pose | notes |
|---|---|---|
| laugh | side | may keep closed eyes as part of the expression |
| thinking | side | may keep closed eyes |
| angry | idle | |
| sad | reserved | |
| surprised | side | |
| shy | reserved |
Rules:
EXPRESSIONS_REVIEW.Prompt pattern:
Precise face-only edit. Same body, pose, hands, costume, pure solid #FF00FF background.
Change ONLY the facial expression to: <emotion>.
Do not move the body or redesign clothing.
At COMPLETE, assemble a download folder:
<slug>_sprites/
chroma/ # optional #FF00FF sources
cutout/ # final transparent 1024×1536 PNGs
previews/ # contact sheets
README.md
inventory.json
README should list every sprite, key color, canvas size, and state that runtime blink/mouth is out of scope for this pack.
Before approving any mother:
If fringe remains, run the stronger cutout variant and show a before/after edge zoom. Keep stronger only when it clearly helps.
#FF00FF first with edit_image, then cut out.edit_image calls for a pose group or expression group when the tool allows, then cut out sequentially.| topic | Codex generate-galgame-sprite-diffs | This skill |
|---|---|---|
| generator | Codex / GPT image path | Grok Imagine 2.0 (edit_image / generate_image) |
| key color | auto choose + preferred | fixed #FF00FF |
| poses + expressions | yes | yes |
| WebGAL eye/mouth runtime | yes (forced local composite) | no |
| blink / lip-sync parts | yes | no |
| deliverable focus | figures + parts + runtime compositor | transparent mothers + contact sheets |
Keep both skills in the repo. Route users who only need standing sprites and expressions to this one. Route WebGAL mouth-sync / blink packaging to the Codex skill when that environment is available.