All Agent Engineering

OpenCode skills: check discovery paths, same-ID overrides and skill permissions by ID

Check each OpenCode V2 skill by ID: discovery paths, same-ID override, whether it is advertised, and the skill permission result.

AINavWritten / Updated
On this page

At a glance

When one skill appears in .claude/skills, .agents/skills, ~/.config/opencode/skills, .opencode/skills and the skills array, and the model cannot see it or reads the wrong content, the cause can sit in four unrelated places: the ID the path decides, the definition source precedence selects, the visibility that frontmatter and permissions decide, and the prompt before loading. This guide targets OpenCode V2 and follows the official Skills and Permissions pages (read on 2026-11-24). It produces a per-ID check table: discovery paths, path-derived ID, winning definition, whether the skill is advertised to the model, and the current agent's skill permission result. OpenCode was not installed or run in this batch and no skill or config was created; the task example is a paper walkthrough from the documentation, not an observed run.

Runtime and applicability

Article type
Spec file
Verified
Applies to
  • OpenCode OpenCode V2: skill discovery paths, IDs, source precedence and skill permissions

File locations

PathScopeHow it is read
.opencode/skills/<id>/SKILL.mdOpenCode's own skill directory inside the project; also a root-level <id>.md or a SKILL.md nested in grouping directoriesOpenCode skill discovery, from the project root toward the working directory, above the global and compatibility directories
.claude/skills/<id>/SKILL.mdThe Claude compatibility directory inside the project; the global ~/.claude/skills belongs to the same source levelOpenCode skill discovery, registered before .agents/skills and OpenCode's own directories, so they override it for the same ID
.agents/skills/<id>/SKILL.mdThe agents compatibility directory inside the project; the global ~/.agents/skills belongs to the same source levelOpenCode skill discovery, registered after .claude/skills and before ~/.config/opencode/skills
~/.config/opencode/skills/<id>/SKILL.mdThe current user's global OpenCode skill directory, applying to all of that user's projectsOpenCode skill discovery, registered above the project's .claude/skills and .agents/skills and below the project's .opencode/skills
~/.claude/skills/<id>/SKILL.mdThe current user's global Claude compatibility directoryOpenCode skill discovery, registered before the project directories within the .claude/skills level
~/.agents/skills/<id>/SKILL.mdThe current user's global agents compatibility directoryOpenCode skill discovery, registered before the project directories within the .agents/skills level
opencode.jsoncThe skills array adds local directories or HTTP catalogs, and the skill rules in permissions and agents.<id>.permissions decide advertising and loadingOpenCode reads every discovered config file; skills entries register last, and skill rules are checked for the selected agent when the skill tool is called

When to use

  • A skill has files in several directories and you need to know which one OpenCode actually loads, or you edited a file and nothing changed.
  • A skill is missing from the model's available list, or loading it asks or is rejected, and you need to tell apart "not discovered", "not advertised" and a permission rule result.
  • You plan to use skills already in .claude/skills and .agents/skills together with OpenCode's own directories and want to know first which IDs will override each other.

When not to use

  • The configuration uses V1 syntax (top-level permission, action names bash and task). The permissions page says V1 field and action names differ; this article covers only the V2 names such as the permissions array, shell and subagent.
  • The goal is to write a good SKILL.md body or to make a skill call scripts. The pages only say the body enters the conversation on load and that supporting files are read by the agent when the skill directs it; this article does not cover how to write a good body. Read and edit path permission rules are also out of scope.
  • You need to confirm that an HTTP catalog downloads successfully. This article checks only its place in the precedence order and where its IDs come from; the download itself was not observed.

Which layer is the problem in

Several unrelated causes sit behind "this skill is wrong". The file may be outside every scanned location, or buried too deep, or inside a skipped directory. It may be discovered under an ID you did not expect, because the path decides the ID and the frontmatter name is only a display label. The ID may be right while a source registered later supplies the definition that actually loads. The definition may be right but lack a description or set opencode/autoinvoke: false, so the model's available list omits it. Or everything above is fine and the current agent's skill permission rules deny or ask before loading. Each cause has a different fix, so locate the layer first. Rewriting SKILL.md repeatedly rarely helps.

