Skip to content
SkillModel-led1,380 tokens in use

variant

Builds three deliberately different variants of one UI piece behind a picker in your real page, so you can compare and choose.

12,499 stars on the repository MIT Licensejakubkrehel/skills · skills/variant
npx skills add jakubkrehel/skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing variant costs

21tokens idle
1,380tokens in use
3,307tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Fair
  • Frontmatter8/15
  • Structure11/25
  • Examples0/15
  • Output15/15
  • Size15/15
  • Resources7/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity96
  • Maintenance52
  • Community48
  • Maturity24
  • Momentum40

variant takes one described piece of UI and builds three versions that each answer the same brief differently. They differ on one named axis such as structure, density, emphasis, type or voice, and every variant clears the same accessibility floor.

The variants are hosted on the page that will contain the piece, with real neighbours and realistic data, behind a picker with a URL param. The skill presents the tradeoffs, never picks a favorite, then builds the chosen one properly and removes the rest. You invoke it yourself by command.

What You Get

  • Three variants with direction names such as Quiet, Editorial or Dense, each at a different position on one axis
  • A picker beside the piece driven by a __variant search param, so every variant is a shareable link
  • A tradeoff table listing the axis position, when it is right and what it costs
  • A shared accessibility floor covering names, focus, keyboard, contrast, reduced motion and 320px width
  • A clean promotion step that builds the chosen variant and deletes the harness

Common Use Cases

  • Exploring layouts for a dashboard metric card
  • Comparing a dense and a spacious version of a settings list
  • Trying different copy voices for an empty state
  • Choosing type scale and weight contrast for a pricing block

What Makes It Unique

Each variant is a different answer on a named axis, so the choice is between designs and not between tints. All variants run in the real page with product-shaped content and at full size, because spacing is usually the thing being chosen. The skill produces candidates and never ranks them, and it asks the other better-* skills’ axes to define what can vary.

Under The Hood

The skill is written instructions plus one reference file with the picker markup and CSS. The agent reads your project’s styling, components and tokens, then writes new files in your codebase: the variant components, the picker and a change to the hosting page’s imports. It can build a single standalone HTML file when no page can host the piece. It opens the page in a browser if one is available to check each variant. After you choose, it edits your code to promote the winner and deletes the rest. It does not run scripts of its own or call outside services.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers