Technical SEO Agent Skill
Sitemaps, robots.txt, structured data, and meta tag patterns for Next.js.
The Skill
Full content, every format. Copy it, download it, or install with one command.
---
description: Sitemaps, robots.txt, structured data, and meta tag patterns for Next.js.
homepage: https://yepapi.com/skills/seo-technical
metadata:
tags: [seo, sitemap, structured-data, meta-tags]
---
# Technical SEO
## Rules
- Dynamic sitemap: `app/sitemap.ts` returning `MetadataRoute.Sitemap` — include all public pages with `lastModified`
- `robots.txt`: `app/robots.ts` — allow crawling of all public pages, block `/api/`, `/dashboard/`
- Structured data: JSON-LD via `<script type="application/ld+json">` in page components — Organization, Product, Article, FAQ schemas
- Meta tags via `generateMetadata()`: title (50-60 chars), description (150-160 chars), `openGraph`, `twitter`
- Canonical URLs: always set `alternates.canonical` to prevent duplicate content
- `next/image` with `alt` text for image SEO — descriptive, keyword-relevant
- Internal linking: link between related pages with descriptive anchor text
- Page speed: run Lighthouse (or YepAPI `POST /v1/seo/lighthouse`) — target 90+ on all categories
## Avoid
- Missing sitemap or robots.txt — search engines need them
- Duplicate title/description across pages — each page needs unique metadata
- `noindex` on pages you want ranked — audit regularly
- Client-side rendering for content pages — use Server Components for SEO-critical contentInstall
Why Use the Technical SEO Skill?
Without this skill, your AI guesses at technical seo patterns. It might hallucinate deprecated APIs, use outdated conventions, or miss best practices entirely. With it, your AI follows a proven ruleset — every suggestion aligns with current standards.
Drop this skill into your project and your AI instantly knows the rules. Better code suggestions, fewer errors, faster shipping.
Try These Prompts
These prompts work better with the Technical SEO skill installed. Your AI knows the context and writes code that fits.
"Add a sitemap.xml, robots.txt, and JSON-LD structured data to this Next.js app"
"Create a technical SEO setup with canonical URLs, hreflang tags, and Open Graph meta"
"Build an SEO component library with meta tags, breadcrumbs, and schema markup helpers"
Works Great With
Technical SEO skill — FAQ
It covers sitemaps, robots.txt, structured data, and meta tag patterns for Next.js. Your AI generates proper SEO markup with correct schema.org types and Open Graph tags.
Run `npx skills add YepAPI/skills --skill seo-technical` in your project root. This copies the skill file into your repo where your AI coding tool can read it automatically.
Yes. The skill adds JSON-LD structured data for articles, products, FAQs, and organizations. This helps search engines understand your content and can enable rich snippets in results.