Two things need to stay apart: a skill appearing in the model's available list, and its body entering the conversation. The documentation says that at each model step OpenCode lists the skills that are permitted, have a description, and do not set opencode/autoinvoke: false; the list holds only the ID, name and description. Only when the model calls the skill tool with an exact ID does OpenCode select the current definition for that ID, check the selected agent's skill permission, and add the Markdown body without frontmatter to the conversation. Visibility therefore depends on frontmatter and permissions together, while loading adds a selection step and a second permission check. opencode/autoinvoke: false only removes the skill from the list; it stays registered and can still be loaded explicitly by ID.

This article covers V2 only. The version selector at the top of the Skills page shows V2 (latest), and the page also offers a V1 option. The page also states that V2 currently does not enforce the ID pattern, the 1 to 64 character recommendation, a match between name and the directory name, or a maximum description length. Do not carry another tool's validation rules for SKILL.md into this check: for the items the page says are not enforced, V2 does not currently reject a file because of them.

Prerequisites and input

  • A V2 project. You know the project root, the working directory OpenCode starts in (relative skills entries resolve from there, not from the directory of the config file), and the current user's home directory.
  • You can list every opencode.json or opencode.jsonc that takes part in the merge. The documentation says every discovered config file contributes its own skills entries and the arrays are combined rather than replaced; permissions must also be merged in rule order.
  • You know which agent is in use when the problem appears: a built-in one such as build, plan or explore, or a custom agent. The permission result is computed for the selected agent.
  • You can see the path of every candidate file and the name, description, metadata and disable-model-invocation entries in its frontmatter.
  • You accept "not written in the documentation means not inferred". Where the pages are silent, write "not stated" in the table and stop instead of guessing a result.

From path to body: one chain

The schematic below strings the two official pages into one chain and shows only the order the documentation gives. Three forks matter. The ID comes from the path, not from name. Only one definition per ID survives, and the source registered later supplies it. Being visible to the model and being loadable are two separate checks: the first looks at the description, autoinvoke and whether permission is deny, and the second selects the definition and checks permission again when the skill tool is called.

Example: schematic from file path to loaded body, organized from the official Skills and Permissions pages
Plain text
file path
  |  (1) the path decides the ID; frontmatter "name" is only a display label
  v
skill ID
  |  (2) same ID in several sources: the source registered later supplies the definition
  v
winning definition
  |  (3) listed for the model only if all three hold:
  |      - description is present
  |      - not hidden by frontmatter: opencode/autoinvoke: false hides it, and so does
  |        disable-model-invocation: true when opencode/autoinvoke is unset
  |        (opencode/autoinvoke wins when both are set)
  |      - the selected agent's skill permission is not deny
  v
available list: ID, name, description
  |  (4) the model calls the skill tool with { "id": "<exact ID>" }
  v
select current definition -> check skill permission -> add body without frontmatter
                              allow: load
                              ask:   prompt first
                              deny:  reject

The three conditions in step 3 are joined by "and": if any one fails, the skill is not listed. The frontmatter hiding condition follows a precedence: if opencode/autoinvoke is set it governs and wins when both fields are set, and disable-model-invocation: true hides the skill only when opencode/autoinvoke is unset. The page states that a skill hidden by autoinvoke: false stays registered and can be loaded explicitly by ID. For a skill without a description the page says only that it is not advertised; whether it can be loaded explicitly by ID is not stated, and this article marks that as unverified. After step 4 the body enters the conversation, and OpenCode also supplies the skill's base directory and a sample of up to ten supporting file paths. Supporting file contents are not loaded automatically; they are read when the skill's instructions tell the agent to. The file sample exists only for directory-based SKILL.md skills, and flat Markdown skills get no neighboring file list.

1. Confirm V2 syntax and write down three paths

Where: the project root and the config files. Input: project root, working directory, home directory, current agent. Action: look at how permissions are written first. V2 uses a top-level permissions array with action names such as shell and subagent; V1 uses permission, bash and task, and the permissions page carries a warning about the difference. If you see the V1 form, stop, because this article does not apply. Then write down three absolute paths: project root, working directory and home directory. Every source below is resolved against them. Done when: all three paths are absolute and the current agent's name is recorded. Stop if: you cannot tell where the project root is. The Skills page only says project sources are searched from the current directory up to the project root, and does not say how the root is determined.

