variant
Qué hace
Esta skill toma una pieza de interfaz que describes y construye tres versiones que se diferencian a propósito. Puedes alternar entre ellas en la página y elegir la mejor. Es para diseñadores y desarrolladores que exploran opciones.
Cuándo usarla
- ✓Cuando quieres probar tres diseños distintos de una pantalla antes de elegir uno.
- ✓Cuando no sabes si un componente debe ser más denso, más llamativo o más extenso en texto y quieres comparar opciones.
- ✓Cuando quieres versiones de un formulario o una tarjeta que difieran en estructura, tipografía o tono.
Link de la skill
https://github.com/jakubkrehel/skills/blob/main/skills/variant/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Crea tres versiones de nuestra tarjeta de precios con diseños distintos para poder compararlas.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill elige una forma principal en la que se diferencian las versiones, como el diseño o la tipografía, y construye tres respuestas al mismo encargo. Están detrás de un selector en la página real para que puedas cambiar entre ellas.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Me dice cuál es la mejor versión?
No. Construye las opciones pero no las clasifica, así que la elección es tuya.
¿Se revisan las versiones en cuanto a calidad básica?
Sí. Cada versión debe superar las comprobaciones de la skill, como nombres accesibles y foco visible, antes de aparecer en el selector.
¿Revisa pantallas existentes?
No. Revisar pantallas existentes es otra skill, así que esta solo crea opciones nuevas.
Detalles
Descripción original del autor
Builds multiple variants of a component you're working on and helps you iterate and pick one.
repo: jakubkrehel/skills
Popularidad
- Estrellas en GitHub
- 10 mil
- Posición en el ranking
- #11897
- Licencia
- MIT
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
better-accessibility
10 milRevisa y corrige problemas de teclado, foco, lector de pantalla, formularios y movimiento en una interfaz, según los estándares WCAG 2.2.
better-colors
10 milCrea y revisa sistemas de color generando paletas, nombrando tokens, convirtiendo formatos y midiendo el contraste.
better-interface
10 milRevisa una pantalla o un flujo completo en accesibilidad, diseño, redacción, tipografía, color y acabado, y luego ordena los problemas por prioridad.
better-layout
10 milOrganiza agrupación, alineación, orden de lectura y estructura adaptable, y comprueba que los diseños aguantan al redimensionarse o traducirse.
Skills parecidas
canvas
394 milPermite que tu agente muestre un widget visual alojado en un panel de Mac conectado y después ocultar el panel o moverlo a otra página.
control-ui
394 milAyuda a tu agente a organizar y resolver problemas de la interfaz de control de OpenClaw, incluidas las sesiones, los paneles y las Gateways conectadas.
diagram-maker
394 milAyuda a tu agente a crear diagramas claros en SVG, HTML o Excalidraw editable para procesos, arquitectura de sistemas y bocetos de pizarra.