Skip to main content
skill CX Codex

layer-game-assets · layerai, layer — Claude Code skill: what it does, how to install

layer-game-assets — a skill for Claude Code and Cursor generates in-game characters, NPCs, and props through Layer while keeping consistent styles and canvas sizes. Runs when producing game assets that must share a visual style.

MIT 5,000 installs ★ 10 updated 2026-09-30

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add layerai/skills --skill layer-game-assets -a claude-code
Open on GitHub

What layer-game-assets does

The skill handles generation of characters, NPCs, bosses, enemies, and props via Layer. To maintain character consistency across multiple images, it attaches approved reference images or applies trained reference sets.

The tool aligns sprites to a single canvas size and ground line, and splits character parts for skeletal rigging in Spine. Silhouette and role must be specified before visual details to avoid design drift.

Transparent backgrounds require requesting a flat solid color and setting remove_background: true.

What it helps with

  • generate characters keeping a consistent design
  • align sprites to a fixed canvas size and ground line
  • split characters into layers for skeletal rigging
  • produce NPCs and enemies with consistent styles

Example prompts for the agent

  • Generate three shopkeeper NPCs matching our approved hero
  • Prepare character parts for Spine skeletal rigging
  • Create game props with transparent backgrounds and fixed canvas sizes

How to install layer-game-assets

1Skills CLI (Vercel)

npx skills add layerai/skills --skill layer-game-assets -a claude-code

2Manually: put the files in place

~/.claude/skills/layer-game-assets/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/layer-game-assets/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about layer-game-assets

How to install layer-game-assets in Claude Code?

Run npx skills add layerai/skills --skill layer-game-assets -a claude-code followed by checking ~/.claude/skills/layer-game-assets/SKILL.md.

What does layer-game-assets do?

It structures prompts and generation workflows for Layer to produce consistent in-game characters, props, and sprite sets.

What is needed to use layer-game-assets?

You need an active connection to Layer and the skill installed in your development environment.

Source text

SKILL.md · MIT
---
name: layer-game-assets
description: "Use 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."
license: MIT
---

# Layer Game Assets

## Overview

Game art differs from illustration in one way that governs everything: it has to sit in a system. A
character shares a cast, a prop shares a set. A beautiful asset that does not match its neighbours is
a defect.

Generation mechanics are in the `layer` skill and prompt craft is in `layer-image`. This skill covers
characters, casts, props, and rig-ready parts. Backgrounds and parallax are in `layer-environments`,
buttons, panels and icons in `layer-game-ui`, isometric and hex tiles in `layer-tilesets`, pixel art
in `layer-pixel-art`, and tiling surfaces in `layer-textures`.

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.

## Quick reference

| Need                              | How                                                                               |
| --------------------------------- | --------------------------------------------------------------------------------- |
| A cast that holds its design      | Approved anchor attached as `reference_image`, model filtered for `image_editing` |
| A cast that grows for months      | Train a reference set (`layer-reference-sets`)                                    |
| Isolated sprite or prop           | Prompt a flat solid background and set `remove_background: true`                  |
| A set sharing one size and ground | `output_fit: {canvas: "FIXED", width, height, anchor: "BOTTOM_CENTER"}`           |
| Another angle of an approved one  | `camera` on a `multi_angle` model (`layer-image-editing`)                         |
| Parts for Spine                   | Neutral, limbs-apart pose, then `split_into_layers` (`layer-image-editing`)       |

## Characters and casts

A character prompt must name the **role** before the look. An enemy grunt, a shopkeeper, and a raid
boss are read differently by players, and silhouette carries that read before any detail does. State
silhouette explicitly: bulk, stance, and the one shape that identifies them at a glance.

Then pin the production terms a prompt cannot leave to chance: full body or portrait, view (front,
three-quarter, side), background treatment, and whether the pose is neutral for reference or dynamic
for key art.

A cast is the hard part. Writing the same adjectives twice does not produce the same character, and
seeds do not carry across prompts. Two things work:

1. **Anchor image.** Approve one hero image, then drive every sibling with it attached as
   `reference_image`, filtering for `image_editing`, which is the capability for art that must
   reproduce a provided subject. `style_reference` transfers a look only and will not keep the
   character, which is the usual reason an anchored cast still drifts.
2. **Trained style.** For a cast that will grow over weeks, train a reference set on approved art and
   apply it to every run. See `layer-reference-sets`.

The first is right for a handful of assets this week. The second is right for a live game.

## Props and sprite sets

Anything the engine composites needs a clean edge. A prompt asking for a transparent background is
not a transparency setting, and can come back as a painted checkerboard. Ask for a flat solid colour and set
`remove_background: true`, which chains Layer's background removal onto every output as its own
billed run (a model with native transparency returns its own alpha instead). Pass it to the estimate
too.

A set must also share a size. Set `output_fit` with `canvas: "FIXED"`, the delivery `width` and
`height`, and `anchor: "BOTTOM_CENTER"`, so every sprite stands on the same point of the same canvas
and the engine needs no per-asset offsets. Use `trim: true` instead when each asset should be cropped
to its own bounds.