2. List the sources in registration order

Where: the "sources" page of the check table. Input: the three paths from step 1 and the skills arrays of every config file. Action: copy the documented registration order into a list, from lower to higher precedence, with every directory written as an absolute path. A source registered later wins for the same ID, so this order is half of the answer.

Documented source registration order, from lower to higher precedence
No.SourceOrder inside the source
1Built-in skillsThe page does not list which ones exist
2.claude/skillsGlobal ~/.claude/skills first, then from the farthest ancestor toward the current directory
3.agents/skillsGlobal ~/.agents/skills first, then from the farthest ancestor toward the current directory
4~/.config/opencode/skillsThe global OpenCode directory
5Project .opencode/skillsFrom the project root toward the current directory
6Explicit skills config entriesIn config priority and array order; relative paths resolve from the working directory, ~/ from the home directory, absolute paths are used as written, and http:// or https:// values are HTTP catalogs

Three rows of this table run against intuition. The global ~/.config/opencode/skills (level 4) outranks the project's .claude/skills and .agents/skills (levels 2 and 3), so a same-ID skill in a project compatibility directory loses to the OpenCode global version in your home directory. Inside one source, directories closer to the working directory register later, so a same-ID skill in a nested directory overrides the one at the project root. Entries from the skills array come last and are highest for a shared ID. Done when: every directory in the list carries a level number and an absolute path, and HTTP entries are marked "contents unknown". Stop if: the skills array contains an HTTP catalog and you cannot see its index.json; mark every ID from that source unknown and do not use it to decide that another source wins. The documentation also mentions that a connected OpenCode Console workspace can share skills; the page does not say which level of this order it occupies, so mark it "not stated" when it applies.

3. List the candidate files under each source

Where: the "candidates" column of the table. Input: the source list from step 2. Action: for each directory, find the files that can become skills using the documented rules, listed below.

  • Two forms count under every source: a *.md file at the source root, such as skills/review.md, and a file named exactly SKILL.md, which may sit inside grouping directories such as skills/teams/release/SKILL.md.
  • A plain .md file that is not at the source root is not a skill.
  • A directory containing SKILL.md is one skill. OpenCode does not search inside it for more skills, so another SKILL.md placed inside is not treated as a separate skill.
  • Hidden files, hidden directories and node_modules are skipped. A source directory that itself starts with a dot, such as .opencode/skills, is an explicitly listed source.
  • The search stops six directories below the source root. The page gives no example showing whether the sixth level itself is included, so when a path is close to that depth, move the file shallower and check again.

Done when: every candidate under every source is written with its full path. Stop if: the target file sits in a skipped location or at a doubtful depth. It will not appear in any later step, so fix the location before continuing instead of looking for the cause in the later layers.

4. Derive each file's ID from its path

Where: the "ID" column of the table. Input: the candidate files from step 3. Action: write each ID from the path, and put the frontmatter name in a separate column. The two columns must not be mixed, because the resource in permissions is the ID and the skill tool also takes the ID.

Documented examples: file path and derived ID
FileIDNote
<source>/git-release.mdgit-releaseA flat file at the source root; the ID is the file name
<source>/git-release/SKILL.mdgit-releaseDirectory form; the ID is the directory name
<source>/teams/release/SKILL.mdreleaseThe grouping directory teams does not enter the ID
Entry git-release in an HTTP cataloggit-releaseEach downloaded skill directory becomes a source root named after the entry, so both git-release.md and SKILL.md get this ID

IDs are exact and case-sensitive: Release and release are two IDs and do not override each other. For portable skills the documentation recommends a unique lowercase kebab-case ID of 1 to 64 characters matching ^[a-z0-9]+(-[a-z0-9]+)*$, kept aligned with the directory name, but V2 does not currently enforce it. name defaults to the path-derived ID. For example, .opencode/skills/release/SKILL.md containing name: Git Release still has the ID release. Done when: every candidate file has an "ID" column and a "display name" column. Stop if: a permission rule, prompt or verbal description uses the display name instead of the ID; change it to the ID first. The permissions page mentions case-insensitive matching on Windows only in a path example and says nothing about skill IDs, so never keep two IDs that differ only in case.

