본문으로 건너뛰기
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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/nextjs-seo-indexing/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 Next.js 사이트의 색인 문제를 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 캐노니컬 태그, ‘noindex’ 규칙, 사이트맵, 페이지 생성 방식 같은 Next.js 사이트 설정을 분석합니다. 이 설정을 모범 사례와 비교해 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"

…
자주 묻는 질문

캐노니컬 태그란 무엇인가요?

같은 콘텐츠를 가진 URL이 여러 개일 때 어떤 페이지가 기준 버전인지 Google에 알려 주는 지시문으로, 혼란을 막아 줍니다.

‘noindex’는 무슨 뜻인가요?

Google에 특정 페이지를 검색 결과에 표시하지 말라고 알려 주는 지시문입니다.

‘크롤링 예산(crawl budget)’이란 무엇인가요?

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
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