Vercel Labs has released a critical update to the Claude Code ecosystem with the vercel-react-best-practices skill, a rulebook that fundamentally alters how the LLM generates React and Next.js code. By injecting 70 specific performance rules across eight categories, the skill forces Claude Code to prioritize request waterfalls and bundle size optimization over the more common, but often less impactful, re-render optimizations. As of November 22, 2026, the skill has amassed 921,910 installs, signaling a major shift in how AI agents handle web performance.

The Critical Shift: Waterfalls Over Memoization

The skill's architecture explicitly ranks "Eliminating Waterfalls" and "Bundle Size Optimization" as CRITICAL categories, placing them above server-side performance and re-render optimizations. This ordering challenges the prevailing React advice that often starts with useMemo or React.memo. The skill's documentation asserts that waterfalls are the "#1 performance killer," noting that each sequential await adds full network latency. By forcing parallel execution via Promise.all instead of sequential awaits, the skill aims to deliver 2-10x improvements in response times, a claim backed by the async-parallel rule which marks its impact as CRITICAL.

Technical Enforcement of Bundle Hygiene

Beyond async logic, the skill aggressively targets bundle bloat, particularly regarding barrel imports. The bundle-barrel-imports rule highlights that importing from package roots, such as lucide-react, can load over 1,500 modules and add nearly 3 seconds to development startup times. The skill instructs Claude Code to either use deep imports or, for Next.js 13.5+, configure optimizePackageImports in next.config.js. This technical nuance prevents the agent from generating code that inadvertently ships megabytes of unused JavaScript, a common pitfall in AI-generated React applications.

Installation and Invocation Mechanics

Developers can install the skill via the command line using npx skills add vercel-labs/agent-skills --skill vercel-react-best-practices -a claude-code. Once installed, the skill triggers automatically when Claude Code detects tasks related to React components, Next.js pages, or data fetching. For existing codebases, users can explicitly request a review pass against specific rule IDs, such as async-parallel or bundle-barrel-imports, ensuring that the generated diffs are traceable back to Vercel's official performance guidelines.

Key Takeaways

  • The skill prioritizes 12 CRITICAL rules focused on async waterfalls and bundle size, overriding default LLM tendencies toward memoization.
  • It enforces specific Next.js configurations like optimizePackageImports to mitigate the cost of barrel imports in modern React apps.
  • With over 921,000 installs, the skill represents a significant move toward standardizing AI-generated code quality through curated rulebooks.

The Bottom Line

Vercel is effectively programming performance opinion into the AI agent, forcing Claude Code to think like a senior React engineer who knows that network latency hurts more than unnecessary re-renders.