{"enrichment":{"faq":[{"a":"nextjs guides you through 45 rules for App Router mastery, covering build optimization, caching strategy, server components, routing patterns, and mutations. Key practices include using explicit `'use cache'` directives for deterministic caching, leveraging `revalidateTag` with cache profiles for granular invalidation, and structuring parallel data fetches to avoid waterfall requests. The skill emphasizes server components as the default, strategic `'use client'` boundaries, and proper `generateMetadata` for SEO\u2014all validated against real-world performance patterns.","q":"What are the next.js 16 app router best practices?"},{"a":"nextjs teaches explicit `'use cache'` directives as the foundation of Next.js 16 caching. This directive marks server functions and components for deterministic caching, replacing implicit behavior from earlier versions. Combined with `revalidateTag` and cache profiles, it gives you fine-grained control over what gets cached, when it expires, and how to invalidate it. The skill covers when to apply `'use cache'`, how to pair it with `cacheLife` settings, and patterns for handling dynamic data without cache collisions.","q":"How does nextjs caching strategy use cache directive work?"},{"a":"nextjs includes a category-major review algorithm that audits single files or entire codebases for performance and hygiene issues. Beyond file-level rules, it uncovers codebase-level problems: duplicated data fetchers across routes, dead code and unconsolidated routes, and `'use client'` propagation that bloats your client bundle. The audit identifies consolidation opportunities, suggests route merging, and flags unnecessary client boundaries\u2014helping you transform scattered code into a lean, maintainable architecture.","q":"What does nextjs offer for app router codebase audit and refactor?"},{"a":"nextjs covers migration from Next.js 15 to 16, focusing on implicit-to-explicit caching changes. In version 16, caching is no longer implicit; you must use `'use cache'` directives and `revalidateTag` with cache profiles to achieve the behavior you had before. The skill guides you through updating data fetching patterns, adjusting middleware (replacing `proxy.ts`), and refactoring routes to leverage new App Router capabilities. It ensures your codebase aligns with version 16's performance model and best practices.","q":"How do I migrate from next.js 15 to 16 with updated patterns?"},{"a":"nextjs addresses bundle optimization through multiple strategies: dynamic imports for code splitting, `optimizePackageImports` configuration to reduce dependency bloat, and strategic `'use client'` boundaries to keep server logic out of the client bundle. The skill also covers barrel file optimization to avoid importing unused exports, streaming with Suspense for faster perceived performance, and turbopack persistent caching config for faster builds. Together, these reduce bundle size, improve load times, and enhance overall application performance.","q":"How can nextjs help optimize next.js bundle size and performance?"},{"a":"nextjs emphasizes server components as the default, with patterns for parallel data fetching, proper error handling, and streaming with Suspense. It covers server actions for mutations and forms, distinguishing server vs. client data fetching to avoid unnecessary client-side logic. The skill teaches how to structure `generateMetadata` for SEO, use parallel routes and intercepting routes for advanced layouts, and leverage `'use cache'` with server functions to optimize data access. These patterns eliminate waterfalls, reduce client overhead, and improve Core Web Vitals.","q":"What server components and data fetching patterns does nextjs teach?"}],"shadow_tags":["performance-tuning","caching-strategies","bundle-optimization","code-refactoring","server-rendering","routing-patterns","form-handling","codebase-audit","migration-guide","fullstack-framework"],"summary_rewrite":"Master Next.js 16 App Router development with 45 rules spanning build optimization, caching strategy, server components, routing, and mutations. This skill guides you through critical patterns like explicit `'use cache'` directives, `revalidateTag` with cache profiles, and parallel data fetching, plus a category-major review algorithm for auditing single files or entire codebases. Uncover codebase-level issues\u2014duplicated fetchers, dead routes, and `'use client'` propagation\u2014that single-file rules miss."},"files":[{"bytes":14791,"path":"skills/.curated/nextjs/SKILL.md","sha256":"7684c6ff3f8ea416673421dfadfc014ecec410baef12c28096adadff52a0adcd","url":"https://skillfed.io/files/pproenca/dot-skills/nextjs/8adbecef/SKILL.md"}],"id":"pproenca/dot-skills/nextjs","links":{"html":"https://skillfed.io/pproenca/dot-skills/nextjs","md":"https://skillfed.io/pproenca/dot-skills/nextjs.md","repo":"https://github.com/pproenca/dot-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":14,"language":"Shell","last_updated":"2026-07-24","license":"MIT","name":"nextjs","publisher":"pproenca","stars":182},"relations":{"similar":[{"id":"pproenca/dot-skills/react"},{"id":"giuseppe-trisciuoglio/developer-kit/nextjs-app-router"},{"id":"yonatangross/orchestkit/react-server-components-framework"},{"id":"fernandofuc/nextjs-c-s/nextjs-16-complete-guide"},{"id":"secondsky/claude-skills/nextjs"},{"id":"PracticalSwan/agent-skills/nextjs-development"},{"id":"gocallum/nextjs16-agent-skills/nextjs16-skills"},{"id":"elophanto/EloPhanto/nextjs"},{"id":"pproenca/dot-skills/nextjs-ppr-patterns"},{"id":"laguagu/claude-code-nextjs-skills/nextjs-shadcn"}]},"slug":{"owner":"pproenca","repo":"dot-skills","skill":"nextjs"},"version":"8adbecef"}
