Skill for generating CK3-native art assets using the Nano Banana (Gemini 2.5 Flash Image) MCP tool. Includes style guide, category prompt templates, and DDS conversion reference. Encodes learnings from first batch: no circular frames, no vector art, no text, dark backgrounds edge-to-edge, consistent orientation within trait families, max 3 parallel generation calls. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
5.6 KiB
name, description
| name | description |
|---|---|
| asset-gen | Generate themed visual assets for the Lords of Ash CK3 total conversion mod using the generate_image MCP tool (Nano Banana / Gemini 2.5 Flash Image). Use when generating any mod art: trait icons, modifier icons, decision illustrations, event backgrounds, loading screens, bookmark art, coat of arms emblems, religion icons, building icons, MaA icons, lifestyle assets, scheme icons, focus icons, activity assets, workshop thumbnail, or frontend art. Also use when the user asks about visual identity, art direction, asset pipeline, or DDS conversion. Triggers on: "generate icons", "make trait art", "create loading screen", "asset pipeline", "convert to DDS", "art style", "generate assets", "batch generate". |
Asset Generation — Lords of Ash
Generate visually consistent, CK3-native art assets using the generate_image
MCP tool.
Asset descriptions, filenames, resolutions, and directory paths are documented
in docs/REQUIRED_ASSETS.md. This skill provides the visual identity, prompt
system, and workflow.
Prompt Assembly
Every generate_image call uses three parts:
[STYLE PREFIX] + [CATEGORY TEMPLATE] + [ASSET DESCRIPTION from docs/REQUIRED_ASSETS.md]
Never call generate_image with just the asset description. Always prepend the
style prefix and matching category template.
- Style prefix and color palette: Read
references/style-guide.md - Category templates: Read
references/category-templates.mdand match by asset type (trait icon, modifier icon, decision illustration, etc.) - Asset description: Look up the specific asset in
docs/REQUIRED_ASSETS.md
Aspect Ratio Mapping
| Asset Type | Pixel Size | aspect_ratio |
|---|---|---|
| All square icons | various | 1:1 |
| Decision illustrations | 1100x440 | 5:2 (fallback: 16:9 + crop) |
| Event backgrounds | 1592x848 | 16:9 |
| Loading screens | 3840x2160 | 16:9 |
| Bookmark art | 1920x1080 | 16:9 |
| Frontend art | 3840x2160 | 16:9 |
| Activity headers | 1100x440 | 5:2 (fallback: 16:9 + crop) |
| Lifestyle strips | 480x160 | 3:1 (fallback: 16:9 + crop) |
| Perk tree backgrounds | 348x812 | 9:16 + crop |
| Lifestyle sidebars | 608x1552 | 9:16 + crop |
If the tool doesn't support an exact ratio, generate at the nearest standard ratio and resize/crop with ImageMagick.
Single Asset Workflow
- Find the asset in
docs/REQUIRED_ASSETS.md— note filename, resolution, directory, DDS format, and description. - Read
references/style-guide.mdfor the style prefix. - Read
references/category-templates.mdfor the matching template. - Assemble the full prompt and call
generate_imagewith correctaspect_ratio. - Save the PNG to
lords_of_ash/at the correctgfx/path. - Report what was generated.
Batch Workflow
When generating multiple assets of the same type:
- Read the style prefix and category template once.
- Iterate through assets in
docs/REQUIRED_ASSETS.mdfor that category. - Use the same style prefix and template for every asset.
- Call
generate_imagein batches of no more than 3 parallel calls at a time. Wait for each batch to complete before starting the next. This avoids overwhelming the image generation API. - Save PNGs to correct paths after each batch.
- Report summary: count generated, failures, paths written.
DDS Conversion
CK3 requires DDS format. After generating PNGs, convert using the format
mapping and commands in references/dds-conversion.md.
All output paths are under lords_of_ash/gfx/. The full directory structure is
documented at the end of docs/REQUIRED_ASSETS.md.
Critical Rules
- Always prepend the style prefix — without it, images drift in style.
- Icons need dark/near-black backgrounds — light backgrounds break CK3 UI.
- Trait icons are 120x120, NOT 60x60. Modifier icons are 60x60.
- Trait icons MUST be uncompressed ARGB in DDS, not DXT5.
- CoA emblems MUST be uncompressed ARGB for the color mask system.
- Modifier icons need mipmaps; trait icons do not.
- Decision illustrations: weight composition right (left side has UI overlay).
- Filenames are case-sensitive on Linux — match mod code exactly.
- Append "absolutely no text, no letters, no words, no labels, no titles, no captions, no watermarks" to icon prompts — the model tends to add text despite weaker phrasing.
- Never use circular medallion/coin framing for icons — the model defaults to round compositions which leave white/light corners on a square canvas. Enforce "flat square, dark background edge-to-edge" in the prompt.
- Icons must be symbolic motifs only, not scenes or landscapes. If the model generates an environment instead of an icon, the prompt needs stronger "this is an icon, not a scene" language.
- Enforce painterly style explicitly — the model sometimes drifts to vector/flat graphic/mobile game art. Add "painterly style only — NOT vector art, NOT flat graphic design, NOT mobile game art" when this happens.
- For trait families that form a progression (e.g. weak/strong/savant), describe the same base motif in each prompt and only vary the intensity/effects. Specify orientation ("horizontal", "not tilted") to keep compositions consistent.
- Allomantic energy uses cyan-blue, never green or purple.
Quality Checklist
After generating, verify:
- Colors match the palette (no oversaturated neons, no pastels)
- Composition matches the category template
- No unwanted text, labels, or signatures
- Dark/near-black background for icons
- Resolution correct (or needs crop/resize)
- Visually distinguishable from similar assets in same category
- Ash, mist, or metallic elements present where appropriate