elite-frontend-ux-required-cn-helper
Sub-skill of elite-frontend-ux: Required: cn() Helper (+3).
Best use case
elite-frontend-ux-required-cn-helper is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of elite-frontend-ux: Required: cn() Helper (+3).
Teams using elite-frontend-ux-required-cn-helper should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/required-cn-helper/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How elite-frontend-ux-required-cn-helper Compares
| Feature / Agent | elite-frontend-ux-required-cn-helper | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sub-skill of elite-frontend-ux: Required: cn() Helper (+3).
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Required: cn() Helper (+3)
## Required: cn() Helper
```typescript
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
```
## NEVER Use Dynamic Class Names
```typescript
// ❌ BROKEN — Tailwind purges these
<div className={`bg-${color}-500`} />
// ✅ CORRECT — object map
const colorMap = { blue: "bg-blue-500", red: "bg-red-500" };
<div className={colorMap[color]} />
```
## Component Variants (CVA)
```typescript
import { cva, type VariantProps } from "class-variance-authority";
const buttonVariants = cva(
"inline-flex items-center justify-center rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50",
{
variants: {
variant: {
default: "bg-primary text-primary-foreground hover:bg-primary/90",
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
outline: "border border-input bg-background hover:bg-accent",
ghost: "hover:bg-accent hover:text-accent-foreground",
},
size: {
sm: "h-9 px-3 text-sm",
default: "h-10 px-4 py-2",
lg: "h-11 px-8 text-base",
},
},
defaultVariants: { variant: "default", size: "default" },
}
);
```
## Mobile-First Responsive
```html
<div class="
flex flex-col md:flex-row
gap-4 md:gap-8
p-4 md:p-6 lg:p-8
">
```
Breakpoints: `sm`=640px · `md`=768px · `lg`=1024px · `xl`=1280px · `2xl`=1536px
---Related Skills
frontend-design
Create distinctive, production-grade web interfaces with high design quality. Use for components, pages, dashboards, and full applications that need to stand out from generic AI aesthetics.
diffraction-analysis-required-report-structure-single-page-html
Sub-skill of diffraction-analysis: Required Report Structure (Single-Page HTML) (+3).
elite-frontend-ux-trigger
Sub-skill of elite-frontend-ux: Trigger.
elite-frontend-ux-phase-0-context-analysis
Sub-skill of elite-frontend-ux: Phase 0 — Context Analysis (Answer Before Writing Any Code).
elite-frontend-ux-layout
Sub-skill of elite-frontend-ux: Layout (+3).
elite-frontend-ux-contrast-wcag-21-aa
Sub-skill of elite-frontend-ux: Contrast (WCAG 2.1 AA) (+4).
elite-frontend-ux-compound-components-prefer-over-prop-soup
Sub-skill of elite-frontend-ux: Compound Components (prefer over prop soup) (+3).
elite-frontend-ux-above-the-fold-essentials
Sub-skill of elite-frontend-ux: Above-the-Fold Essentials (+4).
elite-frontend-ux-9-pre-delivery-checklist
Sub-skill of elite-frontend-ux: 9. Pre-Delivery Checklist.
elite-frontend-ux-8-anti-patterns-never-do
Sub-skill of elite-frontend-ux: 8. Anti-Patterns (Never Do).
elite-frontend-ux-2-design-token-system
Sub-skill of elite-frontend-ux: 2. Design Token System.
elite-frontend-ux-10-implementation-order
Sub-skill of elite-frontend-ux: 10. Implementation Order.