feat: /skills slash command — pick a skill to insert into the prompt #299

Closed
opened 2026-07-12 01:32:42 +02:00 by dries · 0 comments
Owner

Part of OpenCode command parity (transparent-layer goal). OpenCode's TUI has /skills (title "Skills", DialogSkill) which lists available skills; selecting one inserts /<skillname> into the prompt input.

Scope

  • Add skills to BUILTIN_COMMANDS (frontend/src/lib/commands/builtinCommands.ts).
  • Fetch the available skills for the session and show a picker (same style as the /agent and /model pickers).
  • On select, insert /<skillname> into the composer input (Composer.tsx) — it does not send, just prefills, matching OpenCode.
  • Source of truth for the skill list: the live OpenCode instance. Check whether /api/slash-commands already surfaces skills, or if a dedicated fetch is needed.

Notes

Skills in OpenCode are themselves invoked as slash commands (e.g. /pr-review). So /skills is a discovery/insert helper, not a separate execution path. Confirm the skill catalog is reachable via the platform HTTP API before building the picker.

Part of OpenCode command parity (transparent-layer goal). OpenCode's TUI has `/skills` (title "Skills", DialogSkill) which lists available skills; selecting one inserts `/<skillname> ` into the prompt input. ## Scope - Add `skills` to `BUILTIN_COMMANDS` (frontend/src/lib/commands/builtinCommands.ts). - Fetch the available skills for the session and show a picker (same style as the /agent and /model pickers). - On select, insert `/<skillname> ` into the composer input (Composer.tsx) — it does not send, just prefills, matching OpenCode. - Source of truth for the skill list: the live OpenCode instance. Check whether /api/slash-commands already surfaces skills, or if a dedicated fetch is needed. ## Notes Skills in OpenCode are themselves invoked as slash commands (e.g. /pr-review). So /skills is a discovery/insert helper, not a separate execution path. Confirm the skill catalog is reachable via the platform HTTP API before building the picker.
dries closed this issue 2026-07-12 10:10:43 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dries/ocman#299
No description provided.