Перейти к содержанию
Skillpedia
SEO48k · #5302

nextjs-seo-indexing

Что он делает

Этот инструмент помогает исправить проблемы с тем, как Google находит и показывает страницы вашего сайта на Next.js. Он проверяет, правильно ли настроено SEO, может ли Google эффективно обходить ваш сайт и нет ли ошибок, мешающих индексации страниц.

Когда использовать

  • ✓Когда Google Search Console показывает ошибки индексации.
  • ✓Перед крупными обновлениями сайта, чтобы не навредить SEO.
  • ✓Чтобы проверить, находит ли Google важные страницы и правильно ли он их показывает.

Ссылка на скилл

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/nextjs-seo-indexing/SKILL.md

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/nextjs-seo-indexing/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Проверь проблемы с индексацией моего сайта на Next.js.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Инструмент анализирует настройки сайта на Next.js, такие как канонические теги, правила "noindex", карту сайта (sitemap) и способ генерации страниц. Он сравнивает эти параметры с лучшими практиками, чтобы Google мог обойти и проиндексировать ваш контент.

Технический текст (оригинальный SKILL.md)

Оригинальный текст автора на английском, прямо с GitHub.

Next.js SEO Indexing & Crawl Budget Skill

Fix Google Search Console coverage issues, canonical problems, sitemap errors, and crawl budget waste in Next.js apps.


When to Use

  • Use when a Next.js site has Google Search Console coverage issues such as duplicate canonicals, accidental noindex, crawl waste, or discovered-but-not-indexed URLs.
  • Use when auditing sitemap, robots.txt, redirect, internal-linking, or static-rendering problems before an SEO release.
  • Use when you need framework-specific examples for Next.js App Router metadata, generateMetadata, robots.js, and sitemap routes.

Understanding Search Console Coverage States

Status Meaning Fix
Crawled – not indexed Google crawled but chose not to index Improve content quality + canonical + internal links
Duplicate without canonical Multiple URLs serve same content, no canonical Add explicit canonical to the preferred URL
Excluded by noindex noindex tag present Remove noindex if page should be indexed
Duplicate, Google chose different canonical Google prefers a different URL than you specified Align canonical with the URL Google naturally picks
Alternative page with proper canonical Correct — non-preferred duplicate pointing to canonical Expected behavior, not a problem
Not found 404 Page deleted or URL changed Add redirect or restore page
Discovered – not indexed Google knows it exists but hasn't crawled it Improve internal linking + crawl budget
Page with redirect Redirect chain or redirect to wrong target Shorten redirect chain, verify destination

Step 1 — Canonical Audit

Next.js App Router (metadata export)

// app/blog/my-post/page.js
export const metadata = {
  title: 'My Post Title',
  alternates: {
    canonical: 'https://www.yourdomain.com/blog/my-post',
  },
};

Next.js App Router (generateMetadata)

export async function generateMetadata({ params }) {
  return {
    alternates: {
      canonical: `https://www.yourdomain.com/blog/${params.slug}`,
    },
  };
}

Common canonical mistakes to fix:

// ❌ WRONG — relative URL
canonical: '/blog/my-post'

// ❌ WRONG — missing trailing slash inconsistency  
// (pick one and stick with it sitewide)

// ✓ CORRECT — absolute URL, consistent scheme + subdomain
canonical: 'https://www.yourdomain.com/blog/my-post'

Step 2 — Noindex Audit

Find pages that are accidentally noindexed:

# Search for noindex in metadata
rg -n --glob '*.{js,ts,jsx,tsx}' 'noindex|robots.*noindex' app pages

# Check layout.js — a noindex here affects ALL pages
grep -n "robots" app/layout.js

In Next.js App Router, robots in the root layout applies globally. Only set it there if you want the whole site affected.

// app/layout.js — only set robots if you need sitewide control
export const metadata = {
  // ✓ Allow indexing
  robots: { index: true, follow: true },
  // ❌ This would noindex the entire site:
  // robots: { index: false }
};

Step 3 — Sitemap Health

Verify sitemap routes return 200 + valid XML

curl -sI https://www.yourdomain.com/sitemap.xml | grep -i "content-type\|status"
curl -s https://www.yourdomain.com/sitemap.xml | head -20

Next.js App Router sitemap (recommended pattern)

// app/sitemap.js
export default async function sitemap() {
  const baseUrl = 'https://www.yourdomain.com';
  
  // Static pages
  const staticPages = [
    { url: baseUrl, lastModified: new Date(), changeFrequency: 'daily', priority: 1.0 },
    { url: `${baseUrl}/about`, lastModified: new Date(), changeFrequency: 'monthly', priority: 0.8 },
  ];
  
  // Dynamic pages (fetch from DB or CMS)
  const posts = await getPosts(); // your data fetch
  const dynamicPages = posts.map(post => ({
    url: `${baseUrl}/blog/${post.slug}`,
    lastModified: new Date(post.updatedAt),
    changeFrequency: 'weekly',
    priority: 0.7,
  }));
  
  return [...staticPages, ...dynamicPages];
}

Multiple sitemaps (sitemap index)

// app/sitemap-tools/sitemap.js  
// app/sitemap-blog/sitemap.js
// Each returns an array of URL entries

Step 4 — Static Rendering Verification

Pages must be statically generated (or SSR with metadata in HTML) for Google to see SEO tags.

# Check build output — pages should show ● (static) not λ (dynamic)
npm run build 2>&1 | grep -E "○|●|λ|/blog|/tools"

…
Частые вопросы

Что такое канонические теги?

Это инструкции, которые сообщают Google, какая версия страницы основная, если несколько адресов содержат одинаковый контент. Так поисковик не путается.

Что означает "noindex"?

Это инструкция, которая говорит Google не показывать конкретную страницу в результатах поиска.

Что такое краулинговый бюджет?

Это объем ресурсов, который Google выделяет на обход вашего сайта. Хорошая оптимизация помогает тратить этот бюджет на самые важные страницы.

Подробности

Оригинальное описание автора

Fix SEO indexing issues, crawl budget problems, and Search Console coverage errors for Next.js apps. Covers canonical tags, noindex audits, sitemap health, static rendering, and internal linking.

repo: sickn33/agentic-awesome-skills

Популярность

Звёзды на GitHub
48k
Место в рейтинге
#5302
Лицензия
MIT
Обновлён
15.10.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы