What is an OpenClaw skill, and where does `openclaw skills install @owner/<slug>` put the skill it fetches from ClawHub?
answer
- a folder, not a code package
- SKILL.md: frontmatter plus body
- active workspace by default
- --global for the shared directory
- update tracks ClawHub installs only
basics
~20 sAn OpenClaw skill is a folder holding a SKILL.md: YAML frontmatter with a name and description, then Markdown instructions that teach the agent a task. openclaw skills install @owner/<slug> copies it from ClawHub into the active workspace's skills folder; --global targets the shared directory.
solid answer
~50 sA skill is a directory with a `SKILL.md`: the frontmatter needs `name` and `description`, and the Markdown body tells the agent when and how to use tools it already has, such as `exec`. It loads no code into the Gateway process (that is what a plugin does), although its folder can carry scripts the agent runs through those tools. `openclaw skills install @owner/<slug>` downloads it from ClawHub, the public skills registry, into the active workspace's `skills/` directory; `--agent <id>` targets another agent's workspace, and `--global` writes to the shared managed directory (`~/.openclaw/skills` by default), visible to every local agent unless allowlists narrow it. The same command accepts `git:owner/repo@ref` or a local path with `--as <slug>`. `openclaw skills list` confirms it, the skills watcher picks it up on the next agent turn, and `openclaw skills update --all` refreshes ClawHub-tracked installs only.
go deeper
Recall the shape: a folder with SKILL.md, frontmatter name and description, then instructions. Know that openclaw skills install @owner/<slug> lands in the workspace skills folder unless you pass --global.
Explain the difference between workspace and --global installs, the Git and local sources with --as, and that update only follows ClawHub-tracked installs. Show how you confirm a skill loaded and how a session picks it up.
Show you know a skill carries no Gateway code yet still drives real tool calls, so the install location decides which agents it reaches. Expect to explain why a skill installed fine but the agent never uses it.
Frame installs as a decision about reach: workspace-only versus shared for every local agent, pinned versions versus floating updates, and who on the team may run the install command at all.
## What a skill is In OpenClaw, a **skill** is a directory that contains a `SKILL.md` file. The file has two parts: - **YAML frontmatter** with at least a `name` (lowercase letters, digits and hyphens) and a one-line `description` that the agent and the slash-command list both see. - A **Markdown body** with the instructions themselves: when the task applies, which tools to call, which commands to run, what to check afterwards. The body can point at files in the same folder through `{baseDir}`, for example a helper script at `{baseDir}/scripts/run.sh`. When a session starts, OpenClaw compiles the eligible skills into a compact block in the system prompt (name, description and location), and the agent is told to read the full `SKILL.md` when a request matches. A user can also call one directly: every user-invocable skill gets a slash command, and `/skill <name> [input]` always works as the generic entry point. Every eligible skill has a small, fixed cost in each prompt: roughly 97 characters (about 24 tokens) plus the length of its name, description and location. That is why the description should stay one short line, and why installing dozens of skills "just in case" is not free. When the block would exceed its budget, OpenClaw drops descriptions before names. ## What a skill is not A skill adds **no code to the Gateway process**. It is guidance that the agent carries out with the tools it already has; if a skill says "run this script", the script runs only when the agent calls a tool such as `exec`, under whatever sandbox, tool policy and approvals that agent has. A **plugin** is the other kind of extension: a code package loaded into the Gateway that can add channels, model providers or tools. An external **MCP server** is a third, separate route. Knowing which of the three you are installing tells you what it can touch. ## Installing from ClawHub **ClawHub** is the public skills registry. The `openclaw skills` command family installs from it and from a few other sources: | Source | Command | Note | |---|---|---| | ClawHub | `openclaw skills install @owner/<slug>` | add `--version <version>` to pin | | skills.sh listing, via ClawHub | `openclaw skills install skills-sh:owner/repo/slug` | shown as not scanned by ClawHub | | Git repository | `openclaw skills install git:owner/repo@ref` | `SKILL.md` must sit at the repo root | | Local directory | `openclaw skills install ./path/to/skill --as my-tool` | `--as` overrides the slug | Skill installs do not accept npm package specs or zip archive paths. The owner-qualified `@owner/<slug>` form names the publisher, which avoids picking the wrong skill when two publishers use the same slug. ## Where it lands, and who sees it 1. With no flag, the skill is written into the **active workspace's `skills/` directory**. The workspace is resolved from `--agent <id>`, then from the current directory if it sits inside a configured agent workspace, then the default agent. 2. With `--global`, it goes into the **shared managed directory** (`~/.openclaw/skills` unless the state directory is moved), visible to every local agent unless an agent's skill allowlist narrows it. `--global` cannot be combined with `--agent`. 3. The folder name is only organisation: the skill's name and its slash command come from the frontmatter `name`. ## Checking, invoking, updating, removing - `openclaw skills list` shows what is installed; `--eligible` limits it to skills whose requirements are met, and `openclaw skills check` explains what is missing. - The skills watcher is on by default and notices a new or changed `SKILL.md`; the current session picks it up on its **next agent turn**. If watching is disabled, start a fresh session with `/new` or restart the Gateway. - `openclaw skills update --all` (or `update @owner/<slug>`) refreshes **ClawHub-tracked** installs only; Git and local installs are refreshed by installing them again. - Removal goes through the standalone ClawHub CLI, `clawhub uninstall @owner/<slug>`, run against the workspace or, for a `--global` install, the state directory via `--workdir`. ## Common mistakes - Expecting the install to fetch the binaries a skill needs: the CLI places the folder, and a skill that declares requirements stays ineligible until they are met. - Assuming `--global` is the default, then wondering why one agent's workspace skill does not show up for another agent. - Treating a downloaded skill as harmless text: its instructions drive real tool calls, so read it before enabling it.
- How do you run an installed OpenClaw skill on demand instead of waiting for the agent to pick it?Every skill with `user-invocable` left at its default `true` is exposed as a slash command derived from its frontmatter `name`, such as `/hello-world`, and `/skill <name> [input]` always works as the generic form. In the Control UI composer, typing `$` searches the agent's skills and inserts a reference like `$release_notes` into a longer prompt.
- Why does a skill installed into one agent's workspace not appear for a second OpenClaw agent?Each agent has its own workspace, and `<workspace>/skills` is visible only to that agent. Install it again with `--agent <id>` for the second agent, or use `--global` to put it in the shared managed directory that every local agent using that state directory loads, subject to each agent's skill allowlist.
- A skill is a code package the Gateway loads and runs, just like a plugin.
- openclaw skills install puts skills in ~/.openclaw/skills unless you say otherwise.
- Installing a skill from ClawHub also installs every binary it depends on.
- openclaw skills update --all refreshes skills installed from Git or a local folder.
- The folder a skill sits in decides its name and slash command.