5. Group by ID and pick the final definition

Where: the "winning file" column of the table. Input: the source levels from step 2 and the IDs from step 4. Action: group the candidate files by ID. If an ID has one file, that file is the final definition. If several sources define the same ID, the source registered later supplies the definition OpenCode loads. The documented example has the global ~/.config/opencode/skills/git-release/SKILL.md next to the project .opencode/skills/git-release/SKILL.md, and the project one is loaded. Keep the overridden files in the table too: when you investigate "I edited the file and nothing changed", they are exactly what you need to see.

  • Two paths in the same source root derive the same ID, for example skills/release.md and skills/release/SKILL.md, or skills/teams/release/SKILL.md and skills/ops/release/SKILL.md. The page does not say which one wins; mark it "undecided" and stop.
  • A built-in skill shares an ID with yours. Built-in skills sit at the lowest level of the registration order and your sources register later, so your file wins; this does not require stopping. The page does not list built-in IDs, so you cannot know in advance which IDs collide.
  • The page only says "Avoid duplicate IDs unless you intend to override an earlier skill". It does not say whether an override produces a warning or a log entry. That does not change precedence among known sources; just do not rely on a warning to reveal an override, and it is not a stop reason.

Done when: each ID has one row with exactly one winning file and a list of the files it overrides. Stop if: only a duplicate ID inside one source root forces "undecided" and a stop; do not guess from modification time, body length or alphabetical order. The other two situations do not change which known source wins.

6. Check whether the winning definition is advertised

Where: the "frontmatter" column of the table. Input: the winning file of each ID. Action: read only the winning file's frontmatter. The page does not say that several definitions of one ID are merged field by field. Following its wording "selects the current definition for that ID", a description in an overridden file is not carried over. That is a reading of the page, not something it states directly. On that reading, adding a higher-level override with no description could make a previously visible skill disappear from the list.

How frontmatter fields affect advertising (official Skills page)
FieldDocumented behaviorWhat to record
nameDisplay name; defaults to the path-derived IDFill only the display-name column; it plays no part in the ID
descriptionSummary used to show the skill to the model; skills without one are not advertisedEmpty means "not advertised"
metadata.opencode/autoinvokeSet to false to omit the skill from the model's available list; the skill stays registered and can still be loaded explicitly by IDfalse means "not advertised, loadable explicitly"
disable-model-invocationSet to true for the same effect as opencode/autoinvoke: falseSame as above
Both setopencode/autoinvoke wins; the page documents only the false behavior and gives no example for trueMark the combination separately and do not infer

The page says all frontmatter is optional at runtime, and that V2 accepts portability fields such as license and compatibility but does not interpret them, so do not expect those fields to change discovery or advertising. Done when: every ID has a conclusion on whether its frontmatter allows advertising, with the reason. Stop if: the frontmatter is malformed, for example with a broken indent. The page does not describe that behavior, so mark the ID "unknown" and look at the available list in a real session before concluding.

7. Rebuild the current agent's rules and take the last match

Where: the "permission" column of the table. Input: the current agent, the permissions of every config file, and agents.<id>.permissions. Action: a rule has three string fields, action, resource and effect. For a skill, action is skill and resource is the skill ID or a wildcard pattern. Rules run in order and the last matching rule wins. Wildcards match the whole value: * matches zero or more characters and ? matches exactly one character.

The rule list is assembled in this order. Every agent, custom ones included, starts from the same base policy, whose first rule has action *, resource * and effect allow. Built-in agents append their own policy after it. Next come lower-priority configuration, then global rules, and last the agent's own rules from agents.<id>.permissions, appended after the global rules and not replacing them. A custom subagent uses its own permissions, not a subset of its parent's.

