/summer:ui-graphicsfrom Summer Engine
Generates flat game-UI art (icons, buttons, panels, frames, HUD widgets) as transparent PNGs. Wires through Summer Engine nodes like TextureRect and NinePatchRect.
Ships in Summer Engine. 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.
This skill generates flat game-UI graphics: icons, button states, panels,
frames, and HUD widgets. Output is transparent PNG by default and wires
through Summer Engine TextureRect, NinePatchRect, or AtlasTexture nodes.
UI graphics succeed or fail on two specific things: a clean transparent background (no checkerboard residue) and a consistent visual language across the set (all icons share line weight, color treatment, lighting). This skill encodes both.
character-portrait.pixel-art (UI in pixel style needs a different prompt pattern).asset-strategy..ttf/.otf and import via FontFile.Check .summer/ui-anchor.md. If it doesn't exist, define it on the first UI asset and re-use:
## UI anchor
style: flat design with subtle gradient, soft inner shadow
line: 2px outline in deep navy (#1a2332)
fill palette: gold (#d4a24c), parchment (#f5e6c4), dark teal accent (#2c5f5d)
shape language: rounded rectangles, no sharp 90deg corners
mood: warm fantasy, slightly weathered
background: transparent PNG
Every icon / button / panel re-uses this anchor verbatim. Skipping this step produces the most common UI failure: 12 icons that all look like they came from 12 different games.
assets.search({ query: "<subject> icon", assetType: "2d_image", scope: "all" })
assets.generate_image takes aspectRatio (1:1 default, 16:9, 21:9, 3:2, 4:3, ...) and, for a minimum size, width and height. Square suits icons, panels, and badges; wide assets (buttons, HUD bar frames) get a wide aspectRatio.
| Asset class | Framing | Wiring node | Notes |
|---|---|---|---|
| Icon (ability, item, status) | square (default) | TextureRect (or AtlasTexture if part of an icon sheet) | Centered subject, generous padding |
| Button (idle / hover / pressed) | wide — aspectRatio: "3:2" or "21:9" | Button with custom theme OR TextureButton | Generate 3 variants of the same shape |
| Panel / frame (NinePatch-friendly) | square (default) | NinePatchRect | Border + center MUST be visually separable for 9-slicing |
| HUD bar frame | wide — aspectRatio: "21:9" | NinePatchRect over ProgressBar | Frame only — bar fill is a separate gradient texture |
| Badge / emblem | square (default) | TextureRect | Symmetric, centered, no text |
Pattern:
<asset class> of <subject>, game UI, <anchor style>, flat design, clean edges, transparent background, centered, isolated
isolated is load-bearing. For the background, do not rely on the prompt — pass removeBackground: true, which runs a real background-removal pass after generation and returns a PNG with true alpha. That is the single highest-value argument in this skill, and it is the actual fix for the checkerboard failure listed below: models asked for a "transparent background" in text frequently paint the checkerboard.
Icon example:
assets.generate_image({
prompt: "ability icon for a fire spell, glowing flame in cupped hand, game UI, flat design with subtle gradient and soft inner shadow, 2px deep navy outline, gold and parchment palette, rounded square frame, centered, isolated on a plain background. Not photorealistic, no 3D render, no scene background, not busy, no multiple objects.",
model: "nano-banana-2",
style: "none",
removeBackground: true
})
There is no negative_prompt: the negations have to live in the prompt text.
Button (3 states in 3 calls):
assets.generate_image({ prompt: "<subject>, idle state, ...", aspectRatio: "3:2" })
assets.generate_image({ prompt: "<subject>, hover state, slightly brighter glow, ...", aspectRatio: "3:2" })
assets.generate_image({ prompt: "<subject>, pressed state, darker, slight inset shadow, ...", aspectRatio: "3:2" })
Panel for NinePatch:
assets.generate_image({
prompt: "parchment scroll panel frame, ornate gold border, weathered tan center, clear distinction between border and center area, game UI, fantasy, transparent background, square format, centered",
...
})
The "clear distinction between border and center" is the NinePatch hint — without it, the border bleeds into the center and 9-slicing produces artifacts.
summer_import_from_url(url="<fileUrl>", path="res://ui/icons/fire_spell.png")
Verify in the import dock: Mipmaps: off (UI shouldn't mipmap), Filter: Linear for high-res UI (or Nearest if pixel-style).
One summer_run_script call wires each graphic with its settings; scenePath is the exact scene to change.
Icon as TextureRect:
summer_run_script(scenePath="res://ui/hud.tscn", source="""
func run(ctx):
ctx.add_node("TextureRect", "FireSpellIcon", ctx.find("AbilityBar"), {
"texture": load("res://ui/icons/fire_spell.png"),
"expand_mode": TextureRect.EXPAND_IGNORE_SIZE,
"stretch_mode": TextureRect.STRETCH_KEEP_ASPECT_CENTERED,
})
ctx.save_scene()
""")
Panel as NinePatchRect:
summer_run_script(scenePath="res://ui/hud.tscn", source="""
func run(ctx):
var panel = ctx.add_node("NinePatchRect", "InventoryPanel", null, {"texture": load("res://ui/panels/parchment.png")})
for side in ["patch_margin_left", "patch_margin_right", "patch_margin_top", "patch_margin_bottom"]:
panel.set(side, 24)
ctx.save_scene()
""")
Tune patch margins to match the actual border width in the generated texture. Open the texture in the editor's NinePatch preview to verify.
Multiple icons as AtlasTexture:
If you generate a 4×4 grid of icons in one image, each icon becomes an AtlasTexture referencing the same source. Saves draw calls. Use a Region rect per icon.
| Goal | Prompt that works | Why |
|---|---|---|
| Ability icon | ability icon for <effect>, <visual metaphor>, game UI, flat design, 2px outline, <palette>, rounded square frame, transparent background, centered, isolated | Visual metaphor (cupped hand, swirling vortex) reads better than abstract |
| Item icon (potion) | inventory icon of red health potion, glass bottle with red liquid, cork stopper, game UI, flat design, soft inner shadow, transparent background, centered, isolated, three-quarter view | Three-quarter beats pure front for items |
| Status icon (poison) | status effect icon, green skull with dripping liquid, game UI, flat, bold silhouette readable at 32px, 2px outline, transparent background | "Readable at 32px" forces bold silhouette |
| Button frame | wooden button frame, ornate corners, slight bevel, game UI fantasy, transparent background, no text, no icon inside, just the empty frame | "No text, no icon" prevents the model adding fake labels |
| NinePatch panel | parchment panel frame, ornate gold border, weathered tan center, clear border-vs-center distinction, transparent background, square | "Clear border-vs-center" enables 9-slicing |
| Badge / rank emblem | gold rank emblem, laurel wreath, central star, symmetric, game UI heraldry style, transparent background, centered | Symmetry + centered is critical for emblems |
| HUD health frame | decorative frame for a horizontal health bar, ornate metal border, hollow center for the bar to show through, transparent background, landscape format | "Hollow center" is the key for frame-over-bar |
| Bad | Failure mode |
|---|---|
cool button | No subject, no anchor. Returns a generic button on a card background. |
transparent button with icon | Model often renders a checkerboard "transparent" pattern as the actual fill. There is no negative-prompt argument to counter it — drop the word "transparent" from the prompt entirely and pass removeBackground: true instead. |
8 ability icons in one image | Inconsistent style across the 8. Generate one at a time with the same anchor. |
realistic 3D rendered button | Conflicts with flat-UI. Stay flat. |
button with the word "Play" on it | Models render text badly. Add text in Summer Engine via a Label over the button, not in the texture. |
Label node. The button
texture is the frame; the label is the word.removeBackground: true. Default is opaque. Prompting for "transparent background" instead is what produces the painted-checkerboard failure below — the option runs a real alpha pass and does not.style to do the work. Only cartoon and anime append anything; realistic and none append nothing, and any other value is coerced to none. style: "none" is right for UI, but "flat design" has to be in the prompt regardless.TextureRect with
STRETCH_KEEP_ASPECT_CENTERED scales it down cleanly.pixel-art — different prompt pattern, different filter, different anchor.AnimationPlayer rotating the TextureRect, not as a sprite sheet.removeBackground: true to cut the alpha server-side.In a session without Summer Engine tools (the assets profile; the summer-assets skill has the whole loop), do steps 1-5 and skip steps 6-7 (import, scene wiring). Pass out with the person's folder so each PNG lands there (the summer-assets skill says how); keep removeBackground: true for icons and buttons that need transparency.
Print the call:
assets.generate_image({
prompt: "<asset + anchor>, isolated on a plain background. No scene background, not photorealistic, no 3D, not busy.",
model: "nano-banana-2",
style: "none",
removeBackground: true
})
User runs via the Summer dashboard, then summer_import_from_url to res://ui/icons/<name>.png and wires manually.
After the UI graphic is wired:
scene-composition for the resource wiring.pixel-art.character-portrait for the portrait, then back here for the surrounding panel.character-portrait — for in-UI character images.pixel-art — pixel-style UI.scene-composition — Theme and Control hierarchy.summer_docs_read id reference/mcp-tools-reference — how to call assets.generate_image.No Summer MCP tools in this session? Run each one as a command; when summer --version is missing or below 4.0, use npx -y summer-engine@latest in place of summer. Fields are flags in kebab-case (--scene-path res://main.tscn) or one --input '<json>', and summer ops describe <op> prints the exact input. The summer-cli skill has the rest.
| In this skill | Command |
|---|---|
assets.generate_image, summer_assets_generate_image | summer assets generate-image |
summer_assets_search | summer assets search |
summer_docs_read | summer docs read |
summer_add_node | summer engine add-node |
summer_import_from_url | summer engine import-from-url |
summer_run_script | summer engine run-script |
summer_set_prop | summer engine set-prop |
summer_set_resource_property | summer engine set-resource-property |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub summerengine/summer --plugin summer123 skills in this plugin
/3d-lightingLight a 3D scene: sun, omni and spot lights, WorldEnvironment, sky, shadows and ambient./adaptive-musicWire music stems to game state: combat, explore, boss and tension crossfades on a shared bus./agent-playtestingPlaytest by driving the live game: deterministic launch, frame-stamped probes, scripted or recorded input./ambient-bedGenerate a long looping location ambience (forest, dungeon, city, cave) on the Ambient bus./animated-loopGenerate a short seamless video loop: splash background, animated logo backdrop, idle title screen./animation-treeWire AnimationTree state machines and blend trees: locomotion blends, attack interrupts, hit reactions.Other plugins' skills for the same job