Variant logo

Variant

CommunityPopular
jakubkrehel
variant

Builds multiple variants of a component you're working on and helps you iterate and pick one.

Overview

Publisherjakubkrehel
Repositoryskills
Skill namevariant
Stars
6.8K
Forks
245
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by jakubkrehel on GitHub. Read the source before you install it.

Installation

Install the Variant AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jakubkrehel/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/variant .claude/skills/variant
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Variant in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Variant on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Variant is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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:

AxisOwnerWhat varies
Structurebetter-layoutGrouping, order, column count, what collapses
Densitybetter-layoutSpacing scale, hit areas, how much fits
Emphasisbetter-colorsWhere filled color goes, what recedes
Typebetter-typographyScale steps, weight contrast, measure
Voicebetter-writingLabels, 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:

VariantAxis positionRight whenCosts
QuietLowest visual weightThe page is used dailyLeast memorable
EditorialLargest type, most spaceThe moment deserves weightEats 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

MistakeFix
Variants differ only in accent color or copyMove one to a different position on the primary axis, or cut it
Every axis varies at onceVary one; let the rest follow from it
Judged on a blank routeHost 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 focusClear the floor or drop the direction
A favourite marked in the tableState each variant's cost and let the user choose
Picker restyled with the project's tokensKeep it visibly outside the design system
Harness left behind after promotionDelete it unless asked to keep it

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Variant AI skill do?

Builds multiple variants of a component you're working on and helps you iterate and pick one.

Why use Variant on TypingMind?

Because you install it once and use it with any model. Variant is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Variant in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jakubkrehel/skills/tree/main/skills/variant. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Variant?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Variant?

As many as you like. As long as a model supports skills, you can use Variant with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Variant AI skill free?

Yes. It is published on GitHub by jakubkrehel under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