feat: add support for reading skills from .agents/skills directories#11842
Merged
feat: add support for reading skills from .agents/skills directories#11842
Conversation
3b2988a to
b14e7f5
Compare
b14e7f5 to
e687553
Compare
|
Will this be applicable for both project and global skills? |
a3157fd to
c3e711d
Compare
2206186 to
1d8a993
Compare
Contributor
Correct, the recommendation is to use |
5b6cf03 to
5a8ee88
Compare
mvclaudianobj
pushed a commit
to mvclaudianobj/markscode
that referenced
this pull request
Feb 4, 2026
…nomalyco#11842) Co-authored-by: Filip <34747899+neriousy@users.noreply.github.com>
ishaksebsib
pushed a commit
to ishaksebsib/opencode
that referenced
this pull request
Feb 4, 2026
…nomalyco#11842) Co-authored-by: Filip <34747899+neriousy@users.noreply.github.com>
ishaksebsib
pushed a commit
to ishaksebsib/opencode
that referenced
this pull request
Feb 4, 2026
…nomalyco#11842) Co-authored-by: Filip <34747899+neriousy@users.noreply.github.com>
dmae97
pushed a commit
to dmae97/opencode
that referenced
this pull request
Feb 5, 2026
…nomalyco#11842) Co-authored-by: Filip <34747899+neriousy@users.noreply.github.com>
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
This PR adds support for reading skills from
.agents/skills/directories, similar to how.claude/skills/is already supported.Changes
.agents/skills/directories (searches up the directory tree from the current working directory)~/.agents/skills/directoryCLAUDE_SKILL_GLOBpattern (skills/**/SKILL.md) to find skill files.claude/skillsimplementationUse Case
Users who organize their AI assistant configurations in
.agents/directories (instead of or in addition to.claude/) can now have their skills automatically loaded by opencode.Testing
The implementation follows the same patterns as the existing
.claude/skillsscanning:Filesystem.up()to find.agentsdirectories in parent folders~/.agentsdirectoryaddSkill()function to parse and register skills