ui
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDesign: Build It With a Point of View
设计:打造具有独特视角的界面
Prefix your first line with 🥷 inline, not as its own paragraph.
Update check (non-blocking). Before starting, run once; if it prints a line, relay it to the user, then continue. It runs at most once a day, only reads a public version file, sends no data, and fails silently.
bash scripts/check-update.shIf it could have been generated by a default prompt, it is not good enough.
在你的第一行开头添加🥷(行内添加,不要单独成段)。
更新检查(非阻塞):开始前先运行一次;如果脚本输出内容,将其告知用户后再继续。该脚本每天最多运行一次,仅读取公开版本文件,不会发送任何数据,失败时无提示。
bash scripts/check-update.sh如果设计成果可以通过默认提示词生成,那它还不够好。
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 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. Route to Screenshot Iteration Mode, not to .
/huntDocument & print typography → Kami. 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. Suggest the user run it through Kami (), a document design system with a fixed constraint language and templates, and let Kami draft the detailed plan. Screen 排版 (app surfaces, components, web pages) stays in this skill.
tw93/Kami- 成果:一个具备清晰设计视角的可用界面或视觉修复方案,无布局混乱、文本问题或响应式断点故障。
- 完成标准:真实渲染的界面或生成的产物已对照用户的视觉目标及相关视口状态验证通过。
- 验证依据:截图、渲染后的UI、源组件、设计令牌、无障碍约束及用户提供的参考资料。
- 输出:已实现的视觉修改,或明确指出剩余验证差距的精准视觉评审报告。
输出语言规则:本技能的所有输出中禁止使用破折号(—),改用逗号、冒号或句号。
中文直观反馈处理:当用户针对视觉效果说出“很傻”“很怪”“突兀”“不协调”“不和谐”时,将其视为审美层面的否定,而非调试类问题。应进入截图迭代模式,而非模式。
/hunt文档与印刷排版 → Kami:当交付物是可发布的文档而非产品UI界面(如报告、幻灯片、简历、长文或面向印刷的页面、分页PDF)时,请勿在此手动设计过度复杂的文档布局。建议用户使用Kami(),这是一个具备固定约束语言和模板的文档设计系统,由Kami起草详细方案。屏幕排版(应用界面、组件、网页)仍由本技能处理。
tw93/KamiDurable Context Preflight
持久化上下文预检查
See rules/durable-context.md for when to read durable context, the read-order budget, and the memory-type mapping.
For , visual constraints are , , and entries; reusable product and UI patterns are and . Current screenshots, rendered output, code, design tokens, and user feedback 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.
/uidecisionpreferenceprinciplepatternlearning关于何时读取持久化上下文、读取顺序限制及内存类型映射,请参阅rules/durable-context.md。
对于任务,视觉约束属于、和条目;可复用的产品与UI模式属于和条目。当前截图、渲染输出、代码、设计令牌及用户反馈优先级高于记忆内容。可复用持久化视觉偏好和成熟交互模式,但在修改代码前仍需先明确当前截图或源文件中的视觉问题。
/uidecisionpreferenceprinciplepatternlearningVisual Quick-Fix Mode
视觉快速修复模式
Activate when the user asks for a narrow visual repair with a concrete symptom: overflow, clipped or wrapped text, misalignment, spacing imbalance, contrast/readability, localized text not fitting, or compact responsive breakage. This is for fixing an existing surface, not redesigning it.
Flow:
- Read the current UI evidence: screenshot, rendered page, native view, or responsible component.
- Name the exact visual defect in one sentence.
- Make the smallest material, geometry, spacing, contrast, typography, or text-fit change that fixes that defect.
- Verify the real running surface or generated artifact. Check long words, localized strings, compact states, and at least one narrow viewport when applicable.
- If the fix touches three or more components, changes product behavior, or reveals a direction problem, stop and switch to Screenshot Iteration Mode or Lock the Direction First.
Spacing unification rule. If a magic spacing or sizing value has been adjusted three times and the layout still looks off, stop tuning. Replace the N independent padding / gap / margin / size values with one shared named token (, , ). Outer container padding defaults to the same value as inner element gap. Asymmetry that survives tuning is structural, not numeric, so more rounds of magic numbers will not converge. Reduce the count of independent values first, then argue about the specific value.
Spacing.s4--gap-contentgap-4Fixed-height action slot, uniform typography. Any container that swaps children based on state (status bar, action slot, toolbar row, menu item) must use one font size across every state. Vary fill, stroke, opacity, color, or icon, never font size. A 1pt height delta between and becomes visible jitter at the state transition. CTA pill buttons in the same slot use the same size (typically 14px), distinguished by background and border, not by typography.
secondary 13pxprimary 14pxCompletion screen layout. Operation-complete surfaces show the single result the user came for: the actual reclaimed size / processed count / changed state. Long explanations belong in a details overlay opened from a summary row, not in the primary completion line. Do not add a separate "Review" button next to the summary row when one tap on the row already opens details; do not show an empty "0 skipped" entry point. If there is no skipped or failed item, hide the details affordance entirely.
Safety-bound action design. For cleanup, deletion, uninstall, reset, or permission-changing surfaces, do not make the UI feel simpler by hiding recoverability. Bulk select, auto-select, one-tap delete, or "recommended" destructive defaults are only appropriate when each row is understandable to the target user and carries enough identity to verify safety (name, source, owner, path, preview, or recovery implication as relevant). If rows are opaque identifiers, inferred leftovers, or machine-only paths, prefer review-first UI, current-target scoping, disabled destructive affordances, or explanatory grouping over faster batch controls. A feature request for fewer clicks is not enough to remove the user's ability to verify what will change.
Quiet product boundary. Fewer clicks and richer controls are not automatically better. Remove misleading affordances before adding alternate controls, prefer quiet defaults for diagnostics and alerts, and fix unstable motion cadence before changing speed or adding a new motion preference. If the current UI implies an action, state, or promise it cannot support, remove that implication first.
当用户请求针对具体症状进行局部视觉修复时激活:内容溢出、文本截断或换行、对齐错误、间距失衡、对比度/可读性问题、本地化文本适配不良或紧凑响应式断点故障。此模式用于修复现有界面,而非重新设计。
流程:
- 读取当前UI证据:截图、渲染页面、原生视图或对应组件。
- 用一句话明确指出具体的视觉缺陷。
- 采用最小化的材质、几何、间距、对比度、排版或文本适配修改来修复该缺陷。
- 验证真实运行界面或生成产物。适用时需检查长单词、本地化字符串、紧凑状态及至少一个窄视口。
- 如果修复涉及三个或更多组件、改变产品行为或暴露方向问题,请停止操作并切换至截图迭代模式或先锁定设计方向。
间距统一规则:如果某个魔数间距或尺寸值已调整三次但布局仍不理想,请停止微调。将N个独立的内边距/间隙/外边距/尺寸值替换为一个共享的命名令牌(、、)。外层容器内边距默认与内部元素间隙值相同。经微调后仍存在的不对称属于结构设计问题,而非数值问题,继续调整魔数无法解决。应先减少独立值的数量,再讨论具体数值。
Spacing.s4--gap-contentgap-4固定高度操作栏、统一排版:任何基于状态切换子元素的容器(状态栏、操作栏、工具栏行、菜单项)必须在所有状态下使用统一字体大小。可通过填充、描边、透明度、颜色或图标区分状态,绝不能改变字体大小。与之间1pt的高度差会在状态切换时产生明显抖动。同一操作栏中的CTA胶囊按钮需使用相同尺寸(通常为14px),通过背景和边框区分,而非排版。
secondary 13pxprimary 14px完成界面布局:操作完成界面应展示用户最关注的单一结果:实际回收的大小/处理数量/变更状态。详细说明应放在从摘要行打开的详情浮层中,而非主完成行内。当点击摘要行即可打开详情时,请勿在旁边添加单独的“查看”按钮;若无跳过项,请勿显示“0项跳过”入口。如果没有跳过或失败项,请完全隐藏详情入口。
安全操作设计:对于清理、删除、卸载、重置或权限变更界面,请勿通过隐藏可恢复性来简化UI。批量选择、自动选择、一键删除或“推荐”破坏性默认操作仅适用于目标用户可理解每行内容、且每行具备足够身份信息(名称、来源、所有者、路径、预览或相关恢复提示)以确保安全的场景。如果行内容是模糊标识符、推断残留项或仅机器可读路径,优先采用先评审的UI、当前目标范围限制、禁用破坏性操作入口或分组说明,而非更快的批量控制。仅因减少点击次数的需求不足以移除用户验证变更内容的能力。
简洁产品边界:更少的点击和更丰富的控件并非绝对更好。在添加替代控件前先移除误导性操作入口,优先为诊断和警报设置简洁默认值,在调整速度或添加新动效偏好前先修复不稳定的动效节奏。如果当前UI暗示了它无法支持的操作、状态或承诺,请先移除该暗示。
Screenshot Iteration Mode
截图迭代模式
Activate when the user sends a screenshot or image alongside a complaint ("这里很丑", "这个不对", "fix this", "looks wrong"). The existing product is the direction. Skip the five-question direction lock.
Flow:
- Read the screenshot. State the problem in one sentence: what specifically looks wrong (spacing, contrast, alignment, typeface, color, density, hierarchy). Preserve the user's negative label when it is diagnostic; do not translate "丑", "乱", "不清晰", or "怪" into vague "make it modern" language.
- Wait for the user to confirm the diagnosis before touching code.
- If the user provides a reference screenshot, older version, or "this one is good" example, compare current vs. reference and name the visual deltas before choosing a fix.
- If the diagnosis is a known UX problem (split-view sync, infinite scroll, virtualised list, sticky header), spend one round surveying how 2-3 mature products in the same category solve it before writing code. Cite what each does. Skip only if the fix is purely cosmetic (color, spacing, copy).
- Find the responsible code: grep for the component name or class, read the actual file. Do not rely on memory or assumptions about file location.
- Apply the minimal fix. For existing products, try material/opacity, geometry, spacing, typography, or text-fit adjustments before redesigning the surface.
- Verify the result in a browser, native app, screenshot tool, or rendered artifact at desktop width and 375px mobile width when applicable. Check long words, localized strings, button labels, and compact states for overflow. If the host cannot render, say that explicitly and hand off the exact view the user should check.
- Ask the user to verify in the browser. Do not hand off without this step.
Calibration rules:
- The user's screenshot is the strongest design brief in the turn. Keep it visible in the reasoning until the fix is done.
- The real running product is the oracle. Product pages, app screenshots, release pages, and current UI state override generic style instincts.
- Do not flatten specific taste feedback into generic UI adjectives. "More premium" is not a diagnosis; "caption baseline drifts above the Chinese line" is.
- If the screenshot exposes a regression, broken render, timing issue, or generated asset defect rather than taste, route to and preserve the visual evidence.
/hunt
Native screenshot handoff. For native apps, once you have proven the app builds, runs, and can reach the target view, do not spend repeated cycles fighting focus, window ordering, or coordinate-click automation just to capture final visual proof. Make one bounded automation attempt. If it is flaky, name the exact screen and ask the user for the screenshot to iterate against. This is a visual QA boundary, not a substitute for build/run verification.
Boundary: if the fix requires changing 3 or more components, or if it reveals a direction problem rather than a specific bug, pause and run the full direction lock before continuing.
Redesign priority order (when reworking an existing UI rather than building from scratch): font replacement → color cleanup → hover/active states → layout and whitespace → replace generic components → add loading/empty/error states → typographic polish. This order maximizes visual lift while minimizing the blast radius of each pass. Full rules in . Common traps and absolute CSS bans: .
references/design-reference.mdreferences/design-traps.md当用户发送截图或图片并附带反馈(如“这里很丑”“这个不对”“fix this”“looks wrong”)时激活。现有产品即为设计方向,跳过五道方向锁定问题。
流程:
- 读取截图。用一句话说明问题:具体哪部分存在问题(间距、对比度、对齐、字体、颜色、密度、层级)。如果用户的负面描述具备诊断性,请保留原表述;请勿将“丑”“乱”“不清晰”“怪”转化为模糊的“使其现代化”这类表述。
- 在修改代码前等待用户确认诊断结果。
- 如果用户提供参考截图、旧版本或“这个版本更好”的示例,请对比当前版本与参考版本,明确视觉差异后再选择修复方案。
- 如果诊断结果是已知的UX问题(分屏同步、无限滚动、虚拟列表、粘性头部),在编写代码前先调研2-3个同领域成熟产品的解决方案,并说明每个产品的做法。纯 cosmetic(颜色、间距、文案)修复可跳过此步骤。
- 找到对应代码:通过组件名称或类名搜索,读取实际文件。请勿依赖记忆或对文件位置的假设。
- 应用最小化修复。对于现有产品,在重新设计界面前先尝试材质/透明度、几何、间距、排版或文本适配调整。
- 适用时在浏览器、原生应用、截图工具或渲染产物中验证结果,检查桌面宽度和375px移动宽度。检查长单词、本地化字符串、按钮标签和紧凑状态是否存在溢出。如果宿主环境无法渲染,请明确说明并告知用户需检查的具体视图。
- 请求用户在浏览器中验证。完成此步骤前请勿交付成果。
校准规则:
- 用户提供的截图是当前回合最权威的设计需求。在修复完成前,需始终参考截图进行推理。
- 真实运行的产品是最终依据。产品页面、应用截图、发布页面及当前UI状态优先级高于通用风格直觉。
- 请勿将具体的审美反馈转化为通用UI形容词。“更高级”不是诊断结果;“说明文字基线偏离中文行高”才是。
- 如果截图暴露的是回归问题、渲染故障、时序问题或生成资源缺陷而非审美问题,请转至模式并保留视觉证据。
/hunt
原生应用截图交付:对于原生应用,一旦确认应用可构建、运行并能进入目标视图,请勿反复尝试解决焦点、窗口排序或坐标点击自动化问题以获取最终视觉证明。进行一次有限的自动化尝试。如果尝试不稳定,请明确指出具体屏幕并请求用户提供截图以继续迭代。这是视觉QA边界,不能替代构建/运行验证。
边界限制:如果修复需要修改3个或更多组件,或暴露的是方向问题而非具体bug,请暂停操作并先完成完整的方向锁定流程。
重设计优先级顺序(针对现有UI重设计而非从零构建):字体替换 → 颜色清理 → 悬停/激活状态优化 → 布局与留白调整 → 替换通用组件 → 添加加载/空状态/错误状态 → 排版打磨。此顺序可在最小化每次修改影响范围的同时最大化视觉提升效果。完整规则请参阅。常见陷阱及绝对禁用的CSS模式请参阅。
references/design-reference.mdreferences/design-traps.mdLock the Direction First
先锁定设计方向
Before starting any component, page, or visual work: list 2-3 mature products in the same category (e.g. Notion, Linear, Typora, iA Writer, Raycast), and write one sentence each on how they solve the specific problem at hand. Then write code. Skip only if the task is purely cosmetic (color, spacing, copy).
Before writing any code, ask the user directly, using the environment's native question or approval mechanism if it has one:
-
Who uses this, and in what context? Analyst dashboard differs from landing page or onboarding flow. See "App shell exception" below if the answer is a sidebar + main workspace layout.
-
What is the aesthetic direction? Name it precisely: dense editorial, raw terminal, ink-on-paper, brutalist grid, warm analog. "Clean and modern" is not a direction. If the user names a reference site or product ("feels like Linear / Claude.ai / Vercel"), do not accept it as a direction -- extract 3 concrete properties from it: button radius philosophy, surface depth treatment (shadow vs background step vs border), and accent color family. Name those instead.Shortcut for well-known brands: see "Brand preset flow" in. Ask first, run the preset, then decompose against the generated file.
references/design-reference.md -
What is the design signature? A typeface, color system, unexpected motion, asymmetric layout. Pick one and make it obvious.
-
What are the hard constraints? Framework, bundle size, contrast minimums, keyboard accessibility.
-
What is the signature micro-interaction? Scale on press, staggered reveal, or contextual icon animation. Pick one and know exactly how it's implemented.
Do not proceed until all five are answered.
在开始任何组件、页面或视觉工作前:列出2-3个同领域成熟产品(如Notion、Linear、Typora、iA Writer、Raycast),分别用一句话说明它们如何解决当前具体问题。然后再编写代码。纯cosmetic(颜色、间距、文案)任务可跳过此步骤。
编写代码前,请直接向用户提问,若环境有原生提问或审批机制,请使用该机制:
-
谁会使用它,使用场景是什么? 分析师仪表盘与着陆页或引导流程截然不同。如果答案是侧边栏+主工作区布局,请参阅下文的“应用外壳例外”。
-
审美方向是什么? 需精准描述:密集编辑风格、原生终端风格、纸墨风格、粗野主义网格、温暖模拟风格。“简洁现代”不是明确方向。如果用户指定参考网站或产品(如“感觉像Linear / Claude.ai / Vercel”),请勿直接将其作为方向——需从中提取3个具体特性:按钮圆角设计理念、表面深度处理(阴影vs背景层级vs边框)、强调色系。改用这些特性作为方向。知名品牌快捷方式:请参阅中的“品牌预设流程”。先询问用户,应用预设,再对照生成文件分解特性。
references/design-reference.md -
设计标识是什么? 一种字体、一套颜色系统、独特动效、不对称布局。选择一个并使其突出。
-
硬约束有哪些? 框架、包大小、最低对比度要求、键盘无障碍支持。
-
标志性微交互是什么? 按压缩放、 staggered reveal(分步显示)、上下文图标动画。选择一个并明确其实现方式。
所有问题得到回答前请勿继续。
Source repo as reference
以源码仓库为参考
When the user provides a repository URL or pastes source code of an existing product to recreate or extend: the file tree is a menu, not the meal. Do not reconstruct the UI from memory or training data. Instead, read the actual source:
- Theme and token files: ,
theme.ts,colors.ts,tokens.css, or equivalent_variables.scss - Global stylesheets and layout scaffolds
- The specific components the user mentioned
Lift exact values: hex codes, spacing scale entries, font stacks, border radii. A rough approximation is not pixel fidelity.
Only attach the target component folder or package. Exclude , , , and lock files. Dragging in an entire monorepo pollutes the context with irrelevant code and degrades output quality.
.gitnode_modulesdist当用户提供仓库URL或粘贴现有产品的源码以进行重建或扩展时:文件树是菜单,而非正餐。请勿依赖记忆或训练数据重建UI。相反,需读取实际源码:
- 主题和令牌文件:、
theme.ts、colors.ts、tokens.css或等效文件_variables.scss - 全局样式表和布局框架
- 用户提及的具体组件
提取精确值:十六进制颜色码、间距刻度值、字体栈、边框圆角。粗略近似无法达到像素级保真度。
仅附加目标组件文件夹或包。排除、、和锁文件。拖入整个单体仓库会引入无关代码,污染上下文并降低输出质量。
.gitnode_modulesdistExisting-native-app exception (do not propose wholesale platform restyling)
现有原生应用例外(请勿提议全面平台风格重设计)
When the target is an existing macOS / iOS / Android native app that already has a coherent visual direction, do not propose a wholesale port to a newer platform style (macOS 26 Liquid Glass, iOS 18 frosted material, Material You, Fluent Design, etc.) as the default improvement plan. Wholesale restyling reads as "I do not have a specific design intent, here is the platform's." Default to incremental polish on the existing direction: spacing, alignment, hover and focus states, typography hierarchy, copy tightening, motion timing. Only propose a platform-style migration when the user has explicitly asked for it in this turn, or when the existing direction is broken in a way that incremental polish cannot fix. State the existing direction in one sentence before proposing changes so the user can correct the read.
当目标是已有连贯视觉方向的现有macOS/iOS/Android原生应用时,请勿默认提议全面迁移至更新的平台风格(如macOS 26 Liquid Glass、iOS 18磨砂材质、Material You、Fluent Design等)作为改进方案。全面重设计会被解读为“我没有明确的设计意图,这是平台默认风格”。默认应在现有方向上进行增量打磨:间距、对齐、悬停与焦点状态、排版层级、文案精简、动效时序。仅当用户在当前回合明确要求,或现有方向存在增量打磨无法修复的问题时,才提议平台风格迁移。提议修改前先用一句话说明现有方向,以便用户纠正理解。
App shell exception (sidebar + main workspace)
应用外壳例外(侧边栏+主工作区)
If question 1 is an app shell (Slack, Linear, Notion class), load the "App shell rules" section in and apply those constraints before proceeding.
references/design-reference.md如果问题1的答案是应用外壳(Slack、Linear、Notion类),请加载中的“应用外壳规则”部分并应用这些约束后再继续。
references/design-reference.mdData dashboard exception
数据仪表盘例外
If the surface is a dashboard, analytics view, or chart-heavy interface, also load for chart selection, number alignment, and product-benchmark rules. Skip when building marketing pages, landing pages, or generic components.
references/design-data-viz.mdState the chosen direction in one sentence, then load and check the tech stack conflicts table. Name the single CSS strategy before writing the first component. For token decisions (color, font, motion): load . For aesthetic quality review and production structure: load .
references/design-reference.mdreferences/design-tokens.mdreferences/design-aesthetic-quality.mdSummarize the direction as three lines before writing any code:
- Visual thesis: mood, material, and energy in one sentence (e.g. "warm brutalist editorial with high-contrast ink type and rough paper texture")
- Content plan: hero -> support -> detail -> final CTA, one line each. For app/dashboard surfaces: skip the marketing structure, default to utility mode (orient, show status, enable action), no hero unless explicitly requested.
- Interaction thesis: 2-3 specific motion ideas that change how the page feels (e.g. "hero text slides in on load, section headers pin while content scrolls beneath, CTA pulses on hover")
For production or multi-page UIs, expand the thesis into the 9-section DESIGN.md scaffold in (theme, palette, typography, components, layout, depth, do/don't, responsive, prompt guide). For a single component, the three lines are sufficient.
references/design-reference.md如果界面是仪表盘、分析视图或图表密集型界面,请同时加载中的图表选择、数字对齐及产品基准规则。构建营销页面、着陆页或通用组件时可跳过此步骤。
references/design-data-viz.md用一句话说明选定的方向,然后加载并检查技术栈冲突表。编写第一个组件前明确单一CSS策略。对于令牌决策(颜色、字体、动效):请加载。对于审美质量评审和生产结构:请加载。
references/design-reference.mdreferences/design-tokens.mdreferences/design-aesthetic-quality.md编写代码前将方向总结为三行:
- 视觉主旨:用一句话说明氛围、材质和风格(如“温暖粗野主义编辑风格,搭配高对比度墨水字体和粗糙纸张纹理”)
- 内容规划:英雄区→支持内容→细节→最终CTA,每行一个要点。对于应用/仪表盘界面:跳过营销结构,默认采用实用模式(定位、显示状态、支持操作),除非明确要求,否则无需英雄区。
- 交互主旨:2-3个具体动效思路,改变页面质感(如“英雄文本加载时滑入,章节标题固定,内容在下方滚动,CTA悬停时脉冲动效”)
对于生产环境或多页面UI,请将主旨扩展为中的9节DESIGN.md框架(主题、调色板、排版、组件、布局、深度、注意事项、响应式、提示指南)。对于单个组件,三行总结已足够。
references/design-reference.mdHard Rules
硬性规则
references/design-reference.mdreferences/design-reference.mdWhen Asked For Options
当用户要求提供选项时
Give at least 3 variations across genuinely different dimensions (density, typography, color, layout, motion). See "Options guide" in for the full variation framework. Three options differing only by accent color are not three variations.
references/design-reference.md需提供至少3种真正不同维度的变体(密度、排版、颜色、布局、动效)。完整变体框架请参阅中的“选项指南”。仅强调色不同的三个选项不算三种变体。
references/design-reference.mdGotchas
常见陷阱
| What happened | Rule |
|---|---|
| Used Inter as the display font | It communicates nothing. Pick something with a personality. |
| Three cards, identical shadows, identical padding -- a template | If swapping content doesn't require layout changes, redo it. |
| Claimed it looked right without opening a browser | Code correct in your head can look broken in the browser. Open it. |
| Chose glassmorphism, ignored the mobile constraint | |
| Light-mode app: white panel on white background, visually indistinguishable | Adjacent nested surfaces must differ visually. Either background step (sidebar vs main ≥4% lightness difference) or shadow minimum |
| Fixed visual polish by redesigning the whole surface | Locate the concrete visual delta first, then make the smallest material, opacity, geometry, or typography change that addresses it. |
| Added a setting or louder control to solve UI noise | Remove the misleading affordance or choose a quiet default first |
| English looked fine, localized text overflowed | Test long words and localized strings before handoff, especially inside buttons, tabs, nav, and compact cards. |
Relied on | Guarantee fit instead: compact the format, cap to whole segments, or hard-trim with no glyph. Metric and label footers must never tail-truncate into an ellipsis. |
| 问题场景 | 规则 |
|---|---|
| 使用Inter作为展示字体 | 该字体无独特辨识度,请选择具备个性的字体。 |
| 三个卡片,阴影、内边距完全相同——模板化设计 | 如果替换内容无需调整布局,请重新设计。 |
| 未打开浏览器就声称视觉效果正确 | 脑海中正确的代码在浏览器中可能显示异常,请打开浏览器验证。 |
| 选择玻璃态设计,忽略移动端约束 | |
| 浅色模式应用:白色面板置于白色背景上,视觉上无法区分 | 相邻嵌套界面必须具备视觉差异。要么背景层级区分(侧边栏与主界面亮度差≥4%),要么添加最小阴影 |
| 通过重新设计整个界面来修复视觉问题 | 先定位具体视觉差异,再采用最小化的材质、透明度、几何或排版修改解决问题。 |
| 通过添加设置或更醒目的控件解决UI杂乱问题 | 先移除误导性操作入口或选择简洁默认值 |
| 英文显示正常,本地化文本溢出 | 交付前测试长单词和本地化字符串,尤其是按钮、标签、导航和紧凑卡片内的文本。 |
依赖 | 需确保文本完全适配:压缩格式、限制为完整段落、或直接截断无省略号。指标和标签页脚绝不能以省略号结尾截断。 |
Aesthetic Review
审美评审
After significant build phases and at handoff, re-read the visual thesis from direction lock. If what is on screen drifted toward a generic default, identify the specific element that broke first (typeface, color, card treatment, spacing) and fix it before continuing.
Run these checks before the handoff summary:
- Is the brand or product unmistakable in the first screen?
- Is there one strong visual anchor (real imagery, not a decorative gradient)?
- Can the page be understood by scanning headlines only?
- Does each section have one job?
- Are cards actually necessary, or just default styling?
- Does motion improve hierarchy or atmosphere, or is it ornamental?
- Would the design still feel premium if all decorative shadows were removed?
- AI Slop Test: scan the first screen for default patterns (reflex font, purple-to-blue gradient, centered hero with two CTAs side by side, three identical cards, generic top nav). If any appear unintentionally, fix typography, color, or layout until none remain.
If any check fails, fix first. Ask the user to verify at full width and at 375px; if the layout breaks at mobile width, fix before handing off.
End with:
- Aesthetic direction, named and justified in 2-3 sentences
- Non-obvious choices explained: typeface, color decisions, layout logic
- Instructions for replacing placeholder content with real content
After handoff, stop.
在重要构建阶段完成后及交付前,重新阅读方向锁定阶段的视觉主旨。如果屏幕上的内容偏向通用默认风格,请找出第一个偏离的具体元素(字体、颜色、卡片样式、间距)并修复后再继续。
交付总结前运行以下检查:
- 品牌或产品特性在首屏是否清晰可辨?
- 是否有一个强视觉锚点(真实图像,而非装饰性渐变)?
- 仅扫描标题能否理解页面内容?
- 每个部分是否有明确的单一功能?
- 卡片是否真的必要,还是只是默认样式?
- 动效是否提升了层级或氛围,还是仅为装饰?
- 如果移除所有装饰性阴影,设计是否仍显高级?
- AI冗余测试:扫描首屏是否存在默认模式(通用字体、紫蓝渐变、居中英雄区搭配两个并排CTA、三个相同卡片、通用顶部导航)。如果存在非故意的默认模式,请调整排版、颜色或布局直至完全消除。
如果任何检查未通过,请先修复。请求用户在全宽和375px宽度下验证;如果布局在移动端宽度下故障,请修复后再交付。
交付结尾需包含:
- 2-3句话说明并证明审美方向
- 解释非显而易见的选择:字体、颜色决策、布局逻辑
- 将占位符内容替换为真实内容的说明
交付完成后停止操作。