Skip to content

Skills as Commands

OpenCode discovers skills from your project and home directories and exposes them to the model through its built-in skill tool. It does not, however, surface them in the TUI’s slash-command autocomplete. Systematic closes that gap: every skill OpenCode discovers becomes an invokable /skill-name command, the same way Claude Code and other agents treat skills.

This is on by default. If you already keep skills under .opencode/skills/, .claude/skills/, or .agents/skills/, they show up as commands as soon as the plugin loads — no configuration required.

Systematic mirrors OpenCode’s own discovery contract exactly, so the command you invoke resolves to the same skill OpenCode’s skill tool would load. Skills are discovered from six roots:

ScopeLocations
Global~/.claude/skills/, ~/.agents/skills/, ~/.config/opencode/skills/
Project.opencode/skills/, .claude/skills/, .agents/skills/

Project locations are discovered by walking up from your working directory to the git worktree root, so a skill defined in a subdirectory of a monorepo is found too.

When the same skill name exists in more than one location, the winner follows OpenCode’s precedence: .opencode skills win over .claude/.agents skills, and project skills win over global ones. The command Systematic registers always points at that same winner.

Each discovered skill becomes a config.command entry named after the skill (/git-release, /deploy, and so on). The command includes the full skill text, not a pointer to it:

/git-release v2.4.0

OpenCode processes the command the same way it processes its own commands: it substitutes any arguments you typed into the skill text, and it runs any !`command` snippets the skill contains, before the model ever sees the result. Only install skills you trust — a skill’s command can run shell snippets on your machine as part of being invoked.

A skill with disable-model-invocation: true in its frontmatter is a manual workflow — you invoke it, the model does not load it on its own. There is one honest limitation here: OpenCode has no mechanism for a plugin to hide a skill from the model’s own skill tool. Systematic controls the /command surface, but a command-only skill remains loadable by the model through OpenCode’s skill tool regardless. The disable-model-invocation flag shapes the command; it is not a hard guarantee that the model can never reach the skill.

A skill can set agent, model and subtask in its frontmatter, and context: fork counts as subtask: true. Many skills were written for Claude Code, where agent names a Claude subagent type such as Explore and model is an alias such as sonnet or inherit. OpenCode does not understand those values, and one bad value makes the whole command fail. So Systematic checks each field before it passes it on.

On OpenCode v1:

  • subtask passes through as written. subtask: false stays false.
  • agent passes through only when the skill runs as a subtask and the name is an agent OpenCode has. That means build, plan, general, explore, an agent in your config, one a plugin added before Systematic’s config hook runs, or one of Systematic’s bundled agents. Matching is exact, with the same capitalization. A disabled agent does not count, and an agent that a plugin adds later is dropped with a warning.
  • model passes through only in the form provider/model, such as anthropic/claude-sonnet-5-5. Systematic does not check that the provider exists.

A field that fails its check is left off, and the command still runs. Systematic prints one warning for each skill and field, for example [systematic] skill "review" sets agent "Explore", which is not an OpenCode agent; it is ignored. Write an OpenCode command to route it. The warning is not repeated if the config loads again. To route such a skill, write an OpenCode command for it.

On OpenCode v2, a plugin command cannot choose an agent or a model, so Systematic leaves all three fields off every discovered skill. The skill is never refused. Its command runs on your current session, and Systematic writes one note per skill that says which fields it ignored. Bundled Systematic commands that declare these fields are still refused on v2.

Systematic does not add a trust gate on discovered skills, and this is deliberate. OpenCode already discovers and registers these same skills — including project-local ones from a cloned repository — without a trust prompt, and a command never runs on its own: a human types it. Adding a Systematic-specific gate would restrict less than what OpenCode already exposes while adding friction. Treat skills in a repository you did not write the same way you treat any other code in it.

Set skills_as_commands to false in your systematic.json to disable the feature entirely:

{
"skills_as_commands": false
}

Your own commands are never touched — Systematic only registers a discovered skill as a command when no command of that name already exists, so a command you define yourself always wins. Bundled Systematic skills (the systematic: and ce: commands) are unaffected by this setting.

To suppress a single discovered skill’s command rather than the whole feature, add its name to disabled_commands:

{
"disabled_commands": ["git-release"]
}

A discovered skill registers as a command under its bare name, so disabled_commands is the field that governs it. (The disabled_skills field only accepts bundled Systematic skill names.)

OpenCode registers discovered skills as commands internally, but its TUI intentionally keeps them out of slash-command autocomplete in favor of a dedicated skills picker. That is a deliberate upstream choice, so this behavior may converge over time. If it does, Systematic’s registration degrades gracefully: because Systematic’s entry replaces the skill-sourced one by name, you still see exactly one command per skill, and the skills_as_commands toggle removes Systematic’s entries entirely.