SpriteCook Generate Tilesets
Use this skill for SpriteCook tileset generation. Pair it with spritecook-workflow-essentials for credits, manifests, safe downloads, and asset tracking.
Requires: SpriteCook MCP server connected to your editor. Set up with npx spritecook-mcp setup or see spritecook.ai.
Tools
list_tileset_options
Call this when you need current supported perspectives, piece sets, tile sizes, elevations, edge modes, output dimensions, or defaults.
generate_tileset
Generate a game-ready tileset. The tool returns a job immediately by default; follow the returned poll.tool and poll.arguments until canonical assets entries are ready.
reference_asset_id and edit_asset_id are mutually exclusive. The referenced asset must belong to the SpriteCook account.
Recommended Defaults
- For top-down pixel autotiles, start with
style_mode="pixel",perspective="topdown",piece_set="15-piece",tile_size=32,edges="transparent". - For top-down inner-corner base tiles, use
piece_set="17-piece-base"and keepedges="transparent". - For side-view platformers, use
perspective="platformer",piece_set="autotile-16-set",edges="transparent". - For detailed top-down tilesets, use
style_mode="detailed"and calllist_tileset_optionsbefore choosing size/elevation. - Use
modelonly when the user explicitly wants to compare models.
Reference Workflow
- When the user asks to use a saved tileset preset, use
list_presets(mode="tileset", query=...)andget_preset_settingsfirst, then map the returned tileset settings intogenerate_tileset. - If the user has a local image file path, use
spritecook-upload-assetsfirst, then pass the returned asset ID asreference_asset_id,edit_asset_id, orstyle_asset_id. - If the user supplies a small data URL or raw base64 value, call
import_assetfirst, then pass the returned asset ID asreference_asset_id,edit_asset_id, orstyle_asset_id. - Use
reference_asset_idwhen the existing tileset should guide a new generation while preserving its tile size/layout. - Use
edit_asset_idwhen the user wants a direct change to an existing tileset. - Use
style_asset_idas a style guide image when the image should affect only visual style, palette, proportions, and rendering, not tileset layout. The prompt does not need to repeat that the image is a style guide unless the user asks to emphasize a specific detail. - When referencing or editing a tileset, do not change
style_mode,perspective,piece_set,tile_size, orelevation; SpriteCook inherits and locks those settings.
Prompting
- Keep prompts short and material-focused:
snowy stone path,muddy swamp grass,volcanic rock,clean wooden floor. - For single-surface tilesets, name one main material.
- For
two_surfaces, name both surfaces clearly:grass and water,volcanic rock and lava. - Avoid asking for labels, UI, characters, props, or scene composition inside the tileset.
Output Handling
- Follow the returned polling contract with
check_job_statusuntil the job reaches a terminal state. - Save each returned
asset_idin the project manifest or task notes. - Use
sprite_urlas the canonical downloadable tileset image. - Treat
url,pixel_url, andraw_urlas compatibility aliases. - If a successful response contains
warning.code="asset_output_unavailable", execute the suppliedwarning.recoverytool call.
