variant
하는 일
이 스킬은 설명한 인터페이스 부품 하나를 가지고, 일부러 다른 세 가지 버전을 만듭니다. 페이지에서 버전을 전환하며 가장 좋은 것을 고를 수 있습니다. 옵션을 탐색하는 디자이너와 개발자를 위한 것입니다.
사용하는 경우
- ✓화면을 정하기 전에 레이아웃 세 가지를 시험해 보고 싶을 때.
- ✓컴포넌트가 얼마나 빽빽하거나, 굵거나, 말이 많아야 할지 확신이 없어 옵션을 비교하고 싶을 때.
- ✓구조, 타이포그래피, 톤이 다른 양식이나 카드 버전을 원하는 경우.
스킬 링크
https://github.com/jakubkrehel/skills/blob/main/skills/variant/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“가격 카드의 서로 다른 레이아웃 세 가지 버전을 만들어서 비교할 수 있게 해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 버전들이 다른 주된 방식, 예를 들어 레이아웃이나 타이포그래피를 하나 고르고, 같은 요구에 대한 세 가지 답을 만듭니다. 이 버전들은 실제 페이지의 선택기 뒤에 놓여, 전환하며 볼 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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.
It produces candidates and never ranks them. Reviewing existing UI is interface-review and better-interface, stress testing one component is break and working through a component's states is state-machine.
Different answers, not different tints
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, 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. The axis names the picker's group heading. 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.
The floor every variant clears
Before a variant enters the picker it clears better-interface's escalation triggers, which are:
- Every control has an accessible name and a visible focus indicator.
- Keyboard reaches everything a pointer does.
- Motion and auto-playing content respect
prefers-reduced-motion. - Nothing clips, overlaps or becomes unreachable at 320px width or 200% zoom.
- Body and control text pass their required contrast ratio.
- No state or meaning rides on color alone, and no state change on motion alone.
- A destructive action has a confirmation, an undo or a distinct treatment.
- Truncated content has a way to reach the full value.
- Nothing hides past a scroll edge or behind a disclosure with no visible cue.
- Every error names a way to recover.
- No semantic color is used against its meaning, such as the danger hue on a non-destructive action.
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 request spans several, list the candidates and ask which one to explore.
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.
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
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 such as ?__variant=quiet, so every variant is a link you can send someone. A grouped list beside the piece sets it. Where there is no room beside the piece, it moves above it as a select with the same groups. 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.
Variant files may import production components. Only the hosting page imports a variant, and nothing else imports from the harness.
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
Load the page once in a browser already at h
자주 묻는 질문
어떤 버전이 가장 좋은지 알려 주나요?
아닙니다. 옵션은 만들지만 순위를 매기지 않으므로 선택은 사용자의 몫입니다.
버전들이 기본 품질 검사를 통과하나요?
네. 각 버전은 접근 가능한 이름이나 보이는 포커스 같은 스킬의 점검을 통과해야 선택기에 나타납니다.
기존 화면을 검토하나요?
아닙니다. 기존 화면 검토는 다른 스킬이므로, 이 스킬은 새 옵션만 만듭니다.
상세 정보
작성자의 원본 설명
Builds multiple variants of a component you're working on and helps you iterate and pick one.
repo: jakubkrehel/skills
인기도
- GitHub 스타
- 10k
- 순위
- #11897
- 라이선스
- MIT
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
better-accessibility
10k인터페이스의 키보드, 포커스, 스크린 리더, 양식, 움직임 문제를 WCAG 2.2 기준으로 검토하고 고칩니다.
better-colors
10k색상 단계 생성, 토큰 이름 짓기, 형식 변환, 대비 측정으로 색상 체계를 만들고 확인합니다.
better-interface
10k에이전트가 화면이나 흐름 전체를 접근성, 레이아웃, 글, 서체, 색, 완성도 측면에서 검토하고 문제의 우선순위를 매기도록 돕습니다.
better-layout
10k그룹화, 정렬, 읽기 순서, 반응형 구조를 설정하고, 크기가 바뀌거나 번역되어도 레이아웃이 유지되는지 확인합니다.
비슷한 스킬
canvas
394k에이전트가 연결된 Mac 패널에 호스팅된 시각적 위젯을 띄우고, 패널을 숨기거나 다른 페이지로 옮기도록 돕습니다.
control-ui
394k에이전트가 세션, 대시보드, 연결된 Gateway를 포함해 OpenClaw Control UI를 정리하고 문제를 해결하도록 돕습니다.
diagram-maker
394k에이전트가 프로세스, 시스템 구조, 화이트보드 스케치를 위해 SVG, HTML, 편집 가능한 Excalidraw 파일로 명확한 다이어그램을 만들도록 돕습니다.