vercel-composition-patterns 是做什麼的?
可擴展的 React 組合模式。適用於重構帶有布林屬性泛濫的元件、建構靈活的元件庫或設計可重複使用的 API。觸發於涉及複合元件、渲染屬性、Context Provider 或元件架構的任務。包含 React 19 API 變更。
可擴展的 React 組合模式。適用於重構帶有布林屬性泛濫的元件、建構靈活的元件庫或設計可重複使用的 API。觸發於涉及複合元件、渲染屬性、Context Provider 或元件架構的任務。包含 React 19 API 變更。
這個技能專注於 vercel-labs/vercel-composition-patterns,這是一套可擴展的 React 組合模式指南。對於需要重構那些充斥著布林屬性的元件、建構靈活且可維護的元件庫,或是設計可重複使用的元件 API 的開發者來說,這個技能極為有用。它能夠自動觸發於涉及複合元件 (Compound Components)、渲染屬性 (Render Props)、Context Provider 以及更廣泛的元件架構設計等任務。此技能不僅涵蓋經典的組合模式,還特別包含了 React 19 的最新 API 變更,確保開發者能夠在其專案中應用最先進、最標準的實作方法。透過遵循這些模式,開發者可以顯著提升元件的可讀性、擴展性和可重用性。
npx skills add https://github.com/vercel-labs/agent-skills/tree/main/skills/vercel-composition-patterns可擴展的 React 組合模式。適用於重構帶有布林屬性泛濫的元件、建構靈活的元件庫或設計可重複使用的 API。觸發於涉及複合元件、渲染屬性、Context Provider 或元件架構的任務。包含 React 19 API 變更。
This repo contains 11 individual skills — each has its own dedicated page.
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".
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.
React composition patterns that scale. Use when refactoring components with
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.
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.
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.
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.
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.
React Native and Expo best practices for building performant mobile apps. Use
Review UI code for Web Interface Guidelines compliance. Use when asked to
Review docs/prose for Writing Guidelines compliance. Use when asked to
ElevenLabs text-to-speech with mac-style say UX.
Oracle CLI second-model review/debug/refactor/design with selected files, dry-run token checks, API or browser engine.
Capture and automate macOS UI with the Peekaboo CLI.
Generate multiple radically different interface designs for a module using parallel sub-agents. Use when user wants to design an API, explore interface options, compare module shapes, or mentions "design it twice".
Build a throwaway prototype to flesh out a design — a runnable terminal app for state/business-logic questions, or several radically different UI variations toggleable from one route.
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".