opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Skill tool shows empty available_skills list

Open dcodesdev opened this issue 1 week ago • 1 comments

Description

The skill tool's description shows an empty <available_skills></available_skills> tag, indicating 0 skills are available to the agent even when skills may be present in the workspace.

Expected Behavior

The <available_skills> section should list all available skills that the agent can load, similar to how other tools list their capabilities.

Actual Behavior

When checking the skill tool description, it shows:

<available_skills> </available_skills>

This means the agent sees 0 skills available, even though:

  1. The skill system exists and has a skill function
  2. Skills may be configured in .claude/skills/ or .opencode/skills/
  3. The agent is told it can "Load a skill to get detailed instructions for a specific task"

Impact

  • Agents cannot discover what skills are available
  • Users have to manually know skill names to reference them
  • The skill discovery mechanism appears broken

Steps to Reproduce

  1. Ask the agent "how many skills are available to you"
  2. Agent will report 0 skills due to empty <available_skills> tag
  3. This occurs even if skills are present in the workspace

Environment

  • OpenCode version: 1.0.203
  • Platform: Linux

Related Issues

  • #6266 - Questions about .claude/skills support
  • #6949 - Skills loading being slow/unrecognizable
  • #6900 - Skill can't find scripts path

This appears to be a separate issue from skills not loading - this is about the skill list not being populated in the tool description that gets sent to the agent.

dcodesdev avatar Jan 06 '26 09:01 dcodesdev