# What Is an OpenClaw Skill? Format, Install, Gating, Safety

> Canonical: https://skillalmanac.com/learn/what-is-an-openclaw-skill | Updated: 2026-11-27 | Index status: index-eligible

An OpenClaw skill is a SKILL.md folder in the Agent Skills format: load order, ClawHub install and verify commands, gating keys and safety checks.

## Facts

- 2026-11-26: Read 2026-11-26, OpenClaw documentation says each skill lives in a directory containing a SKILL.md file with YAML frontmatter and a markdown body, and that OpenClaw follows the AgentSkills spec (https://docs.openclaw.ai/tools/skills)
- 2026-11-26: The Agent Skills spec requires name (1 to 64 characters, must match the parent directory name) and description (1 to 1024 characters) (https://agentskills.io/specification)
- 2026-11-26: OpenClaw's creation guide asks for a description kept to one line and under 160 characters (https://docs.openclaw.ai/tools/creating-skills)
- 2026-11-26: OpenClaw loads workspace skills first, then project agent, personal agent, managed, workshop, bundled and Custodian, with extra directories and plugin skills lowest; the highest source wins a name clash (https://docs.openclaw.ai/tools/skills)
- 2026-11-26: The OpenClaw CLI reference lists openclaw skills search, install, update, verify, list (with --eligible), info, check and workshop commands (https://docs.openclaw.ai/cli/skills)
- 2026-11-26: OpenClaw documentation says to treat third-party skills as untrusted code and read them before enabling (https://docs.openclaw.ai/tools/skills)
- 2026-11-26: OpenClaw documentation says ClawHub skill pages expose the latest security scan state before install, with detail pages for VirusTotal, ClawScan and static analysis (https://docs.openclaw.ai/tools/skills)
- 2026-11-26: VirusTotal's post dated 2026-02-02 says Code Insight had analyzed more than 3,016 OpenClaw skills and that hundreds showed malicious characteristics (https://blog.virustotal.com/2026/02/from-automation-to-infection-how.html)

## Short answer

An OpenClaw skill is a folder containing a `SKILL.md` file, written in the open Agent Skills format, that teaches the OpenClaw agent how and when to use tools. Read on 2026-11-26, OpenClaw's documentation says it follows the AgentSkills spec, and it documents optional keys for slash commands, dependency gating and installers. You create one under `~/.openclaw/workspace/skills/<name>/`, install community ones from ClawHub with `openclaw skills install`, and should read any third-party skill before enabling it.

## What an OpenClaw skill is

OpenClaw is, per its documentation, an open-source AI assistant that runs on your own hardware: a self-hosted gateway that connects chat apps to AI coding agents through a single Gateway process. A skill is how you add repeatable instructions to that agent. The OpenClaw docs describe skills as markdown instruction files in a directory with a `SKILL.md` file, YAML frontmatter first, then a Markdown body, that teach the agent how and when to use tools.

Three things are worth separating:

- A **skill** is instructions. On its own it gives the agent text and, optionally, scripts it can run.
- A **plugin** is code or a bundle that can carry skills along. A plugin lists `skills` directories in `openclaw.plugin.json`, and those plugin skills merge at the same low precedence as `skills.load.extraDirs`.
- A **tool** is a capability the agent calls, such as `exec`. A skill can tell the agent when to use a tool, but eligibility does not grant tool access, as the OpenClaw docs say for channel-gated skills.

The same format is used by other agents, so the folder layout and the two required fields carry over. That does not make every OpenClaw skill portable as written: the nested `metadata.openclaw` block and instructions that name OpenClaw tools such as `exec` have to be adapted to the values and tools another loader accepts. See [What are Claude skills? A plain-language definition](/learn/what-are-claude-skills) for the Claude side and [Claude skills vs MCP vs plugins: what each one is for](/learn/skills-vs-mcp-vs-plugins) for how skills differ from plugins and MCP servers.

## The format

### Required keys

The Agent Skills specification, as read on 2026-11-26, requires two frontmatter fields:

| Field | Constraint in the spec |
| --- | --- |
| `name` | 1 to 64 characters; in the spec's words, "unicode lowercase alphanumeric characters (`a-z`, `0-9`) and hyphens (`-`)"; must not start or end with a hyphen; no consecutive hyphens; must match the parent directory name |
| `description` | 1 to 1024 characters; should say what the skill does and when to use it |

Optional spec fields are `license`, `compatibility` (up to 500 characters), `metadata` (string keys to string values) and `allowed-tools` (experimental). The spec recommends keeping `SKILL.md` under 500 lines and moving detail into `references/`, `scripts/` or `assets/` folders that the agent loads on demand.

OpenClaw's creation guide is stricter on one point: it asks for a one-line description under 160 characters, because the description appears to the agent and in slash-command discovery. It also says the name should stay aligned with the directory name.

### OpenClaw-only keys

OpenClaw adds keys on top of the spec. According to its skills page:

- `user-invocable` (default `true`) exposes the skill as a slash command.
- `disable-model-invocation` (default `false`) keeps the skill's instructions out of the agent's normal prompt. A user-invocable skill with this flag still appears in the `$` picker and inline slash suggestions.
- `command-dispatch: tool`, with `command-tool`, routes the slash command straight to a tool and bypasses the model.
- `homepage` is shown as "Website" in the macOS UI.
- `{baseDir}` in the body refers to the skill's own folder, for example `{baseDir}/scripts/run.sh`.

A `metadata.openclaw` block holds gating and install data. It is covered in the gating section below. The docs add that the pre-July 2026 `metadata.clawdbot` format is no longer read, and that OpenClaw does not rewrite the file: you rename the block to `metadata.openclaw` yourself.

## Where skills load from

OpenClaw checks several roots. The skills page lists them from highest to lowest precedence:

1. Workspace: `<workspace>/skills`
2. Project agent: `<workspace>/.agents/skills`
3. Personal agent: `~/.agents/skills` (default state only)
4. Managed or local: `<state-dir>/skills`
5. Workshop: `<state-dir>/agents/<agentId>/agent/workshop-skills`
6. Bundled and Custodian (Custodian is limited to the configured system agent)
7. Extra directories from `skills.load.extraDirs`, and plugin skills (lowest)

When two skills share a name, the highest source wins. A workspace or project skill overriding a bundled one is reported as a warning. Discovery finds `SKILL.md` up to 6 levels deep, so grouped folders work. The skill name comes from the `name` field and falls back to the directory name, so folders are for organization only.

One trap: the Codex CLI's `$CODEX_HOME/skills` folder is not a skill root. The docs say to inventory it with `openclaw migrate plan codex` and copy it with `openclaw migrate codex`. For other agents' layouts, compare [Codex Skills Explained: Locations and AGENTS.md Differences](/learn/codex-skills-explained) and [OpenCode Skills: Where They Live and How Agents Load Them](/learn/opencode-skills-explained).

## Create your first skill

These steps come from OpenClaw's creation guide, fetched 2026-11-26, and each command matches that page character for character. They were not run for this guide: the machine used reports Node v22.12.0 (`node -v`), while OpenClaw's install page lists Node 24.16.0+ on 24.x, or 26.1.0+. Nothing below is output from a local run.

1. Create the folder:

   ```bash
   mkdir -p ~/.openclaw/workspace/skills/hello-world
   ```

2. Write `~/.openclaw/workspace/skills/hello-world/SKILL.md`:

   ````markdown
   ---
   name: hello-world
   description: A simple skill that prints a greeting.
   ---

   # Hello World

   When the user asks for a greeting, use the `exec` tool to run:

   ```bash
   echo "Hello from your custom skill!"
   ```
   ````

3. Confirm it loaded:

   ```bash
   openclaw skills list
   ```

   The creation guide calls this step "Verify the skill loaded" and prints no sample output. The CLI reference also lists `openclaw skills list --eligible`, without describing the flag further.

4. Test it:

   ```bash
   openclaw agent --message "give me a greeting"
   ```

   You can also ask in chat, or invoke it directly with `/skill hello-world`.

OpenClaw watches `SKILL.md` files under skills roots by default. If the watcher is disabled, or you are continuing an existing session, the guide says to start a new session so the agent receives the refreshed list. The guide gives two options (its code comments are left out here): type `/new` in chat, which archives the current session and starts fresh, or restart the gateway from a shell:

```bash
openclaw gateway restart
```

The skills page adds that skills are snapshotted when a session starts. Refresh triggers include filesystem events when `skills.load.watch` is on (the default), a safety rescan every 30 minutes, and explicit actions such as installing, updating, uninstalling or editing a skill and changing configuration that affects skills. The same page says existing sessions pick up changed file-backed skills on their next agent turn.

## Gating: load a skill only when it can run

Add a `metadata.openclaw` block to make a skill conditional. This example is from the creation guide:

```markdown
---
name: gemini-search
description: Search using Gemini CLI.
metadata: { "openclaw": { "requires": { "bins": ["gemini"] }, "primaryEnv": "GEMINI_API_KEY" } }
---
```

The documented keys are `requires.bins` (all binaries on `PATH`), `requires.anyBins` (at least one), `requires.env`, `requires.config`, `os` (`darwin`, `linux` or `win32`, with `macos` accepted as an alias for `darwin`) and `always`. `always` includes the skill on a compatible OS even when the `requires.*` checks fail, but it does not override `os`. A skill with no `metadata.openclaw` block is always eligible unless explicitly disabled.

To see why a skill is missing, run `openclaw skills check`. The CLI reference says it separates three states: inventory (OpenClaw found the skill), readiness (its declared prerequisites are satisfied) and visibility (an eligible skill is exposed to the selected agent). Missing prerequisites are listed under "Missing requirements".

API keys go under `skills.entries.<name>` in `~/.openclaw/openclaw.json`. The docs say `env` and `apiKey` values are injected into the host process for that agent turn only, not into the sandbox.

## Install a skill from ClawHub, Git or a folder

ClawHub is, in its README's words, the public skill registry for OpenClaw. The OpenClaw skills page lists these commands, among others:

```bash
openclaw skills install @owner/<slug>
openclaw skills install git:owner/repo@ref
openclaw skills install ./path/to/skill --as my-tool
openclaw skills install @owner/<slug> --global
openclaw skills update --all
openclaw skills verify @owner/<slug>
```

By default `openclaw skills install` installs into the active workspace `skills/` directory, and `--global` installs into the shared `~/.openclaw/skills` directory. `openclaw skills update` tracks ClawHub installs only, so reinstall Git or local sources to refresh them. The CLI reference also lists `openclaw skills search [query...]` (with no query it browses the ClawHub Trending skills feed), `openclaw skills info <name>`, and `install --force`, which overwrites an existing workspace skill folder for the same slug.

`openclaw skills verify` prints ClawHub's `clawhub.skill.verify.v1` JSON envelope, which on servers that support full scanner reports includes those reports when ClawHub has retained them. The command exits non-zero when ClawHub marks verification as failed. Add `--card` to print the generated Skill Card Markdown instead of JSON. The CLI section of the ClawHub README, read on 2026-11-26, lists no `verify` command for the `clawhub` CLI, so use the `openclaw skills` form.

## How it compares with Claude Code skills

Both follow the Agent Skills format, so a basic `name` plus `description` skill is portable. The differences are in the extras:

| Topic | OpenClaw | Claude Code |
| --- | --- | --- |
| Personal and project paths | `~/.agents/skills` (default state only), `<workspace>/skills`, `<workspace>/.agents/skills` | `~/.claude/skills/<name>/SKILL.md`, `.claude/skills/<name>/SKILL.md` |
| Invocation control | `user-invocable`, `disable-model-invocation`, `command-dispatch` | `disable-model-invocation`, `user-invocable`, `allowed-tools`, `context: fork` |
| Gating | `metadata.openclaw.requires` for binaries, env and config | no binary, env or config gate in the frontmatter reference; `paths` limits activation by file glob |
| Description length | creation guide asks for one line, under 160 characters | combined `description` and `when_to_use` truncated at 1,536 characters in the skill listing |
| Reload | watcher (on by default), 30 minute safety rescan, new session | changes picked up within the current session, or `/reload-skills` |

Claude Code's documentation, read on 2026-11-26, says its skills follow the Agent Skills open standard and extend it, and that claude.ai skill uploads and the Skills API accept only the spec's six frontmatter fields. If you want one skill to work in both agents, keep to `name`, `description`, `license`, `compatibility`, `metadata` and `allowed-tools`. See [How to Read a Claude Skill: A SKILL.md Checklist](/learn/claude-skill-examples-walkthrough) for reading one critically.

## Safety: treat third-party skills as code

OpenClaw's skills page says to treat third-party skills as untrusted code, read them before enabling, and prefer sandboxed runs for untrusted inputs and risky tools. VirusTotal's blog post of 2026-02-02 reported that Code Insight had analyzed more than 3,016 OpenClaw skills and that hundreds showed malicious characteristics, with one ClawHub user linked to 314 skills identified as malicious. In VirusTotal's example, the `SKILL.md` told Windows users to download a ZIP file from an external GitHub account and run the executable inside it, while no antivirus engine flagged the skill file itself.

That post ends with VirusTotal offering to explore integrating its analysis into the OpenClaw publishing and review workflow, which was a proposal in February 2026. Read on 2026-11-26, OpenClaw's own skills page says ClawHub skill pages expose the latest security scan state before install, with detail pages for VirusTotal, ClawScan and static analysis. The same sources also say:

- The ClawHub README says its security analysis checks a skill's declared runtime requirements against actual skill behavior, and that medium review findings stay visible while the suspicious filter is reserved for high-impact or malicious concerns.
- `openclaw skills verify` reads the stored scan and does not start another scan. Its JSON can include full scanner reports when ClawHub has retained them.
- OpenClaw has a `security.installPolicy` setting that runs a trusted local policy command before skill installs continue, and blocks the install when the command cannot return a valid decision.
- Workspace, project-agent and extra-dir discovery only accepts skill roots whose resolved real path stays inside the configured root, unless `skills.load.allowSymlinkTargets` explicitly trusts a target root.

A practical routine before enabling any skill: read the whole `SKILL.md` and every script it references, look for download-and-run steps and obfuscated commands, run `openclaw skills verify @owner/<slug>`, install to one agent first, and use `skills.entries.<name>.enabled: false` to turn it off. [Check a Claude Skill From GitHub Before Installing It](/learn/check-a-claude-skill-from-github-before-installing) walks through the same read-first habit for any SKILL.md folder.

## What goes wrong and how to fix it

1. **The skill does not appear in `openclaw skills list`.** Causes: the folder is outside every root (for example `$CODEX_HOME/skills`), the `SKILL.md` has invalid frontmatter, or it is deeper than 6 levels. The docs say invalid files are skipped and reported. Fix: move it under `~/.openclaw/workspace/skills/`, check the frontmatter, and run `openclaw skills check`.
2. **It is listed but the agent never uses it.** Causes: gating is unmet, the agent's allowlist excludes it, or the description does not say when to use it. Fix: `openclaw skills check` shows inventory, readiness and visibility separately. Check `agents.defaults.skills` and any `agents.entries.<id>.skills` list. A non-empty per-agent list is the final set and does not merge with defaults, and `skills: []` exposes no skills for that agent.
3. **A same-name skill hides yours.** Your edit seems to do nothing. Fix: the highest source wins, so a workspace copy overrides a bundled one. Rename yours or remove the copy that wins.
4. **Edits are not picked up.** Fix: start a new session with `/new`, or run `openclaw gateway restart`. Starting or restarting the Gateway requests an immediate rescan even when `skills.load.watch` is `false`.
5. **Name and folder disagree.** OpenClaw falls back to the directory name when `name` is missing, but the Agent Skills spec requires them to match. Fix: rename the folder to match `name` and validate with the reference library: `skills-ref validate ./hello-world`.
6. **A required binary is missing in a sandbox.** The docs say `requires.bins` is checked on the host, and the binary must also exist in the container. Fix: add it through `agents.defaults.sandbox.docker.setupCommand` or a custom image.
7. **Uploaded archives are refused.** Installing a zip skill archive staged through the Gateway upload calls is off by default. Fix: set `skills.install.allowUploadedArchives: true` in `openclaw.json` only if you accept that path. Normal ClawHub installs do not need it.
8. **The prompt budget is exceeded.** When the skills block would exceed `skills.limits.maxSkillsPromptChars`, OpenClaw first keeps skill identities (name and location), then uses the remaining budget for shortened descriptions, then omits descriptions, per the docs. Fix: shorten descriptions and disable unused skills.

## What the catalogue shows

No skill in the Skill Almanac catalogue is specific to OpenClaw, and no install check in it ran on OpenClaw. The skills below cover the work around the format: writing a `SKILL.md`, scanning a third-party folder before installing and comparing skills. The rows were read from each skill's live page on 2026-11-26, and the [Platform Score](/methodology/platform-score) page explains the states.

| Skill | Platform Score and state | Efficacy verdict | Install check passed | Demo video |
| --- | --- | --- | --- | --- |
| [skill-authoring-and-evals](/skills/skill-almanac/skill-authoring-and-evals) | 62, rated | LIFT_UNCONFIRMED (measured, 2026-11-22) | claude-code 2.1.330, 2026-11-23 | yes |
| [skill-safety-audit](/skills/skill-almanac/skill-safety-audit) | 57, provisional | LIFT (single-run, 2026-11-21) | claude-code 2.1.330, 2026-11-23 | yes |
| [verified-skill-finder](/skills/skill-almanac/verified-skill-finder) | 83, rated | LIFT (measured, 2026-11-22) | claude-code 2.1.330, 2026-11-23 | yes |
| [skill-creator (Anthropic)](/skills/anthropic/skill-creator) | not scored | not measured | claude-code 2.1.330, 2026-11-23 | yes |

Read the verdicts as recorded, and note that every one comes from runs on Claude Code. skill-authoring-and-evals scored +14.3 points on 5 tasks but its 95% confidence interval (-16.7 to +45.3) includes zero, so it is LIFT_UNCONFIRMED, not a confirmed lift. skill-safety-audit's LIFT is a single run per configuration over 3 tasks, which its skill page says is not a measurement. verified-skill-finder's measured run shows +50.9 points with a confidence interval of +27.0 to +74.7. skill-creator has no with/without test in the catalogue, so it has no score. None of this shows that any of these skills helps on OpenClaw, and an install check on Claude Code says nothing about OpenClaw's loader.

## FAQ

### What is an OpenClaw skill?

It is a directory with a `SKILL.md` file that gives the OpenClaw agent instructions for a task. The file starts with YAML frontmatter (`name` and `description` at minimum) followed by Markdown. OpenClaw follows the Agent Skills spec and adds optional keys such as `user-invocable` and `metadata.openclaw`.

### Where do I put an OpenClaw skill?

For one agent's workspace, use `~/.openclaw/workspace/skills/<name>/SKILL.md`. The project-agent path is `<workspace>/.agents/skills`, the personal path is `~/.agents/skills`, and `openclaw skills install --global` puts ClawHub skills in `~/.openclaw/skills`. Higher entries in the load order win a name clash.

### How do I install a skill from ClawHub?

Run `openclaw skills install @owner/<slug>`, then `openclaw skills verify @owner/<slug>` and `openclaw skills list`. Read the skill first, because ClawHub hosts community code and VirusTotal reported malicious skills there in February 2026.

### Does a new skill need a restart?

Not always. The watcher is on by default, and existing sessions pick up changed file-backed skills on their next agent turn according to the skills page. If the watcher is off, or the skill is not seen, start a new session with `/new` or run `openclaw gateway restart`.

### Can I use a Claude Code skill in OpenClaw?

Often yes if it uses only the shared fields, since both follow the Agent Skills format. Copy the folder into an OpenClaw skill root and run `openclaw skills check`. Claude Code keys such as `context: fork` do not appear on OpenClaw's skills, creating-skills or CLI skills pages as read on 2026-11-26, so test the result.

### Can a plugin add skills?

Yes. A plugin lists `skills` directories in `openclaw.plugin.json`, and those skills load when the plugin is enabled, at the same low precedence as `skills.load.extraDirs`. An eligible skill does not grant tool access.

### How do I publish a skill to ClawHub?

The creation guide says to install the standalone ClawHub CLI and log in with `npm i -g clawhub` and `clawhub login`, then run `clawhub skill publish ./path/to/hello-world`, with optional `--version <version>` and `--owner <owner>` flags. Test locally with `openclaw agent --message "..."` first.

## Next steps

- Read [What are Claude skills? A plain-language definition](/learn/what-are-claude-skills) for the shared concept.
- Before installing anything, follow [Check a Claude Skill From GitHub Before Installing It](/learn/check-a-claude-skill-from-github-before-installing).
- See how other agents load skills in [Codex Skills Explained: Locations and AGENTS.md Differences](/learn/codex-skills-explained).
- Browse the [skill authoring topic](/topics/skill-authoring) for writing and testing your own.

## Related skills

- [skill-authoring-and-evals](https://skillalmanac.com/skills/skill-almanac/skill-authoring-and-evals.md): Platform Score 62/100
- [skill-safety-audit](https://skillalmanac.com/skills/skill-almanac/skill-safety-audit.md): Platform Score 57/100 (provisional)
- [verified-skill-finder](https://skillalmanac.com/skills/skill-almanac/verified-skill-finder.md): Platform Score 83/100

## Related guides

- [Check a Claude Skill From GitHub Before Installing It](https://skillalmanac.com/learn/check-a-claude-skill-from-github-before-installing.md)
- [Codex Skills Explained: Locations and AGENTS.md Differences](https://skillalmanac.com/learn/codex-skills-explained.md)
- [OpenCode Skills: Where They Live and How Agents Load Them](https://skillalmanac.com/learn/opencode-skills-explained.md)
- [How to Read a Claude Skill: A SKILL.md Checklist](https://skillalmanac.com/learn/claude-skill-examples-walkthrough.md)
- [What are Claude skills? Definition, SKILL.md format and where they work](https://skillalmanac.com/learn/what-are-claude-skills.md)
- [Claude skills vs MCP vs plugins: what each one is for](https://skillalmanac.com/learn/skills-vs-mcp-vs-plugins.md)

## Sources

- https://docs.openclaw.ai/tools/skills
- https://docs.openclaw.ai/tools/creating-skills
- https://docs.openclaw.ai/cli/skills
- https://docs.openclaw.ai/install
- https://docs.openclaw.ai/index.md
- https://agentskills.io/specification
- https://github.com/openclaw/clawhub
- https://blog.virustotal.com/2026/02/from-automation-to-infection-how.html
- https://code.claude.com/docs/en/skills

Platform Scores report our assessment under a published method. They are not a safety guarantee.