Do not default to allow here. The page says no matching rule gives ask, and that the first base-policy rule matches every action, so the skill action always has a rule to match and the last matching rule decides. With no dedicated skill rule, the last match may be the base policy's * allow, a config rule whose action is * (an allow, ask or deny on * also matches skills), or a deny policy appended by a built-in agent. Write out the whole rule list in order and read the rule that really matches last; do not conclude anything from the absence of a skill rule. Built-in agents need their additional policy checked too. The page says explore denies everything except shell, reads, globs, grep, web fetches, web searches and external directories, and skill is not on that list. Title and summary deny all actions. For general the page mentions only denying questions and launching subagents. The page does not give a skill result for each of these agents, so for them write the additional policy into the rule list before taking the last match, and keep in mind the page's sentence that later global and agent rules override these defaults.

Done when: every ID records its "last matching rule" and says whether it comes from the base policy, a built-in agent policy, which config file, or which agents.<id>.permissions. Stop if: a rule's resource looks like a path or command text rather than an ID. It does not belong in this table, so move it out unchanged; when a rule's origin is unclear, do not derive an allow result.

8. Layer saved approvals and policies, then read the effect

The three effects of a skill permission (official Skills page)
EffectEffect on advertisingEffect on loading
allowAdvertises matching skillsLoads without approval
askAdvertises matching skillsAsks before loading
denyHides matching skills from the modelRejects loading

Where: the last two columns of the table. Input: the project's saved approvals and any global or managed policies. Action: when a rule resolves to ask, the client can reply once (approve only this request), always (approve and save the tool's proposed patterns for the project) or reject (reject it and every other pending permission request in that session). The page says the pattern proposed for skills and subagents is their ID, so choosing Allow always for one ID leaves a project-scoped allow rule for that ID. Saved approvals are durable project-scoped allow rules and never override a configured deny. How Allow always interacts with the order of a configured ask rule is not spelled out on the page.

A policy runs after the rules and saved approvals, can only turn allow or ask into deny, and never grants access. Global and Console-managed policies override project configuration, which is how an organization blocks something a repository would allow. The only policy example on the page uses shell, with no skill form, so what a skill policy should look like is not stated. Done when: every ID says whether saved approvals and policies were inspected. Stop if: saved approvals or managed policies are not visible; write "configured rules only" and do not present the row as a final allow. How non-interactive clients handle an ask is left to the client according to the page, which only guarantees that a configured deny stays enforced.

9. Fill in the per-ID table and write the stop reasons

Where: the deliverable itself, a table with one row per ID. The columns are fixed: ID, candidate paths, winning file, whether frontmatter allows advertising, the current agent's skill permission result, and undecided or stop reason. "Visible to the model" depends on three conditions: the winning definition has a description, by precedence it is not hidden by frontmatter (if opencode/autoinvoke is set it governs and false hides; if it is unset, disable-model-invocation: true hides), and permission is not deny. "Asked before loading" depends on whether the final effective effect is ask, with a note on whether saved approvals were checked.

Situations like the following belong in the "stop reason" column and should not be patched into a conclusion by guessing: duplicate IDs inside one source root; a source that is an HTTP catalog whose contents you cannot see; abnormal frontmatter; an unclear registration level for Console-shared skills; saved approvals or policies that are not visible; an unknown project root; a config in V1 syntax. The table is complete when, for any ID, you can answer three questions: which file loads, whether the model can see it, and whether loading asks first.

Task example

The following is an original paper walkthrough built from documented fields. It is not an execution result. Suppose the project root shop/ is also the working directory, and the home directory holds two skill directories. The layout is below, with the path-derived ID next to each file.

Example: file layout for the paper walkthrough; paths and IDs are invented and these files were not created
Plain text
~/
|-- .claude/skills/
|   `-- review/SKILL.md                 -> ID review
`-- .config/opencode/skills/
    `-- git-release/SKILL.md            -> ID git-release

shop/                                   (project root = working directory)
|-- opencode.jsonc                      skills: ["./team-skills"]
|-- .claude/skills/
|   `-- git-release/SKILL.md            -> ID git-release
|-- .agents/skills/
|   |-- review.md                       -> ID review
|   `-- teams/release/SKILL.md          -> ID release (name: Git Release)
|-- .opencode/skills/
|   |-- git-release/SKILL.md            -> ID git-release
|   |-- notes/SKILL.md                  -> ID notes (no description)
|   `-- deploy-prod/SKILL.md            -> ID deploy-prod (autoinvoke: false)
`-- team-skills/
    |-- internal-audit/SKILL.md         -> ID internal-audit
    `-- experimental-lint/SKILL.md      -> ID experimental-lint

