/game:pixel-art-pipelinefrom Game Design and Build
Make palette-locked pixel art for a Godot game, from image-model source art or from a drawing script. Each asset gets an exact cell size and a fixed palette, and a check script proves size, palette, frame grid, outline and unchanged old atlas cells. The skill also covers the contrast gate against every real background, UI mockups drawn by script, low-poly models built from a parts table, and hitboxes measured from the art. Use it whenever someone wants new sprites, animation strips, tiles, icons, atlas cells, glyphs, a logo cutout, a silhouette or a UI mockup in a fixed palette. Also use it when someone asks why a sprite does not read, why the art has off-palette or soft pixels, why old atlas cells changed, why Godot shows a stale texture, or how to hand 3D props from an art unit to a code unit. Use it even if nobody says "pixel art pipeline".
Ships in Game Design and Build. 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.
Read when SKILL.md points to them; scripts run unread.
Agents that make pixel art fail in 2 ways. Raw image-model output has too many colours, soft edges and the wrong size. Art drawn in code from rings and blocks reads as programmer art and fails review. This method keeps the image model for the shapes and gives the pixel rules to a deterministic script: the script crops, resizes, keys out the background, snaps every pixel to the palette and adds the outline. A check script then proves the asset contract, and a human-scale look at native size proves that the art reads. The split works because each part does the job it is good at, and a script result is the same on every run.
Rules: game:art-direction writes the style sheet that the art is checked against; this skill makes the Godot assets that meet it.
visual-verification.The steps assume an image model for the source art. With no image model, draw the source in a script (see "Art drawn by script") and start at step 4.
git show <base>:<atlas path>. Tile a ground texture 3x3 and look for seams. Check: 0 failed checks. scripts/check_art.py does all of this except the seam look..import files that are not deliverables. A changed PNG needs an import, or Godot shows the stale texture.visual-verification. It stages the state, captures at native size and compares before and after. Add a test that each new kind draws its own cell and that 2 old kinds keep theirs.The checks of an art-only unit are palette, size, manifest and import. Leave the full test suite to the unit that lands the work. An art unit that runs the full suite in a sandbox can stop on failures that have nothing to do with the art.
Use this when a logo or a sprite needs a transparent background or a flat teaser silhouette.
Use this when no image model is in the loop, for a tiny cell, a glyph, a mockup or a logo concept. Script art is acceptable for small, geometric cells. For characters and props, prefer an image-model source, because review rejects finals drawn from simple shapes.
--preview option and a --write flag, so a dry run cannot overwrite the atlas.visual-verification. Run the palette check on its 1x image.If the real art comes from another unit, build the screen with flat placeholders first. A placeholder script makes 1 flat cell per manifest row at the right size. Merge the real art later and capture again.
A font import with antialiasing gives soft, off-palette text. In one case 1 line of text held 61 off-palette colours. Set antialiasing, hinting and subpixel positioning off in the font import settings. Prove the cause with a test state that has antialiasing off. Check every glyph that the text uses. A tiny bitmap font in a build script can lack glyphs, and the build crashes on the first missing letter.
Use this when a sprite, a bullet, an icon or a glyph must read at 1x over every background.
scripts/contrast_table.py prints a PASS or FAIL table.visual-verification. It owns the window captures and the before and after comparison.A palette rule can also keep enemy colours out of the colour range of the ground and the props. Without it, an enemy hides in the scenery.
Use this when a feature design or a UI spec needs mockups before any game code exists.
If an accent focus ring has low contrast on its panel (for example 1.6:1), let a dark ink ring carry the 3:1 contrast and keep the accent inside it.
Use this when an art unit hands low-poly 3D vehicles or props to a code unit as atlas cells plus a parts table.
visual-verification. Compare them with the concept sheet.When a face shows the wrong art, check the face-to-cell mapping first. In one case every face used an empty cell and the art was correct.
Use this when collision sizes must match the drawn sprites or models.
visual-verification.| Symptom | Cause | Fix |
|---|---|---|
| Review rejects the finals as programmer art. | The worker drew finals by script from simple shapes. | Keep the generated sources. Run every crop through the pixelize script. |
| A frame shows the wrong pose or asset. | Generated file names do not keep the request order. | Map each file by its content. Copy each output at once with a fixed name. |
| A small icon has many mid colours. | Automatic reduction to 16 px keeps too much detail. | Hand-simplify to match the existing strip. |
| A prompt for a small decal returns a whole vehicle. | A batch prompt has a weak silhouette rule. | Regenerate only that frame with a stricter silhouette rule. |
| A preview PNG shows up in the game files. | The preview sat next to the asset and got its own .import file. | Write previews to a temp or review folder. Delete strays before the final check. |
| Preloads fail on the first import. | The import scanned scripts before the new PNG files imported. | Run the import a second time. Judge the second run. |
| Godot shows the old texture. | The changed PNG did not import. | Run the headless import. |
| Old atlas cells changed. | An alpha composite changed hidden pixels. | Paste the old bytes. Compare with the base copy cell by cell. |
| The palette check finds 1 bright colour everywhere. | The strip canvas used the opaque key colour, not transparency. | Remove the key in the assembly. Keep the palette check in the loop. |
| A code path shows only some cells of an atlas. | The code sliced the atlas by a fixed cell count. | Read the cell count from data or the texture width. Test it. |
| A test fails on the atlas width after an append. | The test pinned the old cell count. | Ask the owner for that 1 edit. Better, read the count from data. |
| The plan names a check tool that does not exist. | The plan assumed a tool from another project. | Write a small check script in the review folder, modelled on an earlier checker. |
| Text has soft, off-palette pixels. | The font imported with antialiasing. | Set antialiasing, hinting and subpixel positioning off. |
| A UI spec and the manifest give different sizes. | 2 documents own the same fact. | Keep the manifest size. Apply the spec shape and contrast inside it. Report the conflict. |
| An art-only unit reports blocked on test failures. | It ran the full suite in a sandbox. | Run palette, size, manifest and import checks only. |
| Art files appear outside the game folder. | The art script resolved the repository or worktree root. | Check the resolved root before any write. |
| A shell loop breaks "name path" pairs wrongly. | zsh does not split an unquoted variable into words. | Use arrays, or ${=var} in zsh. |
| The manifest check fails on valid data. | The check read the wrong JSON root. | Fix the check, not the data. |
| An older asset has colours outside the palette. | The asset predates the palette rule. | Snap to the nearest palette colour. Or add the colour to the palette with approval. |
| A billboard sprite ignores its node scale. | The shader builds the quad from its own size. | Resize the quad, not the node. |
| One atlas cell looks cropped and stretched. | The cell art crosses the cell window. | Redraw that cell only. Add a pixel-boundary test that fails on the old cell. |
| A cutout keeps a dark glow or box. | The edit pass left near-background shades. | Run 1 extraction pass. Remove the rest of the shades with a script. |
| A silhouette has grey tones. | The model output antialiases edges. | Threshold to 2 colours. Check with a histogram. |
| A thin icon reads as a dark ring or the wrong tool. | Shapes are too fine for the cell. | Use fewer, bolder shapes. Give a blade a constant-width body and clear tips. |
| A mid-tone icon vanishes over the ground. | Its fill is close to the ground and it has no outline. | Use a lighter fill with palette highlights. Keep the shape and cell index. |
| Plan example colours fail the contrast gate. | Nobody measured them against each background. | Measure first. Then ask for a rule with the numbers. |
| Regular bright stripes read as gold lines in play. | A repeating highlight forms a pattern at speed. | Put bright stripes on the lit side only. |
| A dark hole shows between thin stems. | No backing fills the gaps. | Add a dense backing behind the stems. |
| A prop reads as a flat slab or does not show. | The shape is weak or shorter than its neighbours. | Give it a solid body and clear masses. Match the height of the related prop. |
| A sprite stands off its seam or ground line. | The offset has the wrong sign. | Test the other sign in a capture. |
python3 -I cannot import Pillow. | Isolated mode skips the user site packages. | Use python3 -P from a separate folder, or a venv in a temp folder. |
Pillow warns that getdata is deprecated. | The Pillow version is new. | Use get_flattened_data. |
| A colour shows only as 1 small shade pixel. | The palette snap kept a rare colour. | Accept it if it is in the palette. Record it in the notes. |
| A model face uses an empty atlas cell. | The face-to-cell mapping is wrong. | Fix the mapping. The art is often correct. |
| A tool script fails on class names. | The tool compiled before autoloads registered. | Remove static project-class references. Load them at run time. |
| Tests fail after a hitbox change. | The tests pinned the old numbers. | Update them in the same commit. |
| Large concept images bloat the repository. | Sources went into git. | Keep large concepts in an ignored source folder. Track the prompts and scripts. |
| A shared manifest conflicts on merge. | 2 units appended rows. | Keep both sides. Check for duplicate paths. |
scripts/check_art.py is a standard-library version.scripts/contrast_table.py is a standard-library version.Both scripts use the standard library only. Run them with python3 -I.
scripts/check_art.py --palette palette.hex atlas.png --cell 16x16 --frames 12 --hard-alpha --outline 222034 --base /tmp/atlas_base.png --keep-cells 8 checks an atlas after an append. Make the base copy with git show <base>:<atlas path> > /tmp/atlas_base.png.scripts/contrast_table.py --fill 6abe30 --outline 222034 --bg lit=99e550 --bg panel=eec39a prints the contrast table. The default minimum is 3:1.visual-verification: owns the rendered in-game review: window captures at native 1x size, before and after pairs and pixel measures. This skill owns the source assets and their checks (size, palette, grid, outline, preserved cells, contrast against background colours).headless-godot-runs: the import flags, the .import hygiene and tool scripts that must not name project classes.godot-testing: the tests that each kind draws its own cell and the cell-boundary tests.godot-perf: the shader warm-up list for new materials, batching and the pixel-art camera.balance-model-data: when hitbox values live in a data model, re-export through it.fleet-game-dev: the contract-first split when an art unit and a code unit work in parallel.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mattmakes/skill-marketplace --plugin game30 skills in this plugin
/art-directionUse when a game concept needs its visual direction set: a style sheet (palette, shape language, lighting, texture), a shot list tied to the target fun, and image-generation prompts for a key art, hero and gameplay-mock placeholder. Trigger on: "art direction", "style sheet", "what should this look like", "shot list", or when `game-brief` needs its art section. Every image prompt carries fixed content-boundary negatives and never names a living artist./balance-model-dataKeep a game's numbers in a scripted balance model (for example Python modules) that checks design targets and exports the JSON the Godot game loads, and change that data without drift. It covers the edit-export-diff loop, FAIL-key baselines, deterministic exports, parity fixtures between the model and GDScript, what-if and lever searches inside the model, and design docs whose tables must match the model. Use it whenever someone wants to change a price, a yield, a pacing curve, a content table or an upgrade row that a script exports; asks why the model and the game disagree, why a parity test fails, or why a chapter runs too long; wants to tune or fit levers before touching game data; or writes a design doc full of numbers, even if nobody says "balance model" or "source of truth".