Harness Notes

Skill invocation

Updated 2026-11-22,

On this page

How a skill gets used once it is installed: by the model on its own or by you, and what it brings with it. How skills are found and listed is on the Skill discovery page.

QuestionOpenCodechecked at 2.0.29
The model choosing a skill

Yes. The instructions tell the model to call the skill tool with an exact ID when a task matches a listed description. Before loading, the selected agent's skill permission is checked (allow, ask or deny).

Invoke a skill yourself

Mention @skill-id in your prompt; the TUI autocompletes skill IDs after @. /skills opens a picker that inserts the mention. The skill's content is attached to your message as a <skill_content> block, and this works for skills hidden with opencode/autoinvoke: false. There are no per-skill /name commands in V2.

Pass arguments

Partly

There are no argument placeholders such as $ARGUMENTS. When you @-mention a skill, the rest of your message goes with it as normal text, and the model uses that as input. The skill tool accepts only id.

What loads when a skill is used

OpenCode adds the Markdown body without frontmatter, wrapped in <skill_content>, plus the skill's base directory. For folder-based SKILL.md skills it also adds up to 10 other file paths from that folder, sorted; flat .md skills get no file list. Reference files and scripts are never read or run automatically; the agent reads or runs them only when the skill tells it to.

Tools, permissions and model

Not supported

No. OpenCode reads only name, description, metadata and disable-model-invocation from the frontmatter, so allowed-tools and model are ignored. Tool access and model come from the agent. Your skill permission rules govern only whether the model may load a skill.

Run in its own subagent

Not supported

No. Whether the skill tool or an @ mention loads it, the skill's content lands in the current conversation. No frontmatter field runs a skill in a subagent or forked context.

Notes and sources

OpenCode, 8 sources
The model choosing a skill, 2
Invoke a skill yourself, 4
Pass arguments, 2
What loads when a skill is used, 2
Tools, permissions and model, 2
Run in its own subagent, 2