GuidesHosting choices

OpenCode skills: where OpenCode finds them and how they load

Where OpenCode 2 finds skills, Claude Code's folders included, how its skill tool loads one, skill permissions, and one folder shared with other agents.

October 9, 2026Updated October 13, 2026The Everpod team
The short answer

An OpenCode skill is a folder with a SKILL.md file in it: a short description of when to use it, then the instructions. OpenCode 2 finds skills in .opencode/skills/ in your project and ~/.config/opencode/skills/ for you, and also reads Claude Code’s .claude/skills/ and the shared .agents/skills/, in the project and in your home folder. It shows the model each skill’s ID, name and description, and the model loads the full instructions by calling its skill tool; you load one yourself by typing @skill-id. The skill’s ID is its folder’s name. On OpenCode 2.0.26 (October 2026), skills load from all six places, and a skill kept once in .agents/skills/ is found by Claude Code, Codex and Pi as well.

Where OpenCode looks

From OpenCode’s version 2 skills page:

ScopeOpenCode’s own folderRead for compatibility
Your project
.opencode/skills/ (the older .opencode/skill/ still works).claude/skills/, .agents/skills/
You
~/.config/opencode/skills/~/.claude/skills/, ~/.agents/skills/
Anywhere else
folders or web catalogs listed in the skills array of an opencode.json

In a project, OpenCode looks in each of those folders from the one you start in upward, so a monorepo can keep skills at its root and in each package. A source can hold a skill as a folder with a SKILL.md inside, which is the portable form, or as a single name.md file at its top level.

When two sources have a skill with the same ID, the one registered later wins, in this order from lowest to highest: OpenCode’s built-in skills, then .claude/skills/, then .agents/skills/ (in each, your home folder first and then the project from the outermost folder in), then ~/.config/opencode/skills/, then the project’s .opencode/skills/, then the skills array. One consequence surprises people: a skill in your personal ~/.config/opencode/skills/ overrides a skill of the same ID that a repository keeps in .agents/skills/ or .claude/skills/. OpenCode ships two skills of its own, opencode, for questions about OpenCode itself, and report, for filing a bug.

Writing one

The format is the open Agent Skills standard, and the portable version looks the same as for any agent:

.opencode/skills/release-notes/SKILL.md

---
name: release-notes
description: Drafts release notes from the merged pull requests since the last tag. Use when asked for release notes or a changelog entry.
---

1. Find the last tag with `git describe --tags --abbrev=0`.
2. List the merged pull requests since it with `gh pr list --state merged`.
3. Group them under Added, Changed and Fixed, one line each.
Copied

OpenCode 2 is looser than the standard, which is worth knowing if the skill will travel. The folder name is the skill’s ID, and the name field is only a label shown beside it, so OpenCode’s own docs give an example named “Git Release”, with a capital and a space. Every field is optional, but a skill without a description is never shown to the model. OpenCode reads four fields: name, description, disable-model-invocation and metadata, where opencode/autoinvoke: false does what disable-model-invocation does. It accepts license and compatibility without acting on them, and allowed-tools, which Claude Code uses to pre-approve tools, has no effect. For a skill other agents will read, keep to the standard: a lowercase-and-hyphens name that matches its folder, and a description that says what the skill does and when to use it.

How a skill loads

At each step OpenCode lists, for the model, the skills it is allowed to use that have a description: ID, name and description only, never the body. When the task matches, the model calls the skill tool with the ID, and OpenCode checks the agent’s permission, adds the body without its frontmatter to the conversation, and says where the skill’s folder is, with a sample of up to ten files in it. Files beside SKILL.md are read only when the instructions send the agent to them. For a skill with the ID probe-agents, the model makes one skill call with {"id":"probe-agents"}, and on OpenCode 2.0.26 what comes back to it begins:

<skill_content name="probe-agents">
# Skill: probe-agents
...
Base directory for this skill: .../.agents/skills/probe-agents
Relative paths in this skill (e.g., scripts/, reference/) are relative to this base directory.
Copied

To load a skill yourself, mention it as @release-notes in your message. In OpenCode 2 skills are not slash commands; in version 1 every skill also became a /name command and was identified by its name field rather than its folder, which is the main thing to check when you move skills written for version 1.

Permissions, and switching one off

Skills have a permission action of their own, skill, with the skill’s ID as the resource. Rules go in the permissions array of opencode.json and run in order, the last match winning (where that file lives, and which copy wins, is in OpenCode’s config guide):

{
  "permissions": [
    { "action": "skill", "resource": "*", "effect": "allow" },
    { "action": "skill", "resource": "internal-*", "effect": "deny" },
    { "action": "skill", "resource": "deploy-*", "effect": "ask" }
  ]
}
Copied

allow lists and loads the skill without asking, ask lists it and asks before loading, and deny hides it from the model and refuses the tool call. Version 1 writes the same thing as a map, "permission": { "skill": { "internal-*": "deny" } }. The same rules under agents.<id>.permissions apply to one agent only, which is how you keep a review agent away from a deploy skill. To keep a skill out of the model’s list but usable when you name it, set disable-model-invocation: true. A skill grants no tools of its own: any command it tells the agent to run goes through the agent’s ordinary tools and their permissions.

Skills beside OpenCode’s other pieces

One folder for OpenCode, Claude Code, Codex and Pi

Because OpenCode reads both .claude/skills/ and .agents/skills/, the arrangement that already serves Claude Code and Codex serves it too: keep the folder in .agents/skills/ and put a symlink to it in .claude/skills/.

mkdir -p .claude/skills
ln -s ../../.agents/skills/release-notes .claude/skills/release-notes
Copied

It works with OpenCode 2.0.26, Claude Code 2.1.295, Codex 0.160.0 and Pi 1.1.0 (October 2026). In a repository, OpenCode loads skills from .opencode/skills/, .opencode/skill/, .claude/skills/ and .agents/skills/ and answers “skill not found” for one kept in .pi/skills/ or .codex/skills/; in your home folder it reads ~/.agents/skills/, ~/.claude/skills/ and ~/.config/opencode/skills/. With the shared setup, OpenCode lists the shared skill once, though it reaches it through both folders, and uses it; Claude Code and Codex find and use it; Pi lists it once you have trusted the folder, and lists no project skill at all before that. Where the four differ is a name that does not match its folder, such as “Display Probe” in a folder called display-probe: OpenCode shows it under the folder’s ID with the name as a label, Claude Code by the folder’s name, and Codex and Pi by the name as written, so Pi’s command for it becomes /skill:Display Probe. A name that follows the standard avoids all of that. What Agent Skills are has the full table of who reads what.

Before you use someone else’s

A skill is instructions your agent follows with your access, and often scripts it will run. OpenCode’s docs describe no step that asks you before a repository’s own skills load: open a cloned project and its .opencode/skills/, .claude/skills/ and .agents/skills/ are in play, and the same holds for Claude Code and Codex run non-interactively. Read a skill and the files beside it before you run OpenCode where it lives, and use a deny or ask rule for any you are not sure of.

Run OpenCode on an always-on developer pod.

A developer pod is a permanent cloud computer (VPS), set up and secured for you, with your pick of Claude Code, Codex, OpenCode, Pi, Hermes and OpenClaw installed. Run more agents at once than your laptop can hold, and keep them working when it’s closed. From $24 a month, built in about ten minutes.