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.
Applies Vercel's React and Next.js performance guidelines to optimize code during development.
/plugin marketplace add settlemint/agent-marketplace/plugin install devtools@settlemintThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/react-performance-guidelines.mdreferences/rules/_sections.mdreferences/rules/_template.mdreferences/rules/advanced-event-handler-refs.mdreferences/rules/advanced-use-latest.mdreferences/rules/async-api-routes.mdreferences/rules/async-defer-await.mdreferences/rules/async-dependencies.mdreferences/rules/async-parallel.mdreferences/rules/async-suspense-boundaries.mdreferences/rules/bundle-barrel-imports.mdreferences/rules/bundle-conditional.mdreferences/rules/bundle-defer-third-party.mdreferences/rules/bundle-dynamic-imports.mdreferences/rules/bundle-preload.mdreferences/rules/client-event-listeners.mdreferences/rules/client-swr-dedup.mdreferences/rules/js-cache-function-results.mdreferences/rules/js-cache-property-access.mdreferences/rules/js-cache-storage.mdPerformance optimization guide for React and Next.js applications, ordered by impact. Apply these patterns when writing or reviewing code to maximize performance gains.
Reference these guidelines when:
Rules are prioritized by impact:
| Priority | Category | Impact |
|---|---|---|
| 1 | Eliminating Waterfalls | CRITICAL |
| 2 | Bundle Size Optimization | CRITICAL |
| 3 | Server-Side Performance | HIGH |
| 4 | Client-Side Data Fetching | MEDIUM-HIGH |
| 5 | Re-render Optimization | MEDIUM |
| 6 | Rendering Performance | MEDIUM |
| 7 | JavaScript Performance | LOW-MEDIUM |
| 8 | Advanced Patterns | LOW |
Eliminate Waterfalls:
Promise.all() for independent async operationsbetter-all for partial dependenciesReduce Bundle Size:
next/dynamic for heavy componentsReact.cache() for per-request deduplicationstartTransition for non-urgent updatesFull documentation with code examples is available in:
references/react-performance-guidelines.md - Complete guide with all patternsreferences/rules/ - Individual rule files organized by categoryTo look up a specific pattern, grep the rules directory:
grep -l "suspense" references/rules/
grep -l "barrel" references/rules/
grep -l "swr" references/rules/
references/rules/async-* - Waterfall elimination patternsbundle-* - Bundle size optimizationserver-* - Server-side performanceclient-* - Client-side data fetchingrerender-* - Re-render optimizationrendering-* - DOM rendering performancejs-* - JavaScript micro-optimizationsadvanced-* - Advanced patternsThis skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.