What problem does it solve? React components often accumulate boolean props like isThread or isEditing, creating exponential state combinations and unmaintainable conditional logic. This Skill provides structured rules for replacing prop proliferation with compound components, lifted state, and dependency-injected context interfaces. ## Core Features & Use Cases - Boolean Prop Elimination: Replace boolean mode props with explicit variant components such as ThreadComposer or EditComposer that compose shared internals. - Compound Component Architecture: Structure complex components with shared context so subcomponents access state and actions without prop drilling. - Generic Context Interfaces: Define state, actions, and meta contracts so the same UI works with different providers, from local useState to global synced stores. - React 19 API Guidance: Covers ref-as-prop replacing forwardRef and use() replacing useContext for React 19 codebases. - Use Case: When refactoring a messaging composer that has grown to eight boolean props, apply these rules to split it into explicit variants backed by a shared provider, eliminating impossible states. ## Quick Start Ask the AI to refactor a React component with many boolean props into compound components using the rules in this skill.