Skip to content

Conversation

@connorads
Copy link
Contributor

@connorads connorads commented Dec 27, 2025

As per docs, intention was to suppport .claude/skills
https://opencode.ai/docs/skills/
Screen Shot 2025-12-27 at 4 21 43 PM

I can see .claude/skills support was removed in 009b096 by @rekram1-node. Seems like this might have been because of another issue #5991 (comment) which I think has since been fixed here by removing the regex 046e351#diff-54184cd5893ffa6ad25945157739a92970d03937b46c73ee9e3c3838de3c52fd
Screen Shot 2025-12-27 at 4 55 46 PM

Fixes #6177

PS. I'm also happy for you to change this implementation to be more like 009b096, where it walks up from cwd to worktree, I didn't know that existed when I started working on this fix.

Testing

Before
No .claude/skills

➜ opencode debug skill
[
  {
    "name": "global-opencode-skill",
    "description": "Global .opencode skill for troubleshooting discovery.",
    "location": "/Users/connorads/.config/opencode/skill/global-opencode-skill/SKILL.md"
  },
  {
    "name": "test-skill",
    "description": "use this when asked to test skill",
    "location": "/Users/connorads/git/opencode/.opencode/skill/test-skill/SKILL.md"
  }
]

After
claude/skills loaded ✅

➜ bun dev debug skill 
$ bun run --cwd packages/opencode --conditions=browser src/index.ts debug skill
[
  {
    "name": "global-opencode-skill",
    "description": "Global .opencode skill for troubleshooting discovery.",
    "location": "/Users/connorads/.config/opencode/skill/global-opencode-skill/SKILL.md"
  },
  {
    "name": "test-skill",
    "description": "use this when asked to test skill",
    "location": "/Users/connorads/git/opencode/.opencode/skill/test-skill/SKILL.md"
  },
  {
    "name": "local-claude-skill",
    "description": "Local test skill for validating skill loading.",
    "location": "/Users/connorads/git/opencode/.claude/skills/local-claude-skill/SKILL.md"
  }
]

@rekram1-node
Copy link
Collaborator

This doesn't quite work actually

@connorads
Copy link
Contributor Author

This doesn't quite work actually

Thanks for the feedback, could you elaborate please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Skill discovery doesn't match Claude Code's skills/ directory structure

2 participants