What problem does it solve?
This Skill ensures adherence to best practices and patterns for building Next.js applications using the Pages Router, optimizing for performance, SEO, and maintainability.
Core Features & Use Cases
- Page Structure: Enforces standard directory and file organization within the
pages/ directory.
- Data Fetching: Guides the use of
getStaticProps with ISR for performance and getServerSideProps only when necessary.
- SEO & Meta Tags: Implements best practices for
Head component usage, including titles, descriptions, and Open Graph tags.
- Error Handling: Details custom 404 pages and the use of Error Boundaries.
- Performance: Recommends lazy loading components and optimizing images with
next/image.
- Internationalization: Provides patterns for handling translations and locale-specific routing.
- Use Case: When developing a new page in a Next.js application, this skill will guide you to correctly implement data fetching, SEO meta tags, and ensure the page is performant.
Quick Start
Use the writing-nextjs skill to create a new page with optimized data fetching and SEO meta tags.