feat(marketplace): add nuxt-i18n plugin to marketplace#117
Merged
Conversation
Generate agent skills from @nuxtjs/i18n official documentation (https://i18n.nuxtjs.org/llms-full.txt) covering routing strategies, lazy-loaded translations, SEO, browser detection, and multi-domain setups.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces the nuxt-i18n plugin, adding it to the marketplace and release configurations while providing extensive documentation and skills for internationalization features like routing, SEO, and lazy loading. Feedback was provided to update the author field in the plugin configuration to credit the upstream organization using the correct object structure.
There was a problem hiding this comment.
2 issues found across 26 files
Confidence score: 4/5
- This PR looks safe to merge with minimal risk: both findings are low-severity documentation inconsistencies (4/10) rather than runtime or behavioral defects.
- Most severe issue is in
skills/nuxt-i18n/references/core-configuration.md, wherecustomRoutesexcludes'page'in the type while declaring it as default, which can mislead readers and create configuration confusion. skills/nuxt-i18n/references/core-routing.mdhas mismatched guidance versus example (localePath()recommendation vs<NuxtLinkLocale>snippet), which may cause onboarding friction for plugin users.- Pay close attention to
skills/nuxt-i18n/references/core-configuration.mdandskills/nuxt-i18n/references/core-routing.md- resolve the doc/API consistency gaps to avoid user confusion.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="skills/nuxt-i18n/references/core-configuration.md">
<violation number="1" location="skills/nuxt-i18n/references/core-configuration.md:59">
P2: The `customRoutes` option type excludes `'page'` while the same row declares `'page'` as default. Include `'page'` in the union type so the option definition is self-consistent.</violation>
</file>
<file name="skills/nuxt-i18n/references/core-routing.md">
<violation number="1" location="skills/nuxt-i18n/references/core-routing.md:74">
P2: This guidance is inconsistent with its own example (`localePath()` is recommended, but the snippet uses `<NuxtLinkLocale>`). Align the instruction with the demonstrated API to avoid confusing plugin users.</violation>
</file>
Architecture diagram
sequenceDiagram
participant User
participant Agent as Claude / AI Agent
participant Market as Marketplace Registry
participant Plugin as nuxt-i18n Plugin
participant App as Nuxt Application
Note over User,App: Plugin Discovery & Installation
User->>Agent: "Install nuxt-i18n plugin"
Agent->>Market: NEW: Lookup "nuxt-i18n" in marketplace.json
Market-->>Agent: Return plugin metadata & source path
Agent->>Plugin: Load .claude-plugin/plugin.json
Plugin-->>Agent: Return version (1.0.0) and skill definitions
Note over User,App: Contextual Assistance Flow (Runtime)
User->>Agent: "How do I configure SEO for my French locale?"
Agent->>Plugin: NEW: Access .agents/skills/nuxt-i18n/SKILL.md
Plugin->>Plugin: Resolve reference to features-seo.md
Plugin-->>Agent: Return compressed SEO documentation
Agent->>Agent: Process i18n routing strategy & baseUrl
Agent->>App: NEW: Suggest nuxt.config.ts i18n block
Agent->>App: NEW: Inject useLocaleHead() logic into layout
Note over App,App: App Runtime Behavior (Result)
App->>App: Apply "prefix_except_default" strategy
App->>App: Generate hreflang tags for SEO
App->>App: Lazy-load translation files from /i18n/locales/
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
- Remove orphaned skills/nuxt-i18n/ directory (canonical location is plugins/nuxt-i18n/.agents/skills/) - Fix customRoutes type to include 'page' as valid value - Clarify useLocaleHead() returns Ref in SEO examples
- Change author to Nuxt Community for proper upstream attribution - Clarify named routes guidance to include NuxtLinkLocale
Contributor
Author
Applied Review Suggestions (8245b7a)
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Changes
Plugin
plugins/nuxt-i18n/with.claude-plugin/plugin.jsonDocumentation Compression
Configuration Updates
.claude-plugin/marketplace.json— added nuxt-i18n plugin entryrelease-please-config.json— added nuxt-i18n to release trackingTest Plan
/plugin install nuxt-i18n@pleaseaiclaude plugin validateSummary by cubic
Added
nuxt-i18nas a marketplace plugin with generated skills from@nuxtjs/i18ndocs to support locale routing, lazy-loaded translations, SEO, browser detection, and multi-domain setups. Updated marketplace and release tracking to ship the new plugin.New Features
plugins/nuxt-i18n/with.claude-plugin/plugin.jsonand entry in.claude-plugin/marketplace.json.https://i18n.nuxtjs.org/llms-full.txt, compressed into 9 focused reference files.plugins/nuxt-i18n: "1.0.0"to.release-please-manifest.jsonand release rules inrelease-please-config.json(tracks version via.claude-plugin/plugin.json).Bug Fixes
'page'tocustomRoutestype, clarifieduseLocaleHead()returns a Ref, linkedllms-full.txt, and noted using<NuxtLinkLocale>for named routes.Written for commit 8245b7a. Summary will update on new commits.