skip to content

In OpenClaw, how do `agents.defaults.skills` and `agents.entries.*.skills` decide which skills each agent sees, and what do they leave unprotected?

level: middleimportance: nice to knowfreq 4%

answer

  1. location versus visibility
  2. omitted means unrestricted
  3. a non-empty list replaces
  4. empty list means none
  5. not a shell boundary

basics

~20 s

agents.defaults.skills sets a baseline that agents without their own list inherit; a non-empty agents.entries.<id>.skills replaces it entirely, and an empty list hides every skill. Omitting both leaves skills unrestricted. Allowlists filter what an agent sees, not what its exec tool can run.

solid answer

~50 s

Precedence decides which copy of a skill wins; allowlists decide which agent sees it. `agents.defaults.skills` is a shared baseline, and leaving it out keeps every eligible skill visible. An agent that omits `agents.entries.<id>.skills` inherits the baseline; a non-empty list is that agent's final set and does not merge with the defaults; `skills: []` exposes none. Entries match the skill's frontmatter `name`, and the effective list applies to prompt building, slash-command discovery, sandbox sync and skill snapshots, so a hidden skill is neither described to the model nor offered as a command. It is not an authorization boundary: an agent that can run host `exec` can still call the same CLIs and read the same files, so constrain that shell with sandboxing, tool policy, exec approvals and per-agent credentials. `openclaw skills check --agent <id>` shows what one agent actually gets.

code

json · 10 lines
json
{
  "agents": {
    "defaults": { "skills": ["github", "weather"] },
    "entries": {
      "writer": { "default": true },
      "docs": { "skills": ["docs-search"] },
      "locked-down": { "skills": [] }
    }
  }
}

go deeper

for a junior

Know that each agent can be given its own list of skills, and that an empty list means it gets none.

for a middle

Explain inheritance: no baseline means unrestricted, an omitted per-agent list inherits, a non-empty list replaces, and lists match the frontmatter name across prompt, commands, sandbox sync and snapshots.

for a senior

Show you will not treat the allowlist as a security boundary: pair it with tool policy, sandboxing, exec approvals and per-agent credentials, and verify with openclaw skills check --agent.

for a principal

Decide the default posture for new agents on a shared Gateway: an empty baseline with explicit grants, or open defaults with exceptions, and what each costs in maintenance and surprise.

## Two separate controls OpenClaw separates **where a skill comes from** from **which agent may see it**. Several knobs look alike, and each does one job: | Control | What it decides | |---|---| | Load precedence | which copy wins when two roots hold the same skill name | | `agents.defaults.skills` / `agents.entries.*.skills` | which skills each agent sees | | `skills.allowBundled` | which **bundled** skills are eligible at all; managed and workspace skills are unaffected | | `skills.entries.<name>.enabled` | switches one skill off everywhere | The agent allowlist is the one to reach for when several agents share a Gateway and should not all see the same skills, for example a writing agent that needs the GitHub skill and a narrow documentation helper that should see only a search skill. ## The inheritance rules 1. Omit `agents.defaults.skills` and skills are **unrestricted** by default: every eligible skill is visible. 2. Set it to a list and it becomes the **shared baseline**. 3. An agent that omits `agents.entries.<id>.skills` **inherits** that baseline. 4. A **non-empty** per-agent list is the agent's **final** set. It replaces the baseline; it does not add to it. 5. `skills: []` on an agent exposes **no skills** to it. Entries match the skill's `name`, which comes from the `SKILL.md` frontmatter (or the folder name when `name` is missing), never from the folder path. Because the match is by name, allowing `github` admits whichever `github` copy won precedence. ## A worked example Take a baseline of `["github", "weather"]` and three agents. An agent named `writer` sets no list of its own, so it sees `github` and `weather`. An agent named `docs` sets `["docs-search"]`, so it sees `docs-search` and nothing else: the baseline is not added back. An agent named `locked-down` sets `[]` and sees no skills at all. Now remove the baseline entirely: `writer` becomes unrestricted and sees every eligible skill, while `docs` and `locked-down` are unchanged because their lists were already final. That last step is the one people miss: deleting the baseline widens every agent that relied on inheritance. ## What the filter reaches The effective allowlist is applied consistently: - **prompt building**: a hidden skill is not listed in the agent's system prompt; - **slash-command discovery**: it is not offered as a command, and an explicit `$name` reference to it returns a visible error instead of being ignored; - **sandbox sync**: it is not copied into the agent's sandbox; - **skill snapshots**: changing the effective allowlist refreshes the snapshot so the visible set stays aligned. `openclaw skills check --agent <id>` reports which ready skills are actually visible to that agent's prompt or command surface. A skill excluded by the allowlist can still show up there under missing requirements, because `check` reports prerequisites independently of agent exclusion. ## What it does not protect The allowlist is a **visibility and loading filter**, not a shell-time authorization boundary. Hiding a skill removes its instructions; it does not remove the binaries, files or credentials those instructions used. If the same agent can run host `exec`, that shell can still start the CLI the hidden skill wrapped, or read host files visible to the execution user, including client registries other tools keep under the state directory. The layers that actually stop it are elsewhere: - tool policy that denies or narrows `exec` for that agent; - a sandbox, so tools run in a container instead of on the host; - exec approvals for host commands; - OS-user isolation and **per-agent credentials**, so a key one agent needs is not readable by another. All of this sits inside one trust boundary. A Gateway shared by people who do not trust each other is not a supported setup, and allowlists do not turn it into one. ## Using it well - Give narrowly scoped agents an explicit list or `[]` instead of relying on the baseline. - Remember the replace rule when you add a per-agent list: copy in any baseline skills the agent still needs. - Pair a short allowlist with a matching tool policy; one without the other leaves a gap. - After changing any list, run `openclaw skills check --agent <id>` for each affected agent, including the ones that only inherit the baseline, and confirm the visible set is what you intended.

  • How does `skills.allowBundled` differ from an agent's skill allowlist in OpenClaw?
    `skills.allowBundled` applies to bundled skills only and for every agent: when it is set, only the listed bundled skills are eligible, while managed and workspace skills are unaffected. An agent allowlist applies to skills from any source but only for the agent it is set on. Use the first to trim what ships with the install, the second to shape each agent's view.
  • You hide a skill from an agent with an allowlist; how could that agent still use the tool the skill wrapped?
    If the agent can run host `exec`, nothing in the allowlist stops it from invoking the same CLI or reading the same config files directly, for example because a message or another skill suggests it. Close that path with tool policy on `exec`, sandboxing, exec approvals and credentials that agent cannot read.

  • A per-agent skills list adds to agents.defaults.skills rather than replacing it.
  • Setting an agent's skills to an empty list means no restriction.
  • Leaving agents.defaults.skills out hides every skill until you list them.
  • Hiding a skill from an agent stops that agent running the skill's binaries.
  • skills.allowBundled restricts workspace and managed skills too.
  • Allowlists match the folder path a skill was installed under.