Skip to content
Skills Library
Design & UX · Automation

game-ui-workflow

/game-ui-workflow

Orchestrates an end-to-end game UI workflow from requirements and reference-image analysis through design specification, screen-system extension, page image generation, component breakdown, sprite-sheet splitting, PNG ZIP packaging, atlas packing, engine JSON handoff, asset registration, and validation. Use when users ask to build, extend, visualize, split, or deliver a coherent multi-screen game UI project rather than one isolated artifact.

Licence
MIT
Last repository change
01.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 01.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Orchestrates an end-to-end game UI workflow from requirements and reference-image analysis through design specification, screen-system extension, page image generation, component breakdown, sprite-sheet splitting, PNG ZIP packaging, atlas packing, engine JSON handoff, asset registration, and validation. Use when users ask to build, extend, visualize, split, or deliver a coherent multi-screen game UI project rather than one isolated artifact.

Original author description

Orchestrates an end-to-end game UI workflow from requirements and reference-image analysis through design specification, screen-system extension, page image generation, component breakdown, sprite-sheet splitting, PNG ZIP packaging, atlas packing, engine JSON handoff, asset registration, and validation. Use when users ask to build, extend, visualize, split, or deliver a coherent multi-screen game UI project rather than one isolated artifact.

How it works

  1. 快速路由
  2. 分步操作指引
  3. 初始化
  4. 阶段顺序
  5. 视觉生成规则
  6. 变更控制
  7. 完成定义
Original SKILL.md headings · 187 lines, 383 words
SKILL.md preview
---
name: game-ui-workflow
description: Orchestrates an end-to-end game UI workflow from requirements and reference-image analysis through design specification, screen-system extension, page image generation, component breakdown, sprite-sheet splitting, PNG ZIP packaging, atlas packing, engine JSON handoff, asset registration, and validation. Use when users ask to build, extend, visualize, split, or deliver a coherent multi-screen game UI project rather than one isolated artifact.
---

# 游戏 UI 总控工作流

把对话需求转换成可复现的 UI 项目。项目事实必须写入 `specs/<project-id>/`;不要仅保留在对话中。

## 快速路由

根据请求选择最小充分路径:

- 规范、设计系统、统一风格 → `game-ui-specification`
- 页面清单、功能扩展、玩家旅程 → `game-ui-extension`
- 完整单页、原型视觉、页面生图 → `game-ui-page-generator`
- 透明组件、切图、素材拆解 → `game-ui-component-breakdown`
- 雪碧图、单元素 PNG、切片打包 → `game-ui-sprite-sheet-splitter`
- Atlas、9-slice、Godot / Unity / Cocos JSON → `game-ui-asset-pipeline`
- 完整项目或多阶段交付 → 按本工作流依次编排

用户明确要求单阶段时,不强迫执行完整流程;但要读取已有契约。

## 分步操作指引

当用户按“原型生成视觉 → UI 风格切换 → UI 延展 → UI 组件拆解 → 雪碧图拆分打包 → Atlas 与引擎交付”工作时,使用以下六个检查点:

1. 原型生成视觉:用一个基准页面验证构图和信息层级,保存为未批准版本。
2. UI 风格切换:保持页面结构不变生成风格候选;用户选定后再批准样式契约和基准页。
3. UI 延展:先输出屏幕地图并等待范围确认,再按批次逐页生成。
4. UI 组件拆解:只拆已批准页面,每个组件和状态单独交付。
5. 雪碧图拆分打包:把组件合图切成单元素透明 PNG,生成 manifest 和 ZIP。
6. Atlas 与引擎交付:语义命名、确认 9-slice、打包 Atlas 并生成引擎 JSON。

每一步开始时简要说明:

- 当前步骤和目标
- 将读取的输入
- 将产生或修改的文件
- 本步停止条件

每一步结束时固定输出:

```text
当前步骤:
完成状态:
本步产物:
需要你检查:
可选操作:
进入下一步的条件:
可直接复制的下一步调用文本:
```

存在人工门禁时必须停止,不能把“给出下一步指引”理解为自动执行下一步:

- 原型结构未确认时,不开始风格定稿。
- 风格契约和基准页未批准时,不批量延展页面视觉。
- 页面范围未确认时,只完成屏幕地图。
- 源页面未批准时,不拆组件。
- 组件雪碧图不存在时,不伪造单元素 PNG 或 ZIP。
- 语义 mapping 和 9-slice 未审核时,不批准 Atlas 或引擎清单。

## 初始化

1. 生成稳定的 `project-id`,使用小写字母、数字和连字符。
2. 若项目目录不存在,执行:

   ```bash
   python3 scripts/init_project.py <project-id>
   ```

3. 读取 `spec.md`、`research.md`、`plan.md` 和 `contracts/` 中全部文件。
4. 将用户提供的参考图路径记入 `spec.md`,分析结论写入 `research.md`。
5. 只询问会改变题材、平台、比例或交付范围的阻断问题;其他信息使用明确标注的默认值。

## 阶段顺序

### 1. Specify

补全 `spec.md`:

- 项目定位、核心玩法、目标平台、画面比例和语言
- 用户故事、范围、首个页面和交付物
- 可验证的视觉、功能和版权验收标准

门禁:存在阻断性未决事项时不得冻结契约。

### 2. Research

把参考图抽象成可复用语言,不复制受保护角色、商标或完整构图:

- 色彩、材质、光源、圆角、描边、密度
- 导航、卡片、按钮、图标和反馈模式
- 玩家旅程、核心循环、平台限制与风险

### 3. Specification

调用 `game-ui-specification`,写入 `contracts/style-contract.yaml`。将状态从 `draft` 改为 `approved` 前,确认色彩、文字、几何、效果和一致性规则均可执行。

