/superskills-design:vercel-composition-patternsfrom Superskills Design
Guides refactoring React components with boolean prop proliferation using compound components, render props, and context providers. Covers React 19 API changes.
Ships in Superskills Design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Composition patterns for building flexible, maintainable React components. Avoid boolean prop proliferation by using compound components, lifting state, and composing internals. These patterns make codebases easier for both humans and AI agents to work with as they scale.
Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Component Architecture | HIGH | architecture- |
| 2 | State Management | MEDIUM | state- |
| 3 | Implementation Patterns | MEDIUM | patterns- |
| 4 | React 19 APIs | MEDIUM | react19- |
architecture-avoid-boolean-props - Don't add boolean props to customize behavior; use compositionarchitecture-compound-components - Structure complex components with shared contextstate-decouple-implementation - Provider is the only place that knows how state is managedstate-context-interface - Define generic interface with state, actions, meta for dependency injectionstate-lift-state - Move state into provider components for sibling accesspatterns-explicit-variants - Create explicit variant components instead of boolean modespatterns-children-over-render-props - Use children for composition instead of renderX props⚠️ React 19+ only. Skip this section if using React 18 or earlier.
react19-no-forwardref - Don't use forwardRef; use use() instead of useContext()Avoid boolean prop proliferation. When a component accumulates boolean props like isLarge, isLoading, hasIcon, showFooter, it becomes a configuration panel instead of a component. This pattern:
Instead, compose. Create explicit variant components, lift state into providers, and use children for flexible content injection.
// ❌ Boolean prop proliferation
<Button isLarge isLoading hasLeftIcon={<IconSpinner />} disabled={isLoading}>
Submit
</Button>
// ✅ Explicit variants + composition
<Button.Large disabled={isLoading}>
{isLoading ? <Spinner /> : null}
Submit
</Button.Large>
// Provider holds shared state
function Tabs({ children, defaultTab }) {
const [active, setActive] = useState(defaultTab);
return (
<TabsContext.Provider value={{ active, setActive }}>
{children}
</TabsContext.Provider>
);
}
// Children consume via context
Tabs.Tab = function Tab({ id, children }) {
const { active, setActive } = useContext(TabsContext);
return (
<button
onClick={() => setActive(id)}
aria-selected={active === id}
>
{children}
</button>
);
};
// Usage is readable and composable
<Tabs defaultTab="overview">
<Tabs.Tab id="overview">Overview</Tabs.Tab>
<Tabs.Tab id="details">Details</Tabs.Tab>
</Tabs>
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
37 skills in this plugin
/adaptive-communicationAdjust communication style based on whether the user is in a relational (exploratory, hedging) or transactional (direct, technical) mode. Use when calibrating response tone, level of scaffolding, or how much to acknowledge context before answering./app-store-screenshotsGenerate App Store and Google Play marketing screenshots using Next.js. Use when the user wants to create app store screenshots, marketing screenshots, or device mockup exports for iOS, iPad, or Android./bencium-code-conventionsBence's code style, tech stack, and workflow conventions/deploy-to-vercelDeploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment"./design-briefShort kickoff questions before building new or ambiguous design work. Use at the start of a new design request when format, audience, fidelity or brand is unclear; skip when the request is specific or a design system is attached. Not for picking a visual style (use /design-direction)./design-directionCommit to a concrete visual direction (type, color, density, shape, motion) when there is no brand or design system, before any high-fidelity work. Use for greenfield UI. Skip if a brand or system exists (use /design-system-extract instead).npx claudepluginhub ariadoss/superskills --plugin superskills-designOther plugins' skills for the same job