Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Build reusable, accessible React components with predictable APIs and ref forwarding. Use when creating or refactoring components or defining component APIs, favoring composition over configuration and slots/children over many boolean props. Not needed for style-only or content-only edits that do not change a component API.
.claude/skills/asymmetric-al-react-component-dev/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 46% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -10% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 1% | 0% |
| case-18 | ✗→✓ | ▲ Improved | 22% | 0% |
| case-19 | ✗→✓ | ▲ Improved | -4% | 0% |
Name: react-component-dev Purpose: Build reusable, accessible React components with predictable APIs and ref forwarding. Use this skill when creating or refactoring components.
Applies when: Building new components, refactoring UI components, or defining component APIs. Do not use when: Only editing styles or content in existing components without API changes.
children/slots over many boolean props.forwardRef.forwardRef for DOM-rendering components.tsximport * as React from "react"; type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & { variant?: "default" | "ghost"; }; export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>( ({ variant = "default", className, ...props }, ref) => { return ( <button ref={ref} className={[ variant === "ghost" ? "bg-transparent" : "bg-black text-white", className, ] .filter(Boolean) .join(" ")} {...props} /> ); }, ); Button.displayName = "Button";
tsxexport function Card({ children }: { children: React.ReactNode }) { return <div className="rounded-lg border p-4">{children}</div>; } export function CardHeader({ children }: { children: React.ReactNode }) { return <div className="mb-2 font-semibold">{children}</div>; } export function CardBody({ children }: { children: React.ReactNode }) { return <div>{children}</div>; }
forwardRef on input-like componentsdiv for buttons/links| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 15,586 | 17,171 | +10% | 1 | 1 | 0% | 3,142 | 4,593 | +46% | 0 | 0 | — |
case-02 | fail→pass | 16,232 | 12,580 | -22% | 1 | 1 | 0% | 3,568 | 3,213 | -10% | 0 | 0 | — |
case-03 | pass→pass | 10,429 | 8,133 | -22% | 1 | 1 | 0% | 1,944 | 2,235 | +15% | 0 | 0 | — |
case-04 | pass→pass | 18,999 | 15,302 | -19% | 1 | 1 | 0% | 3,803 | 3,872 | +2% | 0 | 0 | — |
case-05 | pass→pass | 12,485 | 9,839 | -21% | 1 | 1 | 0% | 2,496 | 2,617 | +5% | 0 | 0 | — |
case-06 | pass→fail | 17,475 | 14,788 | -15% | 1 | 1 | 0% | 3,619 | 3,781 | +4% | 0 | 0 | — |
case-07 | pass→pass | 12,253 | 9,938 | -19% | 1 | 1 | 0% | 2,474 | 2,670 | +8% | 0 | 0 | — |
case-08 | pass→pass | 15,088 | 11,087 | -27% | 1 | 1 | 0% | 3,011 | 2,913 | -3% | 0 | 0 | — |
case-09 | pass→pass | 20,191 | 15,207 | -25% | 1 | 1 | 0% | 3,873 | 3,556 | -8% | 0 | 0 | — |
case-10 | pass→pass | 19,072 | 13,142 | -31% | 1 | 1 | 0% | 3,697 | 3,518 | -5% | 0 | 0 | — |
case-11 | pass→pass | 14,629 | 16,208 | +11% | 1 | 1 | 0% | 3,165 | 4,043 | +28% | 0 | 0 | — |
case-12 | pass→pass | 13,522 | 10,977 | -19% | 1 | 1 | 0% | 2,625 | 2,948 | +12% | 0 | 0 | — |
case-13 | fail→pass | 15,799 | 12,758 | -19% | 1 | 1 | 0% | 3,237 | 3,284 | +1% | 0 | 0 | — |
case-14 | pass→pass | 13,358 | 10,046 | -25% | 1 | 1 | 0% | 2,471 | 2,725 | +10% | 0 | 0 | — |
case-15 | pass→pass | 12,482 | 10,001 | -20% | 1 | 1 | 0% | 2,083 | 2,511 | +21% | 0 | 0 | — |
case-20 | pass→pass | 2,751 | 2,892 | +5% | 1 | 1 | 0% | 494 | 1,144 | +132% | 0 | 0 | — |
case-16 | pass→pass | 13,681 | 8,176 | -40% | 1 | 1 | 0% | 2,887 | 2,279 | -21% | 0 | 0 | — |
case-17 | pass→pass | 18,490 | 13,926 | -25% | 1 | 1 | 0% | 3,656 | 3,459 | -5% | 0 | 0 | — |
case-18 | fail→pass | 16,294 | 16,467 | +1% | 1 | 1 | 0% | 3,402 | 4,161 | +22% | 0 | 0 | — |
case-19 | fail→pass | 18,909 | 14,163 | -25% | 1 | 1 | 0% | 3,827 | 3,665 | -4% | 0 | 0 | — |
case-21 | pass→pass | 6,443 | 2,984 | -54% | 1 | 1 | 0% | 671 | 1,121 | +67% | 0 | 0 | — |
case-22 | pass→pass | 6,654 | 5,904 | -11% | 1 | 1 | 0% | 1,359 | 1,725 | +27% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +18 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.