Guidelines for reviewing Next.js pull requests using App Router, Server Actions, and Partial Prerendering.
To ensure Next.js pull requests adhere to the latest architectural standards (v16+), focusing on the App Router, React Server Components (RSC), and performance optimization.
README.md and architecture docs.Input: pr_context
Output: initial_notes
Gate: none
On error: abort
CONTRIBUTING.md).Input: changed_files
Output: arch_findings
Gate: none
On error: continue
'use client').window, localStorage) are not used in Server Components.Input: data_fetching_code
Output: cache_findings
Gate: none
On error: continue
force-cache or revalidate tags where data should be persisted.Input: server_actions
Output: mutation_findings
Gate: none
On error: continue
revalidatePath, revalidateTag) after mutations.Input: components
Output: perf_findings
Gate: none
On error: continue
loading.tsx, error.tsx, and not-found.tsx implementations.next/image) and font handling (next/font).Input: env_vars, metadata
Output: security_seo_findings
Gate: none
On error: continue
NEXT_PUBLIC_ prefix used in client code).generateMetadata) for SEO correctness.Input: tests, all_findings
Output: review_report
Gate: none
On error: abort