> For the complete documentation index, see [llms.txt](https://www.openclawbook.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.openclawbook.xyz/en/ch06-skills-ecosystem/6.1-skills-concepts-and-clawhub.md). Agents can also search and read this documentation through its [MCP server](https://www.openclawbook.xyz/~gitbook/mcp).

# 6.1 Skills Concepts and ClawHub

> **Generated by**: Claude Opus 5 (claude-opus-5\[1m]) **Token usage**: Input \~198,000 tokens, Output \~9,000 tokens (this section) **Source baseline**: `v2026.3.9` (`v2026.3.8-170-g665f67726`)

***

## 6.1.1 What a Skill Is: A Hot-Pluggable Capability Module

A skill is a directory containing a `SKILL.md`. That's it.

````markdown
---
name: weather
description: "Get current weather and forecasts via wttr.in or Open-Meteo. Use when: ..."
metadata: { "openclaw": { "emoji": "🌤️", "requires": { "bins": ["curl"] } } }
---

# Weather

To get current conditions for a city:

```bash
curl "wttr.in/Berlin?format=j1"
````

...

```

**The crucial thing to understand: a skill adds no tools.**

It assumes `exec`, `browser`, and the rest already exist, and uses documentation to teach the model **how and when to use them**. The relationship in one line:

> **Plugins register what can be called (the code layer); skills teach how and when to use it (the prompt layer).**

That's why installing a skill doesn't change what your agent is capable of — only what it knows how to do.

### Why this design works

Two properties fall out of it:

**Writing a skill requires no code.** If you know how to do something with a CLI, you can write a skill by explaining it in Markdown.

**Skills don't need to be reviewed as executable code**… **but they do need to be read.** More on this in §6.1.4 — a skill's content goes straight into the model's prompt, which is the classic injection entry point.

## 6.1.2 Three Kinds by Origin

Skills load from three tiers, higher priority overriding lower on a name collision:

```

/skills highest — project-specific ↓ \~/.openclaw/skills shared across your agents ↓ bundled skills/ lowest — ships with OpenClaw (52 of them)

````

| Tier | Where it comes from | Use for |
|---|---|---|
| **Workspace** | Written by you in the project | Project-specific procedures |
| **Managed** | Installed via ClawHub, or written by you | Things you use everywhere |
| **Bundled** | Ships with OpenClaw | 1password, apple-notes, gh-issues, obsidian, spotify-player, tmux, weather… |

Plugins may also ship skills, participating in the same rules.

### Only skills that can run are loaded

A skill declares its requirements:

```json
"requires": {
  "bins": ["curl", "jq"],
  "env": ["WEATHER_API_KEY"],
  "os": ["darwin", "linux"]
}
````

**If the requirements aren't met, the skill never enters the prompt at all** (§29.5.3).

> That's more valuable than it sounds: **the model will never suggest an approach that can't run on your machine.** Without `gh` installed, it won't propose "I'll create the issue with the gh CLI" and then fail.

Check what's actually loaded:

```bash
openclaw skills status
```

## 6.1.3 How Skills Enter the Prompt

Fifty-two skills injected in full would cost hundreds of thousands of tokens. They don't.

**Only a one-line description per skill goes into the system prompt.** When the model decides a skill applies, it reads that `SKILL.md` with the `read` tool (§29.5.4).

```
Model sees:
  weather — Get current weather and forecasts via wttr.in or Open-Meteo. Use when: ...
  gh-issues — Manage GitHub issues via the gh CLI. Use when: ...
  ... (50 more one-liners)

Model picks one and reads its full SKILL.md.
```

The prompt discipline is strict: **read at most one skill up front, and only after selecting it.** Without that constraint the model reads three or four "to be safe" and spends the savings right back.

**Practical implication for you**: the `description` field is the most important line in your skill. It's the only thing the model sees when deciding. Write it as "what this does, and *when to use it*" — the "Use when:" convention in the bundled skills exists for exactly this.

## 6.1.4 ClawHub and the Trust Question

[ClawHub](https://clawhub.com) is the community skill registry.

```bash
clawhub search weather
clawhub install <skill-name>
clawhub update
clawhub sync
```

Installed skills land in your workspace or managed directory and load on the next gateway start.

### Read before you install

The documentation is direct about this:

> Third-party skills are **untrusted code**. Keys injected via `skills.entries.*.env` go into the **host process, not a sandbox**.

Three specific risks:

| Risk                    | Detail                                                                                                                                       |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| **Prompt injection**    | `SKILL.md` content goes directly into the model's prompt — the classic entry point                                                           |
| **Indirect execution**  | The commands it suggests are run by `exec`; with a permissive tool policy, the skill author is effectively suggesting commands to your shell |
| **Credential exposure** | API keys injected for a skill live in the host process environment, with no sandbox protection                                               |

> **There is no automated auditing for skills beyond reading them.** A `SKILL.md` isn't long. Read it before installing — that's currently the only line of defense.

Watch for anything that: fetches and executes remote content, requests credentials for services the skill shouldn't need, or contains instructions aimed at the model rather than at the task ("ignore previous instructions", "always...").

### Reducing exposure

```json5
{
  // Restrict which skills automated turns can see
  cron: { skillsAllowlist: ["weather", "gh-issues"] },
}
```

Cron and hook sessions can run with an allowlisted skills snapshot (§29.5.5) — worth doing for anything processing external input.

***

## Section Summary

1. **A skill is a directory with a `SKILL.md` and adds no tools** — plugins register what can be called (code layer), skills teach how and when to use it (prompt layer). Writing one requires no code.
2. **Three tiers with higher overriding lower**: workspace > managed (`~/.openclaw/skills`) > bundled (52 shipped).
3. **Skills whose `requires` aren't met never enter the prompt** — so **the model never suggests an approach that can't run on your machine**.
4. **Only a one-line description per skill enters the system prompt**; the model reads the full `SKILL.md` only after selecting one, and at most one up front. **Your `description` is the most important line you write** — say what it does *and when to use it*.
5. **Third-party skills are untrusted**: their content goes straight into the prompt (injection entry point), their suggested commands run through `exec`, and injected keys sit in the host process unsandboxed.
6. **There is no automated skill auditing — read the Markdown before installing.** Watch for remote code fetching, unnecessary credential requests, and instructions aimed at the model rather than the task.
7. **Restrict skills for automated turns** with an allowlist snapshot, especially for sessions processing external input.
