-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add nuxt-seo plugin and multi-skill support for add-skill command #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a3bd9a3
feat(commands): support multiple skills in add-skill command
amondnet fb2ba03
feat(marketplace): add nuxt-seo plugin
amondnet ee0e499
feat(commands): add documentation update step to add-skill command
amondnet b7af2c0
feat(commands): remove author and repository fields from add-skill pl…
amondnet c3b0df7
chore: apply AI code review suggestions
amondnet 7645241
chore: fix contradictory instructions in add-skill command
amondnet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| --- | ||
| 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 | ||
amondnet marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - [ ] [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 | ||
amondnet marked this conversation as resolved.
Show resolved
Hide resolved
amondnet marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| ## 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. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.