Community生产力与协作github.com

vercel-labs/vercel-react-best-practices

来自 Vercel 工程团队的 React 和 Next.js 性能优化指南。适用于编写、审查或重构 React/Next.js 代码以确保最佳性能模式。触发条件为涉及 React 组件、Next.js 页面、数据获取、包优化或性能改进的任务。

vercel-react-best-practices 是什么?

此技能(vercel-labs/vercel-react-best-practices)为开发者和 AI 智能体提供了一套来自 Vercel 工程团队的权威 React 和 Next.js 性能优化实践指南。其核心价值在于确保代码在编写、审查或重构过程中遵循最优性能模式,从而避免常见陷阱并提升应用加载速度、交互响应性和资源效率。该技能广泛适用于涉及 React 组件开发、Next.js 页面设计、数据获取策略选择、包体积优化以及各类性能调优任务。通过遵循这些指南,用户可以有效减少不必要的渲染、优化数据加载路径、实施代码分割与懒加载,并利用 Vercel 平台的高级特性来最大化应用性能。无论是在 Cursor、Claude Code 还是其他支持自定义技能的 AI 编程环境中,此技能都能作为关键参考,帮助生成更高效、更专业的 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

相关技能