ui-design-intelligence
Skill9 starsChanged 3 months agoMITView on GitHub
让纯文本 LLM Agent 获得高质量 UI 设计能力的闭环流程。用多模态模型从参考 UI 提炼 Design Genome(原则层) 与 Design DNA(token 层),把人类审美转成 Agent 可执行的抽象知识,注入代码 Agent 生成界面,再以 "对照 genome 的原则级评审"形成修改闭环。当用户要求"生成有设计感的界面/去掉 AI 味"、需要为项目建立 UI 设计基线(design-genome.md)、评审界面是否符合设计语言,或 vibecoding-orchestration 的详细设计/开发实现/G5 涉及 UI 模块时使用。**纯文本 Agent 可直接使用(text-first):种子 DESIGN.md 与源码/CSS/DOM 都是文本证据, 视觉/多模态能力是可选的升级通道。** 触发词:design genome、UI 设计基线、视觉评审、界面没设计感、按这个风格做。
2 other projects use a version of this.
Adopted by
Most recently taken up by
- RaditteAnggoro/skill-for-lazy-developertheir own version, first seen Nov 8, 2026
- DevvNirvana/tvastar-design-claude-code-skilltheir own version, first seen Mar 19, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- DevvNirvana/tvastar-design-claude-code-skill★ 4same name
- RaditteAnggoro/skill-for-lazy-developer★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- analyze-ideaSkill
- pil-diagramSkill
- vibecoding-orchestrationSkill
The file
Files
UI Design Intelligence(UI 设计智能)
定位
vibecoding-orchestration 的领域挂载 skill(与 analyze-idea、pil-diagram 同层,不改变流程本身)。当史诗含 UI/前端模块时,在三个位置挂载:
| vibecoding-orchestration 阶段 | 挂载动作 |
| 详细设计(LLD) | UI 模块任务书注明加载 design-genome.md + component-philosophy.md;LLD 写原则级设计约束,禁止写死像素值 |
| 开发实现 | UI 模块开发员先读 genome 再写代码;产出截图供评审 |
| G5 集成/QA | 增加视觉验收 lane:截图对照 genome 评审,verdict=alive 才算过;评审必须独立于开发 |
核心原则
- 不要学结果,学产生结果的方法。 原则层(genome)禁止 px/hex/CSS 代码;具体数值只允许进入 token 层(design-dna.json)。
- 文本优先,多模态是可选升级。 默认用种子 DESIGN.md(纯文本)+ 源码/CSS/DOM 证据完成提炼与评审;具备视觉能力时再叠加多模态通道。
- 评审必须对照 genome,先给原则级意见,再谈具体修改。 评审者不得评审自己的产出。
- 样本要跨产品、有数量。 不复制单一产品;提炼共同规律。
- 静态验证形,动效验证势。 截图只能证明"长什么样";"怎么动"必须用录屏/帧序列或代码级检测证明。verdict=alive 必须动效 gate 通过。
验收模式
| 模式 | 适用 | 视觉依赖 | alive 含义 |
| text-only(默认) | 纯文本 Agent(如 DS-Flash) | 无 | 所有文本可验证门禁(genome 完整性、代码/DOM/aria 证据、check-motion)通过;perceptual: pending 显式标注 |
| multimodal(升级) | 具备截图/录屏视觉能力 | 有 | 视觉 lane 确认后 perceptual: confirmed,去掉感知复核待办 |
产物
| 产物 | 内容 | 位置 |
| design-genome.md | 原则层:Personality / Visual Language / Information Philosophy / Spatial Model / Interaction Philosophy / Anti-Patterns | 项目 .agent/knowledge/ |
| design-dna.json | token 层:色板/字体/间距/圆角/动效等具体值(实现约束) | 同上 |
| component-philosophy.md | 核心组件的 Purpose / Visual Role / Behavior / Variants | 同上 |
| verdict.json | 评审结论:alive / templated / flat + 违反条目 + 2-3 个修正方向 + motion gate(unverified / pass / fail) | 同上 |
工作流
U0 选种子 → U1 提炼 Genome → U2 组件哲学 → U3 注入代码 Agent → U4 视觉评审闭环 → U5 G5 验收U0 选种子与样本(15 分钟内)
- 从
references/sources.md选来源:首选 awesome-design-md 同品类 DESIGN.md 做种子(73+ 品牌现成抽象结果,MIT);真实截图用 Lazyweb/Refero 检索(10-30 张,跨产品)。 - 样本落
ui_reference/<desktop_app|web_app|mobile>/,附notes.md记录每张样本"为什么选它"。 - 完成标准:种子 + ≥10 张跨产品样本;单一产品样本占比 < 50%。
U1 提炼 Design Genome
- 文本通道(默认,无需视觉模型):
- 原则层:以种子 DESIGN.md(纯文本)+ taste-skill/前端准则为底稿起草 genome,顶部标注
分析通道:文本(种子 + 准则); - token 层:从实现源码/CSS 变量/设计 token 文件/DOM 计算样式提取具体值,禁止编造;取不到时以种子 token 为准并标注来源。
- 原则层:以种子 DESIGN.md(纯文本)+ taste-skill/前端准则为底稿起草 genome,顶部标注
- 多模态通道(可选升级):有视觉能力时,按
references/analysis-prompt.md让视觉模型逐张分析截图,收敛为原则 → 产出design-genome.md+design-dna.json(字段见references/genome-schema.md)。 - 样本含录屏/帧序列时,必须追加动效分析通道(
references/analysis-prompt.md第三遍提示词),把进入/退出/状态过渡/流式节奏收进 genome 的 Interaction & Motion Philosophy 与 token 层 motion 阶段表。 - 没有视觉/录屏时,genome 的动效章节从种子动效规范提取并标注来源;种子也没有则标注
motion: unobserved,禁止推断。 - 完成标准:genome 六个章节齐全、每条原则可判定、Anti-Patterns 非空;
scripts/check-genome.ps1通过。
U2 生成 Component Philosophy
- 按
assets/templates/component-philosophy.md为每个核心组件写 Purpose / Visual Role / Behavior / Variants;禁止直接写组件参数(如 height:32px)。 - 完成后 genome 定稿:版本 +1、冻结,UI 实现以此为准。
U3 注入代码 Agent
- 任务书/系统提示必须包含:"实现前先读 design-genome.md + component-philosophy.md;从原则推导 UI 决策,禁止盲抄固定值。"
- 实现层准则:shadcn/ui + Tailwind 用
ui-stylingskill;设计系统 token 用design-system;知识检索用ui-ux-pro-max。 - 动效实现规则:用声明式 CSS(transition/animation);只动 transform/opacity;时长取 token 层 motion 阶段表;进入用 ease-out;必须提供
prefers-reduced-motion降级;禁止无限装饰动画。 - UI 完成后产出截图(桌面/移动至少各一张)到
.agent/knowledge/screenshots/。 - UI 含动效时,尽量产出录屏或关键帧序列到
.agent/knowledge/motion/,并写一份动效清单(每个动效:触发、阶段、时长、缓动、是否 reduce-motion 降级)。无法录屏时必须运行scripts/check-motion.ps1做代码级检测。
U4 视觉评审闭环
- 评审输入:genome + 实现代码 + 证据(text-only:源码/CSS/DOM/aria/check-motion 输出;multimodal:再加截图与录屏/帧序列)。
- 评审分两条 lane:
- 静态 lane:text-only 用代码/DOM 证据对照 genome(
references/reviewer-prompt.md文本模式);multimodal 再叠加截图原则级对照与本地确定性审查(impeccableaudit/critique,如有)。 - 动效 lane:代码级
scripts/check-motion.ps1(必跑,确定性)→ 有录屏/帧序列时用多模态模型评审动效 → 汇总到 verdict 的 motion gate。
- 静态 lane:text-only 用代码/DOM 证据对照 genome(
- 输出
verdict.json:alive(通过,含 motion gate=pass;text-only 模式另标perceptual: pending)/ templated(正确但平庸,违反 genome)/ flat(无层级无动效无身份)。 - 非 alive:给 2-3 个原则级修正方向 → 回 U3 修改 → 重新评审,闭环直至 alive 或人类显式接受降级。
U5 G5 验收挂载
- 视觉验收作为 G5 的一条 lane:QA 评审员(或独立视觉评审)对照 genome 复核 verdict;与开发隔离。
- verdict=alive 且无原则冲突 → 视觉验收 PASS;否则 G5 驳回回开发修复。
参考文档
- 提取/评审 schema:
references/genome-schema.md - 多模态分析提示词:
references/analysis-prompt.md - 视觉评审提示词:
references/reviewer-prompt.md - 样本库与种子来源(含许可):
references/sources.md
产物模板
assets/templates/ 下按需复制:
design-genome.md:项目 UI 设计基线component-philosophy.md:组件哲学verdict.json:评审结论
脚本
scripts/check-genome.ps1:校验 design-genome.md 章节完整性与禁用项(px/hex 泄漏警告)。scripts/check-motion.ps1:代码级动效检测——只动 transform/opacity、时长范围、进入 ease-out、reduce-motion 存在性、无限动画警告。
红线规则
- genome 定稿前禁止 UI 实现;定稿后禁止原地改,变更走版本 +1。
- 原则层禁止 px/hex/CSS;具体值只进 token 层(design-dna.json)。
- text-only 模式必须如实标注
mode: text-only与perceptual: pending,禁止伪装成看过截图/录屏。 - 评审先讲原则违反,再谈修改;禁止第一步就抛像素级修改。
- 评审者不得评审自己产出(含代码 Agent 自评)。
- 样本必须跨产品,禁止单产品复制式提炼。
- 静态评审不能证明动效通过。 无动效证据(录屏/帧序列/check-motion 输出)时,motion gate=unverified,verdict 不得为 alive。
- 本 skill 只做 UI 设计智能;流程门禁、任务书、状态管理一律走 vibecoding-orchestration。
来源与署名
- schema 改编自 zanwei/design-dna(MIT)
- 评审/反模板原则吸收 pbakaus/impeccable(Apache-2.0)、Leonxlnx/taste-skill(MIT)、vercel-labs/web-interface-guidelines(MIT)、Anthropic
frontend-design(官方) - 闭环编排思路参考 davidgarciagordo/design-review(MIT)
- 种子 genome:VoltAgent/awesome-design-md(MIT);样本库见
references/sources.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

