feat(skills): make skills directory configurable via module options#1341
Merged
larbish merged 4 commits intonuxt-content:mainfrom Apr 17, 2026
Merged
feat(skills): make skills directory configurable via module options#1341larbish merged 4 commits intonuxt-content:mainfrom
larbish merged 4 commits intonuxt-content:mainfrom
Conversation
added 3 commits
April 16, 2026 13:16
Add ModuleOptions interface with configurable `dir` option that defaults to 'skills'. This allows consumers to specify a custom directory path for skills instead of being hardcoded to the 'skills' folder.
Documents the `skills.dir` configuration option in nuxt.config.ts that allows users to specify a custom directory for skills instead of the default `skills/` folder. Added to both English and French documentation.
Add skills.dir configuration to playground's nuxt.config.ts to test the configurable skills directory feature that was recently implemented in the module options.
|
Someone is attempting to deploy a commit to the NuxtLabs Team on Vercel. A member of the Team first needs to authorize it. |
larbish
approved these changes
Apr 17, 2026
Collaborator
larbish
left a comment
There was a problem hiding this comment.
Thanks for your PR! I'll merge this one but I will provide an update in a following PR to expose both assistant and skills config keys in a docus parent.
So once both PR merged and released, you'll have to move your skills dir config in a docus parent.
I'll update doc ofc.
Collaborator
|
👉 #1346 |
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
diroption to theskillsNuxt module so users can specify acustom skills directory instead of the hardcoded
skills/default'skills'when not setUsage
Changes
layer/modules/skills/index.ts— addedModuleOptionsinterface, typeddefineNuxtModule<ModuleOptions>, addeddefaults: { dir: 'skills' },replaced hardcoded path with
options.dirdocs/content/en/4.ai/3.skills.md— added Configuration sectiondocs/content/fr/4.ai/3.skills.md— added Configuration section (French)Test plan
pnpm playground:devand confirmskills/is still discovered by defaultskills: { dir: 'custom-dir' }toplayground/nuxt.config.ts, createa skill there, and confirm it is served at
/.well-known/skills//.well-known/skills/index.jsonreturns the correct skill