/layer:layer-pixel-artfrom Layer
Generates pixel art sprites, tiles, and walk-cycle frames with Layer, then packs or splits sprite sheets. Fixes blurry, anti-aliased, or wrong-grid output.
Ships in Layer. 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.
Pixel art is the generation task most likely to come back subtly wrong: a picture of pixel art, soft-edged and anti-aliased at an arbitrary grid, rather than pixel art. Getting it right is mostly about excluding the defaults.
Layer ships two deterministic sprite-sheet utilities alongside generation. pack_sprite_sheet
assembles separate frame images into one uniform-cell sheet on a transparent background, and
split_sprite_sheet cuts a sheet into its cells in reading order. These are named directly rather
than discovered because they are first-party tools rather than models, with no competing
alternative in the catalogue.
Generation mechanics are in the layer skill. If a sibling skill named here is missing from your
available skills, ask the user to install it (npx skills add layerai/skills --skill <name>);
unattended, proceed from tool schemas and flag the gap.
Both, every time, as numbers.
The defects are predictable, so name them as exclusions: no anti-aliasing, no blur, no gradients, no
soft shadows, hard-edged pixels only, one pixel per cell. Where the model declares negative_prompt,
put them there instead. Also state the background: "isolated on transparent background" or "flat
single-colour background", since a generated backdrop has to be cut out and pixel art does not
survive a sloppy cut.
Do not ask one generation for a sheet of frames. Models produce a grid of loosely related drawings, and the character changes between cells, which is exactly what a sheet must not do.
The working sequence:
reference_image,
and describe only what changed: "same character, same palette, same 32x32 grid, left leg forward
mid-stride, right arm back."pack_sprite_sheet to assemble them into a uniform-cell sheet. Its input schema is the
authority on the argument shape, so read it rather than assuming the parameter name.Give every frame one delivery canvas: output_fit with canvas: "FIXED", the sprite's width and
height, and anchor: "BOTTOM_CENTER", so each sprite stands on the same point of a same-sized
canvas and the set shares one sprite size. pack_sprite_sheet only centres frames; it does not align
ground lines, so a frame delivered without a shared canvas bobs when the sheet plays.
Every frame after the first references frame one, not the frame before it. Chaining each frame off the last one compounds drift, so by frame four the knight is a different knight.
When a trained pixel style is in play, attach it as reference_sets and omit base_model_id
entirely, so the server picks a model that can apply it. Use the same set, the same weight, and the
same reference frame on every frame of the cycle.
A four-frame cycle (contact, down, passing, up) reads as motion and is far more reliable than eight. Start there and add frames only if the motion needs them.
Going the other way, split_sprite_sheet cuts a user's existing sheet into individual frames, which
is the way to edit one frame of a sheet without touching the others. Leave trim_transparent off for
animation frames: a cycle stays registered only while every frame keeps its full cell.
High-resolution, non-pixel animation (painted or vector characters, directional cycles, Spine parts)
is layer-sprite-animation.
A pixel tile that repeats seamlessly is a tiling problem before it is a pixel problem: set
tileability: true with tile_texture: "PIXEL", which joins the edges at no cost and snaps the
result to its own grid and palette. Read layer-textures for scale and visible repetition, and
layer-tilesets for isometric or hex tiles that snap to a map grid. Everything on this page about
grid, palette, and hard edges still applies.
"A 32x32 walk cycle for our knight sprite."
list_base_models with filter.use_case: "text_to_image", take the
first result, then prompt: "32x32 pixel art sprite of an armoured knight, side view, contact pose
with left foot forward, limited 16-colour palette, 16-bit era shading, hard-edged pixels, no
anti-aliasing, no blur, no gradients, isolated on transparent background."reference_image
and naming only the pose change. Every run, the first included, carries the same output_fit
(FIXED, 32x32, BOTTOM_CENTER).pack_sprite_sheet with the four file_id values, which returns the sheet on a transparent
background.pack_sprite_sheet produces uniform cells deterministically.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pixel-art, sprite-sheet, walk-cycle, game-assets, image-generation
npx claudepluginhub layerai/skills --plugin layer32 skills in this plugin
/layerUse when generating or editing game and entertainment assets on Layer through MCP: images, video, 3D meshes, audio, sprites, textures, or marketing creative. Also when choosing a Layer base model, pricing a run in Creative Units before spending them, uploading reference files, polling a generation, applying a trained style, or recovering from MODEL_NOT_FOUND, INSUFFICIENT_BALANCE, RATE_LIMITED, or a silently degraded reference set./layer-3dUse when producing 3D assets with Layer: generating a mesh from text or an image, retopologising or remeshing, retexturing an existing mesh, rigging a character, or animating a rigged mesh. Also when choosing between quad and triangle output, setting a polygon budget, or asking for PBR textures for a game engine. Keywords: 3D, mesh, model, text to 3D, image to 3D, remesh, retopology, retexture, rig, skeleton, animate, PBR, quad mesh, poly count, glTF, FBX./layer-art-directionUse when a Layer brief needs a direction before generating at volume: exploring a look with a moodboard, choosing between visual directions, storyboarding an ad, trailer or cutscene, pinning a colour palette, naming a style or era precisely, or framing a scene. Also when a brief is vague or generations keep missing an unstated intent. Keywords: art direction, moodboard, style exploration, storyboard, panels, beats, palette, composition, framing, era, reference./layer-audioUse when generating audio with Layer: sound effects for a game or trailer, music and background tracks, or speech and voice-over from text. Also when a sound effect comes back with unwanted ambience or reverb, when a music prompt needs structure or length control, or when choosing a voice and delivery for narration. Keywords: SFX, sound effect, foley, UI sound, music, soundtrack, loop, text to speech, TTS, voice over, narration./layer-environmentsUse when producing game environments with Layer: background and environment concept art, a side-scroller parallax background split into scrolling layers, a 360 skybox or panorama, or a generated world. Also when parallax layers do not line up or loop, when a background is too busy to read gameplay against, or when exporting layers to Godot or Unity. Keywords: environment, background, parallax, layers, side-scroller, platformer, skybox, 360, equirectangular, panorama, world./layer-game-assetsUse when producing in-game characters and props with Layer: heroes, NPCs, enemies, bosses, mascots, creatures, items and props. Also when a cast must stay on-model across many images, when a set of sprites must share one canvas size and ground line, or when a character must be split into parts for a skeletal rig. Keywords: character art, NPC, enemy, mascot, cast, on-model, consistency, prop, item, sprite set, Spine, rigging.Other plugins' skills for the same job