OpenCode TUI plugin that adds a Skills section to the right sidebar and shows which skills have been loaded in the current session.
This plugin is a TUI plugin, so it must be configured in ~/.config/opencode/tui.json, not in opencode.json.
From this directory:
bun install
bun run buildThat produces:
dist/tui.jsdist/tui.d.ts
Add the built file to ~/.config/opencode/tui.json:
{
"$schema": "https://opencode.ai/tui.json",
"theme": "system",
"plugin": [
"/Users/CTW03903/.config/opencode/plugins/opencode-skills-sidebar/dist/tui.js"
]
}Restart opencode so the TUI plugin is reloaded.
- Adds a
Skillssection to the right sidebar - Shows all skills visible to OpenCode for the current directory/session
- Marks each skill as
LoadedorUnloaded - Supports collapsing the section from the sidebar header
- Persists collapsed state across restarts
The plugin uses the OpenCode TUI plugin API and registers content in the sidebar_content slot.
Main points:
- Skill discovery comes from OpenCode itself via
client.app.skills() - Loaded state is tracked from
message.part.updatedevents for the built-inskilltool - Sidebar placement is controlled by slot
order - Current order is
250, which places it between built-inMCP(200) andLSP(300)
Build:
bun run buildType-check only:
bun run typecheck