opencode
opencode copied to clipboard
feat: add /skills command and skill autocomplete
Summary
Adds /skills command and skill autocomplete to improve skill discoverability and invocation.
-
/skillscommand opens a searchable dialog listing all available skills grouped by source (Global/Project) - Skills appear in
/autocomplete as/<skillName>for direct invocation (e.g.,/create-plan) - Selecting a skill invokes it by instructing the LLM to load the skill
Changes
-
New:
dialog-skill-list.tsx- Dialog component for listing skills -
Modified:
app.tsx- Register/skillscommand -
Modified:
autocomplete.tsx- Add skills to slash autocomplete
Testing
- Run
bun devinpackages/opencode - Press
Ctrl+P, type "skills" to see the command - Type
/skillsto open the skills dialog - Type
/to see skills in autocomplete alongside other commands
Closes #7846