nextjs-seo

Audit Next.js 16+ App Router SEO configuration for crawl and indexing issues.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/moughamir/justwaitit-review --skill nextjs-seo-moughamir
Or copy as Structured Prompt for Agentโ–ผ
Please help me install this Agent Skill.
Skill: nextjs-seo
Source: https://github.com/moughamir/justwaitit-review/tree/main/.agents/skills/nextjs-seo
Command: npx skills add https://github.com/moughamir/justwaitit-review --skill nextjs-seo-moughamir

SYSTEM DOCUMENTATION & REQUIREMENTS

๐Ÿ’ก This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you diagnose and resolve common SEO issues in Next.js apps by ensuring robots.txt, sitemaps, and metadata are correctly implemented so search engines can crawl and index your pages reliably.

Core Features & Use Cases

  • Next.js SEO setup for App Router: Configure root-level metadata, canonical URLs, viewport, robots directives, and SEO-friendly rendering practices for indexable pages.
  • Sitemap and robots auditing: Validate that sitemap.xml and robots.txt exist, are accessible, and match what you want crawled, including common misconfigurations that prevent indexing.
  • Structured metadata guidance: Implement and verify Open Graph/Twitter metadata and JSON-LD structured data patterns to improve rich results eligibility.

Quick Start

Ask this AI for a complete SEO checklist and a set of exact Next.js 16+ code changes for your robots.ts and sitemap.ts so your site becomes indexable.

Frequently Asked Questions about nextjs-seo

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why is Google not indexing my Next.js App Router pages?โ–ผ

Google indexing fails for Next.js pages when robots.txt blocks crawling, sitemap.xml is missing, or canonical URLs are misconfigured. Auditing these files and the Next.js Metadata API patterns resolves crawl access and indexing problems.

How do I configure Next.js Metadata API for SEO and canonical URLs?โ–ผ

To configure Next.js Metadata API for SEO, set root-level metadata and viewport exports in your layout, define metadataBase for absolute canonical URLs, and validate Open Graph tags. This ensures proper metadata generation and structured data for search engines.

What's the best way to generate sitemap.xml and robots.txt in Next.js 16+?โ–ผ

The best way to generate sitemap.xml and robots.txt in Next.js 16+ is using the framework's native sitemap.ts and robots.ts file conventions. This ensures your crawl directives align directly with the pages you want indexed.

Does this SEO guide apply to Next.js Pages Router projects?โ–ผ

No, this SEO guide specifically targets Next.js 16+ App Router projects. It relies on the newer Metadata API patterns, viewport export rules, and file-based sitemap and robots conventions not used in the Pages Router.

How do I add JSON-LD structured data for rich results in a Next.js app?โ–ผ

To add JSON-LD structured data in a Next.js app, implement structured data patterns within your App Router components. This verifies and improves your eligibility for Google rich results through enhanced structured metadata.

Why are my Next.js pages failing Core Web Vitals and losing search rankings?โ–ผ

Next.js pages fail Core Web Vitals when rendering practices are not optimized for indexable pages. Auditing your SEO-friendly rendering practices and viewport configuration helps maintain search performance and pass Core Web Vitals metrics.