OpenCode Skills: Where They Live And How To Write One
OpenCode skills are folders with a SKILL.md file that gives the agent reusable steps for one task. The agent loads a skill when the task calls for it, rather than adding every skill to every prompt.
What They Are
A skill is a folder with a SKILL.md file inside. The file starts with a short header, and the steps come after it. You can keep scripts and notes in the same folder.
At each step, OpenCode shows the model a list of skills that have a description. The list holds only the ID, the name and the description. The model then loads a skill by its exact ID. You can also load one yourself when you type @ and the skill ID in your prompt.
Where They Live
OpenCode looks in six folders.
| Folder | Who can use it |
|---|---|
~/.config/opencode/skills | It works in every project. |
~/.claude/skills | It works in every project. |
~/.agents/skills | It works in every project. |
.opencode/skills | It works in this project only. |
.claude/skills | It works in this project only. |
.agents/skills | It works in this project only. |
Since OpenCode reads the .claude folders, skills you set up for Claude Code show up here too. Our page on Claude Code vs OpenCode covers the rest of the overlap.
For project folders, OpenCode searches from your current folder up to the project root. Inside each source, it stops six folders down.
Installing
To install a skill, copy its folder into one of the folders above. Use .opencode/skills to keep it to one project, or ~/.config/opencode/skills to use it everywhere.
You can also list more folders or web catalogs in opencode.json, under a skills array. A web catalog is a base URL with an index.json file.
{
"skills": [
"./team-skills",
"https://example.com/opencode/skills/"
]
}Two sources can hold a skill with the same ID. In that case, the source that OpenCode adds later wins. Project skills in .opencode/skills come after the global folder, so your project copy is the one that loads.
Writing One
The folder path sets the skill's ID, and the name in the header is only a label. Use lowercase words joined by hyphens, keep the ID from 1 to 64 characters, and match it to the folder name.
Always add a description. OpenCode leaves a skill out of the model's list when it has none. To hide a skill from the model but keep it loadable by ID, set opencode/autoinvoke to false under metadata.
--- name: Git Release description: Prepare release notes, version bumps, and GitHub releases ---
Skills on SkillTrove use the same open SKILL.md format, so you can copy one into these folders and try it. To find one for your task, browse skills by category.