Pular para o conteúdo
Kitbay
Skill

vercel-composition-patterns

MITAtualizado em 28 de out. de 202633.877Estrelas no GitHub

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

O que a skill ensina

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.

O que faz

  • 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