一键导入
nextjs-app-router
Use when adding pages, layouts, route handlers, or data fetching in this Next.js App Router project, to follow server-first conventions correctly.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when adding pages, layouts, route handlers, or data fetching in this Next.js App Router project, to follow server-first conventions correctly.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | nextjs-app-router |
| description | Use when adding pages, layouts, route handlers, or data fetching in this Next.js App Router project, to follow server-first conventions correctly. |
Build features the App Router way: server components by default, client
components only when needed, and colocated routes under app/.
app/<segment>/page.tsx; add layout.tsx for shared
UI and loading.tsx/error.tsx for states."use client" only to those leaf components.async/await; avoid client-side
fetching for initial render when the server can do it.app/api/<name>/route.ts using the Web Request/
Response APIs.npm run build (catches server/client boundary and type errors).fetch in Server Components with Next.js caching options (cache,
next.revalidate) documented in code comments when non-default.loading.tsx for slow segments; avoid blocking the entire page.GET, POST, …) from route.ts.Response.json() with correct status codes.route.ts.NEXT_PUBLIC_* unless they are truly public.page.tsx thin; move logic into small, typed functions under src/ or
colocated lib/.next/link and next/image over raw anchors/images.npm run build before claiming done.See the shared deploy-vercel skill when shipping to Vercel.
"use client" to avoid thinking about server boundaries.page.tsx files mixing UI, data access, and validation.Use before scaffolding a bwai project — runs the full startup-goal workflow then recommends the right boilerplate and outputs the exact bwai new command to run.
Use when acting as a startup CTO for architecture, technical risk, platform direction, codebase boundaries, or engineering strategy.
Use when acting as a startup founding engineer for implementation, tests, debugging, review, and verification.
Use when acting as a startup product manager for discovery, PRDs, issue slicing, roadmap tradeoffs, or customer-value sequencing.
Use when acting as a startup QA lead for acceptance checks, release risk, regression focus, and verification evidence.
Use when coordinating a startup goal across CEO, CTO, product manager, engineering manager, founding engineer, and QA lead role subagents.