The permission configuration lives in shop/opencode.jsonc. The global rules first allow every skill, then deny internal-* and set experimental-* to ask. A custom subagent reviewer has its own rules that first deny every skill and then allow only review. The rule shape comes from the official examples, and the reviewer form from the agents example on the permissions page.

Example: an original configuration combined from documented fields; no config file was written
jsonc
{
  "$schema": "https://opencode.ai/config.json",
  "skills": ["./team-skills"],
  "permissions": [
    { "action": "skill", "resource": "*", "effect": "allow" },
    { "action": "skill", "resource": "internal-*", "effect": "deny" },
    { "action": "skill", "resource": "experimental-*", "effect": "ask" }
  ],
  "agents": {
    "reviewer": {
      "description": "Reviewer used in the skill check example",
      "mode": "subagent",
      "permissions": [
        { "action": "skill", "resource": "*", "effect": "deny" },
        { "action": "skill", "resource": "review", "effect": "allow" }
      ]
    }
  }
}

The deploy-prod SKILL.md starts as shown below. It has a description, so the reason it is not listed is that opencode/autoinvoke: false removes it from the model's available list.

Example: the start of deploy-prod written with documented frontmatter fields; the file was not created
yaml
---
name: Deploy Prod
description: Deploy the current release to production
metadata:
  opencode/autoinvoke: false
---

The check table uses one set of assumptions: unless the table says otherwise, every skill has a description and no hiding field, there are no extra config files, saved approvals or policies, and build is the agent in use. Every "Yes" in the table depends on these assumptions.

Paper walkthrough result: the per-ID check table
IDWinning fileOverridden definitionsVisible to model (build)build permissionreviewer permission
git-releaseshop/.opencode/skills/git-release/SKILL.md (level 5)shop/.claude/skills/git-release/SKILL.md (level 2), ~/.config/opencode/skills/git-release/SKILL.md (level 4)Yes, provided the winning file has a description and no hiding fieldallow (global * is the last match)deny (agent rule * is the last match)
releaseshop/.agents/skills/teams/release/SKILL.md (level 3)NoneYes, provided it has a description and no hiding fieldallowdeny
reviewshop/.agents/skills/review.md (level 3)~/.claude/skills/review/SKILL.md (level 2)Yes, provided it has a description and no hiding fieldallowallow (agent rule review is the last match)
internal-auditshop/team-skills/internal-audit/SKILL.md (level 6)NoneNo, deny hides it from the modeldeny (internal-*)deny
experimental-lintshop/team-skills/experimental-lint/SKILL.md (level 6)NoneYes, provided it has a description and no hiding fieldask (experimental-*)deny
notesshop/.opencode/skills/notes/SKILL.md (level 5)NoneNo, no descriptionallow, but not advertised; whether it loads by ID is not stateddeny
deploy-prodshop/.opencode/skills/deploy-prod/SKILL.md (level 5)NoneNo, autoinvoke: falseallow, still loadable explicitly by IDdeny

Read the table row by row. git-release has three definitions at levels 2, 4 and 5, and the highest is the project .opencode, so that one loads. Someone who edited shop/.claude/skills/git-release/SKILL.md and saw no change has the reason here: that copy is only level 2 and is covered by a source three levels higher. release also has the display name Git Release, but its ID is release, so it is an unrelated skill next to git-release, and rules written for git-release, wildcards such as git-* included, do not reach it. The two definitions of review sit in the global .claude (level 2) and the project .agents (level 3); the latter registers later, so the flat project file review.md wins.

The two skills in team-skills come from the skills array. The ./team-skills entry is a relative path resolved from the directory OpenCode starts in, not from the directory of the config file. If OpenCode is started from shop/apps/web instead, it points at shop/apps/web/team-skills. If no such files exist there and no other source defines the same IDs, both skills disappear while the config file has not changed at all. internal-audit is matched by the internal-* deny, so for build it neither appears in the list nor can be loaded. experimental-lint is matched by the experimental-* ask, so it appears in the list and loading asks first. notes has no description and is not advertised. deploy-prod has a description, but autoinvoke: false removes it from the list; it stays registered and can be loaded explicitly by ID, for example when the user writes @deploy-prod in a prompt.

