| name | meitu-game-2d-assets |
| description | 为 2D 游戏制作单体素材、角色立绘、图标、道具、简易 sprite sheet 与 tileset 草图。支持像素风、矢量扁平、手绘卡通等风格,可组合文生图、图生图、抠图、宫格拆分与超分优化。当用户提到游戏素材、2d asset、sprite、spritesheet、tileset、角色素材、道具图标、像素素材、游戏立绘时触发。 |
| version | 1.0.0 |
| metadata | {"openclaw":{"requires":{"bins":"[Truncated]","env":"[Truncated]","paths":"[Truncated]"},"primaryEnv":"MEITU_OPENAPI_ACCESS_KEY","security":{"dataFlow":"Inputs, selected local context, and generated prompts may be sent to Meitu OpenAPI when used by the workflow.","credentials":"Credentials are used only for CLI authentication and must not be disclosed.","persistence":"Record workflows may access declared project and visual memory/rules files."}}} |
| security | {"credential_use":"Uses Meitu OpenAPI credentials from env or ~/.meitu/credentials.json for CLI calls; credentials must not be echoed, logged, or embedded in prompts.","remote_processing":"Inputs, selected local context, and generated prompts may be sent to Meitu OpenAPI when used by the workflow.","persistence":"Record workflows may read/write declared project files and visual memory/rules files, including observations, scene/global memory, and quality rules."} |
| requirements | {"credentials":[{"name":"MEITU_OPENAPI_ACCESS_KEY","source":"env | ~/.meitu/credentials.json"},{"name":"MEITU_OPENAPI_SECRET_KEY","source":"env | ~/.meitu/credentials.json"}],"permissions":[{"type":"file_read","paths":"[Truncated]"},{"type":"file_write","paths":"[Truncated]"},{"type":"exec","commands":"[Truncated]"}]} |
meitu-game-2d-assets
Overview
面向 2D 游戏生产可直接进入后续美术流程的素材草图与半成品,重点覆盖:
- 单体素材:图标、道具、武器、金币、宝箱、药水、UI 小物件
- 角色素材:角色立绘、敌人概念图、NPC 半身或全身设定
- 网格素材:四宫格/九宫格 sprite sheet、简易动作帧、tileset 草图
- 资产整理:透明底导出、宫格拆分、清晰度增强、局部重绘
本 Skill 的目标不是做完整游戏场景原画、3D 建模或复杂骨骼动画,而是为游戏策划、美术和独立开发者快速产出可迭代的 2D 资产基础稿。
Dependencies
- tools: meitu-cli
text-to-image - 从文字生成单体素材、角色概念、sprite sheet 或 tileset 草图
image-edit - 基于参考图做局部修改、延续风格批量变体、修正细节
image-cutout - 将生成结果抠成透明底素材
image-grid-split - 将 sprite sheet / 宫格图拆成独立帧
image-superres-enhance - 对低分辨率素材做超分和锐化增强
- credentials: 美图 AI 开放平台 API 凭证
- 环境变量:
MEITU_OPENAPI_ACCESS_KEY / MEITU_OPENAPI_SECRET_KEY
- 或配置文件:
~/.meitu/credentials.json
- 验证:
meitu auth verify --json
- workspace (optional):
{OPENCLAW_HOME}/workspace/visual/
- Not found -> skip all knowledge reads, skill works without it
路径别名:下文中 $VISUAL = {OPENCLAW_HOME}/workspace/visual/
Core Workflow
Preflight -> [Context] -> Execute -> Refine -> Deliver -> [Record]
^ 创意型任务执行 ^ 项目模式时执行
^ 一次性模式跳过 Context ^ 一次性模式跳过
Preflight
meitu --version -> 未安装则提示 npm install -g meitu-cli
meitu auth verify --json -> 凭证无效则引导配置
- Detect mode: cwd has
openclaw.yaml -> project mode; else -> one-off
can_record = cwd 有 openclaw.yaml AND $VISUAL 存在(两者缺一即 false)
- Resolve output_dir:
openclaw.yaml -> ./output/ | else -> $VISUAL/output/meitu-game-2d-assets/
mkdir -p {output_dir}
- 解析用户需求中的最少资产规格:
- asset_type:
icon | prop | character | enemy | tileset | sprite-sheet
- style:
pixel | flat-vector | hand-painted | chibi-cartoon | retro-rpg | custom
- ratio:未指定时按素材类型自动补默认值