tea-x-random/unity-game-skills/unity-pixel-art

Claude Code and agent skill by tea-x-random/unity-game-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate production-ready PIXEL-NATIVE 2D game sprites, sprite sheets, tilesets, icons, rotations, and animation frames for Unity using PixelLab for final art, with Gemini only for exploratory concepts/style boards. Use when the requested game art is pixel art, low-res sprite art, tilemaps, top-down/side-view 2D sprites, directional character sheets, animation strips, or any final 2D pixel asset. Enforces golden-anchor-first production at the GAME level (bitforge conditioning on approved goldens), a master-palette color_image lock on every call, art-spec-driven generation, tile-derived canvas sizes, transparent backgrounds, Unity point-filter import, pixel-perfect camera compatibility, alpha/palette/sheet QA plus a deterministic frame-vs-anchor diff gate, and explicitly forbids Tripo/3D-render downscaling as the source of pixel art.

Install

npx vskill@latest install tea-x-random/unity-game-skills/unity-pixel-art

SKILL.md

The same SKILL.md was published earlier as tea-x-random/unity-game-skills/unity-pixel-art.

Unity Pixel Art

Create pixel-native game assets for Unity. Use Gemini for exploration only; use PixelLab for final pixels.

Routing rule

  • Gemini → exploration: mood boards, rough silhouettes, palette exploration, UI/style-guide thumbnails, non-final reference sheets.
  • PixelLab → final pixel art: characters, props, tilesets, icons, directional sheets, animation frames, variants, and recolors.
  • Do not make pixel art by rendering Tripo/3D and downscaling it. 3D pre-render is acceptable for high-res/painterly 2D, but pixel art must be authored/generatively produced at the target pixel canvas so silhouettes, clusters, outlines, and palette choices are deliberate.

If another skill routes a pixel-art asset to unity-image-generator or unity-3d-generator, override it here: Gemini may provide concept references; PixelLab produces the approved source sprites.

Required references

Read only the branch you need:

  • references/pixellab-api.md — PixelLab models, script usage, endpoint/SDK notes.
  • references/pixel-import.md — Unity import settings, slicing, and pixel-perfect camera snippets.

Anchor-first production workflow

