nuxt-seo by secondsky/claude-skills
npx skills add https://github.com/secondsky/claude-skills --skill nuxt-seo状态 : 生产就绪 最后更新 : 2025-12-28 依赖项 : Nuxt >=3.0.0 最新版本 : 参见下方的模块版本表
当您使用 8 个官方 Nuxt SEO 模块的任意组合以及高级专业模块来构建 SEO 优化的 Nuxt 应用程序时,请使用此技能。此技能涵盖了由 Harlan Wilton 维护的完整 Nuxt SEO 生态系统,包括渲染模式、JSON-LD、Twitter 卡片、IndexNow 等的综合指南。
Nuxt SEO 由 8 个核心模块 加上 3 个专业模块 组成,它们可以无缝协作:
| 模块 | 版本 | 用途 |
|---|---|---|
| @nuxtjs/seo | v3.3.0 | 主要的 SEO 模块(以捆绑包形式安装所有 8 个模块) |
| nuxt-robots | v5.6.7 | 管理 robots.txt 和机器人检测 |
| nuxt-sitemap | v7.5.0 | 生成具有高级功能的 XML 站点地图 |
| nuxt-og-image | v5.1.13 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 通过 Vue 模板创建 Open Graph 图片 |
| nuxt-schema-org | v5.0.10 | 构建 Schema.org 结构化数据图谱 |
| nuxt-link-checker | v4.3.9 | 查找并修复损坏的链接 |
| nuxt-seo-utils | v7.0.19 | 用于可发现性和可分享性的 SEO 实用工具 |
| nuxt-site-config | v3.2.14 | 集中式站点配置管理 |
| 模块 | 用途 |
|---|---|
| nuxt-ai-ready | 为 AI 爬虫和 LLM 优化生成 llms.txt |
| nuxt-skew-protection | 防止部署期间的版本不匹配 |
| Nuxt SEO Pro MCP | 通过模型上下文协议提供 AI 驱动的 SEO 工具 |
要求 : Nuxt v3 或 v4
一次性安装所有 8 个模块:
# 使用 Bun (首选)
bunx nuxi module add @nuxtjs/seo
# 使用 npm (备用)
npx nuxi module add @nuxtjs/seo
# 使用 pnpm (备用)
pnpm dlx nuxi module add @nuxtjs/seo
为何重要:
添加到 nuxt.config.ts:
export default defineNuxtConfig({
modules: ['@nuxtjs/seo'],
site: {
url: 'https://example.com',
name: '我的超棒网站',
description: '构建卓越的网络体验',
defaultLocale: 'en'
}
})
关键:
site.url 设置为生产环境 URL(站点地图和规范 URL 必需)defaultLocalebun run dev
# 或
npm run dev
访问以下 URL 进行验证:
http://localhost:3000/robots.txt - Robots 文件http://localhost:3000/sitemap.xml - 站点地图bunx nuxi module add @nuxtjs/seo
# 或: npx nuxi module add @nuxtjs/seo
配置:
export default defineNuxtConfig({
modules: ['@nuxtjs/seo']
})
仅安装所需模块:
# Bun
bunx nuxi module add nuxt-robots
bunx nuxi module add nuxt-sitemap
bunx nuxi module add nuxt-og-image
# npm
npx nuxi module add nuxt-robots
npx nuxi module add nuxt-sitemap
npx nuxi module add nuxt-og-image
# pnpm (备用)
pnpm dlx nuxi module add nuxt-robots
pnpm dlx nuxi module add nuxt-sitemap
pnpm dlx nuxi module add nuxt-og-image
配置:
export default defineNuxtConfig({
modules: [
'nuxt-robots',
'nuxt-sitemap',
'nuxt-og-image'
]
})
Nuxt SEO 生态系统由 8 个专用模块 组成,它们可以无缝协作。每个模块都有特定的用途,可以单独安装,也可以作为完整捆绑包安装。
主要的 SEO 模块,以捆绑包形式安装所有 8 个模块。通过 site 对象提供统一配置,并与 Nuxt Content 集成以实现自动 SEO。
管理 robots.txt 和机器人检测。控制搜索引擎可以爬取哪些页面,支持站点范围和页面级别的规则。包括服务器端和客户端机器人检测。
根据路由自动生成 XML 站点地图,支持动态 URL、多个站点地图、媒体和高级优化。非常适合拥有数千个页面的大型网站。
使用 Vue 模板动态创建 Open Graph 图片。使用 Satori 渲染器实现零运行时开销,或使用 Chromium 渲染器获得完整的 CSS 支持。
构建 Schema.org 结构化数据,以增强搜索结果,包括富媒体摘要、知识面板和更好的 SEO。
查找并修复可能对 SEO 产生负面影响的链接。在开发和构建过程中检测损坏的链接、重定向和问题。
用于可发现性和可分享性的 SEO 实用工具,包括规范 URL、面包屑导航、应用图标和 Open Graph 自动化。
为所有 SEO 模块提供集中式站点配置管理。是站点范围设置(如 URL、名称和语言环境)的单一事实来源。
有关包含配置、API 和示例的完整模块文档:
当您需要时,请加载 references/module-details.md:
// nuxt.config.ts - 完整的 SEO 设置
export default defineNuxtConfig({
modules: ['@nuxtjs/seo'],
site: {
url: 'https://example.com',
name: '我的超棒网站',
defaultLocale: 'en'
},
robots: {
disallow: ['/admin']
},
sitemap: {
sitemaps: {
blog: { sources: ['/api/__sitemap__/blog'] }
}
}
})
有关完整的集成示例:
当您需要时,请加载 references/common-patterns.md:
✅ 在 nuxt.config.ts 中设置 site.url(站点地图和规范 URL 必需) ✅ 对于多环境设置,使用环境变量 ✅ 配置 robots.txt 以阻止管理/私有页面 ✅ 为所有重要页面添加 Schema.org 结构化数据 ✅ 为社交分享生成 OG 图片 ✅ 部署到生产环境前测试所有 SEO 功能 ✅ 部署后将站点地图提交到 Google Search Console ✅ 在开发期间启用链接检查器
❌ 忘记设置 site.url(会破坏站点地图和规范 URL) ❌ 允许爬取暂存环境 ❌ 为关键页面(产品、文章、事件)跳过 Schema.org ❌ 未测试 OG 图片就部署 ❌ 使用过时的模块版本 ❌ 忽略链接检查器发现的损坏链接 ❌ 忘记将管理/私有路由从站点地图中排除 ❌ 为 OG 图片使用错误的渲染引擎(Chromium 与 Satori)
此技能可预防 10 个已记录的常见 SEO 错误:
错误 : /sitemap.xml 返回 404 原因 : 缺少 site.url 配置 预防 : 始终在 nuxt.config.ts 中设置 site.url
错误 : /robots.txt 无法访问 原因 : 模块未安装或配置错误 预防 : 安装 nuxt-robots 并设置 site.url
错误 : /__og-image__/og.png 返回错误 原因 : CSS 与 Satori 渲染器不兼容 预防 : 使用与 Satori 兼容的 CSS 或切换到 Chromium 渲染器
错误 : 页面源代码中的 JSON-LD 无效 原因 : Schema.org 结构不正确 预防 : 遵循官方 Schema.org 类型并使用 Google 的富媒体结果测试进行验证
错误 : 内部链接出现 404 错误 原因 : 路由更改后链接未更新 预防 : 在开发期间启用 nuxt-link-checker
错误 : 多个具有相同属性的 meta 标签 原因 : 手动 meta 标签与模块自动化冲突 预防 : 让模块自动处理 meta 标签
错误 : meta 标签中的规范 URL 错误 原因 : site.url 不正确或缺少尾部斜杠配置 预防 : 正确配置 site.url 和 trailingSlash
错误 : 站点地图索引 XML 格式错误 原因 : 单个站点地图中 URL 过多 预防 : 使用 chunksSize 选项拆分大型站点地图
错误 : 暂存站点被 Google 索引 原因 : 没有 robots.txt 阻止 预防 : 配置 robots 以阻止暂存环境:disallow: process.env.NUXT_PUBLIC_ENV === 'staging' ? ['/'] : []
错误 : 在社交媒体上分享时没有预览图片 原因 : OG 图片未定义或无法访问 预防 : 在所有重要页面上使用 defineOgImage()
export default defineNuxtConfig({
modules: ['@nuxtjs/seo'],
site: {
url: process.env.NUXT_PUBLIC_SITE_URL,
name: '我的网站',
defaultLocale: 'en'
},
robots: {
disallow: process.env.NUXT_PUBLIC_ENV === 'staging' ? ['/'] : []
},
sitemap: {
sitemaps: {
blog: { sources: ['/api/__sitemap__/blog'] }
}
}
})
有关完整的配置示例:
当您需要时,请加载 references/advanced-configuration.md:
init-nuxt-seo.sh - 新项目的快速设置脚本
./scripts/init-nuxt-seo.sh
自动执行:
根据用户的具体需求加载相应的参考文件:
当出现以下情况时加载 references/seo-guides.md:
当出现以下情况时加载 references/pro-modules.md:
当出现以下情况时加载 references/advanced-seo-guides.md:
当出现以下情况时加载 references/modules-overview.md:
当出现以下情况时加载 references/installation-guide.md:
当出现以下情况时加载 references/api-reference.md:
当出现以下情况时加载 references/common-patterns.md:
当出现以下情况时加载 references/module-details.md:
当出现以下情况时加载 references/best-practices.md:
当出现以下情况时加载 references/troubleshooting.md:
当出现以下情况时加载 references/advanced-configuration.md:
当出现以下情况时加载 references/og-image-guide.md:
当出现以下情况时加载 references/nuxt-content-integration.md:
当出现以下情况时加载 references/sitemap-advanced.md:
当出现以下情况时加载 references/nitro-api-reference.md:
当出现以下情况时加载 references/ai-seo-tools.md:
可用的参考资料:
references/seo-guides.md - 全面的 SEO 实现指南(渲染、JSON-LD、规范 URL、IndexNow、Twitter 卡片、Open Graph、meta robots、URL 结构)references/pro-modules.md - 专业模块(AI Ready、Skew Protection、SEO Pro MCP)references/advanced-seo-guides.md - 高级 SEO 主题(I18n 多语言、路由规则、增强标题、链接检查器规则、SPA 预渲染、水合、爬虫防护、404 页面)references/og-image-guide.md - OG 图片生成(Satori/Chromium、字体、表情符号、缓存、自定义模板)references/nuxt-content-integration.md - Nuxt Content v2/v3 集成(asSeoCollection、模块顺序、自动 SEO)references/sitemap-advanced.md - 高级站点地图模式(动态 URL、多站点地图、分块、i18n、性能)references/nitro-api-reference.md - 服务器端 SEO 钩子和组合式函数(Nitro 插件、站点地图钩子、robots 组合式函数)references/ai-seo-tools.md - AI SEO 工具(llms.txt、Nuxt AI Ready、MCP、内容信号)references/modules-overview.md - 所有 8 个核心模块的详细概览references/installation-guide.md - 分步安装模式references/api-reference.md - 所有组合式函数的完整 API 文档references/common-patterns.md - 真实世界使用模式和示例references/module-details.md - 详细的模块配置references/best-practices.md - 生产 SEO 最佳实践references/troubleshooting.md - 错误解决指南references/advanced-configuration.md - 高级配置模式assets/package-versions.json - 用于验证的当前模块版本用于复杂 SEO 任务的自主代理:
| 代理 | 用途 |
|---|---|
seo-auditor.md | 对 Nuxt 项目进行全面的 SEO 审计 |
schema-generator.md | 生成 Schema.org 结构化数据 |
og-image-generator.md | 创建自定义 OG 图片 Vue 模板 |
link-checker.md | 分析内部/外部链接 |
sitemap-builder.md | 设计最优的站点地图策略 |
用于快速 SEO 任务的斜杠命令:
| 命令 | 用途 |
|---|---|
/seo-audit | 运行全面的 SEO 审计 |
/seo-setup | 快速设置 Nuxt SEO 项目 |
/og-preview | 预览 OG 图片生成 |
/check-links | 运行链接检查器分析 |
/validate-sitemap | 验证站点地图配置 |
/check-schema | 验证 Schema.org 实现 |
自动运行的 SEO 验证钩子:
| 钩子 | 事件 | 用途 |
|---|---|---|
| SEO 配置验证器 | PreToolUse | 验证文件编辑中的 SEO 配置 |
| 写入后检查器 | PostToolUse | 文件写入后检查 SEO 配置 |
| 完成验证器 | Stop | 确保任务完成前进行 SEO 验证 |
| 项目检测器 | SessionStart | 在会话开始时检测 Nuxt SEO 模块 |
1. 始终设置站点配置
site: {
url: process.env.NUXT_PUBLIC_SITE_URL,
name: '您的网站名称'
}
2. 阻止搜索引擎索引暂存环境
robots: {
disallow: process.env.NUXT_PUBLIC_ENV === 'staging' ? ['/'] : []
}
3. 为所有页面添加 Schema.org 每个页面都应具有适当的结构化数据(Organization、BlogPosting、Product 等)。
有关完整的最佳实践指南:
当您需要时,请加载 references/best-practices.md:
1. 站点地图未生成
nuxt-sitemapsite.url/sitemap.xml2. OG 图片未渲染
nuxt-og-image3. 构建错误
.nuxt 和 node_modules/.cacherm -rf node_modules && bun install有关完整的故障排除指南:
当您需要时,请加载 references/troubleshooting.md:
{
"dependencies": {
"@nuxtjs/seo": "^3.3.0",
"nuxt-robots": "^5.6.7",
"nuxt-sitemap": "^7.5.0",
"nuxt-og-image": "^5.1.13",
"nuxt-schema-org": "^5.0.10",
"nuxt-link-checker": "^4.3.9",
"nuxt-seo-utils": "^7.0.19",
"nuxt-site-config": "^3.2.14"
}
}
使用此清单验证设置:
site.urlsite.name 和 site.descriptiondefaultLocale/robots.txt 端点/sitemap.xml 端点生产就绪 : 所有模式均基于来自 https://nuxtseo.com/llms.txt 的官方文档 | 最后验证:2025-12-28
v2.2.0 (2025-12-28)
references/og-image-guide.md - 完整的 OG 图片指南(Satori/Chromium、字体、表情符号、缓存)references/nuxt-content-integration.md - Nuxt Content v2/v3 集成模式references/sitemap-advanced.md - 高级站点地图模式(动态 URL、多站点地图、分块)references/nitro-api-reference.md - 服务器端 SEO 钩子和组合式函数references/ai-seo-tools.md - Nuxt AI Ready、llms.txt、MCP 服务器、内容信号agents/og-image-generator.md - 创建自定义 OG 图片 Vue 模板agents/link-checker.md - 分析内部/外部链接agents/sitemap-builder.md - 设计最优的站点地图策略/og-preview - 预览 OG 图片生成/check-links - 运行链接检查器分析/validate-sitemap - 验证站点地图配置/check-schema - 验证 Schema.org 实现v2.1.0 (2025-12-28)
references/advanced-seo-guides.md,包含 9 个高级主题:
v2.0.0 (2025-12-28)
references/seo-guides.md - 完整的 SEO 实现指南:
references/pro-modules.md - 专业模块文档:
agents/seo-auditor.md - 自主 SEO 审计代理agents/schema-generator.md - Schema.org 代码生成器commands/seo-audit.md - SEO 审计斜杠命令commands/seo-setup.md - 快速 SEO 设置命令v1.1.0 (2025-11-27)
v1.0.0 (2025-11-10)
每周安装次数
80
仓库
GitHub 星标数
93
首次出现
Jan 25, 2026
安全审计
安装于
gemini-cli66
claude-code66
codex66
opencode64
github-copilot63
kimi-cli61
Status : Production Ready Last Updated : 2025-12-28 Dependencies : Nuxt >=3.0.0 Latest Versions : See module versions table below
Use this skill when building SEO-optimized Nuxt applications with any combination of the 8 official Nuxt SEO modules plus advanced Pro modules. This skill covers the complete Nuxt SEO ecosystem maintained by Harlan Wilton, including comprehensive guides for rendering modes, JSON-LD, Twitter Cards, IndexNow, and more.
Nuxt SEO consists of 8 core modules plus 3 Pro modules that work together seamlessly:
| Module | Version | Purpose |
|---|---|---|
| @nuxtjs/seo | v3.3.0 | Primary SEO module (installs all 8 modules as bundle) |
| nuxt-robots | v5.6.7 | Manages robots.txt and bot detection |
| nuxt-sitemap | v7.5.0 | Generates XML sitemaps with advanced features |
| nuxt-og-image | v5.1.13 | Creates Open Graph images via Vue templates |
| nuxt-schema-org | v5.0.10 | Builds Schema.org structured data graphs |
| nuxt-link-checker | v4.3.9 | Finds and fixes broken links |
| nuxt-seo-utils | v7.0.19 | SEO utilities for discoverability & shareability |
| nuxt-site-config | v3.2.14 | Centralized site configuration management |
| Module | Purpose |
|---|---|
| nuxt-ai-ready | Generate llms.txt for AI crawlers and LLM optimization |
| nuxt-skew-protection | Prevent version mismatches during deployments |
| Nuxt SEO Pro MCP | AI-powered SEO tools via Model Context Protocol |
Requirements : Nuxt v3 or v4
Install all 8 modules at once:
# Using Bun (primary)
bunx nuxi module add @nuxtjs/seo
# Using npm (backup)
npx nuxi module add @nuxtjs/seo
# Using pnpm (backup)
pnpm dlx nuxi module add @nuxtjs/seo
Why this matters:
Add to nuxt.config.ts:
export default defineNuxtConfig({
modules: ['@nuxtjs/seo'],
site: {
url: 'https://example.com',
name: 'My Awesome Site',
description: 'Building amazing web experiences',
defaultLocale: 'en'
}
})
CRITICAL:
site.url to production URL (required for sitemaps and canonical URLs)defaultLocale if using i18nbun run dev
# or
npm run dev
Visit these URLs to verify:
http://localhost:3000/robots.txt - Robots filehttp://localhost:3000/sitemap.xml - Sitemapbunx nuxi module add @nuxtjs/seo
# or: npx nuxi module add @nuxtjs/seo
Configuration:
export default defineNuxtConfig({
modules: ['@nuxtjs/seo']
})
Install only what's needed:
# Bun
bunx nuxi module add nuxt-robots
bunx nuxi module add nuxt-sitemap
bunx nuxi module add nuxt-og-image
# npm
npx nuxi module add nuxt-robots
npx nuxi module add nuxt-sitemap
npx nuxi module add nuxt-og-image
# pnpm (backup)
pnpm dlx nuxi module add nuxt-robots
pnpm dlx nuxi module add nuxt-sitemap
pnpm dlx nuxi module add nuxt-og-image
Configuration:
export default defineNuxtConfig({
modules: [
'nuxt-robots',
'nuxt-sitemap',
'nuxt-og-image'
]
})
The Nuxt SEO ecosystem consists of 8 specialized modules that work together seamlessly. Each module serves a specific purpose and can be installed individually or as a complete bundle.
Primary SEO module that installs all 8 modules as a bundle. Provides unified configuration through the site object and integrates with Nuxt Content for automatic SEO.
Manages robots.txt and bot detection. Controls which pages search engines can crawl with site-wide and page-level rules. Includes server-side and client-side bot detection.
Generates XML sitemaps automatically from routes with support for dynamic URLs, multiple sitemaps, media, and advanced optimization. Perfect for large sites with thousands of pages.
Creates Open Graph images dynamically using Vue templates. Zero runtime overhead with Satori renderer or full CSS support with Chromium renderer.
Builds Schema.org structured data for enhanced search results with rich snippets, knowledge panels, and better SEO.
Finds and fixes links that may negatively affect SEO. Detects broken links, redirects, and issues during development and build.
SEO utilities for discoverability and shareability including canonical URLs, breadcrumbs, app icons, and Open Graph automation.
Centralized site configuration management for all SEO modules. Single source of truth for site-wide settings like URL, name, and locale.
For complete module documentation with configurations, APIs, and examples:
Load references/module-details.md when you need:
// nuxt.config.ts - Complete SEO setup
export default defineNuxtConfig({
modules: ['@nuxtjs/seo'],
site: {
url: 'https://example.com',
name: 'My Awesome Site',
defaultLocale: 'en'
},
robots: {
disallow: ['/admin']
},
sitemap: {
sitemaps: {
blog: { sources: ['/api/__sitemap__/blog'] }
}
}
})
For complete integration examples:
Load references/common-patterns.md when you need:
✅ Set site.url in nuxt.config.ts (required for sitemaps and canonical URLs) ✅ Use environment variables for multi-environment setups ✅ Configure robots.txt to block admin/private pages ✅ Add Schema.org structured data to all important pages ✅ Generate OG images for social sharing ✅ Test all SEO features before deploying to production ✅ Submit sitemap to Google Search Console after deployment ✅ Enable link checker during development
❌ Forget to set site.url (breaks sitemaps and canonical URLs) ❌ Allow crawling of staging environments ❌ Skip Schema.org for key pages (products, articles, events) ❌ Deploy without testing OG images ❌ Use outdated module versions ❌ Ignore broken links found by link checker ❌ Forget to exclude admin/private routes from sitemap ❌ Use wrong rendering engine for OG images (Chromium vs Satori)
This skill prevents 10 documented common SEO mistakes:
Error : /sitemap.xml returns 404 Why It Happens : Missing site.url configuration Prevention : Always set site.url in nuxt.config.ts
Error : /robots.txt not accessible Why It Happens : Module not installed or misconfigured Prevention : Install nuxt-robots and set site.url
Error : /__og-image__/og.png returns error Why It Happens : Incompatible CSS with Satori renderer Prevention : Use Satori-compatible CSS or switch to Chromium renderer
Error : Invalid JSON-LD in page source Why It Happens : Incorrect Schema.org structure Prevention : Follow official Schema.org types and validate with Google's Rich Results Test
Error : 404 errors on internal links Why It Happens : Links not updated after route changes Prevention : Enable nuxt-link-checker during development
Error : Multiple meta tags with same property Why It Happens : Conflicting manual meta tags and module automation Prevention : Let modules handle meta tags automatically
Error : Wrong canonical URL in meta tags Why It Happens : Incorrect site.url or missing trailing slash config Prevention : Configure site.url and trailingSlash correctly
Error : Sitemap index XML malformed Why It Happens : Too many URLs in single sitemap Prevention : Use chunksSize option to split large sitemaps
Error : Staging site indexed by Google Why It Happens : No robots.txt blocking Prevention : Configure robots to block staging: disallow: process.env.NUXT_PUBLIC_ENV === 'staging' ? ['/'] : []
Error : No preview image when sharing on social media Why It Happens : OG image not defined or not accessible Prevention : Use defineOgImage() on all important pages
export default defineNuxtConfig({
modules: ['@nuxtjs/seo'],
site: {
url: process.env.NUXT_PUBLIC_SITE_URL,
name: 'My Site',
defaultLocale: 'en'
},
robots: {
disallow: process.env.NUXT_PUBLIC_ENV === 'staging' ? ['/'] : []
},
sitemap: {
sitemaps: {
blog: { sources: ['/api/__sitemap__/blog'] }
}
}
})
For complete configuration examples:
Load references/advanced-configuration.md when you need:
init-nuxt-seo.sh - Quick setup script for new projects
./scripts/init-nuxt-seo.sh
Automatically:
Load the appropriate reference file based on the user's specific needs:
Loadreferences/seo-guides.md when:
Loadreferences/pro-modules.md when:
Loadreferences/advanced-seo-guides.md when:
Loadreferences/modules-overview.md when:
Loadreferences/installation-guide.md when:
Loadreferences/api-reference.md when:
Loadreferences/common-patterns.md when:
Loadreferences/module-details.md when:
Loadreferences/best-practices.md when:
Loadreferences/troubleshooting.md when:
Loadreferences/advanced-configuration.md when:
Loadreferences/og-image-guide.md when:
Loadreferences/nuxt-content-integration.md when:
Loadreferences/sitemap-advanced.md when:
Loadreferences/nitro-api-reference.md when:
Loadreferences/ai-seo-tools.md when:
Available references:
references/seo-guides.md - Comprehensive SEO implementation guides (rendering, JSON-LD, canonical URLs, IndexNow, Twitter Cards, Open Graph, meta robots, URL structure)references/pro-modules.md - Pro modules (AI Ready, Skew Protection, SEO Pro MCP)references/advanced-seo-guides.md - Advanced SEO topics (I18n multilanguage, route rules, enhanced titles, link checker rules, SPA prerendering, hydration, crawler protection, 404 pages)references/og-image-guide.md - OG image generation (Satori/Chromium, fonts, emojis, caching, custom templates)references/nuxt-content-integration.md - Nuxt Content v2/v3 integration (asSeoCollection, module order, auto-SEO)references/sitemap-advanced.md - Advanced sitemap patterns (dynamic URLs, multi-sitemaps, chunking, i18n, performance)references/nitro-api-reference.md - Server-side SEO hooks and composables (Nitro plugins, sitemap hooks, robots composables)assets/package-versions.json - Current module versions for verificationAutonomous agents for complex SEO tasks:
| Agent | Purpose |
|---|---|
seo-auditor.md | Comprehensive SEO audit of Nuxt projects |
schema-generator.md | Generate Schema.org structured data |
og-image-generator.md | Create custom OG image Vue templates |
link-checker.md | Analyze internal/external links |
sitemap-builder.md | Design optimal sitemap strategies |
Slash commands for quick SEO tasks:
| Command | Purpose |
|---|---|
/seo-audit | Run comprehensive SEO audit |
/seo-setup | Quick Nuxt SEO project setup |
/og-preview | Preview OG image generation |
/check-links | Run link checker analysis |
/validate-sitemap | Validate sitemap configuration |
/check-schema | Validate Schema.org implementation |
SEO validation hooks that run automatically:
| Hook | Event | Purpose |
|---|---|---|
| SEO Config Validator | PreToolUse | Validates SEO configuration in file edits |
| Post-Write Checker | PostToolUse | Checks SEO config after file writes |
| Completion Validator | Stop | Ensures SEO validation before task completion |
| Project Detector | SessionStart | Detects Nuxt SEO modules on session start |
1. Always Set Site Config
site: {
url: process.env.NUXT_PUBLIC_SITE_URL,
name: 'Your Site Name'
}
2. Block Staging from Search Engines
robots: {
disallow: process.env.NUXT_PUBLIC_ENV === 'staging' ? ['/'] : []
}
3. Add Schema.org to All Pages Every page should have appropriate structured data (Organization, BlogPosting, Product, etc.).
For complete best practices guide:
Load references/best-practices.md when you need:
1. Sitemap Not Generating
nuxt-sitemap is installedsite.url in config/sitemap.xml2. OG Images Not Rendering
nuxt-og-image is installed3. Build Errors
.nuxt and node_modules/.cacherm -rf node_modules && bun installFor complete troubleshooting guide:
Load references/troubleshooting.md when you need:
{
"dependencies": {
"@nuxtjs/seo": "^3.3.0",
"nuxt-robots": "^5.6.7",
"nuxt-sitemap": "^7.5.0",
"nuxt-og-image": "^5.1.13",
"nuxt-schema-org": "^5.0.10",
"nuxt-link-checker": "^4.3.9",
"nuxt-seo-utils": "^7.0.19",
"nuxt-site-config": "^3.2.14"
}
}
Use this checklist to verify setup:
site.url in nuxt.config.tssite.name and site.descriptiondefaultLocale if using i18n/robots.txt endpoint/sitemap.xml endpointProduction Ready : All patterns based on official documentation from https://nuxtseo.com/llms.txt | Last verified: 2025-12-28
v2.2.0 (2025-12-28)
references/og-image-guide.md - Complete OG image guide (Satori/Chromium, fonts, emojis, caching)references/nuxt-content-integration.md - Nuxt Content v2/v3 integration patternsreferences/sitemap-advanced.md - Advanced sitemap patterns (dynamic URLs, multi-sitemaps, chunking)references/nitro-api-reference.md - Server-side SEO hooks and composablesreferences/ai-seo-tools.md - Nuxt AI Ready, llms.txt, MCP server, content signalsagents/og-image-generator.md - Creates custom OG image Vue templatesagents/link-checker.md - Analyzes internal/external linksv2.1.0 (2025-12-28)
references/advanced-seo-guides.md with 9 advanced topics:
v2.0.0 (2025-12-28)
references/seo-guides.md - Complete SEO implementation guides:
references/pro-modules.md - Pro module documentation:
agents/seo-auditor.md - Autonomous SEO audit agentagents/schema-generator.md - Schema.org code generatorcommands/seo-audit.md - SEO audit slash commandcommands/seo-setup.md - Quick SEO setup commandv1.1.0 (2025-11-27)
v1.0.0 (2025-11-10)
Weekly Installs
80
Repository
GitHub Stars
93
First Seen
Jan 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
gemini-cli66
claude-code66
codex66
opencode64
github-copilot63
kimi-cli61
Schema标记专家指南:结构化数据实现与SEO优化,提升富媒体搜索结果
32,700 周安装
references/ai-seo-tools.md - AI SEO tools (llms.txt, Nuxt AI Ready, MCP, content signals)references/modules-overview.md - Detailed overview of all 8 core modulesreferences/installation-guide.md - Step-by-step installation patternsreferences/api-reference.md - Complete API documentation for all composablesreferences/common-patterns.md - Real-world usage patterns and examplesreferences/module-details.md - Detailed module configurationsreferences/best-practices.md - Production SEO best practicesreferences/troubleshooting.md - Error resolution guidesreferences/advanced-configuration.md - Advanced configuration patternsagents/sitemap-builder.md - Designs optimal sitemap strategies/og-preview - Preview OG image generation/check-links - Run link checker analysis/validate-sitemap - Validate sitemap configuration/check-schema - Validate Schema.org implementation