Nuxt SEO - Configuration and optimization

VerifiedSafe

Helps configure SEO for Nuxt apps: site metadata, robots.txt, sitemap.xml, dynamic Open Graph images, and JSON-LD structured data. Use when setting up crawlability, social sharing, or rich search results. Works seamlessly with Nuxt Content for automatic SEO from frontmatter.

Sby Skills Guide Bot
DevelopmentIntermediate
6/2/2026
Claude CodeCursorWindsurfCopilotCodex
#nuxt-seo#seo#sitemap#og-image#schema-org

Recommended for

Automated summary

This Nuxt SEO module enables configuring search engine optimization, generating sitemaps, dynamic OG images, and JSON-LD structured data.

Strengths

  • Centralized SEO configuration through a single module
  • Automatic generation of robots.txt and sitemap.xml
  • Dynamic OG image creation without external tools
  • Native support for schema.org structured data

Limitations

  • Requires Nuxt 3 and may not be compatible with other frameworks
  • Dynamic OG images can be performance-heavy without caching
  • Documentation can be scattered despite a dedicated site
When to use it

Ideal for any Nuxt project needing advanced SEO optimization, sitemaps, OG images, or structured data.

When not to use it

Opt for a manual approach if you only need basic SEO features or if your project is based on a framework other than Nuxt.

Security analysis

Safe
Quality score85/100

The skill only suggests using a well-known npm package via npx, which is a standard development operation with no destructive or exfiltration behavior.

No concerns found

How this analysis is made

Examples

Add sitemap and robots.txt
Add the Nuxt SEO module to my Nuxt 3 project and configure sitemap.xml with dynamic routes from my content collection, and set robots.txt to allow all crawlers.
Configure OG images for blog posts
Set up dynamic OG image generation for my Nuxt blog posts using the nuxt-og-image module, with a template that includes the post title and site name.
Add JSON-LD structured data
Integrate schema.org structured data into my Nuxt app using the nuxt-schema-org module, including breadcrumbs, Article schema for blog posts, and WebSite schema for the homepage.

name: nuxt-seo description: Nuxt SEO meta-module with robots, sitemap, og-image, schema-org. Use when configuring SEO, generating sitemaps, creating OG images, or adding structured data. license: MIT

Nuxt SEO

npx nuxi module add @nuxtjs/seo

When to Use

Working with:

  • SEO configuration (site URL, name, indexability)
  • Robots.txt and sitemap.xml generation
  • Dynamic OG image generation
  • JSON-LD structured data (schema.org)
  • Breadcrumbs and canonical URLs

Loading Files

Consider loading these reference files based on your task:

DO NOT load all files at once. Load only what's relevant to your current task.

Site Config

Foundation for all SEO modules. Configure site in nuxt.config.ts, access via useSiteConfig(). See references/site-config.md for full options.

Module Overview

| Module | Purpose | Key API | | ----------------- | --------------- | ----------------------------- | | nuxt-site-config | Shared config | useSiteConfig() | | @nuxtjs/robots | robots.txt | useRobotsRule() | | @nuxtjs/sitemap | sitemap.xml | defineSitemapEventHandler() | | nuxt-og-image | OG images | defineOgImage() | | nuxt-schema-org | JSON-LD | useSchemaOrg() | | nuxt-seo-utils | Meta utilities | useBreadcrumbItems() | | nuxt-link-checker | Link validation | Build-time checks |

Nuxt Content v3

Use asSeoCollection() for automatic sitemap, og-image, and schema-org from frontmatter:

// content.config.ts
import { defineCollection, defineContentConfig } from '@nuxt/content'
import { asSeoCollection } from '@nuxtjs/seo/content'

export default defineContentConfig({
  collections: {
    posts: defineCollection(asSeoCollection({ type: 'page', source: 'posts/**' }))
  }
})

Important: Load @nuxtjs/seo before @nuxt/content in modules array:

export default defineNuxtConfig({
  modules: ['@nuxtjs/seo', '@nuxt/content']
})

Frontmatter fields: ogImage, sitemap, robots, schemaOrg.

Related Skills

Links

Token Efficiency

Main skill: ~250 tokens. Each sub-file: ~400-600 tokens. Only load files relevant to current task.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/nuxt-seo-configuration-and-optimization-mm5t89zd/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/nuxt-seo-configuration-and-optimization-mm5t89zd' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/nuxt-seo-configuration-and-optimization-mm5t89zd/download' --output '.skill-downloads/nuxt-seo-configuration-and-optimization-mm5t89zd/SKILL.md.part' && mv '.skill-downloads/nuxt-seo-configuration-and-optimization-mm5t89zd/SKILL.md.part' '.skill-downloads/nuxt-seo-configuration-and-optimization-mm5t89zd/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/nuxt-seo-configuration-and-optimization-mm5t89zd/SKILL.md' && test -s '.skill-downloads/nuxt-seo-configuration-and-optimization-mm5t89zd/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/nuxt-seo' && cp -R '.skill-downloads/nuxt-seo-configuration-and-optimization-mm5t89zd' '.claude/skills/nuxt-seo'

Cursor
test -f '.skill-downloads/nuxt-seo-configuration-and-optimization-mm5t89zd/SKILL.md' && test -s '.skill-downloads/nuxt-seo-configuration-and-optimization-mm5t89zd/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/nuxt-seo' && cp -R '.skill-downloads/nuxt-seo-configuration-and-optimization-mm5t89zd' '.cursor/skills/nuxt-seo'

Codex
test -f '.skill-downloads/nuxt-seo-configuration-and-optimization-mm5t89zd/SKILL.md' && test -s '.skill-downloads/nuxt-seo-configuration-and-optimization-mm5t89zd/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/nuxt-seo' && cp -R '.skill-downloads/nuxt-seo-configuration-and-optimization-mm5t89zd' '.agents/skills/nuxt-seo'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/nuxt-seo-configuration-and-optimization-mm5t89zd'

openskills read 'nuxt-seo-configuration-and-optimization-mm5t89zd'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/nuxt-seo-configuration-and-optimization-mm5t89zd/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills