Variant(组件变体)

SKILL前端设计
前端设计 未标注权限 许可证不明确
安装这个技能

Variant(组件变体)— 为一段 UI 生成三个有真实差异的候选方案并放进可切换的选择器帮你挑选与收敛,服务对象是前端开发者、设计师与产品。只要用户想在多个做法之间做选择,即应触发:以「给我几个方案选」「这个卡片还有别的做法吗」「多做几版对比一下」「帮我出三版」「不知道该用哪种布局/密度」「这版是不是太挤了」这类说法提出时同样触发,无需用户说出技能名。三个变体必须是同一份简报的不同答案,而非换了个强调色:先选定一条主轴(结构/密度/强调/字体/语气),让每个变体落在主轴的不同位置,其余选择跟随它保持一致。三个变体做进真实页面、挂在同一个选择器上,用 URL 参数记录当前版本,可左右箭头与数字键快速切换,方便反复横跳比较。每个变体入池前都要过同一条无障碍底线:控件有可访问名称、键盘能到达鼠标能到的一切、焦点可见、320px 下不裁切、不靠颜色单独表意。最后收敛到一版并删掉其余。典型话题/关键词:设计方案/多方案对比/A/B 方案/设计备选/组件变体/布局方案/信息密度/视觉强调与层级对比/字号与字重方案/文案语气/设计探索/方案选择器 variant picker/并排切换/URL 参数切换/设计决策收敛/选一个删其余/无障碍底线/320px 不裁切/键盘可达/焦点可见/可访问名称。只产出候选并把决定权交回给你,不替你选赢家;要审查现有界面归 interface-review,要压测极端输入归 break。移植自 Jakub Krehel 的 interfaces 技能集(MIT 许可)。当用户提问模糊但意图指向【生成多个设计方案/组件变体对比/设计选型】时,主动触发本 Skill 进行引导,无需用户说出准确的命令词或技能名。

一句话选型结论

按资料字段整理

Variant(组件变体)是前端设计类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类前端设计 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_8170ea13/variant
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

前端设计
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_8170ea13仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791621705
正文体量9.6 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
出页面与组件

按描述生成页面结构和组件草稿。

调整样式与布局

改间距、配色与响应式布局。

生成设计说明

把设计稿整理成开发能接的说明。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在前端设计场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
Variant(组件变体)当前 未标注权限 未标注 未标注 未标注 有
前端设计 只读 GitHub 仓库 882.3 万 Codex、Claude、Cursor 有
Vercel 组合模式 联网访问 GitHub 仓库 385.9 万 Codex、Claude、Cursor 有
Vercel React native skills 前端 只读 GitHub 仓库 246.9 万 Codex、Claude、Cursor 有
adapt 搜索 浏览器控制 GitHub 仓库 202.7 万 Codex、Claude、Cursor 有
使用我的浏览器 浏览器控制 GitHub 仓库 184.8 万 Codex、Claude、Cursor 有

SKILL.md 全文

9.6 KB
模型实际读到的说明书原文,来自技能仓库

Variants

This skill takes one described piece of UI and builds three versions that differ on purpose. They go behind a picker in the real page, so you can flip between them and choose.

Every other skill here judges. This one produces candidates and hands the decision back. Reviewing existing UI is interface-review and better-interface, and it does not pick the winner.

Different answers, not different tints

Three variants that differ in accent color teach nothing. You flip between them, see no real choice and the run is wasted.

So each variant is a different answer to the same brief, on an axis this collection owns:

Axis Owner What varies
Structure better-layout Grouping, order, column count, what collapses
Density better-layout Spacing scale, hit areas, how much fits
Emphasis better-colors Where filled color goes, what recedes
Type better-typography Scale steps, weight contrast, measure
Voice better-writing Labels, tone, how much copy

Pick one primary axis and give each variant a different position on it. Secondary choices follow from it rather than varying on their own. A dense variant may need a smaller type step, and that is coherence, not a second axis.

Varying every axis at once produces three unattributable results. You learn which you liked, not what made it work, so the next piece starts from nothing.

The floor every variant clears

