Zum Inhalt springen
Kitbay
Einreichen
Skill

vercel-composition-patterns

MITAktualisiert am 28. Okt. 202633.877GitHub-Sterne

A React skill from Vercel Labs that guides an agent when it designs or refactors component APIs.

Was der Skill vermittelt

A React skill from Vercel Labs that guides an agent when it designs or refactors component APIs. It sorts its rules by priority across component architecture, state management, implementation patterns and React 19 API changes, with the main aim of replacing long lists of boolean props with compound components, lifted state and composition through children. Each rule lives in its own file in the skill folder, and a compiled document gathers them for agents that read one file. It is general React guidance and does not use the Vercel platform.

Funktionen

  • Refactor components that rely on many boolean props
  • Design compound components that share state through context
  • Apply React 19 API changes in component code
  • Review component architecture against prioritised rules