feat(skill): change skill path to skills/#6065
Open
pascalandy wants to merge 1 commit intoanomalyco:devfrom
Open
feat(skill): change skill path to skills/#6065pascalandy wants to merge 1 commit intoanomalyco:devfrom
pascalandy wants to merge 1 commit intoanomalyco:devfrom
Conversation
Collaborator
|
opencode uses singular for everything else so while we may pick up skills in addition to skill we don't want to disallow We can load the claude skills but we need to fix the validation to be less strict |
Collaborator
|
for now let's not read "skills/", we will pick it up if we allow pluralization of all the other dirs too |
Author
Contributor
FYI @pascalandy I've since learned that you can see which skills are loaded with And hopefully you won't need to use that either if we can get something like #6154 merged 🤞 |
3 tasks
|
This change looks to be already implemented https://opencode.ai/docs/skills/#place-files |
00637c0 to
71e0ba2
Compare
f1ae801 to
08fa7f7
Compare
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
.opencode/skill/to.opencode/skills/(plural)..claude/skills/in both project and home directories.skills/directory.Context
In version 1.0.192, skills located in
.opencode/skill/(as previously documented) were failing to load for users with large skill libraries (~25 skills).Solution: Renaming the parent directory to
skills/resolved the issue.While the Agent Skills spec defines the
SKILL.mdfile, it does not strictly define the parent directory name. This PR standardizes onskills/to align with Claude-compatible conventions and ensures OpenCode looks in both.opencode/and.claude/locations. This fixes the documentation mismatch and the loading issue.tree
per example, this works as expected as tested in the current version of oc (1.0.192)
.opencode ├── agent ├── command └── skills ├── changelog │ ├── references │ │ └── changelog_sop.md │ └── SKILL.md ├── cli-gh │ ├── references │ │ └── help.md │ └── SKILL.md └── cli-chezmoi ├── references │ └── cli_reference.md ├── scripts │ └── apply_chezmoi.sh ├── assets └── SKILL.mdSession
https://opncd.ai/share/1XhiOijp
Crap, this share seems broken 😥