You run one OpenClaw Gateway for a small team; what rule do you set for installing third-party ClawHub skills, and which OpenClaw controls enforce it?
answer
- untrusted until read
- verify, then pin a version
- a local policy command, fail-closed
- install scope and allowlists
- instructions act with the agent's tools
basics
~20 sTreat every third-party skill as untrusted code: read it, run openclaw skills verify, pin a version and install it only where needed. Enforce that with security.installPolicy, which can allow, warn or block each install, plus agent allowlists, sandboxing and tool policy.
solid answer
~50 sA skill is instructions the agent carries out with its own tools, so a hostile one acts with whatever `exec`, file and network access that agent has, and sandboxing is off by default. My rule is that nothing third-party is installed unread. Review the `SKILL.md`, every script, the `requires` it declares and any download installer; check `openclaw skills verify @owner/<slug>` and ClawHub's scan state; install with `--version` into the one workspace that needs it rather than `--global`; never use `--force-install` to skip a pending scan. Enforce it with `security.installPolicy`, a trusted local command that returns `allow`, `warn` or `block` for skill and plugin installs and updates and fails closed. Then limit reach with narrow agent allowlists, plus a sandbox and tool policy for agents handling outside input. The tradeoff is review cost on every update against running instructions nobody has read.
go deeper
Know that third-party skills should be read before you install them, because the agent follows their instructions with its own tools.
Describe the review: SKILL.md body, scripts, requires and installers, owner-qualified refs, openclaw skills verify and pinning with --version instead of floating installs.
Explain enforcement: security.installPolicy with allow, warn and block failing closed, workspace versus --global scope, allowlists as visibility only, and sandbox and tool policy as the real limits.
Own the posture choice, open, review-and-pin or policy-enforced, and its cost in review time and team friction, within OpenClaw's one-trust-boundary model rather than as tenant isolation.
## Why skills need a rule at all An OpenClaw skill looks like documentation, and that is the trap. Its `SKILL.md` tells the agent what to run, which files to read and where to send results, and the agent does it with **its own tools**. A malicious or careless skill therefore acts with the agent's full reach: host `exec` without approval prompts in the trusted single-operator default, and no sandbox unless you turned one on. OpenClaw's documentation says it plainly: treat third-party skills as **untrusted code** and read them before enabling. The setting matters too. One Gateway is **one trust boundary**: a single operator or a team that trusts each other. A skill installed into a shared root reaches every agent that loads it. Anyone who can write to `~/.openclaw` is an operator, and OpenClaw's guidance is to restrict who can modify skill folders in the same way. The rule a lead sets is about who may add instructions to that boundary, and how they are checked. ## The options a lead chooses between | Posture | How it works | Cost | Risk | |---|---|---|---| | Open | any operator runs `openclaw skills install` freely | none | unread instructions reach agents | | Review and pin | a reviewer reads each skill, installs a pinned `--version` into one workspace | review time per install and update | relies on people following the process | | Policy-enforced | `security.installPolicy` runs a local command on every install and update | building and maintaining the policy | the policy is only as good as its checks | Most small teams land on **review and pin, backed by an install policy** that blocks what the review would reject anyway. ## The review checklist 1. **Read the `SKILL.md` body.** What does it tell the agent to run, fetch or send? Instructions that pipe remote content into a shell, read credential files or post data to unfamiliar hosts are the red lines. 2. **Read every supporting file**, especially anything under `scripts/` that the body runs through `{baseDir}`. 3. **Check `metadata.openclaw`.** Which binaries and environment variables does it want, and does a download installer pin a `sha256`? 4. **Check provenance.** Prefer owner-qualified `@owner/<slug>` refs, run `openclaw skills verify @owner/<slug>` (it reads ClawHub's stored verdict and exits non-zero on a failed one), and look at the scan state on the ClawHub page. A `skills-sh:` install is shown as not scanned by ClawHub. 5. **Pin it.** Install with `--version`, and never use `--force-install`, which installs a pending GitHub-backed skill before ClawHub's scan completes. ## Enforcement layers - **`security.installPolicy`**: a trusted local executable receives the staged source path and metadata and returns `allow`, `warn` or `block`. It covers ClawHub, Git, local, uploaded and dependency-installer paths for skills, plus plugin installs; leaving `targets` unset covers every target. A timeout, crash, invalid JSON or missing reason **fails closed**. A `warn` needs a person to type the skill name, or `--acknowledge-install-policy-warning` after review, and `--force` approves neither. `openclaw doctor` validates the policy configuration statically, and `openclaw doctor --deep` runs a synthetic install probe against the command, so a broken policy shows up before it blocks a real install. - **Install scope**: the default workspace install reaches one agent; `--global` reaches every local agent. - **Agent allowlists**: `agents.entries.<id>.skills` keeps a skill away from agents that do not need it, though it is a visibility filter, not a shell boundary. - **Sandbox, tool policy and exec approvals**: these decide what any skill can actually do. Instructions shape behaviour; these layers enforce limits. - **A kill switch**: `skills.entries.<name>.enabled: false` disables a skill without deleting it. ## Living with updates The rule has to cover updates, not only first installs. `openclaw skills update` follows ClawHub-tracked installs, preserves local edits unless you pass `--force`, and goes through the install policy again. Community releases that ClawHub marks malicious or blocked are refused. `openclaw skills update` never touches Git or local installs, so they stay pinned until someone reinstalls them, which is safer and also easy to forget. ## The tradeoff There is no setting that makes a stranger's skill safe. A strict rule costs review time on every install and update and slows people down; a loose one runs instructions nobody has read with the agent's tools. The defensible middle is to review and pin, enforce with an install policy, keep installs per workspace, and make the agents that handle outside input the most restricted ones.
- Your OpenClaw install policy returns `warn` for a skill during an unattended update script. What happens, and how do you let it through after review?A `warn` stops the install before commit. Interactively, OpenClaw asks the operator to type the skill name to continue; in a non-interactive direct CLI run you pass `--acknowledge-install-policy-warning` after reviewing it, and the policy is evaluated again before continuing. `--force` does not approve a warning, and `block` or a policy failure stays terminal.
- Does `openclaw skills verify` rescan a skill you are about to trust?No. It asks ClawHub for the skill's stored trust envelope, including scanner reports where ClawHub kept them, and exits non-zero when verification failed. It does not start a new scan, and for an installed skill it checks the version and registry recorded at install time. Treat it as one input to review, not a substitute for reading the skill.
- A skill is only Markdown, so installing a stranger's skill carries no risk.
- If ClawHub lists a skill, OpenClaw has already proven it safe.
- --force pushes an install through a security.installPolicy warning or block.
- If the install policy command crashes or times out, the install goes ahead.
- Agent skill allowlists isolate team members from each other's skills like tenants.
- openclaw skills verify triggers a fresh security scan of the skill.