// Next.js App Router .cursorrules
Add this skill
npx mdskills install PatrickJS/cursor-nextjs-app-routerLists Next.js App Router conventions but lacks actionable instructions for AI agents
// Next.js App Router .cursorrules
// Next.js App Router best practices
const nextjsAppRouterBestPractices = [ "Use server components by default", "Implement client components only when necessary", "Utilize the new file-based routing system", "Use layout.js for shared layouts", "Implement loading.js for loading states", "Use error.js for error handling", "Utilize route handlers for API routes", ];
// Folder structure
const folderStructure = app/ layout.js page.js components/ lib/ styles/ public/;
// Additional instructions
const additionalInstructions = `
Install via CLI
npx mdskills install PatrickJS/cursor-nextjs-app-routerNext.js App Router is a free, open-source AI agent skill. // Next.js App Router .cursorrules
Install Next.js App Router with a single command:
npx mdskills install PatrickJS/cursor-nextjs-app-routerThis downloads the skill files into your project and your AI agent picks them up automatically.
Next.js App Router works with Cursor. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.