game-ui-asset-pipeline

game-ui-asset-pipeline is a skill for Claude Code, Codex from guiguiyan930-source/game-ui-design-workflow. It costs 92 tokens per session (684 once invoked), scanned A, original, MIT.

A packaging workflow for approved game UI PNG files. It combines named images into an atlas, a single texture containing multiple assets, and creates JSON files describing where each asset and its stretchable areas are located.

In plain words
What is it for?
Use it to package transparent UI images and export metadata for Godot, Unity, Cocos, or a generic consumer. It does not create native engine project files.
Why use it?
It reduces manual work when handing UI artwork to game engines and preserves component states and nine-slice settings. Nine-slice settings let panels and buttons stretch without distorting their corners.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/build_sprite_atlas.py specs/<project-id> --force.

Good fit Use it to package transparent UI images and export metadata for Godot, Unity, Cocos, or a generic consumer. It does not create native engine project files.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/guiguiyan930-source/game-ui-design-workflow
agentmods
npx agentmods add skills/guiguiyan930-source/game-ui-design-workflow/game-ui-asset-pipeline

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for game-ui-asset-pipeline

README.md
[![agentmods](https://agentmods.dev/badge/skills/guiguiyan930-source/game-ui-design-workflow/game-ui-asset-pipeline/github.svg)](https://agentmods.dev/skills/guiguiyan930-source/game-ui-design-workflow/game-ui-asset-pipeline)
Your own site
<a href="https://agentmods.dev/skills/guiguiyan930-source/game-ui-design-workflow/game-ui-asset-pipeline"><img src="https://agentmods.dev/badge/skills/guiguiyan930-source/game-ui-design-workflow/game-ui-asset-pipeline/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for game-ui-asset-pipeline

Your own site · 80×15
<a href="https://agentmods.dev/skills/guiguiyan930-source/game-ui-design-workflow/game-ui-asset-pipeline"><img src="https://agentmods.dev/badge/skills/guiguiyan930-source/game-ui-design-workflow/game-ui-asset-pipeline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 684 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.00684
Opus 5 $0.00046 $0.00342
Sonnet 5 $0.00018 $0.00137
Haiku 4.5 $0.00009 $0.00068

Measured 12d ago against content hash d97a7075056d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

game-ui-asset-pipeline scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/game-ui-asset-pipeline/SKILL.md · 85 lines

What it actually says

游戏 UI Atlas 与引擎交付

把已经批准的语义 PNG 转换成 Atlas 与引擎 JSON。此技能不执行像素识别,不自动猜测语义,也不声称生成原生引擎工程文件。

前置条件

  • sprite-contract.yaml 状态为 approved
  • 所有 PNG 使用语义名称
  • 每个 item 关联 component_idstateslice
  • review.text_free: true
  • 9-slice margins 已人工预览

切图方式

  • 9-slice:按钮、面板、弹窗、进度条
  • full:卡片、角色、徽章、背景
  • 1:1:图标、货币
  • tile:可重复纹理

9-slice margins 格式:

slice:
  type: 9-slice
  margins: [left, right, top, bottom]

Atlas

读取 contracts/atlas-contract.yaml,执行:

python3 scripts/build_sprite_atlas.py specs/<project-id> --force

内置打包器:

  • 使用透明 PNG
  • 不旋转素材
  • 可补齐到 2 的幂尺寸
  • 保存 region、pivot、state、component ID 和 slice
  • 生成 Atlas PNG 与 JSON
  • 更新 atlas contract 为 packed

打包完成后人工检查,再将状态改为 approved

引擎 JSON

读取 contracts/export-contract.yaml,执行:

python3 scripts/export_engine_manifest.py specs/<project-id> --force

支持:

  • Godot JSON:texture、region、patch margins
  • Unity JSON:Sprite Multiple rect、pivot、border、pixels per unit
  • Cocos JSON:frame rect、original size、cap insets
  • Generic JSON:Atlas 与 sprite metadata

这些文件是确定性交付清单。原生 .tres.tscn、Unity SpriteAtlas 和 Cocos 工程导入器不在内置实现范围内。

人工验收

  • Atlas 无重叠、裁断和透明污染
  • region 与源 PNG 尺寸一致
  • 9-slice 留有可拉伸中心
  • 所有语义名称唯一
  • 引擎 JSON 引用同一 Atlas
  • 禁止把 native project files 标记为已生成

完成定义

  • atlas-contract.yaml 状态为 approved
  • Atlas PNG 与 JSON 存在
  • export-contract.yaml 状态为 approved
  • 每个目标引擎 JSON 存在并可解析
  • 项目严格校验通过
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 85 lines · 92 tokens per session scan A d97a7075056d

Subscribe to this mod's changes

game-ui-asset-pipeline is a skill published in the GitHub repository guiguiyan930-source/game-ui-design-workflow (175 stars, last pushed 1mo ago), licensed MIT. It adds 92 tokens to every session and 684 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

uw-ui-toolkit-binder

Generate Unity 6+ UI Toolkit Runtime Data Binding code using MVVM pattern with [CreateProperty], DataBinding, and PropertyPath. Use when creating UI screens, HUDs, menus, inventories, settings panels, or any data-bound UI elements with UI Toolkit. Triggers on requests like "create a health bar", "build the HUD", "make…

devdavv/unity-ai-workflow · 177 tokens

uw-dependency-injection

Opt-in DI architecture using Reflex for Unity 6+. Covers container setup, scoping, injection, command pattern, update management, and class taxonomy. Use when ProjectConfig.yaml -> architecturepattern is "di-first", or when the user asks about dependency injection, inversion of control, service architecture, or…

devdavv/unity-ai-workflow · 159 tokens

uw-unity-test-runner

Generates EditMode and PlayMode tests using NUnit, mapped from GDD Gherkin scenarios. Use when writing tests, validating features, ensuring code quality, or verifying behavior after changes. Triggers on requests like "write tests for this", "test the health system", "add unit tests", "verify this works", "add PlayMode…

devdavv/unity-ai-workflow · 136 tokens

uw-network-setup

Generates networking boilerplate adapted to the project's chosen networking package (NGO, Mirror, Photon). Use when setting up multiplayer systems, syncing state, writing RPCs, building lobbies, or designing an authority matrix. Triggers on requests like "add multiplayer", "sync player health", "create an RPC", "set…

devdavv/unity-ai-workflow · 149 tokens

uw-scriptable-object-arch

Generate ScriptableObject-based systems including data containers, event channels, and runtime sets. Use when creating game data (weapons, enemies, items, abilities), cross-system events, or live object tracking. Triggers on requests like "create weapon data", "add an event system", "make a runtime set", "decouple…

devdavv/unity-ai-workflow · 139 tokens

uw-state-machine

Interface-based state machine patterns for Unity game states, character controllers, and UI flows. Use when implementing game flow (menu -> gameplay -> game over), character states (idle -> run -> jump -> fall), AI behavior states, or UI screen transitions. Triggers on "state machine", "game states", "character…

devdavv/unity-ai-workflow · 129 tokens