门禁:页面技能不得静默引入契约外的主色、材质、光向或圆角体系。

### 4. Extension

调用 `game-ui-extension`:

- 在 `plan.md` 建立按玩家旅程排序的屏幕路线
- 在 `contracts/screen-contract.yaml` 记录页面目的、入口、主操作、组件、状态、边界和数据
- 只选择服务玩法与商业模式的页面,标注 `must-have`、`genre-specific` 或 `optional`

### 5. Page generation

调用 `game-ui-page-generator`,一次处理一个页面:

1. 读取样式和页面契约。
2. 保存页面说明与最终提示词到 `prompts/pages/<screen-id>.md`。
3. 图片工具可用时实际生成图片,保存到 `assets/pages/<screen-id>.<ext>`。
4. 更新 `asset-manifest.yaml`;等待用户或明确验收规则批准。

不要因为工具不可用而虚构图片。此时资源状态使用 `pending-generation`,并保留可直接执行的提示词。

### 6. Component breakdown

仅对 `approved: true` 的页面调用 `game-ui-component-breakdown`:

- 先更新 `component-contract.yaml`
- 每个组件单独提示、单独文件、单独 manifest 条目
- 除背景外默认透明;默认不生成文字
- 组件状态、尺寸、命名和源页面可追踪

### 7. Sprite-sheet splitting

组件拆解输出为整张雪碧图时,调用 `game-ui-sprite-sheet-splitter`:

1. 读取实际雪碧图和组件契约。
2. 检查并去掉标题、按钮文案、数字标签、水印和文字残影。
3. 使用 Alpha 或纯色背景检测独立元素。
4. 导出单元素透明 PNG。
5. 生成坐标、尺寸和路径 manifest。
6. 将 PNG 与 manifest 打包成 ZIP。
7. 人工检查文字、裁断、粘连、阴影和透明边缘。

自动检测不可靠时调整阈值或重新生成留有间距的雪碧图,不得把错误切片标记为批准。

### 8. Atlas and engine handoff

需要开发交付时调用 `game-ui-asset-pipeline`:

1. 将检测序号映射为稳定语义名称。
2. 为组件登记 `full`、`1:1`、`tile` 或人工审核的 `9-slice`。
3. 生成不旋转的 Atlas PNG 与 JSON。
4. 生成 Godot、Unity、Cocos 或通用 JSON 清单。
5. 明确区分 JSON handoff 与原生引擎工程文件。

### 9. Validate

执行:

```bash
python3 scripts/validate_project.py specs/<project-id>
```

修复全部错误。警告必须在 `quickstart.md` 解释或解决。

## 视觉生成规则

图片生成工具可用时:

1. 页面图使用契约的画面比例。
2. 工具不支持精确尺寸时选择最接近比例,并在 manifest 记录实际尺寸。
3. 对中文文字生成不可靠时,优先生成无文字底板并注明后期排版区域;不得声称乱码可直接交付。
4. 组件生图逐个执行,不把多个组件粘在同一张图中。
5. 工具返回的文件移动或复制到项目资源目录,再更新真实路径。

## 变更控制

- 用户修改视觉方向时,先更新 `spec.md` 和 `style-contract.yaml`,再标记受影响页面与组件为 `stale`。
- 页面结构变化时,更新 `screen-contract.yaml` 后再生图。
- 页面未批准时,不得开始组件拆解。
- 不覆盖已批准资源;生成新版本并在 manifest 中保留来源关系。

## 完成定义

- 六类 Spec-Kit 产物完整
- 四类核心契约之间的 ID 和路径一致;使用雪碧图时附加拆分契约
- 页面及组件图片存在,或明确标记待生成
- 视觉稿与组件均有提示词可复现
- 使用雪碧图时,单元素 PNG、拆分 manifest 和 ZIP 包可追踪
- 使用开发交付时,Atlas regions、9-slice 与引擎 JSON 一致
- `tasks.md` 反映真实状态
- 校验脚本无错误

Versions

RepositoryScoreLicence
This page · ToccataFermion/godot-2d-skills100MIT
guiguiyan930-source/game-ui-design-workflow100MIT
C4rI0s/game-3d-skills95MIT

Database snapshot: 13.11.2026 · package version f7826221ab4f (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100game-ui-sprite-sheet-splitter
    Splits a generated game UI sprite sheet or component board into individual transparent PNG elements, writes crop metadata, validates dimensions and alpha channels, and packages all PNG files into a ZIP archive. Use after component breakdown when users ask to cut a combined…
  • 100game-ui-asset-pipeline
    Packs semantically named transparent game UI PNG files into an atlas, preserves component states and reviewed 9-slice metadata, and exports deterministic JSON handoff manifests for Godot, Unity, Cocos, or generic consumers. Use after sprite-sheet splitting when users ask for…
  • 100gpt-image-sprite-sheet
    Make 2D game sprite sheets with GPT Image 2.6 on varg and turn them into game-ready files: a strict 4×4 sheet spec (16 frames, equal cells, fixed scale and ground line; credited to @SSSS_CRYPTOMAN, translated from Japanese), then scripts/slice.sh cuts the sheet into frames, keys…
  • 95sprite-processing
    Use when processing, cropping, splitting, or cleaning up existing sprite images or sprite sheets. Triggers on "crop sprite", "remove background", "split sprite sheet", "make transparent", "process PNG".
  • 90image-sprite-sheet
    Use when the task is to generate, slice, and validate sprite sheets with consistent cell geometry.
  • 100image-generation
    Generate game assets via the Google Gemini image API and process them into final sprite files. Triggers on: "generate an image/asset", "create a sprite", "make game art", or any request to produce or post-process image assets for a game. Wraps tools/generate-image.mjs (model,…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.