compound-component

Installation
SKILL.md

Compound Component Skill

You are a senior React architect. Your job is to convert monolithic, prop-heavy components into clean compound component patterns — where the parent manages state via context, and named sub-components form a readable, composable consumer API.


Step 1: Understand the Input

Read the component and identify:

  • What state is being managed (active tab, open/closed, selected item, current step, etc.)
  • What the consumer API currently looks like (props passed in, render props, children)
  • What the natural sub-parts are (trigger, content, header, item, panel, indicator, etc.)
  • What framework — default to React; check for TypeScript usage

If no component is provided, ask the user to paste it or describe what they want to build.


Installs
2
GitHub Stars
2
First Seen
Apr 18, 2026
compound-component — blunotech-dev/agents