Community生產力與協作github.com

vercel-labs/vercel-react-best-practices

來自 Vercel 工程團隊的 React 和 Next.js 效能最佳化指南。在編寫、審查或重構 React/Next.js 程式碼時使用此技能,以確保採用最佳效能模式。適用於涉及 React 元件、Next.js 頁面、資料擷取、打包最佳化或效能改善的任務。

vercel-react-best-practices 是什麼?

此技能提供來自 Vercel 工程團隊的 React 和 Next.js 效能最佳化指南。開發人員在編寫、審查或重構 React 和 Next.js 程式碼時應使用此技能,以確保遵循最佳效能模式。它涵蓋了 React 元件設計、Next.js 頁面結構、資料擷取策略、打包最佳化以及各種效能改善技巧。該技能會在上述相關任務中被自動觸發,幫助開發者即時應用 Vercel 推薦的效能實踐。它支援所有 React 和 Next.js 版本的開發環境,並透過內建規則提供具體的程式碼範例與反模式警示。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/vercel-labs/agent-skills/tree/main/skills/vercel-react-best-practices

Installed? Explore more 生產力與協作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

vercel-react-best-practices 是做什麼的?

來自 Vercel 工程團隊的 React 和 Next.js 效能最佳化指南。在編寫、審查或重構 React/Next.js 程式碼時使用此技能,以確保採用最佳效能模式。適用於涉及 React 元件、Next.js 頁面、資料擷取、打包最佳化或效能改善的任務。

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-composition-patterns

React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.

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

相關技能