/lgui:lgui-uxfrom lgui
Converts prototype images (screenshots, wireframes, sketches) into UX design specs with measurements, element classification, and interactive prototype pages. Use before building UI to align with user requirements.
Ships in lgui. 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.
什么时候用: 用户给了一张原型图要照着做界面;或者界面需求要先和用户对一遍再动手。设计稿定了以后,拼界面用 lgui-ui,写功能用 lgui-code,截图验收用 lgui-verify。
先读: 做法(固定步骤,每次照做)和 design.json 的字段。
命令行在哪: 本技能所在目录往上两级是插件目录,命令行是 node <插件目录>/tools/lgui.mjs(下面写作 lgui)。
输入: 原型图;工程(有就读 .lgui/project.json 的方向、设计尺寸、语言,没有就问)。开始前问用户这几件事,不要自己定: 原型图是不是自己的作品;只出设计稿,还是连开发交接一起(全套);只出网页还是也导出 Unity;只有触屏还是也有键盘鼠标;图里没有的画面(弹窗等)要不要一起设计;美术谁出。
命令:
| 要做的事 | 命令 |
|---|---|
| 量位置、尺寸、颜色:把原型图的一块放大,叠上坐标网格,列出主色 | lgui ux crop <原型图> --rect x,y,宽,高 --scale <设计单位换算>(网格标的数就是要写进设计稿的数;先整图分区看,再每个部件放大 3 倍以上量) |
| 看工程里有哪些现成的可以用 | lgui ui list --shared(框架自带和项目通用的组件、图片、字体) |
| 校验设计稿,生成原型页和线框图 | lgui ux page <design.json 所在的文件夹>(有错什么都不写;警告逐条处理或和用户确认) |
要点:
design/<名字>/design.json,原型页、线框图、开发交接都由它生成,不手改。产出: design/<名字>/ 里的 design.json、原型图、prototype.html(给用户看)、wireframe/;全套模式多一份 handoff.md。交回时写:几个画面几个元素、要新做哪些、还有哪些未定事项、还剩哪些警告。错误码见 error-codes.md。
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lumiogames/lgui --plugin lgui6 skills in this plugin
/lgui-code在 LGUI 工程里写界面背后的功能:按 MVC 开发规范写 Model、View 绑定表、Controller、Service 和测试,用 new module 生成骨架,用 check 和 test 收口。要让界面能操作、接数据、接服务器时用。/lgui-setup装好 LGUI 之后建工程、检查环境、打开网页预览。用户第一次用 LGUI、要新建一个 UI 工程、或者 lgui 命令报环境问题时用。/lgui-ui在 LGUI 工程里拼界面:按 UI 开发规范写 ui/ 里的 FairyGUI XML、用排布模式生成横竖两版、AI 出图后用 art split / art cut 拆图、加动效、在编辑器里和人一起改。要新做或修改界面的样子时用。/lgui-unity将已有 LGUI 工程导出到 Unity 6000.6/PuerTS 3.0.3,检查本地包、启动场景和 Windows IL2CPP Player。用于 LGUI 原生交付,不用于普通 Unity 游戏逻辑。/lgui-verify验证 LGUI 工程:按标准尺寸横竖截图、换语言和伪翻译截图、跑测试、读调试快照。做完界面或功能、交付之前,或者排查界面显示和行为问题时用。Other plugins' skills for the same job