Finally, reviewer. Its rules are appended after the global rules, and the last two are * deny and review allow. Every ID other than review, internal-audit included, lands on * deny, and review lands on the last allow. So, provided review has a description and no hiding field, the reviewer's available list holds only review, while every other skill is hidden from it and loading is rejected. The table is derived from the documentation and was not observed in a real session.

Which layer a symptom points to

Symptoms, the layer they point to, and the documented checks
SymptomLayer to check firstHow to check
An edit has no effect; the loaded content did not changeSource precedenceLook for a source registered later that defines the same ID, using the list from step 2
The skill cannot be found anywhereDiscoveryConfirm the file is a root-level *.md or named exactly SKILL.md, is not inside a hidden directory or node_modules, and is not near six levels deep
It cannot be found by its display nameIDUse the path-derived, case-sensitive ID, not the frontmatter name
The model never uses it on its ownAdvertisingAdd a description; check opencode/autoinvoke and disable-model-invocation
Loading asks firstPermissionCheck whether the last matching skill rule for the current agent is ask
The model cannot see it and cannot load itPermissionCheck whether a skill rule for the current agent is deny, agents.<id>.permissions included
A skill from an HTTP catalog did not updateCatalogVerify index.json, same-origin relative file paths, and that version increases when the files change

The HTTP catalog rules are these. A base URL holds an index.json whose entries carry name, version and files. OpenCode downloads each file from <base-url>/<name>/<file>. File paths must be safe, relative and same-origin. The entry file is SKILL.md or <name>.md. When files change, version must increase for OpenCode to refresh its cache. No catalog was downloaded in this batch; these points only restate the page.

Failures and boundaries

  • Do not infer anything the pages leave unwritten: which skills are built in; which one wins when two paths in one source root derive the same ID; where Console-shared skills sit in the registration order; how "config priority" is defined; what happens when frontmatter is malformed; and what calling the skill tool with a nonexistent ID returns.
  • The page does not say when changes on disk are discovered again. It only says each model step lists the available skills, not whether that step rescans the disk. When an edit shows no effect, restart the session before concluding. That is a troubleshooting suggestion, not an official guarantee.
  • A user can load a skill by writing @skill-id in a prompt. The page does not say whether that path also goes through the skill permission check. It also does not say whether a skill without a description can be loaded by ID, only that it is not advertised.
  • A skill deny is described only as "hides from the model and rejects loading". The page does not say it also stops an agent from reading that skill's files directly. File access has its own read, edit and external_directory rules, and restricting it takes separate rules.
  • In the rule examples on the permissions page, the form meant to allow one skill and deny the rest uses the literal resource effect. This article does not copy it and uses its own IDs in the example.
  • Every "wins", "visible" and "permission result" here is derived from the documentation, and none of it was observed in a real session.

Completion checks

  • Input ownership: every ID maps to concrete candidate paths, a source level and frontmatter, with the ID and the display name in separate columns.
  • Execution and result: for any ID you can say which file loads, whether the model can see it, and whether loading asks first; every row's permission result names the last matching rule and where it comes from.
  • Stop and scope: when a same-source duplicate ID, an HTTP catalog with unknown contents, invisible saved approvals or policies, or V1 syntax appears, a clear stop reason is written and no conclusion is filled in by guessing.

Verification scope

This article read only the two official OpenCode pages, Skills and Permissions, on 2026-11-24, when the Skills page was labelled V2 (latest). OpenCode was not installed or run, no skill, config file or HTTP catalog was created, no login or API call was made, and no actual discovery, override, advertising or permission result was observed. The file layout, configuration and check table are invented paper walkthroughs and must be rechecked against a real project's configuration and sessions. The official pages may change later; if they disagree with this article, follow the official pages.

Sources

All links are official pages; verification dates are listed per source, and links point to the version checked.

  1. OpenCode · Skills
  2. OpenCode · Permissions

Found an error? Tell us →