Agent SkillsJohnKinyanjui/sprite-maker › sprite-director

sprite-director

GitHub

Sprite Director用于生成和动画化像素艺术游戏资产。它根据角色、生物、特效等类型路由请求,利用ImageGen创建主图,并通过确定性渲染器或骨骼系统生成PNG文件,确保符合风格预设和游戏-ready标准。

src-tauri/resources/skills/sprite-director/SKILL.md JohnKinyanjui/sprite-maker

Trigger Scenarios

用户要求制作、绘制、生成、修改或动画化像素风格的精灵、角色、道具、地形、效果或图标 需要为游戏资产指定画布大小、帧数、调色板、类别或FPS但未明确说明时

Install

npx skills add JohnKinyanjui/sprite-maker --skill sprite-director -g -y
More Options

Non-standard path

npx skills add https://github.com/JohnKinyanjui/sprite-maker/tree/main/src-tauri/resources/skills/sprite-director -g -y

Use without installing

npx skills use JohnKinyanjui/sprite-maker@sprite-director

指定 Agent (Claude Code)

npx skills add JohnKinyanjui/sprite-maker --skill sprite-director -a claude-code -g -y

安装 repo 全部 skill

npx skills add JohnKinyanjui/sprite-maker --all -g -y

预览 repo 内 skill

npx skills add JohnKinyanjui/sprite-maker --list

SKILL.md

Frontmatter
{
    "name": "sprite-director",
    "description": "Infer, create, animate, and validate original pixel-art sprites for Sprite Studio. Use for brief prompts that ask to make, draw, generate, revise, or animate characters, props, terrain, effects, icons, tiles, or style-inspired game assets, especially when canvas size, frame count, palette, category, or FPS are not specified."
}

Sprite Director router

Turn the user's intent into real, game-ready PNG files. The Rust harness routes the request by asset kind. Do not stop at a description or plan when creation is requested.

Direct the asset

  1. Preserve every explicit user constraint.
  2. Infer only missing production details from references/style-presets.md.
  3. Translate named-game inspiration into broad visual traits and create an original design. Never reproduce a specific protected character, costume, logo, or exact sprite.
  4. Prefer a transparent background, a compact palette, one-pixel-readable clusters, a clear silhouette, and consistent light direction.
  5. Use the harness brief supplied above the request as the default. Override it only when the user's explicit words conflict.

Route

  • character: follow references/character-harness.md. ImageGen creates only a new master; animation uses the deterministic rig renderer.
  • creature: follow references/creature-harness.md. Lock one ImageGen master, then animate anatomical segments with the deterministic rig renderer.
  • effect: follow references/effect-harness.md. ImageGen creates one high-quality VFX master/keyframe; deterministic raster motion creates the final frames.
  • animated prop or other game object: follow the deterministic game-object rig harness.
  • a /rig request or an explicit ask for joint points, capsule bones, or pose keyframes: follow references/native-rig-engine.md. Return one rig-suggestion JSON block; the app's Rust engine renders the frames.
  • full terrain tileset: follow references/terrain-tileset-harness.md and return one atlas PNG, never one file per tile.
  • static prop and individual terrain objects such as trees or rocks: use the deterministic renderer workflow below.

The routed harness name appears above the request. Do not substitute another harness.

Deterministic renderer for non-character jobs

Write one JSON spec under .sprite-studio/, then run:

python3 .sprite-studio/sprite_tool.py .sprite-studio/<spec>.json

The spec supports name, category, size, fps, palette, and frames. A frame supports pixels or commands:

  • pixel: x, y, color
  • rect: x, y, w, h, color
  • line: x1, y1, x2, y2, thickness, color
  • ellipse: x, y, w, h, color
  • polygon: points, color

Use terrain, props, or effects as the category. Character jobs must use the character harness and ImageGen instead.

Deterministic layered rig renderer

For any raster master that needs animation, write a rig JSON and run:

python3 .sprite-studio/sprite_rig.py --validate .sprite-studio/rigs/<rig>.json
python3 .sprite-studio/sprite_rig.py .sprite-studio/rigs/<rig>.json

The AI proposes the parts, masks, physical pivots, z order, and motion table. The validation pass checks that proposal and locks the master hash. Only then does the deterministic renderer apply nearest-neighbour translations, rotations, and scales. It supports characters and game objects. ImageGen must never invent animation timing, poses, or pose sheets. When the user explicitly selects AI Polish or Full redraw, follow references/ai-frame-polish-contract.md: edit only completed rough rig frames and pass every result through sprite_polish.py before acceptance.

Validate

Follow references/quality-gates.md. Verify every reported PNG exists and report the asset name, logical dimensions, frames, FPS, and category concisely. Do not expose internal spec paths unless troubleshooting.

Version History

  • 336c711 Current 2026-08-27 09:01

Metadata

Files
0
Version
336c711
Hash
3df399a9
Indexed
2026-08-27 09:01

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-28 03:00
浙ICP备14020137号-1 $Carte des visiteurs$