[PR #9669] feat: expose skills as slash commands #13182

Open
opened 2026-02-16 18:18:03 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9669

State: open
Merged: No


Summary

  • Add skill loading to Command.list() so skills appear as /skill-name commands
  • Skill commands invoke the skill tool to show 'Loaded skill: X' in UI
  • Add (Skill) suffix in autocomplete dropdown to distinguish from MCP commands
  • Fix skill tool error message to show actual skill names instead of array indices
  • Regenerate SDK types with skill?: boolean field

What does this PR do?
Allows users to invoke skills directly via slash commands (e.g., /my-skill) instead of manually calling the skill tool. When a skill command is invoked, it automatically loads the skill and follows its instructions.
Before: Users had to know about the skill tool and call it manually
After: Skills appear in autocomplete with (Skill) suffix and can be invoked like any other command

How did you verify your code works?

  • Created test skills in .opencode/skill/ directory
  • Verified skills appear in TUI autocomplete with (Skill) suffix
  • Confirmed /skill-name invocation triggers the skill tool and shows "Loaded skill: X" in UI
  • Tested with arguments: /skill-name some arguments passes arguments correctly
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9669 **State:** open **Merged:** No --- Summary - Add skill loading to Command.list() so skills appear as /skill-name commands - Skill commands invoke the skill tool to show 'Loaded skill: X' in UI - Add (Skill) suffix in autocomplete dropdown to distinguish from MCP commands - Fix skill tool error message to show actual skill names instead of array indices - Regenerate SDK types with skill?: boolean field What does this PR do? Allows users to invoke skills directly via slash commands (e.g., `/my-skill`) instead of manually calling the skill tool. When a skill command is invoked, it automatically loads the skill and follows its instructions. **Before:** Users had to know about the skill tool and call it manually **After:** Skills appear in autocomplete with `(Skill)` suffix and can be invoked like any other command How did you verify your code works? - Created test skills in `.opencode/skill/` directory - Verified skills appear in TUI autocomplete with `(Skill)` suffix - Confirmed `/skill-name` invocation triggers the skill tool and shows "Loaded skill: X" in UI - Tested with arguments: `/skill-name some arguments` passes arguments correctly
yindo added the pull-request label 2026-02-16 18:18:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13182