nextjs-page-generator
使用App Router、服务器组件和数据获取生成Next.js页面组件。触发条件为"create nextjs page"、"generate next.js route"、"nextjs app router page"、"next page component"。
📖 中文导读:使用App Router、服务器组件和数据获取生成Next.js页面组件。触发条件为"create nextjs page"、"generate next.js route"、"nextjs app router page"、"next page component"。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: nextjs-page-generator description: Generate Next.js page components with App Router, Server Components, and data fetching. Triggers on "create nextjs page", "generate next.js route", "nextjs app router page", "next page component".
Next.js Page Generator
Generate Next.js page components using App Router with Server/Client Components and data fetching.
Output Requirements
File Output: page.tsx, layout.tsx, loading.tsx, error.tsx
Format: Valid Next.js 14 TypeScript
Standards: Next.js App Router conventions
When Invoked
Immediately generate complete Next.js page files with appropriate patterns for the use case.
Example Invocations
Prompt: "Create Next.js page for product listing"
Output: Complete app/products/page.tsx with Server Component data fetching.