A variant that wins on looks and fails an escalation trigger is not a candidate. It is a bug with a nice surface.

Before a variant enters the picker it clears better-interface's escalation triggers. Every control has an accessible name, keyboard reaches everything a pointer does, focus is visible, nothing clips at 320px and no meaning rides on color alone.

That floor is identical across variants. It is not an axis and never trades against one. Where a direction can only work by breaking it, say so and drop the direction.

1. Scope one piece

One piece of UI per run. "The dashboard" is not a piece; the metric card is. Where the brief spans several, name the one the others hang off, say why and offer the rest as later runs.

Restate the brief in one sentence: what the thing is, where it renders, what it has to do.

2. Learn the ground

Variants have to look like they could ship tomorrow, so read what they stand on:

  • The styling system, the component library and any motion library.
  • The tokens: color, spacing, radius, type scale, easing.
  • The product's density and voice. A dense professional tool bounds how far the boldest variant may go.
  • Where the piece renders: against what background, beside which neighbours, at which widths.

With no project to read, use neutral grays, one accent and the system font stack, and say that is what you did.

3. Name the axis before writing code

Default to three variants. Go to five only when asked, or when the space is genuinely wide. Past five nobody compares, they scroll.

Write the set down first, a name and an axis position each. Names say what the direction is, so Quiet, Editorial, Dense, never Option A.

This step is done when no two variants share a position and you can state each one's axis in a phrase.

4. Build it into the real page

A variant looks fine in isolation, which is why isolation is the wrong place to judge it. Host the variants on the page that will actually contain the piece, with the real chrome, the real neighbours and realistic data.

Select with a URL search param (?variant=quiet), so every variant is a link you can send someone. A floating control sets it; picker.md holds the spec.

Render one variant at a time, full size. Thumbnails distort spacing and scale, and spacing is usually the thing you are choosing between.

Where no page can host it, build one self-contained HTML file and keep the same picker.

Give every variant real content: product-shaped copy, plausible names and the number of items the page will really carry. Lorem ipsum and three rows make every structure look good.

5. Present the tradeoffs and stop

Flip through every variant yourself first. Each one renders, each interaction responds, the console is clean.

Then hand the decision over:

Variant Axis position Right when Costs
Quiet Lowest visual weight The page is used daily Least memorable
Editorial Largest type, most space The moment deserves weight Eats vertical space

Say where the picker is running, which key flips it and which width you judged at. The answer can change between 375px and 1440px.

Never mark a favourite in the table. Asked directly, answer from how often the piece is seen and from the product's personality, not from which one you enjoyed building.

6. Promote one, delete the rest

On a choice: build that variant properly where it belongs, following the project's own conventions, then delete the others and the harness.

Asked for another round instead, keep the harness and run step 3 again, taking new positions around the direction you leaned toward.

Until promotion, the harness never imports from production and production never imports from the harness.

Before you finish

Mistake Fix
Variants differ only in accent color or copy Move one to a different position on the primary axis, or cut it
Every axis varies at once Vary one; let the rest follow from it
Judged on a blank route Host them on the page that will contain the piece
Lorem ipsum, three rows, "Jane Doe" Real copy and the item count the page will really carry
The boldest variant skips keyboard or focus Clear the floor or drop the direction
A favourite marked in the table State each variant's cost and let the user choose
Picker restyled with the project's tokens Keep it visibly outside the design system
Harness left behind after promotion Delete it unless asked to keep it

来源与许可(Source & License)

本技能由 Jakub Krehel 的 interfaces 技能集 移植而来,采用 MIT License。

  • 原作者:Jakub Krehel(jakub@kbo.sk)
  • 原始仓库:https://github.com/jakubkrehel/skills
  • 许可:MIT License
MIT License

Copyright (c) 2026 Jakub Krehel

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

常见问题

5 问
答案由本站依据条目字段整理
Variant(组件变体)怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_8170ea13/variant。安装方式为未标注。装完刷新技能列表或重开客户端。

Variant(组件变体)支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

Variant(组件变体)权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

Variant(组件变体)收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

Variant(组件变体)用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。