Guides designing React component props and boundaries for clean composition and reusability. Use when creating a component, reviewing a bloated props list, or deciding controlled vs uncontrolled.
A component is an API before it is markup. The props are the contract, and most component pain traces to a contract that configures behavior with flags instead of composing it with children.
variant, mode, or
showX prop starts branching the render tree, expose slots via children
or named render props instead. A <Card> that takes <Card.Header> and
<Card.Body> scales; a <Card> with hasHeader, headerText,
headerIcon, footerButtons does not.value + onChange; uncontrolled means the
component owns it with an optional defaultValue. Pick one per piece of
state and document it. Support both only through the standard pattern:
value ?? internalValue. Silently switching between them mid-life is the
React "controlled to uncontrolled" warning and a class of lost-edit bugs.children or context
rather than asking for it. Fewer props means fewer illegal states....rest onto
the root element and forward ref with forwardRef so callers can attach
aria-*, className, onClick, and test ids without you enumerating
them. A component that swallows unknown props forces a fork.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job