Hold a prop set together by naming its shared grammar in every prompt: view angle, outline weight,
palette, material finish, and scale against a reference object ("a sword about as long as the hero
is tall").

## Rig-ready characters

A character destined for Spine or a skeletal rig needs its parts separable. Generate the character
in a neutral, limbs-apart pose so no part occludes another, on a flat background, then separate the
parts with `layer-image-editing` using `split_into_layers`.

Occlusion is the thing to get right up front: a crossed arm or a cloak covering the torso means the
hidden geometry does not exist in any layer, and no amount of splitting recovers it. Say
"arms clear of the body, legs apart, cape swept behind and clear of the torso" in the prompt.

## Worked example

"Three shopkeeper NPCs matching our approved hero, delivered as sprites at one size."

1. The approved hero already has a `file_id` from its original run.
2. `list_base_models` with `filter.use_case: "text_to_image"` and
   `filter.capabilities: {image_editing: true}` (an object of booleans, not a list of names). Take
   the first result.
3. One run per NPC. Each attaches the hero as `reference_image`, sets `remove_background: true` and
   `output_fit: {canvas: "FIXED", width: 1024, height: 1024, anchor: "BOTTOM_CENTER"}`, and puts role
   and silhouette first: "Village blacksmith shopkeeper NPC, broad and short, heavy leather apron,
   arms folded. Full body, three-quarter front view, neutral standing pose, same rendering, line
   weight and palette as the reference. Flat solid grey background."
4. The three runs differ only in prompt, so one `estimate_forge_price` times three prices the job.
   Above 20 CUs, show the total and wait for an explicit yes.
5. Execute, poll at `poll_interval_seconds`, and review the three side by side at in-game scale
   against the hero, not one at a time at full size.

## Common mistakes

- Rewriting the same description and expecting the same character.
- Using `style_reference` to hold a character; it carries the look, not the design.
- Prompting for a transparent background instead of a flat colour plus `remove_background`.
- Delivering a sprite set at mixed canvas sizes and ground lines.
- Generating a rig-ready character in a pose where limbs occlude the torso.
- Leaving background treatment unstated on an asset that will be composited.
- Judging a cast member alone instead of beside the anchor.

© layerai · MIT · layerai/skills

Similar skills

All skills for Game dev and 3D: Unity, Unreal, Godot, Blender →

layer-game-assets by other authors comes first.

layer-game-assets layerai layer-game-assets is a Claude Code skill that defines prompts for game art in Layer: Spine rig-ready characters, parallax backgrounds, and matching icon sets. CX Codex +1 5,000installs game-assets Meowa-AI game-assets builds game art and design docs for TypeScript/Three.js projects, from sprites and tilesets to music and voiced lines, through Meowa CLI commands. CX Codex +1 1,400installs create-game-assets gamedev-skills The create-game-assets skill for Claude Code plans, generates, and validates consistent game art. It runs when creating sprites, fixing transparency, or auditing assets. CX Codex +1 13,900installs fal-assets rehan-remade fal-assets generates sprites, tileable textures, 3D models, SFX, and music via fal. Built for modders and game developers who need ready-to-use visual and audio assets directly in their workspace. CX Codex +1 1,900installs build-rigged-game-assets MengTo build-rigged-game-assets — a skill that walks a rigged character or monster from source model to gameplay: skeleton, animation library, sockets, equipment, catalog card. CX Codex +1 1,500installs scenario-game-assets scenario-labs scenario-game-assets — a skill that walks the agent through game art generation over Scenario MCP: sprites, tilesets, icons, pixel art and transparent backgrounds. CX Codex +1 1,200installs scenario-side-view-game-kit scenario-labs scenario-side-view-game-kit generates 2D platformer pixel art, character sprite sheets, and layered level graphics with Scenario models and local scripts. CX Codex +1 691installs

From the same set33

The whole set →
layer-pixel-art layer-pixel-art — a skill for making pixel art with Layer: sprites, tiles, walk cycles, and packing frames into a sheet. Useful when output comes back blurry or off-grid. CX Codex +1 5,100installs layer-3d Walks your agent through the Layer 3D chain: generate a mesh, remesh it, retexture, rig and animate. Each stage is a separate run. CX Codex +1 5,000installs layer-game-assets layer-game-assets is a Claude Code skill that defines prompts for game art in Layer: Spine rig-ready characters, parallax backgrounds, and matching icon sets. CX Codex +1 5,000installs layer-image-editing layer-image-editing — a skill for editing images that already exist on Layer: inpainting, outpainting, reframing, angle changes and upscaling. CX Codex +1 5,000installs layer Generates and edits game assets via the Layer MCP server, including 3D meshes, sprites, audio, and video. It handles model discovery, file uploads, and Creative Unit cost checks. CX Codex +1 5,000installs layer-art-direction layer-art-direction establishes visual style, color palettes, and storyboards before volume asset generation. It prevents wasted Creative Units on blind prompt rerolls. CX Codex +1 5,000installs layer-quality layer-quality scores generated Layer files against a workspace's scoring rules and helps pick what to deliver. Useful before handing off a batch. CX Codex +1 4,900installs layer-workflows layer-workflows — a skill for running saved Layer Blueprint workflows: it finds a pipeline in the workspace, reads its input schema, estimates the price and tracks the steps. CX Codex +1 4,900installs

Project sponsors

Companies that keep this analytics open