What Is an OpenClaw Skill? Format, Install, Gating, Safety
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.
Updated · Markdown version
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
skillsdirectories inopenclaw.plugin.json, and those plugin skills merge at the same low precedence asskills.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 for the Claude side and Claude skills vs MCP vs plugins: what each one is for 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(defaulttrue) exposes the skill as a slash command.disable-model-invocation(defaultfalse) 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, withcommand-tool, routes the slash command straight to a tool and bypasses the model.homepageis 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:
- Workspace:
<workspace>/skills - Project agent:
<workspace>/.agents/skills - Personal agent:
~/.agents/skills(default state only) - Managed or local:
<state-dir>/skills - Workshop:
<state-dir>/agents/<agentId>/agent/workshop-skills - Bundled and Custodian (Custodian is limited to the configured system agent)
- 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 and OpenCode Skills: Where They Live and How Agents Load Them.
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.
- Create the folder:
mkdir -p ~/.openclaw/workspace/skills/hello-world- Write
~/.openclaw/workspace/skills/hello-world/SKILL.md:
---
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!"
```- Confirm it loaded:
openclaw skills listThe 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.
- Test it:
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:
openclaw gateway restartThe 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:
---
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:
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 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 verifyreads 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.installPolicysetting 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.allowSymlinkTargetsexplicitly 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 walks through the same read-first habit for any SKILL.md folder.
What goes wrong and how to fix it
- The skill does not appear in `openclaw skills list`. Causes: the folder is outside every root (for example
$CODEX_HOME/skills), theSKILL.mdhas 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 runopenclaw skills check. - 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 checkshows inventory, readiness and visibility separately. Checkagents.defaults.skillsand anyagents.entries.<id>.skillslist. A non-empty per-agent list is the final set and does not merge with defaults, andskills: []exposes no skills for that agent. - 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.
- Edits are not picked up. Fix: start a new session with
/new, or runopenclaw gateway restart. Starting or restarting the Gateway requests an immediate rescan even whenskills.load.watchisfalse. - Name and folder disagree. OpenClaw falls back to the directory name when
nameis missing, but the Agent Skills spec requires them to match. Fix: rename the folder to matchnameand validate with the reference library:skills-ref validate ./hello-world. - A required binary is missing in a sandbox. The docs say
requires.binsis checked on the host, and the binary must also exist in the container. Fix: add it throughagents.defaults.sandbox.docker.setupCommandor a custom image. - Uploaded archives are refused. Installing a zip skill archive staged through the Gateway upload calls is off by default. Fix: set
skills.install.allowUploadedArchives: trueinopenclaw.jsononly if you accept that path. Normal ClawHub installs do not need it. - 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 page explains the states.
| Skill | Platform Score and state | Efficacy verdict | Install check passed | Demo video |
|---|---|---|---|---|
| skill-authoring-and-evals | 62, rated | LIFT_UNCONFIRMED (measured, 2026-11-22) | claude-code 2.1.330, 2026-11-23 | yes |
| skill-safety-audit | 57, provisional | LIFT (single-run, 2026-11-21) | claude-code 2.1.330, 2026-11-23 | yes |
| verified-skill-finder | 83, rated | LIFT (measured, 2026-11-22) | claude-code 2.1.330, 2026-11-23 | yes |
| skill-creator (Anthropic) | 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 for the shared concept.
- Before installing anything, follow Check a Claude Skill From GitHub Before Installing It.
- See how other agents load skills in Codex Skills Explained: Locations and AGENTS.md Differences.
- Browse the skill authoring topic for writing and testing your own.
Related skills in this catalog
Platform Score is our assessment under a published method. It is not a safety guarantee.
Related guides
- Check a Claude Skill From GitHub Before Installing It
- Codex Skills Explained: Locations and AGENTS.md Differences
- OpenCode Skills: Where They Live and How Agents Load Them
- How to Read a Claude Skill: A SKILL.md Checklist
- What are Claude skills? Definition, SKILL.md format and where they work
- Claude skills vs MCP vs plugins: what each one is for
Sources
- https://docs.openclaw.ai/tools/skills (accessed 2026-11-27)
- https://docs.openclaw.ai/tools/creating-skills (accessed 2026-11-27)
- https://docs.openclaw.ai/cli/skills (accessed 2026-11-27)
- https://docs.openclaw.ai/install (accessed 2026-11-27)
- https://docs.openclaw.ai/index.md (accessed 2026-11-27)
- https://agentskills.io/specification (accessed 2026-11-27)
- https://github.com/openclaw/clawhub (accessed 2026-11-27)
- https://blog.virustotal.com/2026/02/from-automation-to-infection-how.html (accessed 2026-11-27)
- https://code.claude.com/docs/en/skills (accessed 2026-11-27)