Communitygithub.com

vercel-labs/vercel-composition-patterns

React-Kompositionsmuster, die skalieren. Verwenden Sie dies beim Refactoring von Komponenten mit übermäßigen booleschen Props, beim Erstellen flexibler Komponentenbibliotheken oder beim Entwerfen wiederverwendbarer APIs. Auslöser bei Aufgaben zu Compound Components, Render Props, Context-Providern oder Komponentenarchitektur. Enthält Änderungen der React-19-API.

Was ist vercel-composition-patterns?

Diese Skill-Ressource bietet eine Sammlung von React-Kompositionsmustern, die entwickelt wurden, um skalierbare und wiederverwendbare Komponentenarchitekturen zu erstellen. Sie ist besonders nützlich beim Refactoring von Komponenten, die unter „boolean prop proliferation“ leiden, also einer übermäßigen Anzahl boolescher Eigenschaften, die die Komplexität erhöhen. Die enthaltenen Muster wie Compound Components, Render Props und Context Provider helfen dabei, Komponentenbibliotheken flexibler und APIs benutzerfreundlicher zu gestalten. Der Skill ist für Entwicklerplattformen wie Claude Code, Cursor und Codex optimiert und berücksichtigt die neuesten Änderungen der React-19-API, sodass moderne Best Practices direkt angewendet werden können. Durch die strukturierte Anleitung werden Entwickler befähigt, wartbare und erweiterbare UI-Komponenten zu entwerfen, die sowohl in kleinen als auch in großen Projekten skalieren.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/vercel-labs/agent-skills/tree/main/skills/vercel-composition-patterns

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht vercel-composition-patterns?

React-Kompositionsmuster, die skalieren. Verwenden Sie dies beim Refactoring von Komponenten mit übermäßigen booleschen Props, beim Erstellen flexibler Komponentenbibliotheken oder beim Entwerfen wiederverwendbarer APIs. Auslöser bei Aufgaben zu Compound Components, Render Props, Context-Providern oder Komponentenarchitektur. Enthält Änderungen der React-19-API.

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

deploy-to-vercel

Deploy 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".

vercel-cli-with-tokens

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g.

vercel-composition-patterns

React composition patterns that scale. Use when refactoring components with

vercel-labs/vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

vercel-labs/vercel-react-native-skills

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

vercel-labs/vercel-react-view-transitions

Guide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.

vercel-optimize

Use for Vercel cost and performance optimization on deployed projects, especially Next.js, SvelteKit, Nuxt, and limited Astro apps. Collect Vercel metrics, usage, project config, and code scan results first; investigate only metric-backed candidates; produce ranked recommendations grounded in verified files and version-aware Vercel/framework docs. Trigger for Vercel bill reduction, slow or expensive routes, caching opportunities, Function Invocations, Build Minutes, Fast Data Transfer, Core Web Vitals, Bot Management, Fluid compute, or cost breakdown requests.

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

vercel-react-native-skills

React Native and Expo best practices for building performant mobile apps. Use

web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to

writing-guidelines

Review docs/prose for Writing Guidelines compliance. Use when asked to

Verwandte Skills