ui
它能做什么
这个技能引导智能体设计具有清晰视觉风格的界面,并检查渲染后的效果。适合正在搭建或重新设计网页、组件或字体排版的人。
适用场景
- ✓你想要一个有鲜明风格的页面或组件,并让它被构建或重新设计的时候。
- ✓某个界面存在布局或文字问题,需要做视觉修复的时候。
- ✓你想让智能体把截图与你的视觉目标进行对比检查的时候。
技能链接
https://github.com/tw93/Waza/blob/main/plugins/waza/skills/ui/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我重新设计落地页,让它看起来有特色,而不是默认模板,并在手机和电脑上检查效果。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先构建界面,然后在相关的屏幕尺寸下,对照你的目标检查真实的渲染效果。它会指出任何无法验证的剩余问题。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
UI: Build It With a Point of View
Prefix your first line with 🥷 inline, not as its own paragraph.
If it could have been generated by a default prompt, it is not good enough.
Outcome Contract
- Outcome: a usable interface or visual fix with a clear point of view and no incoherent layout, text, or responsive breakage.
- Done when: the real rendered surface or generated artifact has been checked against the user's visual goal and the relevant viewport states.
- Evidence: screenshots, rendered UI, source components, design tokens, accessibility constraints, and user-provided references.
- Output: the implemented visual change or a precise visual review with the remaining verification gap named.
Output language rule: Never use U+2014 em dash in any output from this skill. Use commas, colons, or periods instead.
Chinese gut-feel complaints: when the user says "很傻", "很怪", "突兀", "不协调", "不和谐" about a visual, treat it as an aesthetic rejection, not a debugging symptom. Generated image assets stay in references/mode-generated-asset.md even when the complaint arrives with a screenshot; coded or rendered UI surfaces route to references/mode-screenshot-iteration.md, not to /hunt.
For UI copy cuts, load the UI copy rules in references/design-reference.md before proposing deletions, including in quick-fix and screenshot modes.
Document and print typography routes out. When the deliverable is a shippable document rather than a product UI surface (report, slide deck, resume, long-form or print-oriented page, paged PDF), do not hand-roll an over-designed document layout here. Hand it to a document typesetting skill if one is installed and let that skill draft the detailed plan. Screen 排版 (app surfaces, components, web pages) stays in this skill.
Durable Context Preflight
See references/durable-context.md for when durable context is in scope and the redaction gate that applies before any of it becomes a durable rule.
For /ui: current screenshots and rendered output override memory. Reuse durable visual preferences and mature interaction patterns, but still name the current visual problem from the screenshot or source before changing code.
Mode Picker
Pick the path that matches each deliverable, then read it in full. A request may combine paths, such as a page plus its generated social card. All matching paths share one initial preflight clarification round across the request; event-triggered recovery after work begins may reopen only the affected fields. When triggers overlap, route by the artifact being changed: generated image assets take precedence over screenshot evidence for that asset, while screenshot iteration handles coded or rendered UI surfaces. Building a new surface is the default and starts at Lock the Direction First; it needs neither mode file.
| Ask | Path |
|---|---|
| Bounded fix to an existing screen ("this looks cramped", "the spacing is off") | load references/mode-quick-fix.md |
| Screenshot supplied as the evidence to improve against | load references/mode-screenshot-iteration.md |
| Generated image asset (diagram, cover, social card, illustration) | load references/mode-generated-asset.md |
| New page, component, or visual system | Lock the Direction First |
Lock the Direction First
Adding a surface to a mature product skips direction lock in the other direction: when the task is a new panel, dialog, sheet, toast, or confirmation inside an app that already has same-class components, the direction is the app. Grep for the existing sibling component first and reuse its container, motion, and typography tokens; inventing a new style needs a stated reason why no existing component fits. First drafts that ignore the app's own component vocabulary get rejected on sight.
Resolve the five direction dimensions below before writing code. Take colour, type, width, and voice from the current product's tokens, sibling components, screenshots, and the repo's git history first; then from other shipped products by the same team or author when they exist; then from the conversation. Model-default palettes, default fonts, and freehand graphics are allowed only when no reference exists. Infer first. Across every path in the request, ask in one compact clarification round with at most two sub-questions, only when the missing answer would materially change a deliverable. State the
常见问题
这个技能用于后端逻辑吗?
不用。描述中已说明,它不适用于后端逻辑或数据管道。
它检查什么?
相关屏幕尺寸下的渲染页面和截图,以及所用的设计令牌和组件。
它能处理生成的图片素材吗?
可以,但这些内容通过技能内部单独的参考路径来处理。
详情
作者的原始描述
Produces distinctive production UI and screenshot-grounded visual polish. Use when building or restyling pages, components, or typography. Not for backend logic or data pipelines.
repo: tw93/Waza
热度
- GitHub 星标
- 7.5k
- 排名
- #13222
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …