Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Gives guidelines for designing React component props, composition, and variants, for use when creating a new component.
50% 92%+42 ptsof test cases passed
Passed 22 of 24 test cases with the skill, and 12 of 24 without it.
This test ran on v2. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Components are useful because they act as an encapsulated unit and therefore promote composition. For this to work, a component needs to be isolatable and neither leak implementation details nor depend on its placement or usage context. The interface of a component is defined by its props, and therefore the props should be designed to be as explicit and unambiguous as possible.
onClick & onSelect)mode changes the entire interaction.InputControl with Radix Slot).Pick<> over Omit<> for prop types as this is more explicit.Pick<>loading and data type in the prop, then it should not be possible to have a state where loading is true and data is not null)null or undefined. Most of the time this suggests that the condition that leads to this state should be handled by the parent component instead, often this can be done in a way close to the current component by using a hook or a HOC.icon-sm (12px), icon-base (14px), icon-lg (20px), icon-xl (28px). icon-lg is for headers, toasts and illustrations; icons inside buttons and menu rows are icon-base. No raw h-*/w-*/size-* classes or size props on icons, and no strokeWidth; every icon uses the lucide default stroke.[&_svg]: selectors. Every icon carries an icon-* class; the lint rule reports icons without one. Components that take an icon prop (design-system Button, IconButton, DropdownMenu items) render it with the size and text-icon-foreground for their variant; icons written as children of legacy primitives set both at the call site.Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.