[PR #11390] feat: make skills invokable as slash commands in the TUI #13770

Closed
opened 2026-02-16 18:18:36 -05:00 by yindo · 0 comments
Owner

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

State: closed
Merged: Yes


Summary

This PR makes skills invokable as slash commands in the TUI, similar to how custom commands work.

Changes

  • Added Skill.content() method to load skill template content from SKILL.md files
  • Modified Command.list() to include skills as invokable commands
  • Added skill boolean property to Command.Info schema
  • Updated autocomplete to show skills with "(Skill)" label in slash commands
  • Regenerated SDK to include skill property in Command type

How it works

Users can now invoke any skill defined in SKILL.md files by typing /skillname in the TUI. The skill's body content (markdown after the frontmatter) is used as the command template, and arguments are substituted just like with regular commands.

Skills appear in the slash command autocomplete alongside regular commands, marked with "(Skill)" label for clarity.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11390 **State:** closed **Merged:** Yes --- ## Summary This PR makes skills invokable as slash commands in the TUI, similar to how custom commands work. ## Changes - Added `Skill.content()` method to load skill template content from SKILL.md files - Modified `Command.list()` to include skills as invokable commands - Added `skill` boolean property to `Command.Info` schema - Updated autocomplete to show skills with "(Skill)" label in slash commands - Regenerated SDK to include skill property in Command type ## How it works Users can now invoke any skill defined in SKILL.md files by typing `/skillname` in the TUI. The skill's body content (markdown after the frontmatter) is used as the command template, and arguments are substituted just like with regular commands. Skills appear in the slash command autocomplete alongside regular commands, marked with "(Skill)" label for clarity.
yindo added the pull-request label 2026-02-16 18:18:36 -05:00
yindo closed this issue 2026-02-16 18:18:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13770