nuxt-seo · onmax — Claude Code skill: what it does, how to install
Guides an agent through Nuxt SEO setup for crawl rules and structured data. It also covers sitemaps and OG images.
npx skills add onmax/nuxt-skills --skill nuxt-seo -a claude-codeWhat nuxt-seo does
This skill guides an agent through @nuxtjs/seo setup, including site configuration in nuxt.config.ts, robots.txt rules, and sitemap.xml generation. It covers dynamic OG images, JSON-LD, breadcrumbs, canonical URLs, and link checks.
It points the agent to a task-specific reference file instead of loading every guide at once. The documented APIs include useSiteConfig(), useRobotsRule(), defineSitemapEventHandler(), defineOgImage(), useSchemaOrg(), and useBreadcrumbItems().
With Nuxt Content v3, asSeoCollection() can create SEO output from frontmatter. @nuxtjs/seo must appear before @nuxt/content in the modules array, so module order is worth checking.
What it helps with
- configure a site URL and name for SEO
- generate
robots.txtandsitemap.xml - create a dynamic OG image
- add JSON-LD and canonical URLs
- use frontmatter SEO fields with Nuxt Content v3
Example prompts for the agent
- Set up
@nuxtjs/seoand thesiteconfig innuxt.config.ts. - Add
robots.txtrules and asitemap.xmlto this Nuxt project. - Use
asSeoCollection()for thepostscollection in Nuxt Content v3.
How to install nuxt-seo
1Skills CLI (Vercel)
npx skills add onmax/nuxt-skills --skill nuxt-seo -a claude-code2Manually: put the files in place
~/.claude/skills/nuxt-seo/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/nuxt-seo/
1Skills CLI (Vercel)
npx skills add onmax/nuxt-skills --skill nuxt-seo -a codex2Manually: put the files in place
.agents/skills/nuxt-seo/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add onmax/nuxt-skills --skill nuxt-seo -a cursor2Manually: put the files in place
.cursor/skills/nuxt-seo/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install onmax/nuxt-skills nuxt-seo2Manually: put the files in place
.github/skills/nuxt-seo/SKILL.md1Skills CLI (Vercel)
npx skills add onmax/nuxt-skills --skill nuxt-seo -a gemini-cli2Platform CLI
gemini skills install https://github.com/onmax/nuxt-skills --path skills/nuxt-seoManually: put the files in place
.devin/skills/nuxt-seo/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add onmax/nuxt-skills --skill nuxt-seo -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about nuxt-seo
How do I install nuxt-seo in Claude Code?
Run npx skills add onmax/nuxt-skills --skill nuxt-seo -a claude-code, then run npx skills add onmax/nuxt-skills --skill nuxt-seo -a claude-code again. The skill file is at ~/.claude/skills/nuxt-seo/SKILL.md.
What does nuxt-seo do?
It guides an agent through Nuxt SEO work, from site configuration and crawl rules to sitemaps, OG images, and JSON-LD. It selects reference material based on the task.
How does nuxt-seo work with Nuxt Content v3?
Place @nuxtjs/seo before @nuxt/content in modules. Use asSeoCollection() to derive SEO output from frontmatter fields such as ogImage, sitemap, robots, and schemaOrg.
Source text
SKILL.md · MIT
---
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
```bash
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:**
- [ ] [references/site-config.md](references/site-config.md) - if configuring site URL, name, or SEO foundation
- [ ] [references/crawlability.md](references/crawlability.md) - if setting up robots.txt or sitemap.xml
- [ ] [references/og-image.md](references/og-image.md) - if generating dynamic OG images
- [ ] [references/schema-org.md](references/schema-org.md) - if adding JSON-LD structured data
- [ ] [references/utilities.md](references/utilities.md) - if working with breadcrumbs, canonical URLs, or link checking
**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](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:
```ts
// 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:
```ts
export default defineNuxtConfig({
modules: ['@nuxtjs/seo', '@nuxt/content']
})
```
Frontmatter fields: `ogImage`, `sitemap`, `robots`, `schemaOrg`.
## Related Skills
- [nuxt-content](../nuxt-content/SKILL.md) - For MDC rendering with SEO frontmatter
## Links
- [Documentation](https://nuxtseo.com)
- [GitHub](https://github.com/harlan-zw/nuxt-seo)
## Token Efficiency
Main skill: ~250 tokens. Each sub-file: ~400-600 tokens. Only load files relevant to current task.
© onmax · MIT · onmax/nuxt-skills
Similar skills
Everything for SEO and GEO →nuxt-seo by other authors comes first.