variant
यह क्या करती है
यह स्किल आपके बताए UI के एक हिस्से के लिए तीन संस्करण बनाती है, जो जानबूझकर एक-दूसरे से अलग होते हैं। आप पेज पर उनके बीच बदलकर सबसे अच्छा चुन सकते हैं। यह विकल्प खोजने वाले डिज़ाइनरों और डेवलपरों के लिए है।
कब इस्तेमाल करें
- ✓जब आप स्क्रीन के लिए तीन अलग लेआउट आज़माना चाहते हैं और फिर एक चुनना है।
- ✓जब आपको यकीन नहीं कि कोई कंपोनेंट कितना घना, गाढ़ा या शब्दों से भरा हो, और आप विकल्पों की तुलना करना चाहते हैं।
- ✓जब आप किसी फ़ॉर्म या कार्ड के ऐसे संस्करण चाहते हैं जो संरचना, टाइप या लहजे में अलग हों।
Skill का लिंक
https://github.com/jakubkrehel/skills/blob/main/skills/variant/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हमारे प्राइसिंग कार्ड के तीन अलग लेआउट वाले संस्करण बनाइए, ताकि मैं उनकी तुलना कर सकूँ।”
हर हफ़्ते 5 नई skills, 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
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
better-accessibility
10kकीबोर्ड, फ़ोकस, स्क्रीन रीडर, फ़ॉर्म और मोशन की समस्याएँ जाँचकर WCAG 2.2 मानकों के अनुसार ठीक करती है।
better-colors
10kरंग पैलेट बनाकर, टोकन के नाम रखकर, फ़ॉर्मेट बदलकर और कंट्रास्ट नापकर रंग सिस्टम बनाती और जाँचती है।
better-interface
10kपूरी स्क्रीन या फ़्लो को एक्सेसिबिलिटी, लेआउट, लेखन, टाइप, रंग और फ़िनिश के लिए जाँचती है और समस्याओं को क्रम से रखती है।
better-layout
10kग्रुपिंग, अलाइनमेंट, पढ़ने का क्रम और रिस्पॉन्सिव ढांचा तय करती है, और जाँचती है कि आकार बदलने या अनुवाद पर लेआउट टिके।
मिलती-जुलती skills
canvas
394kयह आपके एजेंट को जुड़े Mac पैनल पर होस्टेड विज़ुअल विजेट दिखाने, पैनल छिपाने या उसे दूसरे पेज पर ले जाने देती है।
control-ui
394kयह आपके एजेंट को OpenClaw Control UI को व्यवस्थित करने और उसमें आने वाली दिक्कतें सुलझाने में मदद करती है, जिसमें सेशन, डैशबोर्ड और जुड़े Gateway शामिल हैं।
diagram-maker
394kयह आपके एजेंट को प्रक्रियाओं, सिस्टम आर्किटेक्चर और व्हाइटबोर्ड स्केच के लिए SVG, HTML या संपादन योग्य Excalidraw फ़ाइलों में साफ़ डायग्राम बनाने में मदद करती है।