[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72SZ7X9CF17B7BQKEN9SGRH":3,"skill-same:01M72SZ7X9CF17B7BQKEN9SGRH":49},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":13,"repositoryHtmlUrl":31,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M72SZ7X9CF17B7BQKEN9SGRH","NextJS",null,"iberi22\u002Fskills","iberi22","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10615454?v=4","01M72SQ2NXAA3GW0FSH053A5ES","Brahyan Belalcazar","01M72SQ2PYCH0SSA1K61NGEHDV",0,"MIT","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fframework\u002Fnextjs\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nid: nextjs\nname: NextJS\ncategory: framework\ntags:\n  - nextjs\ngoals:\n  - \"Build Next.js 15 apps with App Router, server components, caching, auth, and production patterns.\"\n---\n\n## When to Use\n\nUser needs Next.js expertise — routing, data fetching, caching, authentication, or deployment. Agent handles App Router patterns, server\u002Fclient boundaries, and production optimization.\n\n## Core Rules\n\n### 1. Server Components by Default\nEverything is Server Component in App Router. Add `'use client'` only for useState, useEffect, event handlers, or browser APIs. Server Components can't be imported into Client — pass as children.\n\n### 2. Fetch Data on Server\nFetch in Server Components, not useEffect. Use `Promise.all` for parallel requests.\n\n### 3. Cache Intentionally\n`fetch` is not cached by default in Next.js 15 — opt in with `cache: 'force-cache'` or set `revalidate` for ISR.\n\n### 4. Server Actions for Mutations\nUse `'use server'` functions for form submissions and data mutations. Progressive enhancement — works without JS.\n\n### 5. Environment Security\n`NEXT_PUBLIC_` exposes to client bundle. Server Components access all env vars. Use `.env.local` for secrets.\n\n### 6. Streaming for Large Data\nUse `\u003CSuspense>` boundaries to stream content progressively. Wrap slow components individually.\n\n### 7. Auth at Middleware Level\nProtect routes in middleware, not in pages. Middleware runs on Edge — lightweight auth checks only.\n\n## Server vs Client\n\n| Server Component | Client Component |\n|------------------|------------------|\n| Default in App Router | Requires `'use client'` |\n| Can be async | Cannot be async |\n| Access backend, env vars | Access hooks, browser APIs |\n| Zero JS shipped | JS shipped to browser |\n\n**Decision:** Start Server. Add `'use client'` only for: useState, useEffect, onClick, browser APIs.\n\n## Common Traps\n\n| Trap | Fix |\n|------|-----|\n| `router.push` in Server | Use `redirect()` |\n| `\u003CLink>` prefetches all | `prefetch={false}` |\n| `next\u002Fimage` no size | Add `width`\u002F`height` or `fill` |\n| Metadata in Client | Move to Server or `generateMetadata` |\n| useEffect for data | Fetch in Server Component |\n| Import Server→Client | Pass as children\u002Fprops |\n| Middleware DB call | Call API route instead |\n| Missing `await params` (v15) | Params are async in Next.js 15 |\n\n## Next.js 15 Changes\n\n- `params` and `searchParams` are now `Promise` — must await\n- `fetch` not cached by default — opt-in with `cache: 'force-cache'`\n- Use React 19 hooks: `useActionState`, `useFormStatus`\n\n## Related Skills\nRelated skills to install if relevant:\n- `react` — React fundamentals and patterns\n- `typescript` — Type safety for better DX\n- `prisma` — Database ORM for Next.js apps\n- `tailwindcss` — Styling with utility classes\n- `nodejs` — Server runtime knowledge\n\n","## When to Use\n\nUser needs Next.js expertise — routing, data fetching, caching, authentication, or deployment. Agent handles App Router patterns, server\u002Fclient boundaries, and production optimization.\n\n## Core Rules\n\n### 1. Server Components by Default\nEverything is Server Component in App Router. Add `'use client'` only for useState, useEffect, event handlers, or browser APIs. Server Components can't be imported into Client — pass as children.\n\n### 2. Fetch Data on Server\nFetch in Server Components, not useEffect. Use `Promise.all` for parallel requests.\n\n### 3. Cache Intentionally\n`fetch` is not cached by default in Next.js 15 — opt in with `cache: 'force-cache'` or set `revalidate` for ISR.\n\n### 4. Server Actions for Mutations\nUse `'use server'` functions for form submissions and data mutations. Progressive enhancement — works without JS.\n\n### 5. Environment Security\n`NEXT_PUBLIC_` exposes to client bundle. Server Components access all env vars. Use `.env.local` for secrets.\n\n### 6. Streaming for Large Data\nUse `\u003CSuspense>` boundaries to stream content progressively. Wrap slow components individually.\n\n### 7. Auth at Middleware Level\nProtect routes in middleware, not in pages. Middleware runs on Edge — lightweight auth checks only.\n\n## Server vs Client\n\n| Server Component | Client Component |\n|------------------|------------------|\n| Default in App Router | Requires `'use client'` |\n| Can be async | Cannot be async |\n| Access backend, env vars | Access hooks, browser APIs |\n| Zero JS shipped | JS shipped to browser |\n\n**Decision:** Start Server. Add `'use client'` only for: useState, useEffect, onClick, browser APIs.\n\n## Common Traps\n\n| Trap | Fix |\n|------|-----|\n| `router.push` in Server | Use `redirect()` |\n| `\u003CLink>` prefetches all | `prefetch={false}` |\n| `next\u002Fimage` no size | Add `width`\u002F`height` or `fill` |\n| Metadata in Client | Move to Server or `generateMetadata` |\n| useEffect for data | Fetch in Server Component |\n| Import Server→Client | Pass as children\u002Fprops |\n| Middleware DB call | Call API route instead |\n| Missing `await params` (v15) | Params are async in Next.js 15 |\n\n## Next.js 15 Changes\n\n- `params` and `searchParams` are now `Promise` — must await\n- `fetch` not cached by default — opt-in with `cache: 'force-cache'`\n- Use React 19 hooks: `useActionState`, `useFormStatus`\n\n## Related Skills\nRelated skills to install if relevant:\n- `react` — React fundamentals and patterns\n- `typescript` — Type safety for better DX\n- `prisma` — Database ORM for Next.js apps\n- `tailwindcss` — Styling with utility classes\n- `nodejs` — Server runtime knowledge\n\n",{"id":23,"name":5,"tags":24,"goals":25,"category":27},"nextjs",[23],[26],"Build Next.js 15 apps with App Router, server components, caching, auth, and production patterns.","framework","main","688810f2886d212632acf81e532b24e483dd8b98","skills\u002Fframework\u002Fnextjs","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills","https:\u002F\u002Fgithub.com\u002Fiberi22","Senior WEB Full-Stack","2026-10-12 02:46:21",{"source":7,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add iberi22\u002Fskills --skill NextJS",{"tool":41,"command":42},"bunx","bunx skills add iberi22\u002Fskills --skill NextJS",{"tool":44,"command":45},"pnpm","pnpm dlx skills add iberi22\u002Fskills --skill NextJS","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fframework\u002Fnextjs\u002FSKILL.md",true,[],[50,56,63,69,75,81],{"skillNo":51,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":18},"01M72TWQEQD46ZC9TRBAABF78P","web-design-guidelines","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fweb\u002Fweb-design-guidelines\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":18},"01M72TWMQFTYD08DGXVAXRPPEB","blocked-page-recovery","Use when a fetch fails: 403\u002F429, paywall, WAF, bot wall. Recovers the page via archives and provenance-checked fallbacks.","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fweb\u002Fblocked-page-recovery\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M72TVQMS3HCTX18C8T97WTQQ","studio-coach","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fstudio-coach\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M72TVNA2PR9RZW0ZAXYP1G6J","src-generator","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fsrc-generator\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M72TVEJHHB6SAT3R3TY9MJKS","sqlite-pro","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fsqlite-pro\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M72TVC2EVBHQHCX96VTTYKB8","rigor-evaluator","Use when you need a quick heuristic rigor score (10 criteria, 0-2 each) for the features in a .gitcore\u002Ffeatures.json file, to decide which features are ready to ship.","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Frigor-evaluator\u002FSKILL.md",[],[]]