kshv-taste
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesekshv-taste
kshv-taste
Generated UI is rarely wrong about the UX. An eyebrow wants to announce something, an accent border wants to mark what matters, a sub-label wants to explain. It says it the louder, older, vaguer way. This skill is the judgement for saying it the way a designer would ship it.
It pairs with ui-sdk. ui-sdk gives an agent keyboard, focus, ARIA and forms with no styles at all; that blank slate is exactly where an agent reaches for its defaults. This skill supplies the judgement to finish those components.
It teaches taste, not a look. Most of it is decisions that hold in any design system: what to cut, where data goes, how things move, what copy says. A small part is Keshav's own house style, and that part is used only when the user chooses it. Never repaint someone's product in the house style because this skill is installed.
Walk the same procedure every time. The output should differ per brief and per design system; the reasoning should not.
生成式 UI 在 UX 层面很少真正出错。eyebrow 标题想要宣布某件事,强调色边框想要标出重要内容,副标签想要加以解释;只不过它采用了更喧闹、更陈旧、也更含糊的方式。这个 skill 所提供的,正是设计师交付产品时会采用的表达判断力。
它与 ui-sdk 配套使用。 ui-sdk 为 agent 提供键盘操作、焦点、ARIA 和表单支持,完全不带样式;这片空白画布恰恰是 agent 容易启用自身默认方案的地方。这个 skill 补足了完成这些组件所需的判断力。
它培养的是品味,而不是某种外观。 其中大部分都是适用于任何设计系统的决策:该删什么、数据放在哪里、元素如何运动、文案表达什么。只有一小部分属于 Keshav 自己的 house style,而且仅在用户选择时使用。绝不要仅仅因为安装了这个 skill,就把别人的产品重新涂成 house style。
每次都走同一套流程。输出应随 brief 和设计系统而变化;推理过程不应改变。
Step 0: whose design system
第 0 步:使用谁的设计系统
Before the first visual decision, settle which design language you're working in. Ask the user once, unless their request already answers it:
Does the request already say which look to use?
├── Yes → use it, don't ask
└── No → look in the project first
├── It has a design system (tokens in the Tailwind theme or CSS variables, a components/ui folder,
│ a DESIGN.md or brand guide, a consistent existing page)
│ → ask: "I found <what you found>. Should I follow it, or use something else?"
│ Recommend following it.
└── It has none
→ ask: "Do you have a design system or references you want me to follow?
If not, I can use Keshav's house style (graphite controls, Allo, duotone icons)."Then follow the answer:
| They choose | What you do |
|---|---|
| Their existing design system | Use its type, colours, radii, shadows and components exactly. Apply every principle in this skill through their tokens: their accent spent once, their card style without dead bands, their buttons with copy that names the action. Never introduce Allo, graphite ink or Nucleo into it. |
| References they give (sites, screenshots, a Figma file) | Take the technique and the decisions you can see, then build your own version. Don't reproduce the reference's layout, metaphor or chrome with new colours (effects-and-demos.md). Say what you changed. |
| Keshav's house style | Use the values marked House style in the references: graphite ink, Allo, Nucleo duotone, the cool palette, the vivid icon hues. |
Record the choice in the project's or so the next session doesn't ask again.
AGENTS.mdDESIGN.md在做出第一个视觉决策前,先确定你正在使用哪种设计语言。除非请求中已经给出答案,否则询问用户一次:
请求中是否已经说明要使用哪种风格?
├── 是 → 使用它,不要询问
└── 否 → 先查看项目
├── 项目有设计系统(Tailwind theme 或 CSS variables 中的 tokens、components/ui 文件夹、
│ DESIGN.md 或品牌指南、一致的现有页面)
│ → 询问:“我发现了 <你发现的内容>。我应该沿用它,还是使用其他方案?”
│ 建议沿用。
└── 项目没有设计系统
→ 询问:“你是否有希望我遵循的设计系统或参考资料?
如果没有,我可以使用 Keshav 的 house style(graphite controls、Allo、duotone icons)。”然后按照答案执行:
| 用户的选择 | 你要做什么 |
|---|---|
| 他们现有的设计系统 | 严格使用其字体、颜色、圆角、阴影和组件。通过其 tokens 落实本 skill 的每项原则:强调色只用一次,卡片样式不保留 dead band,按钮文案明确说明操作行为。绝不要向其中引入 Allo、graphite ink 或 Nucleo。 |
| 他们提供的参考资料(网站、截图、Figma 文件) | 吸收你能看到的手法与决策,然后构建自己的版本。不要用新颜色复刻参考对象的布局、隐喻或界面装饰(effects-and-demos.md)。说明你改动了什么。 |
| Keshav 的 house style | 使用参考文档中标记为 House style 的值:graphite ink、Allo、Nucleo duotone、冷色调色板和鲜明图标色。 |
在项目的 或 中记录这一选择,以免下次会话再次询问。
AGENTS.mdDESIGN.mdRead before you build
构建前先阅读
| You are about to | Read |
|---|---|
| Pick or build any control (button, switch, select…) | references/ui-sdk.md |
| Style a surface, card, button, shadow, colour | references/surfaces-and-colour.md |
| Set type, pick icons, write labels | references/type-and-icons.md |
| Lay out a frame, a row of cards, a stat | references/layout.md |
| Add any motion, a number that changes, a before/after | references/motion.md |
| Wire hover, switches, popovers, values on controls | references/interaction.md |
| Write any visible text | references/copy.md |
| Review or fix UI that looks generated | references/slop-catalogue.md |
| Build an effect, a demo, a gag or a pitch | references/effects-and-demos.md |
Each reference starts with principles that hold in any design system, then gives the house-style values separately.
Ready-to-use code lives in : (the blur digit roll), (a critically damped spring baked into CSS ), (live measured annotations), and (house style: graphite ink on WebGL2). The first three work in any design system. Copy them into the project; don't rewrite them from memory.
assets/flow.tsxspring-ease.tslinear()redlines.tsxink.ts| 你即将做什么 | 阅读 |
|---|---|
| 选择或构建任何控件(button、switch、select……) | references/ui-sdk.md |
| 设置 surface、card、button、shadow、colour 的样式 | references/surfaces-and-colour.md |
| 设置 type、选择 icons、编写 labels | references/type-and-icons.md |
| 布局 frame、card 行或 stat | references/layout.md |
| 添加任何动效、数字变化或前后对比 | references/motion.md |
| 接入 hover、switch、popover 和控件值 | references/interaction.md |
| 编写任何可见文本 | references/copy.md |
| 审查或修复看起来像生成内容的 UI | references/slop-catalogue.md |
| 构建 effect、demo、gag 或 pitch | references/effects-and-demos.md |
每份参考文档都先列出适用于任何设计系统的原则,再单独给出 house-style 值。
可直接使用的代码位于 :(模糊数字滚动效果)、(烘焙进 CSS 的临界阻尼弹簧)、(实时测量标注)和 (house style:基于 WebGL2 的 graphite ink)。前三者适用于任何设计系统。将它们复制到项目中,不要凭记忆重写。
assets/flow.tsxspring-ease.tslinear()redlines.tsxink.tsThe build procedure
构建流程
Run these in order for every component or page. Do not skip a step because the brief is small.
- Settle the design system (above).
- Find the real task. Write one sentence: who is doing what, and what they need to see to do it. If you can't, the component has no job yet. Ask, or pick a real product flow (billing, code review, a search filter, setting up a workspace), never a lorem-ipsum showcase.
- Pick the behaviour. If the project already uses a primitive library (Radix, Base UI, React Aria, ui-sdk), use it. Otherwise use ui-sdk: match the task with the table in references/ui-sdk.md, or define a primitive with . Never hand-write
definePrimitive,role="switch",role="radiogroup"and friends on arole="dialog".div - Find where the eye and hand already are. Put the data there: the price on the slider thumb, the delta beside the number, the card's expiry on the timeline under it. If two things would collide, design their merged state (see interaction).
- Subtract. For each element ask: what breaks without it? If nothing, delete it. Eyebrows, sub-labels, icon tiles, decorative badges, "Learn more" links, trays, ghost slots and key hints go first.
- Set the type and icons from the chosen system, each icon depicting its label's meaning.
- Spend colour once. Neutral ink everywhere. Colour goes on icons, on one accent element, and on values whose meaning is good or bad. Never on a surface wash, a gradient or a glow.
- Give it material. One primary control per view, visibly the strongest thing on it. Cards edge with a hairline ring and a soft shadow, not a border plus a hard shadow.
- Move it with weight. Springs, critically damped, no overshoot on controls. Every changing number animates its digits. Hover reveals; hover never moves what hangs off it.
- Write the copy last, against the real task. Outcome first, plain, sentence case, specific numbers, no em dashes, no exclamation marks.
- Check edge states and the frame. Empty, max, disabled, loading, dark mode, reduced motion, keyboard, a 375px phone. Fit the view (≤ ~1120×750 for a showcase frame).
- Run the review checklist below. Fix every miss before you show anything.
对于每个组件或页面,都按顺序执行以下步骤。不要因为 brief 很小就跳过任何一步。
- 确定设计系统(见上文)。
- 找到真正的任务。 写一句话:谁在做什么,以及他们需要看到什么才能完成。如果写不出来,组件还没有职责。进行询问,或选择一个真实产品流程(账单、代码审查、搜索筛选、设置 workspace),绝不要制作 lorem-ipsum 展示页。
- 选择交互行为。 如果项目已经使用 primitive library(Radix、Base UI、React Aria、ui-sdk),就继续使用。否则使用 ui-sdk:根据 references/ui-sdk.md 中的表格匹配任务,或使用 定义 primitive。绝不要在
definePrimitive上手写div、role="switch"、role="radiogroup"等 ARIA role。role="dialog" - 找到眼睛和手本来就关注的位置。 把数据放到那里:价格显示在 slider thumb 上,变化量紧挨着数字,卡片的到期时间放在其下方的时间线上。如果两件事会冲突,就设计它们的合并状态(见 interaction)。
- 做减法。 对每个元素问:移除后什么会坏?如果没有,删掉。eyebrow、sub-label、icon tile、装饰性 badge、“Learn more”链接、tray、ghost slot 和 key hint 优先删除。
- 根据选定系统设置 type 和 icons,每个 icon 都要表达其标签的含义。
- 让色彩只出现一次。 全局使用中性 ink。颜色用于 icons、一个强调元素,以及含义为好或坏的值。绝不用在 surface 铺色、gradient 或 glow 上。
- 赋予材质感。 每个 view 只有一个主控件,并且在视觉上明显最强。卡片使用 hairline ring 和柔和阴影,而不是边框加硬阴影。
- 让动效具有重量感。 使用临界阻尼弹簧,控件不产生 overshoot。每个变化的数字都要让数字位产生动画。hover 可以显现内容,但绝不能移动依附于它的元素。
- 最后对照真实任务撰写文案。 先说结果,语言平实,采用 sentence case,给出具体数字,不使用 em dash,也不使用感叹号。
- 检查边界状态和画框。 空、最大值、禁用、加载、暗色模式、reduced-motion、键盘操作、375px 手机。适配 view(展示画框约 ≤ 1120×750)。
- 运行下方的审查清单。 展示任何内容之前,修复所有未通过项。
Rules that are never broken
永不打破的规则
These hold in every design system. Each one came from a direct correction.
- No gradient or tinted page backgrounds. Leave the page its plain base colour. A light-blue gradient was "tacky… never do that please", and the flat blue that replaced it got the same verdict.
- No coloured glow or halo (with blur and a hue) around a card or control. Mark emphasis with a 1px ring, a pill, or one coloured element. A blue glow on a card "feels sloppy". The only exception is an effect whose subject is light, like fire.
box-shadow - Two- and three-way switches are never flat black segmented tabs. A knob or indicator with material in a recessed well, or a plain switch for one toggle. Flat black tabs were rejected for "something nicer".
- Every changing number animates its digits (if the project has nothing). Never a plain text swap, never a one-off count-up. The user wants it "in every design wherever there's a number tick".
assets/flow.tsx - Hover never moves anything attached to the hovered thing. It may reveal (a name spells out, a bar parts), but the panel hanging under it stays put and left-aligned content grows right.
- No bounce on controls. Springs are critically damped (). "Too bouncy though, need a little mass to it."
c ≈ 2√k - Every icon on a control depicts its label. An eye for "having taste", a sparkle for AI output. A decorative icon "makes no sense".
- No dead bands. Cards in one row never keep empty space to match a neighbour's height. Tighten first; fill only with content that earns its place.
- A value and its badge share one flex row with an 8px gap, on a shared baseline. Never two absolutely positioned pieces: rolling numbers change width and collide.
- Annotations need a cause. Redlines, dimension tags and brackets appear only after a scan passes or the element changes, and measure the real element every frame.
- No illustrated hands, arms or wrists. They looked "ugly and scary" and "crooked and cheap and childish".
- Demos wait for the user. No auto-play; a real input starts the flow. Show only what the real product would show.
House style adds three more, only when it's chosen: graphite ink, never ; Allo with Nucleo duotone; cool blues and greys, never warm creams, browns or rust.
#000以下规则适用于所有设计系统,每一条都来自一次直接纠正。
- 禁止 gradient 或带色 page background。 页面保持纯净的基础底色。浅蓝色 gradient 被评价为“tacky… never do that please”,替换它的纯蓝色也得到了同样的评价。
- 卡片或控件周围禁止 coloured glow 或 halo(带模糊和色相的 )。使用 1px ring、pill 或单个彩色元素来标记重点。卡片上的蓝色 glow“feels sloppy”。唯一例外是主体本身会发光的 effect,例如火焰。
box-shadow - 二段和三段 switch 绝不能做成纯黑色 segmented tabs。 应使用凹陷槽内有材质的旋钮或指示器,或者在只有一个 toggle 时使用普通 switch。纯黑色 tabs 因“something nicer”的要求而被否决。
- 每个变化的数字都必须让数字位产生动画(如果项目没有相应实现,就使用 )。绝不能只替换纯文本,也绝不能只做一次性的 count-up。用户希望“在每个存在数字变化的设计中都这样”。
assets/flow.tsx - hover 绝不能移动任何依附于被悬停对象的内容。 hover 可以显现内容(例如展开名称、拆开 bar),但悬停其下的 panel 必须保持原位,左对齐的内容则向右扩展。
- 控件禁止 bounce。 弹簧必须采用临界阻尼()。“Too bouncy though, need a little mass to it.”
c ≈ 2√k - 控件上的每个 icon 都必须表达其标签的含义。 “having taste”使用 eye,AI 输出使用 sparkle。装饰性 icon“makes no sense”。
- 禁止 dead band。 同一行中的卡片绝不能为了匹配相邻卡片的高度而保留空白。先收紧;只用真正有存在价值的内容填充。
- 数值和其 badge 共享同一个 flex row,间距为 8px,并使用共同基线。绝不能使用两个绝对定位的元素:滚动数字会改变宽度并发生碰撞。
- 标注必须有原因。 只有在扫描通过或元素发生变化后,才显示 redline、尺寸标签和括号,并且每一帧都测量真实元素。
- 禁止使用插画式的手、手臂或手腕。 它们看起来“ugly and scary”,而且“crooked and cheap and childish”。
- demo 要等待用户。 不自动播放;由真实输入启动流程。只展示真实产品会展示的内容。
只有选择了 house style 时,才额外加入以下三条:使用 graphite ink,绝不使用 ;使用 Allo 搭配 Nucleo duotone;使用冷调蓝色和灰色,绝不使用暖奶油色、棕色或铁锈色。
#000Review checklist
审查清单
Answer every line with yes or no. A "no" is a fix, not a note.
- The design system was settled in step 0, and nothing from another system leaked in
- Behaviour comes from the project's primitive library or ui-sdk; no hand-rolled ARIA roles
- Every element survives "what breaks without it?"
- No eyebrow, sub-label under every title, icon-in-a-tile, accent left border, dashed empty box, "Learn more", "Get started", "Book a demo", "No credit card required"
- Page background is the plain base colour; no gradient, grid, dots or glow behind content
- Colour appears only on icons, one accent, and good/bad values; body text is neutral ink
- One primary action per view, and it reads as the strongest control
- Headings tighter than body; weight never changes on hover or selection
- Each icon depicts its label
- Every changing number animates its digits, with
tabular-nums - Motion is spring-based, critically damped, with reduced-motion handled
- Hover reveals without shoving neighbours or attached panels
- Copy is outcome-first, specific, sentence case, no em dashes, no exclamation marks
- Empty, disabled, max, loading, dark and 375px states exist and look designed
- Fits the view; unpraised pieces were cut before praised ones
每项都回答 yes 或 no。“no”代表需要修复,而不是只做备注。
- 设计系统已在第 0 步确定,且没有混入其他系统的内容
- 交互行为来自项目的 primitive library 或 ui-sdk;没有手写的 ARIA role
- 每个元素都能回答“移除它会有什么坏处?”
- 没有 eyebrow、每个标题下都有 sub-label、icon-in-a-tile、accent 左边框、虚线空框,或“了解更多”“立即开始”“预约演示”“无需信用卡”等文案
- page background 是纯净的基础底色;内容后面没有 gradient、grid、dots 或 glow
- 颜色只出现在 icons、一个 accent 和表示好/坏的值上;正文使用中性 ink
- 每个 view 只有一个 primary action,并且在视觉上是最强的控件
- 标题比正文更紧凑;hover 或选中时字重绝不改变
- 每个 icon 都表达其标签的含义
- 每个变化的数字都会让数字位产生动画,并使用
tabular-nums - 动效基于弹簧、采用临界阻尼,并处理 reduced-motion
- hover 只会显现内容,不会推挤相邻元素或依附 panel
- 文案以结果为先,内容具体,采用 sentence case,不使用 em dash,也不使用感叹号
- 空、禁用、最大值、加载、暗色和 375px 状态均已设计且经过审视
- 适配 view;先删除不值得赞美的部分,再保留值得赞美的部分