Repository navigation
Description
Summary
The documented /graphify invocation is not available as a slash command in the OpenCode TUI : OpenCode skills are not slash commands, only command/*.md files or config.command are.
Environment
- OpenCode 1.18.18 (TUI)
- graphify skill installed at
~/.config/opencode/skills/graphify/SKILL.md - graphify CLI 0.9.41 (
uv tool install graphifyy) - OS: Linux
Steps to reproduce
- Install the graphify skill in the global OpenCode skills directory
- Restart OpenCode, type
/in the prompt box /graphifydoes not appear in the command menu ("No matching items")
Expected
/graphify shows up as a slash command, as stated in the SKILL.md usage docs and as it does in Claude Code.
Actual
The skill loads correctly (it appears in the agent's <available_skills>), but OpenCode agent skills are not slash commands, they are loaded on-demand by the agent via the skill tool based on description matching. Only commands (command/*.md files or config.command) appear in the `/ menu. Users following the docs expect a direct slash command and conclude the installation is broken.
Root cause
The opencode platform install only copies the skill (to ~/.config/opencode/skills/graphify/) and the reminder plugin. It lacks the OpenCode command registration.
Additional finding
_install_opencode_plugin writes .opencode/plugins/graphify.js and registers the relative path ".opencode/plugins/graphify.js" in the plugin array of .opencode/opencode.json (install.py:1347-1372). That registration is both unnecessary (OpenCode auto-loads local plugins from the plugins/ directory) and dangling for global scope (the global config is ~/.config/opencode/opencode.json, so the relative path never resolves). It leaves a dead entry in the user's config.
Suggested fix
- Ship a command file (
.opencode/command/graphify.mdin the package) whose template loads the skill and forwards $ARGUMENTS. - Fix
_install_opencode_plugin(install.py:1347-1372): drop the plugin-array registration entirely. Also update_uninstall_opencode_pluginto match.
Activity
Add native /graphify slash command for OpenCode
Add native /graphify slash command for OpenCode