Golden-anchor-first at the GAME level (hard rules):

  • Only the game golden (art-spec conditioning.golden_assets.game) — or an explicitly approved golden reroll — may be generated text-only with pixflux. Every subsequent character/prop SUBJECT MUST be `bitforge` conditioned on the appropriate golden anchor via `--init-image`.
  • Conditioning channel (verified live 2026-07-01): bitforge's style_image/--style-strength produces structured noise at every strength on the live API — do not use it. The working channel is `--init-image` + `--init-image-strength` (1–999): the golden is a structural/style init and the description re-subjects it. Calibration: cross-subject derivation ~75–150 (110 is the script's autofill default; 175+ bleeds the anchor's identity — helmet/outfit/colors leaking into the new subject); same-asset variants/recolors 250–400. QA every cross-subject result for anchor-subject bleed.
  • Family model (aligns with unity-art-direction): the game golden seeds each family golden (conditioning.golden_assets.<family>); family members condition on their family golden. Pass --family <name> and the script auto-fills --init-image from the spec (bitforge only; the reference is auto crop/padded — never resampled — to the target canvas, which the API requires to match).
  • Canvas class per subject: craft.char_tiles is the STANDARD character footprint; short subjects (grunts, critters) use their own smaller footprint (e.g. 1×1 tile) — a short subject forced onto a tall canvas comes back as stacked duplicates.
  • Field assets (tiles/textures) do not init on a subject golden — a character init forces object-ness onto what should be a flat field. Tiles/textures: palette lock + prompt tokens carry coherence, --outline lineless --shading "flat shading", description says "edge-to-edge full bleed, no border, no outline, no frame, no objects". The FIRST approved tile becomes the terrain family golden; later tiles may init on IT (same asset class) at moderate strength. Best-of-N and keep the best tile.edge_wrap score — seams vary strongly between rolls.
  • Large-canvas escape hatch: for approved 128+ boss/set-piece canvases, pixflux with the master palette + locked outline/shading enums + the frozen identity_string, then vision-QA the result against the game golden.
  1. Resolve the art contract. Every production call runs under art-spec.yaml — the script resolves it (--art-spec, $UNITY_ART_SPEC, or probed Assets/*/Art/_ArtDirection/art-spec.yaml + legacy roots) and auto-fills the master palette, golden anchor, outline enum, tile-derived canvas (--canvas tile|character), and PPU provenance. Production calls without a resolvable spec FAIL; spec-less exploration requires an explicit --no-art-spec.
  2. Explore cheaply with Gemini if needed. Generate concept boards or silhouette sheets only. Do not approve Gemini pixels as final pixel-art assets.
  3. Generate the anchor sprite in PixelLab. Game golden → pixflux; everything else → bitforge on its golden (rules above). Use a tile-derived native canvas, transparent/no-background output, and the master palette as color_image. This anchor becomes the only source of truth for the asset.
  4. QA the anchor before variants. Run alpha/padding/palette/silhouette checks with unity-image-generator/scripts/validate_sprite.py. For goldens and canon sprites a VISION check is MANDATORY, not optional — the deterministic gates cannot see subject errors: a duplicated/stacked subject (a tall canvas often comes back as a big+small character or stacked duplicates) passes every alpha/palette check. Verify single subject, full body visible, correct subject, no anchor-subject bleed — via critique_image.py or direct image inspection, BEFORE approving. Prompt-side prevention: phrase goldens as "exactly one <subject>, full body, head to feet visible, single character only, no duplicates" and pass --coverage-percentage 80 on character canvases. Recurring characters — register the pixel canon now: the pixel-track canon sheet is the approved anchor plus its rotate-derived directional views composited into one PNG at Assets/<Game>/Art/_ArtDirection/sheets/<char_id>_canon.png (a 3-line PIL paste of the anchor + rotations side by side; for a single-view game the approved anchor alone, copied to the canon path, is the blessed canon). Never use a Gemini turnaround as pixel canon. Register characters.<id>.{canon_sheet,anchor_sprite,identity_string} in the art-spec before generating any derived asset.
  5. Derive frames/rotations/variants from the anchor. Keep one base sprite driving directions, walk/idle/attack strips, damage states, and palette variants:
  • Directions → rotate (set --from-direction/--to-direction).
  • Animation → the skeleton workflow (estimate-skeleton → author per-frame poses → animate-skeleton). This is structurally consistent across frames. animate-text is the drift-prone fallback; never author each frame independently.
  • Recolors / damage states / edits → BitForge conditioned on the anchor (--init-image with --init-image-strength 250–400), or inpaint for local fixes.
  • Derived frames/rotations use the anchor's extracted sub-palette (a subset of the master — never the full game palette, which permits cross-asset color borrowing; never new colors). Emit the swatch from the approved anchor (compare_frames_to_anchor.py --anchor <anchor.png> --emit-subpalette <id>_subpalette.png) and pass it via --color-image; omitting --color-image falls back to the full master palette, which this rule forbids for derived frames.
  1. Gate frames with `scripts/compare_frames_to_anchor.py` (palette-membership + baseline/bbox + loose silhouette-IoU vs the anchor) before slicing. Manual eyeballing does not replace it.
  2. Repack sheets with padding/extrusion. Use extrude_atlas.py before Unity slicing so point filtering and atlas packing do not bleed neighboring cells.
  3. Import with pixel settings. Point filter, no compression, no mipmaps, PPU from art-spec craft.pixels_per_unit, multiple-sprite slicing for sheets, SpriteAtlas family grouping, and Pixel Perfect Camera settings.
  4. Promote only approved assets. The final artifact must include the sprite PNG/sheet, QA reports, manifest, Unity import contract, prefab, and BeautyCell screenshot before it enters the approved registry.

Canvas and style rules

  • Derive canvases from the spec's tiles (craft.tile_size × craft.char_tiles), never ad hoc; sanity-band by readability: icons 16–32, pickups/props 32–64, characters 32–128, bosses/large set pieces 128+ only when the camera supports it.
  • Generate at the final pixel canvas, not a high-res illustration to shrink later.
  • State the exact view using a real CameraView enum: side, low top-down, or high top-down (there is no plain top-down/3/4/isometric view — isometric is the --isometric flag). Pick direction from the 8-way compass set (south, south-east, east, …). State pivot/baseline.
  • Any PixelLab call without the palette lock is invalid. Every call carries a color_image: the game's master-palette.png for anchors/goldens, the anchor's extracted sub-palette for derived frames/rotations. --palette hex lists are for exploration only.
  • Keep animation frame counts small and game-readable: idle 4–6, walk/run 6–8, attack 6–10, hit 2–4, death 6–10.
  • Prefer one row per clip (idle, walk, attack) or a documented grid (rows=clips, cols=frames) with a sidecar manifest.

PixelLab helper script

Use the bundled script for final generation. It resolves keys as --api-key → PIXEL_LABS_API_KEY, and the art-spec as --art-spec → $UNITY_ART_SPEC → probed project paths. With a resolved spec it auto-attaches the master palette (conditioning.master_palette_png → color_image), the golden anchor (conditioning.golden_assets.<--family|game> → --init-image, bitforge only, default strength 110), the outline enum, and the per-game default view/shading enums (craft.view / craft.shading → --view/--shading; explicit CLI flags win); production calls without a spec (or without a palette lock) fail. Exploration only: add --no-art-spec.

Game golden — the ONLY text-only roll (everything after conditions on a golden):

bash
python3 $UNITY_GAME_SKILLS_HOME/unity-pixel-art/scripts/generate_pixel_art.py pixflux \
--description "pixel art knight hero, side view, single color black outline, transparent background" \
--canvas character --no-background --view side --direction east \
--output "Assets/<Game>/Art/Source/SourceImages/hero_knight_golden.png" \
--manifest "Assets/<Game>/Art/Source/SourceImages/hero_knight_golden.pixellab.json"

Every subsequent subject — bitforge init-conditioned on its golden. `--init-image-strength` is a 1–999 scale. NEW subjects from a golden ~75–150 (autofill default 110; higher bleeds the anchor's identity into the new subject); same-asset variants/recolors 250–400. (--style-image/--style-strength are traps on the live API — noise at every strength.)

bash
# new family member: --family picks conditioning.golden_assets.<family> as --init-image
# (short subject -> its own footprint, not the standard char canvas)
python3 $UNITY_GAME_SKILLS_HOME/unity-pixel-art/scripts/generate_pixel_art.py bitforge \
--description "pixel art goblin grunt, single small goblin, same game style, side view, transparent background" \
--width 32 --height 32 --family enemies \
--no-background --view side --direction east \
--output "Assets/<Game>/Art/Source/SourceImages/goblin_grunt.png" \
--manifest "Assets/<Game>/Art/Source/SourceImages/goblin_grunt.pixellab.json"
# same-asset variant: condition on the asset's own anchor, sub-palette lock
python3 $UNITY_GAME_SKILLS_HOME/unity-pixel-art/scripts/generate_pixel_art.py bitforge \
--description "same coin, cracked damaged variant, same palette, same silhouette center" \
--width 32 --height 32 \
--init-image "Assets/<Game>/Art/Approved/coin/coin.png" --init-image-strength 320 \
--color-image "Assets/<Game>/Art/Approved/coin/coin_subpalette.png" \
--no-background \
--output "Assets/<Game>/Art/Source/SourceImages/coin_damaged.png"

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
3
7-day trend score
7

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tea-x-random/unity-game-skills/unity-pixel-art/badge)](https://verified-skill.com/skills/tea-x-random/unity-game-skills/unity-pixel-art)

Something wrong with this skill or its page? Tell us.