[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-vercel-react-best-practices":3,"mdc--y5mqvw-key":36,"related-repo-vercel-react-best-practices":1252,"related-org-vercel-react-best-practices":1367},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":25,"repoUrl":26,"updatedAt":27,"license":28,"forks":29,"topics":30,"repo":31,"sourceUrl":34,"mdContent":35},"react-best-practices","review React code for best practices","React best-practices reviewer for TSX files. Triggers after editing multiple TSX components to run a condensed quality checklist covering component structure, hooks usage, accessibility, performance, and TypeScript patterns.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"vercel","Vercel","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fvercel.png",[12,16,19,22],{"name":13,"slug":14,"type":15},"Performance","performance","tag",{"name":17,"slug":18,"type":15},"React","react",{"name":20,"slug":21,"type":15},"Accessibility","accessibility",{"name":23,"slug":24,"type":15},"Code Review","code-review",226,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fvercel-plugin","2026-04-06T18:56:14.489353",null,36,[],{"repoUrl":26,"stars":25,"forks":29,"topics":32,"description":33},[],"Comprehensive Vercel ecosystem plugin — relational knowledge graph, skills for every major product, specialized agents, and Vercel conventions. Turns any AI agent into a Vercel expert.","https:\u002F\u002Fgithub.com\u002Fvercel\u002Fvercel-plugin\u002Ftree\u002FHEAD\u002Fskills\u002Freact-best-practices","---\nname: react-best-practices\ndescription: React best-practices reviewer for TSX files. Triggers after editing multiple TSX components to run a condensed quality checklist covering component structure, hooks usage, accessibility, performance, and TypeScript patterns.\nmetadata:\n  priority: 4\n  docs:\n    - \"https:\u002F\u002Freact.dev\u002Freference\u002Freact\"\n    - \"https:\u002F\u002Freact.dev\u002Flearn\"\n  pathPatterns:\n    - 'src\u002Fcomponents\u002F**\u002F*.tsx'\n    - 'src\u002Fcomponents\u002F**\u002F*.jsx'\n    - 'app\u002Fcomponents\u002F**\u002F*.tsx'\n    - 'app\u002Fcomponents\u002F**\u002F*.jsx'\n    - 'components\u002F**\u002F*.tsx'\n    - 'components\u002F**\u002F*.jsx'\n    - 'src\u002Fui\u002F**\u002F*.tsx'\n    - 'lib\u002Fcomponents\u002F**\u002F*.tsx'\n  bashPatterns: []\n  importPatterns:\n    - 'react'\n    - 'react-dom'\nvalidate:\n  -\n    pattern: 'from\\s+[''\"](styled-components|@emotion\u002Fstyled|@emotion\u002Freact|@mui\u002Fmaterial|@chakra-ui\u002Freact)[''\"]|styled\\.'\n    message: 'Legacy CSS-in-JS or component library detected. Consider shadcn\u002Fui + Tailwind for modern Vercel-native UI.'\n    severity: warn\n    upgradeToSkill: shadcn\n    upgradeWhy: 'Migrate from CSS-in-JS\u002FMUI\u002FChakra to shadcn\u002Fui + Tailwind CSS for better SSR performance and Vercel ecosystem alignment.'\n    skipIfFileContains: '@\u002Fcomponents\u002Fui|shadcn|tailwindcss'\nretrieval:\n  aliases:\n    - react review\n    - component quality\n    - tsx linter\n    - react patterns\n  intents:\n    - review react code\n    - improve component quality\n    - check accessibility\n    - optimize react\n  entities:\n    - hooks\n    - accessibility\n    - React\n    - TSX\n    - component\nchainTo:\n  -\n    pattern: 'from\\s+[''\\\"](styled-components|@emotion\u002Fstyled|@emotion\u002Freact|@mui\u002Fmaterial|@chakra-ui\u002Freact)[''\"]|styled\\.'\n    targetSkill: shadcn\n    message: 'Legacy CSS-in-JS or component library detected — loading shadcn\u002Fui guidance for modern Vercel-native UI.'\n\n---\n\n# Vercel React Best Practices\n\nComprehensive performance optimization guide for React and Next.js applications, maintained by Vercel. Contains 64 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.\n\n## When to Apply\n\nReference these guidelines when:\n- Writing new React components or Next.js pages\n- Implementing data fetching (client or server-side)\n- Reviewing code for performance issues\n- Refactoring existing React\u002FNext.js code\n- Optimizing bundle size or load times\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | Eliminating Waterfalls | CRITICAL | `async-` |\n| 2 | Bundle Size Optimization | CRITICAL | `bundle-` |\n| 3 | Server-Side Performance | HIGH | `server-` |\n| 4 | Client-Side Data Fetching | MEDIUM-HIGH | `client-` |\n| 5 | Re-render Optimization | MEDIUM | `rerender-` |\n| 6 | Rendering Performance | MEDIUM | `rendering-` |\n| 7 | JavaScript Performance | LOW-MEDIUM | `js-` |\n| 8 | Advanced Patterns | LOW | `advanced-` |\n\n## Quick Reference\n\n### 1. Eliminating Waterfalls (CRITICAL)\n\n- `async-defer-await` - Move await into branches where actually used\n- `async-parallel` - Use Promise.all() for independent operations\n- `async-dependencies` - Use better-all for partial dependencies\n- `async-api-routes` - Start promises early, await late in API routes\n- `async-suspense-boundaries` - Use Suspense to stream content\n\n### 2. Bundle Size Optimization (CRITICAL)\n\n- `bundle-barrel-imports` - Import directly, avoid barrel files\n- `bundle-dynamic-imports` - Use next\u002Fdynamic for heavy components\n- `bundle-defer-third-party` - Load analytics\u002Flogging after hydration\n- `bundle-conditional` - Load modules only when feature is activated\n- `bundle-preload` - Preload on hover\u002Ffocus for perceived speed\n\n### 3. Server-Side Performance (HIGH)\n\n- `server-auth-actions` - Authenticate server actions like API routes\n- `server-cache-react` - Use React.cache() for per-request deduplication\n- `server-cache-lru` - Use LRU cache for cross-request caching\n- `server-dedup-props` - Avoid duplicate serialization in RSC props\n- `server-hoist-static-io` - Hoist static I\u002FO (fonts, logos) to module level\n- `server-serialization` - Minimize data passed to client components\n- `server-parallel-fetching` - Restructure components to parallelize fetches\n- `server-after-nonblocking` - Use after() for non-blocking operations\n\n### 4. Client-Side Data Fetching (MEDIUM-HIGH)\n\n- `client-swr-dedup` - Use SWR for automatic request deduplication\n- `client-event-listeners` - Deduplicate global event listeners\n- `client-passive-event-listeners` - Use passive listeners for scroll\n- `client-localstorage-schema` - Version and minimize localStorage data\n\n### 5. Re-render Optimization (MEDIUM)\n\n- `rerender-defer-reads` - Don't subscribe to state only used in callbacks\n- `rerender-memo` - Extract expensive work into memoized components\n- `rerender-memo-with-default-value` - Hoist default non-primitive props\n- `rerender-dependencies` - Use primitive dependencies in effects\n- `rerender-derived-state` - Subscribe to derived booleans, not raw values\n- `rerender-derived-state-no-effect` - Derive state during render, not effects\n- `rerender-functional-setstate` - Use functional setState for stable callbacks\n- `rerender-lazy-state-init` - Pass function to useState for expensive values\n- `rerender-simple-expression-in-memo` - Avoid memo for simple primitives\n- `rerender-split-combined-hooks` - Split hooks with independent dependencies\n- `rerender-move-effect-to-event` - Put interaction logic in event handlers\n- `rerender-transitions` - Use startTransition for non-urgent updates\n- `rerender-use-deferred-value` - Defer expensive renders to keep input responsive\n- `rerender-use-ref-transient-values` - Use refs for transient frequent values\n- `rerender-no-inline-components` - Don't define components inside components\n\n### 6. Rendering Performance (MEDIUM)\n\n- `rendering-animate-svg-wrapper` - Animate div wrapper, not SVG element\n- `rendering-content-visibility` - Use content-visibility for long lists\n- `rendering-hoist-jsx` - Extract static JSX outside components\n- `rendering-svg-precision` - Reduce SVG coordinate precision\n- `rendering-hydration-no-flicker` - Use inline script for client-only data\n- `rendering-hydration-suppress-warning` - Suppress expected mismatches\n- `rendering-activity` - Use Activity component for show\u002Fhide\n- `rendering-conditional-render` - Use ternary, not && for conditionals\n- `rendering-usetransition-loading` - Prefer useTransition for loading state\n- `rendering-resource-hints` - Use React DOM resource hints for preloading\n- `rendering-script-defer-async` - Use defer or async on script tags\n\n### 7. JavaScript Performance (LOW-MEDIUM)\n\n- `js-batch-dom-css` - Group CSS changes via classes or cssText\n- `js-index-maps` - Build Map for repeated lookups\n- `js-cache-property-access` - Cache object properties in loops\n- `js-cache-function-results` - Cache function results in module-level Map\n- `js-cache-storage` - Cache localStorage\u002FsessionStorage reads\n- `js-combine-iterations` - Combine multiple filter\u002Fmap into one loop\n- `js-length-check-first` - Check array length before expensive comparison\n- `js-early-exit` - Return early from functions\n- `js-hoist-regexp` - Hoist RegExp creation outside loops\n- `js-min-max-loop` - Use loop for min\u002Fmax instead of sort\n- `js-set-map-lookups` - Use Set\u002FMap for O(1) lookups\n- `js-tosorted-immutable` - Use toSorted() for immutability\n- `js-flatmap-filter` - Use flatMap to map and filter in one pass\n\n### 8. Advanced Patterns (LOW)\n\n- `advanced-event-handler-refs` - Store event handlers in refs\n- `advanced-init-once` - Initialize app once per app load\n- `advanced-use-latest` - useLatest for stable callback refs\n\n## How to Use\n\nRead individual rule files for detailed explanations and code examples:\n\n```\nrules\u002Fasync-parallel.md\nrules\u002Fbundle-barrel-imports.md\n```\n\nEach rule file contains:\n- Brief explanation of why it matters\n- Incorrect code example with explanation\n- Correct code example with explanation\n- Additional context and references\n\n## Full Compiled Document\n\nFor the complete guide with all rules expanded: `AGENTS.md`\n",{"data":37,"body":82},{"name":4,"description":6,"metadata":38,"validate":55,"retrieval":63,"chainTo":78},{"priority":39,"docs":40,"pathPatterns":43,"bashPatterns":52,"importPatterns":53},4,[41,42],"https:\u002F\u002Freact.dev\u002Freference\u002Freact","https:\u002F\u002Freact.dev\u002Flearn",[44,45,46,47,48,49,50,51],"src\u002Fcomponents\u002F**\u002F*.tsx","src\u002Fcomponents\u002F**\u002F*.jsx","app\u002Fcomponents\u002F**\u002F*.tsx","app\u002Fcomponents\u002F**\u002F*.jsx","components\u002F**\u002F*.tsx","components\u002F**\u002F*.jsx","src\u002Fui\u002F**\u002F*.tsx","lib\u002Fcomponents\u002F**\u002F*.tsx",[],[18,54],"react-dom",[56],{"pattern":57,"message":58,"severity":59,"upgradeToSkill":60,"upgradeWhy":61,"skipIfFileContains":62},"from\\s+['\"](styled-components|@emotion\u002Fstyled|@emotion\u002Freact|@mui\u002Fmaterial|@chakra-ui\u002Freact)['\"]|styled\\.","Legacy CSS-in-JS or component library detected. Consider shadcn\u002Fui + Tailwind for modern Vercel-native UI.","warn","shadcn","Migrate from CSS-in-JS\u002FMUI\u002FChakra to shadcn\u002Fui + Tailwind CSS for better SSR performance and Vercel ecosystem alignment.","@\u002Fcomponents\u002Fui|shadcn|tailwindcss",{"aliases":64,"intents":69,"entities":74},[65,66,67,68],"react review","component quality","tsx linter","react patterns",[70,71,72,73],"review react code","improve component quality","check accessibility","optimize react",[75,21,17,76,77],"hooks","TSX","component",[79],{"pattern":80,"targetSkill":60,"message":81},"from\\s+['\\\"](styled-components|@emotion\u002Fstyled|@emotion\u002Freact|@mui\u002Fmaterial|@chakra-ui\u002Freact)['\"]|styled\\.","Legacy CSS-in-JS or component library detected — loading shadcn\u002Fui guidance for modern Vercel-native UI.",{"type":83,"children":84},"root",[85,94,100,107,112,142,148,401,407,414,472,478,536,542,633,639,686,692,860,866,990,996,1142,1148,1184,1190,1195,1207,1212,1235,1241],{"type":86,"tag":87,"props":88,"children":90},"element","h1",{"id":89},"vercel-react-best-practices",[91],{"type":92,"value":93},"text","Vercel React Best Practices",{"type":86,"tag":95,"props":96,"children":97},"p",{},[98],{"type":92,"value":99},"Comprehensive performance optimization guide for React and Next.js applications, maintained by Vercel. Contains 64 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.",{"type":86,"tag":101,"props":102,"children":104},"h2",{"id":103},"when-to-apply",[105],{"type":92,"value":106},"When to Apply",{"type":86,"tag":95,"props":108,"children":109},{},[110],{"type":92,"value":111},"Reference these guidelines when:",{"type":86,"tag":113,"props":114,"children":115},"ul",{},[116,122,127,132,137],{"type":86,"tag":117,"props":118,"children":119},"li",{},[120],{"type":92,"value":121},"Writing new React components or Next.js pages",{"type":86,"tag":117,"props":123,"children":124},{},[125],{"type":92,"value":126},"Implementing data fetching (client or server-side)",{"type":86,"tag":117,"props":128,"children":129},{},[130],{"type":92,"value":131},"Reviewing code for performance issues",{"type":86,"tag":117,"props":133,"children":134},{},[135],{"type":92,"value":136},"Refactoring existing React\u002FNext.js code",{"type":86,"tag":117,"props":138,"children":139},{},[140],{"type":92,"value":141},"Optimizing bundle size or load times",{"type":86,"tag":101,"props":143,"children":145},{"id":144},"rule-categories-by-priority",[146],{"type":92,"value":147},"Rule Categories by Priority",{"type":86,"tag":149,"props":150,"children":151},"table",{},[152,181],{"type":86,"tag":153,"props":154,"children":155},"thead",{},[156],{"type":86,"tag":157,"props":158,"children":159},"tr",{},[160,166,171,176],{"type":86,"tag":161,"props":162,"children":163},"th",{},[164],{"type":92,"value":165},"Priority",{"type":86,"tag":161,"props":167,"children":168},{},[169],{"type":92,"value":170},"Category",{"type":86,"tag":161,"props":172,"children":173},{},[174],{"type":92,"value":175},"Impact",{"type":86,"tag":161,"props":177,"children":178},{},[179],{"type":92,"value":180},"Prefix",{"type":86,"tag":182,"props":183,"children":184},"tbody",{},[185,214,240,267,294,321,347,374],{"type":86,"tag":157,"props":186,"children":187},{},[188,194,199,204],{"type":86,"tag":189,"props":190,"children":191},"td",{},[192],{"type":92,"value":193},"1",{"type":86,"tag":189,"props":195,"children":196},{},[197],{"type":92,"value":198},"Eliminating Waterfalls",{"type":86,"tag":189,"props":200,"children":201},{},[202],{"type":92,"value":203},"CRITICAL",{"type":86,"tag":189,"props":205,"children":206},{},[207],{"type":86,"tag":208,"props":209,"children":211},"code",{"className":210},[],[212],{"type":92,"value":213},"async-",{"type":86,"tag":157,"props":215,"children":216},{},[217,222,227,231],{"type":86,"tag":189,"props":218,"children":219},{},[220],{"type":92,"value":221},"2",{"type":86,"tag":189,"props":223,"children":224},{},[225],{"type":92,"value":226},"Bundle Size Optimization",{"type":86,"tag":189,"props":228,"children":229},{},[230],{"type":92,"value":203},{"type":86,"tag":189,"props":232,"children":233},{},[234],{"type":86,"tag":208,"props":235,"children":237},{"className":236},[],[238],{"type":92,"value":239},"bundle-",{"type":86,"tag":157,"props":241,"children":242},{},[243,248,253,258],{"type":86,"tag":189,"props":244,"children":245},{},[246],{"type":92,"value":247},"3",{"type":86,"tag":189,"props":249,"children":250},{},[251],{"type":92,"value":252},"Server-Side Performance",{"type":86,"tag":189,"props":254,"children":255},{},[256],{"type":92,"value":257},"HIGH",{"type":86,"tag":189,"props":259,"children":260},{},[261],{"type":86,"tag":208,"props":262,"children":264},{"className":263},[],[265],{"type":92,"value":266},"server-",{"type":86,"tag":157,"props":268,"children":269},{},[270,275,280,285],{"type":86,"tag":189,"props":271,"children":272},{},[273],{"type":92,"value":274},"4",{"type":86,"tag":189,"props":276,"children":277},{},[278],{"type":92,"value":279},"Client-Side Data Fetching",{"type":86,"tag":189,"props":281,"children":282},{},[283],{"type":92,"value":284},"MEDIUM-HIGH",{"type":86,"tag":189,"props":286,"children":287},{},[288],{"type":86,"tag":208,"props":289,"children":291},{"className":290},[],[292],{"type":92,"value":293},"client-",{"type":86,"tag":157,"props":295,"children":296},{},[297,302,307,312],{"type":86,"tag":189,"props":298,"children":299},{},[300],{"type":92,"value":301},"5",{"type":86,"tag":189,"props":303,"children":304},{},[305],{"type":92,"value":306},"Re-render Optimization",{"type":86,"tag":189,"props":308,"children":309},{},[310],{"type":92,"value":311},"MEDIUM",{"type":86,"tag":189,"props":313,"children":314},{},[315],{"type":86,"tag":208,"props":316,"children":318},{"className":317},[],[319],{"type":92,"value":320},"rerender-",{"type":86,"tag":157,"props":322,"children":323},{},[324,329,334,338],{"type":86,"tag":189,"props":325,"children":326},{},[327],{"type":92,"value":328},"6",{"type":86,"tag":189,"props":330,"children":331},{},[332],{"type":92,"value":333},"Rendering Performance",{"type":86,"tag":189,"props":335,"children":336},{},[337],{"type":92,"value":311},{"type":86,"tag":189,"props":339,"children":340},{},[341],{"type":86,"tag":208,"props":342,"children":344},{"className":343},[],[345],{"type":92,"value":346},"rendering-",{"type":86,"tag":157,"props":348,"children":349},{},[350,355,360,365],{"type":86,"tag":189,"props":351,"children":352},{},[353],{"type":92,"value":354},"7",{"type":86,"tag":189,"props":356,"children":357},{},[358],{"type":92,"value":359},"JavaScript Performance",{"type":86,"tag":189,"props":361,"children":362},{},[363],{"type":92,"value":364},"LOW-MEDIUM",{"type":86,"tag":189,"props":366,"children":367},{},[368],{"type":86,"tag":208,"props":369,"children":371},{"className":370},[],[372],{"type":92,"value":373},"js-",{"type":86,"tag":157,"props":375,"children":376},{},[377,382,387,392],{"type":86,"tag":189,"props":378,"children":379},{},[380],{"type":92,"value":381},"8",{"type":86,"tag":189,"props":383,"children":384},{},[385],{"type":92,"value":386},"Advanced Patterns",{"type":86,"tag":189,"props":388,"children":389},{},[390],{"type":92,"value":391},"LOW",{"type":86,"tag":189,"props":393,"children":394},{},[395],{"type":86,"tag":208,"props":396,"children":398},{"className":397},[],[399],{"type":92,"value":400},"advanced-",{"type":86,"tag":101,"props":402,"children":404},{"id":403},"quick-reference",[405],{"type":92,"value":406},"Quick Reference",{"type":86,"tag":408,"props":409,"children":411},"h3",{"id":410},"_1-eliminating-waterfalls-critical",[412],{"type":92,"value":413},"1. Eliminating Waterfalls (CRITICAL)",{"type":86,"tag":113,"props":415,"children":416},{},[417,428,439,450,461],{"type":86,"tag":117,"props":418,"children":419},{},[420,426],{"type":86,"tag":208,"props":421,"children":423},{"className":422},[],[424],{"type":92,"value":425},"async-defer-await",{"type":92,"value":427}," - Move await into branches where actually used",{"type":86,"tag":117,"props":429,"children":430},{},[431,437],{"type":86,"tag":208,"props":432,"children":434},{"className":433},[],[435],{"type":92,"value":436},"async-parallel",{"type":92,"value":438}," - Use Promise.all() for independent operations",{"type":86,"tag":117,"props":440,"children":441},{},[442,448],{"type":86,"tag":208,"props":443,"children":445},{"className":444},[],[446],{"type":92,"value":447},"async-dependencies",{"type":92,"value":449}," - Use better-all for partial dependencies",{"type":86,"tag":117,"props":451,"children":452},{},[453,459],{"type":86,"tag":208,"props":454,"children":456},{"className":455},[],[457],{"type":92,"value":458},"async-api-routes",{"type":92,"value":460}," - Start promises early, await late in API routes",{"type":86,"tag":117,"props":462,"children":463},{},[464,470],{"type":86,"tag":208,"props":465,"children":467},{"className":466},[],[468],{"type":92,"value":469},"async-suspense-boundaries",{"type":92,"value":471}," - Use Suspense to stream content",{"type":86,"tag":408,"props":473,"children":475},{"id":474},"_2-bundle-size-optimization-critical",[476],{"type":92,"value":477},"2. Bundle Size Optimization (CRITICAL)",{"type":86,"tag":113,"props":479,"children":480},{},[481,492,503,514,525],{"type":86,"tag":117,"props":482,"children":483},{},[484,490],{"type":86,"tag":208,"props":485,"children":487},{"className":486},[],[488],{"type":92,"value":489},"bundle-barrel-imports",{"type":92,"value":491}," - Import directly, avoid barrel files",{"type":86,"tag":117,"props":493,"children":494},{},[495,501],{"type":86,"tag":208,"props":496,"children":498},{"className":497},[],[499],{"type":92,"value":500},"bundle-dynamic-imports",{"type":92,"value":502}," - Use next\u002Fdynamic for heavy components",{"type":86,"tag":117,"props":504,"children":505},{},[506,512],{"type":86,"tag":208,"props":507,"children":509},{"className":508},[],[510],{"type":92,"value":511},"bundle-defer-third-party",{"type":92,"value":513}," - Load analytics\u002Flogging after hydration",{"type":86,"tag":117,"props":515,"children":516},{},[517,523],{"type":86,"tag":208,"props":518,"children":520},{"className":519},[],[521],{"type":92,"value":522},"bundle-conditional",{"type":92,"value":524}," - Load modules only when feature is activated",{"type":86,"tag":117,"props":526,"children":527},{},[528,534],{"type":86,"tag":208,"props":529,"children":531},{"className":530},[],[532],{"type":92,"value":533},"bundle-preload",{"type":92,"value":535}," - Preload on hover\u002Ffocus for perceived speed",{"type":86,"tag":408,"props":537,"children":539},{"id":538},"_3-server-side-performance-high",[540],{"type":92,"value":541},"3. Server-Side Performance (HIGH)",{"type":86,"tag":113,"props":543,"children":544},{},[545,556,567,578,589,600,611,622],{"type":86,"tag":117,"props":546,"children":547},{},[548,554],{"type":86,"tag":208,"props":549,"children":551},{"className":550},[],[552],{"type":92,"value":553},"server-auth-actions",{"type":92,"value":555}," - Authenticate server actions like API routes",{"type":86,"tag":117,"props":557,"children":558},{},[559,565],{"type":86,"tag":208,"props":560,"children":562},{"className":561},[],[563],{"type":92,"value":564},"server-cache-react",{"type":92,"value":566}," - Use React.cache() for per-request deduplication",{"type":86,"tag":117,"props":568,"children":569},{},[570,576],{"type":86,"tag":208,"props":571,"children":573},{"className":572},[],[574],{"type":92,"value":575},"server-cache-lru",{"type":92,"value":577}," - Use LRU cache for cross-request caching",{"type":86,"tag":117,"props":579,"children":580},{},[581,587],{"type":86,"tag":208,"props":582,"children":584},{"className":583},[],[585],{"type":92,"value":586},"server-dedup-props",{"type":92,"value":588}," - Avoid duplicate serialization in RSC props",{"type":86,"tag":117,"props":590,"children":591},{},[592,598],{"type":86,"tag":208,"props":593,"children":595},{"className":594},[],[596],{"type":92,"value":597},"server-hoist-static-io",{"type":92,"value":599}," - Hoist static I\u002FO (fonts, logos) to module level",{"type":86,"tag":117,"props":601,"children":602},{},[603,609],{"type":86,"tag":208,"props":604,"children":606},{"className":605},[],[607],{"type":92,"value":608},"server-serialization",{"type":92,"value":610}," - Minimize data passed to client components",{"type":86,"tag":117,"props":612,"children":613},{},[614,620],{"type":86,"tag":208,"props":615,"children":617},{"className":616},[],[618],{"type":92,"value":619},"server-parallel-fetching",{"type":92,"value":621}," - Restructure components to parallelize fetches",{"type":86,"tag":117,"props":623,"children":624},{},[625,631],{"type":86,"tag":208,"props":626,"children":628},{"className":627},[],[629],{"type":92,"value":630},"server-after-nonblocking",{"type":92,"value":632}," - Use after() for non-blocking operations",{"type":86,"tag":408,"props":634,"children":636},{"id":635},"_4-client-side-data-fetching-medium-high",[637],{"type":92,"value":638},"4. Client-Side Data Fetching (MEDIUM-HIGH)",{"type":86,"tag":113,"props":640,"children":641},{},[642,653,664,675],{"type":86,"tag":117,"props":643,"children":644},{},[645,651],{"type":86,"tag":208,"props":646,"children":648},{"className":647},[],[649],{"type":92,"value":650},"client-swr-dedup",{"type":92,"value":652}," - Use SWR for automatic request deduplication",{"type":86,"tag":117,"props":654,"children":655},{},[656,662],{"type":86,"tag":208,"props":657,"children":659},{"className":658},[],[660],{"type":92,"value":661},"client-event-listeners",{"type":92,"value":663}," - Deduplicate global event listeners",{"type":86,"tag":117,"props":665,"children":666},{},[667,673],{"type":86,"tag":208,"props":668,"children":670},{"className":669},[],[671],{"type":92,"value":672},"client-passive-event-listeners",{"type":92,"value":674}," - Use passive listeners for scroll",{"type":86,"tag":117,"props":676,"children":677},{},[678,684],{"type":86,"tag":208,"props":679,"children":681},{"className":680},[],[682],{"type":92,"value":683},"client-localstorage-schema",{"type":92,"value":685}," - Version and minimize localStorage data",{"type":86,"tag":408,"props":687,"children":689},{"id":688},"_5-re-render-optimization-medium",[690],{"type":92,"value":691},"5. Re-render Optimization (MEDIUM)",{"type":86,"tag":113,"props":693,"children":694},{},[695,706,717,728,739,750,761,772,783,794,805,816,827,838,849],{"type":86,"tag":117,"props":696,"children":697},{},[698,704],{"type":86,"tag":208,"props":699,"children":701},{"className":700},[],[702],{"type":92,"value":703},"rerender-defer-reads",{"type":92,"value":705}," - Don't subscribe to state only used in callbacks",{"type":86,"tag":117,"props":707,"children":708},{},[709,715],{"type":86,"tag":208,"props":710,"children":712},{"className":711},[],[713],{"type":92,"value":714},"rerender-memo",{"type":92,"value":716}," - Extract expensive work into memoized components",{"type":86,"tag":117,"props":718,"children":719},{},[720,726],{"type":86,"tag":208,"props":721,"children":723},{"className":722},[],[724],{"type":92,"value":725},"rerender-memo-with-default-value",{"type":92,"value":727}," - Hoist default non-primitive props",{"type":86,"tag":117,"props":729,"children":730},{},[731,737],{"type":86,"tag":208,"props":732,"children":734},{"className":733},[],[735],{"type":92,"value":736},"rerender-dependencies",{"type":92,"value":738}," - Use primitive dependencies in effects",{"type":86,"tag":117,"props":740,"children":741},{},[742,748],{"type":86,"tag":208,"props":743,"children":745},{"className":744},[],[746],{"type":92,"value":747},"rerender-derived-state",{"type":92,"value":749}," - Subscribe to derived booleans, not raw values",{"type":86,"tag":117,"props":751,"children":752},{},[753,759],{"type":86,"tag":208,"props":754,"children":756},{"className":755},[],[757],{"type":92,"value":758},"rerender-derived-state-no-effect",{"type":92,"value":760}," - Derive state during render, not effects",{"type":86,"tag":117,"props":762,"children":763},{},[764,770],{"type":86,"tag":208,"props":765,"children":767},{"className":766},[],[768],{"type":92,"value":769},"rerender-functional-setstate",{"type":92,"value":771}," - Use functional setState for stable callbacks",{"type":86,"tag":117,"props":773,"children":774},{},[775,781],{"type":86,"tag":208,"props":776,"children":778},{"className":777},[],[779],{"type":92,"value":780},"rerender-lazy-state-init",{"type":92,"value":782}," - Pass function to useState for expensive values",{"type":86,"tag":117,"props":784,"children":785},{},[786,792],{"type":86,"tag":208,"props":787,"children":789},{"className":788},[],[790],{"type":92,"value":791},"rerender-simple-expression-in-memo",{"type":92,"value":793}," - Avoid memo for simple primitives",{"type":86,"tag":117,"props":795,"children":796},{},[797,803],{"type":86,"tag":208,"props":798,"children":800},{"className":799},[],[801],{"type":92,"value":802},"rerender-split-combined-hooks",{"type":92,"value":804}," - Split hooks with independent dependencies",{"type":86,"tag":117,"props":806,"children":807},{},[808,814],{"type":86,"tag":208,"props":809,"children":811},{"className":810},[],[812],{"type":92,"value":813},"rerender-move-effect-to-event",{"type":92,"value":815}," - Put interaction logic in event handlers",{"type":86,"tag":117,"props":817,"children":818},{},[819,825],{"type":86,"tag":208,"props":820,"children":822},{"className":821},[],[823],{"type":92,"value":824},"rerender-transitions",{"type":92,"value":826}," - Use startTransition for non-urgent updates",{"type":86,"tag":117,"props":828,"children":829},{},[830,836],{"type":86,"tag":208,"props":831,"children":833},{"className":832},[],[834],{"type":92,"value":835},"rerender-use-deferred-value",{"type":92,"value":837}," - Defer expensive renders to keep input responsive",{"type":86,"tag":117,"props":839,"children":840},{},[841,847],{"type":86,"tag":208,"props":842,"children":844},{"className":843},[],[845],{"type":92,"value":846},"rerender-use-ref-transient-values",{"type":92,"value":848}," - Use refs for transient frequent values",{"type":86,"tag":117,"props":850,"children":851},{},[852,858],{"type":86,"tag":208,"props":853,"children":855},{"className":854},[],[856],{"type":92,"value":857},"rerender-no-inline-components",{"type":92,"value":859}," - Don't define components inside components",{"type":86,"tag":408,"props":861,"children":863},{"id":862},"_6-rendering-performance-medium",[864],{"type":92,"value":865},"6. Rendering Performance (MEDIUM)",{"type":86,"tag":113,"props":867,"children":868},{},[869,880,891,902,913,924,935,946,957,968,979],{"type":86,"tag":117,"props":870,"children":871},{},[872,878],{"type":86,"tag":208,"props":873,"children":875},{"className":874},[],[876],{"type":92,"value":877},"rendering-animate-svg-wrapper",{"type":92,"value":879}," - Animate div wrapper, not SVG element",{"type":86,"tag":117,"props":881,"children":882},{},[883,889],{"type":86,"tag":208,"props":884,"children":886},{"className":885},[],[887],{"type":92,"value":888},"rendering-content-visibility",{"type":92,"value":890}," - Use content-visibility for long lists",{"type":86,"tag":117,"props":892,"children":893},{},[894,900],{"type":86,"tag":208,"props":895,"children":897},{"className":896},[],[898],{"type":92,"value":899},"rendering-hoist-jsx",{"type":92,"value":901}," - Extract static JSX outside components",{"type":86,"tag":117,"props":903,"children":904},{},[905,911],{"type":86,"tag":208,"props":906,"children":908},{"className":907},[],[909],{"type":92,"value":910},"rendering-svg-precision",{"type":92,"value":912}," - Reduce SVG coordinate precision",{"type":86,"tag":117,"props":914,"children":915},{},[916,922],{"type":86,"tag":208,"props":917,"children":919},{"className":918},[],[920],{"type":92,"value":921},"rendering-hydration-no-flicker",{"type":92,"value":923}," - Use inline script for client-only data",{"type":86,"tag":117,"props":925,"children":926},{},[927,933],{"type":86,"tag":208,"props":928,"children":930},{"className":929},[],[931],{"type":92,"value":932},"rendering-hydration-suppress-warning",{"type":92,"value":934}," - Suppress expected mismatches",{"type":86,"tag":117,"props":936,"children":937},{},[938,944],{"type":86,"tag":208,"props":939,"children":941},{"className":940},[],[942],{"type":92,"value":943},"rendering-activity",{"type":92,"value":945}," - Use Activity component for show\u002Fhide",{"type":86,"tag":117,"props":947,"children":948},{},[949,955],{"type":86,"tag":208,"props":950,"children":952},{"className":951},[],[953],{"type":92,"value":954},"rendering-conditional-render",{"type":92,"value":956}," - Use ternary, not && for conditionals",{"type":86,"tag":117,"props":958,"children":959},{},[960,966],{"type":86,"tag":208,"props":961,"children":963},{"className":962},[],[964],{"type":92,"value":965},"rendering-usetransition-loading",{"type":92,"value":967}," - Prefer useTransition for loading state",{"type":86,"tag":117,"props":969,"children":970},{},[971,977],{"type":86,"tag":208,"props":972,"children":974},{"className":973},[],[975],{"type":92,"value":976},"rendering-resource-hints",{"type":92,"value":978}," - Use React DOM resource hints for preloading",{"type":86,"tag":117,"props":980,"children":981},{},[982,988],{"type":86,"tag":208,"props":983,"children":985},{"className":984},[],[986],{"type":92,"value":987},"rendering-script-defer-async",{"type":92,"value":989}," - Use defer or async on script tags",{"type":86,"tag":408,"props":991,"children":993},{"id":992},"_7-javascript-performance-low-medium",[994],{"type":92,"value":995},"7. JavaScript Performance (LOW-MEDIUM)",{"type":86,"tag":113,"props":997,"children":998},{},[999,1010,1021,1032,1043,1054,1065,1076,1087,1098,1109,1120,1131],{"type":86,"tag":117,"props":1000,"children":1001},{},[1002,1008],{"type":86,"tag":208,"props":1003,"children":1005},{"className":1004},[],[1006],{"type":92,"value":1007},"js-batch-dom-css",{"type":92,"value":1009}," - Group CSS changes via classes or cssText",{"type":86,"tag":117,"props":1011,"children":1012},{},[1013,1019],{"type":86,"tag":208,"props":1014,"children":1016},{"className":1015},[],[1017],{"type":92,"value":1018},"js-index-maps",{"type":92,"value":1020}," - Build Map for repeated lookups",{"type":86,"tag":117,"props":1022,"children":1023},{},[1024,1030],{"type":86,"tag":208,"props":1025,"children":1027},{"className":1026},[],[1028],{"type":92,"value":1029},"js-cache-property-access",{"type":92,"value":1031}," - Cache object properties in loops",{"type":86,"tag":117,"props":1033,"children":1034},{},[1035,1041],{"type":86,"tag":208,"props":1036,"children":1038},{"className":1037},[],[1039],{"type":92,"value":1040},"js-cache-function-results",{"type":92,"value":1042}," - Cache function results in module-level Map",{"type":86,"tag":117,"props":1044,"children":1045},{},[1046,1052],{"type":86,"tag":208,"props":1047,"children":1049},{"className":1048},[],[1050],{"type":92,"value":1051},"js-cache-storage",{"type":92,"value":1053}," - Cache localStorage\u002FsessionStorage reads",{"type":86,"tag":117,"props":1055,"children":1056},{},[1057,1063],{"type":86,"tag":208,"props":1058,"children":1060},{"className":1059},[],[1061],{"type":92,"value":1062},"js-combine-iterations",{"type":92,"value":1064}," - Combine multiple filter\u002Fmap into one loop",{"type":86,"tag":117,"props":1066,"children":1067},{},[1068,1074],{"type":86,"tag":208,"props":1069,"children":1071},{"className":1070},[],[1072],{"type":92,"value":1073},"js-length-check-first",{"type":92,"value":1075}," - Check array length before expensive comparison",{"type":86,"tag":117,"props":1077,"children":1078},{},[1079,1085],{"type":86,"tag":208,"props":1080,"children":1082},{"className":1081},[],[1083],{"type":92,"value":1084},"js-early-exit",{"type":92,"value":1086}," - Return early from functions",{"type":86,"tag":117,"props":1088,"children":1089},{},[1090,1096],{"type":86,"tag":208,"props":1091,"children":1093},{"className":1092},[],[1094],{"type":92,"value":1095},"js-hoist-regexp",{"type":92,"value":1097}," - Hoist RegExp creation outside loops",{"type":86,"tag":117,"props":1099,"children":1100},{},[1101,1107],{"type":86,"tag":208,"props":1102,"children":1104},{"className":1103},[],[1105],{"type":92,"value":1106},"js-min-max-loop",{"type":92,"value":1108}," - Use loop for min\u002Fmax instead of sort",{"type":86,"tag":117,"props":1110,"children":1111},{},[1112,1118],{"type":86,"tag":208,"props":1113,"children":1115},{"className":1114},[],[1116],{"type":92,"value":1117},"js-set-map-lookups",{"type":92,"value":1119}," - Use Set\u002FMap for O(1) lookups",{"type":86,"tag":117,"props":1121,"children":1122},{},[1123,1129],{"type":86,"tag":208,"props":1124,"children":1126},{"className":1125},[],[1127],{"type":92,"value":1128},"js-tosorted-immutable",{"type":92,"value":1130}," - Use toSorted() for immutability",{"type":86,"tag":117,"props":1132,"children":1133},{},[1134,1140],{"type":86,"tag":208,"props":1135,"children":1137},{"className":1136},[],[1138],{"type":92,"value":1139},"js-flatmap-filter",{"type":92,"value":1141}," - Use flatMap to map and filter in one pass",{"type":86,"tag":408,"props":1143,"children":1145},{"id":1144},"_8-advanced-patterns-low",[1146],{"type":92,"value":1147},"8. Advanced Patterns (LOW)",{"type":86,"tag":113,"props":1149,"children":1150},{},[1151,1162,1173],{"type":86,"tag":117,"props":1152,"children":1153},{},[1154,1160],{"type":86,"tag":208,"props":1155,"children":1157},{"className":1156},[],[1158],{"type":92,"value":1159},"advanced-event-handler-refs",{"type":92,"value":1161}," - Store event handlers in refs",{"type":86,"tag":117,"props":1163,"children":1164},{},[1165,1171],{"type":86,"tag":208,"props":1166,"children":1168},{"className":1167},[],[1169],{"type":92,"value":1170},"advanced-init-once",{"type":92,"value":1172}," - Initialize app once per app load",{"type":86,"tag":117,"props":1174,"children":1175},{},[1176,1182],{"type":86,"tag":208,"props":1177,"children":1179},{"className":1178},[],[1180],{"type":92,"value":1181},"advanced-use-latest",{"type":92,"value":1183}," - useLatest for stable callback refs",{"type":86,"tag":101,"props":1185,"children":1187},{"id":1186},"how-to-use",[1188],{"type":92,"value":1189},"How to Use",{"type":86,"tag":95,"props":1191,"children":1192},{},[1193],{"type":92,"value":1194},"Read individual rule files for detailed explanations and code examples:",{"type":86,"tag":1196,"props":1197,"children":1201},"pre",{"className":1198,"code":1200,"language":92},[1199],"language-text","rules\u002Fasync-parallel.md\nrules\u002Fbundle-barrel-imports.md\n",[1202],{"type":86,"tag":208,"props":1203,"children":1205},{"__ignoreMap":1204},"",[1206],{"type":92,"value":1200},{"type":86,"tag":95,"props":1208,"children":1209},{},[1210],{"type":92,"value":1211},"Each rule file contains:",{"type":86,"tag":113,"props":1213,"children":1214},{},[1215,1220,1225,1230],{"type":86,"tag":117,"props":1216,"children":1217},{},[1218],{"type":92,"value":1219},"Brief explanation of why it matters",{"type":86,"tag":117,"props":1221,"children":1222},{},[1223],{"type":92,"value":1224},"Incorrect code example with explanation",{"type":86,"tag":117,"props":1226,"children":1227},{},[1228],{"type":92,"value":1229},"Correct code example with explanation",{"type":86,"tag":117,"props":1231,"children":1232},{},[1233],{"type":92,"value":1234},"Additional context and references",{"type":86,"tag":101,"props":1236,"children":1238},{"id":1237},"full-compiled-document",[1239],{"type":92,"value":1240},"Full Compiled Document",{"type":86,"tag":95,"props":1242,"children":1243},{},[1244,1246],{"type":92,"value":1245},"For the complete guide with all rules expanded: ",{"type":86,"tag":208,"props":1247,"children":1249},{"className":1248},[],[1250],{"type":92,"value":1251},"AGENTS.md",{"items":1253,"total":1366},[1254,1271,1291,1308,1323,1340,1355],{"slug":1255,"name":1255,"fn":1256,"description":1257,"org":1258,"tags":1259,"stars":25,"repoUrl":26,"updatedAt":1270},"ai-gateway","configure and manage Vercel AI Gateway","Vercel AI Gateway expert guidance. Use when configuring model routing, provider failover, cost tracking, or managing multiple AI providers through a unified API.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1260,1263,1266,1269],{"name":1261,"slug":1262,"type":15},"AI Infrastructure","ai-infrastructure",{"name":1264,"slug":1265,"type":15},"Cost Optimization","cost-optimization",{"name":1267,"slug":1268,"type":15},"LLM","llm",{"name":9,"slug":8,"type":15},"2026-04-06T18:56:06.57787",{"slug":1272,"name":1272,"fn":1273,"description":1274,"org":1275,"tags":1276,"stars":25,"repoUrl":26,"updatedAt":1290},"auth","integrate authentication in Next.js apps","Authentication integration guidance — Clerk (native Vercel Marketplace), Descope, and Auth0 setup for Next.js applications. Covers middleware auth patterns, sign-in\u002Fsign-up flows, and Marketplace provisioning. Use when implementing user authentication.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1277,1280,1283,1286,1289],{"name":1278,"slug":1279,"type":15},"Auth0","auth0",{"name":1281,"slug":1282,"type":15},"Authentication","authentication",{"name":1284,"slug":1285,"type":15},"Next.js","next-js",{"name":1287,"slug":1288,"type":15},"Security","security",{"name":9,"slug":8,"type":15},"2026-04-06T18:56:17.050565",{"slug":1292,"name":1292,"fn":1293,"description":1294,"org":1295,"tags":1296,"stars":25,"repoUrl":26,"updatedAt":1307},"bootstrap","bootstrap Vercel-linked repositories","Project bootstrapping orchestrator for repos that depend on Vercel-linked resources (databases, auth, and managed integrations). Use when setting up or repairing a repository so linking, environment provisioning, env pulls, and first-run db\u002Fdev commands happen in the correct safe order.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1297,1300,1303,1306],{"name":1298,"slug":1299,"type":15},"Configuration","configuration",{"name":1301,"slug":1302,"type":15},"Deployment","deployment",{"name":1304,"slug":1305,"type":15},"Local Development","local-development",{"name":9,"slug":8,"type":15},"2026-04-06T18:56:18.297868",{"slug":1309,"name":1309,"fn":1310,"description":1311,"org":1312,"tags":1313,"stars":25,"repoUrl":26,"updatedAt":1322},"cdn-caching","debug Vercel CDN caching behavior","Debug Vercel CDN caching — cache hit rate, stale content, revalidation behavior, ISR + PPR, per-request cache reasons (cacheReason) and PPR state (ppr_state), and costs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1314,1317,1320,1321],{"name":1315,"slug":1316,"type":15},"Caching","caching",{"name":1318,"slug":1319,"type":15},"Observability","observability",{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-07-30T05:31:34.628944",{"slug":1324,"name":1324,"fn":1325,"description":1326,"org":1327,"tags":1328,"stars":25,"repoUrl":26,"updatedAt":1339},"chat-sdk","build multi-platform chatbots with Vercel","Vercel Chat SDK expert guidance. Use when building multi-platform chat bots — Slack, Telegram, Microsoft Teams, Discord, Google Chat, GitHub, Linear — with a single codebase. Covers the Chat class, adapters, threads, messages, cards, modals, streaming, state management, and webhook setup.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1329,1332,1335,1338],{"name":1330,"slug":1331,"type":15},"Agents","agents",{"name":1333,"slug":1334,"type":15},"Messaging","messaging",{"name":1336,"slug":1337,"type":15},"SDK","sdk",{"name":9,"slug":8,"type":15},"2026-04-06T18:56:26.921901",{"slug":1341,"name":1341,"fn":1342,"description":1343,"org":1344,"tags":1345,"stars":25,"repoUrl":26,"updatedAt":1354},"deployments-cicd","manage Vercel deployments and CI\u002FCD","Vercel deployment and CI\u002FCD expert guidance. Use when deploying, promoting, rolling back, inspecting deployments, building with --prebuilt, or configuring CI workflow files for Vercel.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1346,1349,1350,1353],{"name":1347,"slug":1348,"type":15},"CI\u002FCD","ci-cd",{"name":1301,"slug":1302,"type":15},{"name":1351,"slug":1352,"type":15},"Operations","operations",{"name":9,"slug":8,"type":15},"2026-04-06T18:56:22.054263",{"slug":1356,"name":1356,"fn":1357,"description":1358,"org":1359,"tags":1360,"stars":25,"repoUrl":26,"updatedAt":1365},"env-vars","manage Vercel environment variables","Vercel environment variable expert guidance. Use when working with .env files, vercel env commands, OIDC tokens, or managing environment-specific configuration.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1361,1362,1363,1364],{"name":1298,"slug":1299,"type":15},{"name":1351,"slug":1352,"type":15},{"name":1287,"slug":1288,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:56:28.150777",29,{"items":1368,"total":1531},[1369,1387,1399,1416,1427,1440,1456,1470,1482,1501,1511,1521],{"slug":1370,"name":1370,"fn":1371,"description":1372,"org":1373,"tags":1374,"stars":1384,"repoUrl":1385,"updatedAt":1386},"next-cache-components-adoption","enable and migrate to Next.js Cache Components","Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the `cacheComponents` flag, work through a flood of blocking-prerender \u002F instant validation errors, run the `cache-components-instant-false` codemod, or decide between opting routes out with `export const instant = false` and fixing them in place.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1375,1376,1379,1382,1383],{"name":1315,"slug":1316,"type":15},{"name":1377,"slug":1378,"type":15},"Frontend","frontend",{"name":1380,"slug":1381,"type":15},"Migration","migration",{"name":1284,"slug":1285,"type":15},{"name":9,"slug":8,"type":15},141208,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fnext.js","2026-07-24T05:38:30.118542",{"slug":1388,"name":1388,"fn":1389,"description":1390,"org":1391,"tags":1392,"stars":1384,"repoUrl":1385,"updatedAt":1398},"next-cache-components-optimizer","optimize Next.js cache components","Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components \u002F PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next\u002Fplaywright instant() e2e and work it to green, one verified route at a time; the shipped test then guards against regression. Use when asked to make a route's navigation instant (its static shell commits immediately), fix a route whose static shell isn't prerendered\u002Fserved\u002Fprefetched, grow a route's static shell or fix its slow first paint, diagnose which Suspense boundary keeps a route out of its static shell, or write the instant() e2e guard for one. Requires Next.js 16.3+ with cacheComponents; directs an upgrade if older.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1393,1394,1395,1396,1397],{"name":1315,"slug":1316,"type":15},{"name":1377,"slug":1378,"type":15},{"name":1284,"slug":1285,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-07-30T05:31:10.674078",{"slug":1400,"name":1400,"fn":1401,"description":1402,"org":1403,"tags":1404,"stars":1384,"repoUrl":1385,"updatedAt":1415},"next-dev-loop","verify Next.js runtime behavior","Verify Next.js runtime behavior after editing app code. Use this skill to confirm a change actually works in a running app — not just that it compiles or type-checks. Combines \u002F_next\u002Fmcp (Next.js's view) with agent-browser (the browser's view). Requires a running `next dev`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1405,1408,1409,1410,1411,1412],{"name":1406,"slug":1407,"type":15},"Debugging","debugging",{"name":1377,"slug":1378,"type":15},{"name":1304,"slug":1305,"type":15},{"name":1284,"slug":1285,"type":15},{"name":9,"slug":8,"type":15},{"name":1413,"slug":1414,"type":15},"Web Development","web-development","2026-05-22T06:45:28.627735",{"slug":1417,"name":1417,"fn":1418,"description":1419,"org":1420,"tags":1421,"stars":1384,"repoUrl":1385,"updatedAt":1426},"next-partial-prefetching-adoption","adopt Partial Prefetching in Next.js apps","Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the `partialPrefetching` flag, opt routes in with `export const prefetch = 'partial'`, audit `\u003CLink prefetch={true}>` calls, or resolve the link-prefetch-partial and instant-shell-url-data insights.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1422,1423,1424,1425],{"name":1377,"slug":1378,"type":15},{"name":1284,"slug":1285,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-07-30T05:31:11.591864",{"slug":1428,"name":1428,"fn":1429,"description":1430,"org":1431,"tags":1432,"stars":1437,"repoUrl":1438,"updatedAt":1439},"turborepo","manage monorepos with Turborepo","Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines,\ndependsOn, caching, remote cache, the \"turbo\" CLI, --filter, --affected, CI optimization, environment\nvariables, internal packages, monorepo structure\u002Fbest practices, and boundaries.\n\nUse when user: configures tasks\u002Fworkflows\u002Fpipelines, creates packages, sets up\nmonorepo, shares code between apps, runs changed\u002Faffected packages, debugs cache,\nor has apps\u002Fpackages directories.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1433,1434,1435],{"name":1347,"slug":1348,"type":15},{"name":13,"slug":14,"type":15},{"name":1436,"slug":1428,"type":15},"Turborepo",30809,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fturborepo","2026-07-30T05:32:14.920116",{"slug":1441,"name":1441,"fn":1442,"description":1443,"org":1444,"tags":1445,"stars":1453,"repoUrl":1454,"updatedAt":1455},"add-function-examples","add AI function examples for testing","Guide for adding new AI function examples, for testing specific features against the actual provider APIs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1446,1449,1452],{"name":1447,"slug":1448,"type":15},"AI SDK","ai-sdk",{"name":1450,"slug":1451,"type":15},"Testing","testing",{"name":9,"slug":8,"type":15},25670,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai","2026-04-06T18:55:51.318866",{"slug":1457,"name":1457,"fn":1458,"description":1459,"org":1460,"tags":1461,"stars":1453,"repoUrl":1454,"updatedAt":1469},"add-harness-package","add AI SDK harness packages","Guide for adding new AI SDK harness packages. Use when creating a new @ai-sdk\u002Fharness-\u003Cname> package that adapts a coding-agent runtime to HarnessV1.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1462,1463,1464,1467,1468],{"name":1330,"slug":1331,"type":15},{"name":1447,"slug":1448,"type":15},{"name":1465,"slug":1466,"type":15},"Harness","harness",{"name":1336,"slug":1337,"type":15},{"name":9,"slug":8,"type":15},"2026-06-18T08:29:19.858737",{"slug":1471,"name":1471,"fn":1472,"description":1473,"org":1474,"tags":1475,"stars":1453,"repoUrl":1454,"updatedAt":1481},"add-provider-package","add new provider packages to AI SDK","Guide for adding new AI provider packages to the AI SDK. Use when creating a new @ai-sdk\u002F\u003Cprovider> package to integrate an AI service into the SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1476,1477,1480],{"name":1447,"slug":1448,"type":15},{"name":1478,"slug":1479,"type":15},"API Development","api-development",{"name":9,"slug":8,"type":15},"2026-04-06T18:55:47.45549",{"slug":1483,"name":1483,"fn":1484,"description":1485,"org":1486,"tags":1487,"stars":1453,"repoUrl":1454,"updatedAt":1500},"adr-skill","create and maintain architecture decision records","Create and maintain Architecture Decision Records (ADRs) optimized for agentic coding workflows. Use when you need to propose, write, update, accept\u002Freject, deprecate, or supersede an ADR; bootstrap an adr folder and index; consult existing ADRs before implementing changes; or enforce ADR conventions. This skill uses Socratic questioning to capture intent before drafting, and validates output against an agent-readiness checklist.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1488,1491,1494,1497],{"name":1489,"slug":1490,"type":15},"ADR","adr",{"name":1492,"slug":1493,"type":15},"Architecture","architecture",{"name":1495,"slug":1496,"type":15},"Documentation","documentation",{"name":1498,"slug":1499,"type":15},"Engineering","engineering","2026-04-06T18:55:50.043694",{"slug":1448,"name":1448,"fn":1502,"description":1503,"org":1504,"tags":1505,"stars":1453,"repoUrl":1454,"updatedAt":1510},"build AI features with Vercel AI SDK","Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: \"AI SDK\", \"Vercel AI SDK\", \"generateText\", \"streamText\", \"add AI to my app\", \"build an agent\", \"tool calling\", \"structured output\", \"useChat\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1506,1507,1508,1509],{"name":1330,"slug":1331,"type":15},{"name":1447,"slug":1448,"type":15},{"name":1267,"slug":1268,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:55:48.739463",{"slug":1512,"name":1512,"fn":1513,"description":1514,"org":1515,"tags":1516,"stars":1453,"repoUrl":1454,"updatedAt":1520},"capture-api-response-test-fixture","capture API response test fixtures","Capture API response test fixture.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1517,1518,1519],{"name":1478,"slug":1479,"type":15},{"name":1450,"slug":1451,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:55:56.374433",{"slug":1522,"name":1522,"fn":1523,"description":1524,"org":1525,"tags":1526,"stars":1453,"repoUrl":1454,"updatedAt":1530},"develop-ai-functions-example","develop AI SDK function examples","Develop examples for AI SDK functions. Use when creating, running, or modifying examples under examples\u002Fai-functions\u002Fsrc to validate provider support, demonstrate features, or create test fixtures.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1527,1528,1529],{"name":1447,"slug":1448,"type":15},{"name":1450,"slug":1451,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:55:55.088956",68]