Skip to content

/graphify is not an OpenCode command #2709

Description

@G-Guillard

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

  1. Install the graphify skill in the global OpenCode skills directory
  2. Restart OpenCode, type / in the prompt box
  3. /graphify does 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

  1. Ship a command file (.opencode/command/graphify.md in the package) whose template loads the skill and forwards $ARGUMENTS.
  2. Fix _install_opencode_plugin (install.py:1347-1372): drop the plugin-array registration entirely. Also update _uninstall_opencode_plugin to match.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions