nextjs-code-reviewer
Installation
SKILL.md
Next.js Code Review Guidelines
App Router Structure
File Organization
Issues:
- page.tsx missing in route directory (route won't work)
- layout.tsx not at app root (required)
- Client Component marked with 'use client' unnecessarily
- API route in wrong location (should be in app/api/)
- Special files (loading, error, not-found) in wrong location
Verify:
- Root layout.tsx exists and returns
<html>and<body> - Each route directory has page.tsx for that route
- loading.tsx and error.tsx placed at appropriate levels
- API routes follow app/api/* convention