Agent skill · marketing growth · aiskillstore

seo-handler

Manage SEO, sitemaps, and metadata for optimal search engine visibility

Why this skill is useful

Provides specific Next.js patterns for SEO management that the AI wouldn't reliably generate on its own.

What it needs

About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

SEO Handler Skill This skill ensures your Next.js application is optimized for search engines. It covers sitemaps, metadata (OpenGraph), server-side rendering (SSR/ISR), structured data (JSON-LD), and robots.txt configuration. Core Principles 1. Sitemap Visibility: Every public page MUST be in src/app/sitemap.ts. 2. Metadata Inheritance: Use layout.tsx for defaults; override in page.tsx. 3. Structured Data: Use next-seo components (JSON-LD) on every content page. 4. Server-Side Data: Fetch content-heavy data on the server (ISR) for SEO. 5. Robots Control: Use src/app/robots.ts to guide crawlers. 1. Sitemap Management File: src/app/sitemap.ts When adding a new public route (e.g., /features), add it to the staticPages array. Splitting Sitemaps (Large Sites) If you have >50k URLs (e.g., user profiles, products), use generateSitemaps. File: src/app/products/sitemap.ts 2. Metadata & OpenGraph Base Layout: src/app/layout.tsx (or group layout) defines the template. Page Level: src/app/blog/[slug]/page.tsx 3. Structured Data (JSON-LD) Primary: Next-SEO Components Use next-seo components to inject JSON-LD structured data. This helps search engines understand your content (Articles, Products, FAQs, etc.). Page Component: src/app/blog/[slug]/page.tsx Alternative: Raw JSON-LD (Script Tag) If a specific schema isn't supported by next-seo, use a raw script tag. Wrap in Suspense if the data fetching is async. 4. Incremental Static Regeneration (ISR) For content pages (Blogs, Docs, Marketing) that rely on database content, use ISR to cache them at the edge. Page Component: 5. Robots.txt configuration File: src/app/robots.ts Ensure you disallow private routes (/api/, /app/, /admin/) to save crawl budget.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/seo-handler

View the source on GitHub

Browse the @skills marketplace