docs(skills): show flat and two-layer capability declarations

This commit is contained in:
Vincent Koc
2026-02-27 09:17:10 -08:00
parent 68e275fd47
commit 94610dbc6f

View File

@@ -47,7 +47,27 @@ metadata: { "openclaw": { "capabilities": ["shell", "filesystem"] } }
---
```
Available capabilities: `shell`, `filesystem`, `network`, `browser`, `sessions`.
Available capabilities: `shell`, `filesystem`, `network`, `browser`, `sessions`, `messaging`, `scheduling`.
You can use either a flat list or a 2-layer object shape under the same key:
```markdown
---
name: deploy_helper
description: Automate deployment workflows.
metadata:
{
"openclaw":
{
"capabilities":
{
"shell": { "mode": "restricted", "allow": ["git", "gh"] },
"network": { "web_search": true, "web_fetch": true },
},
},
}
---
```
Skills without capabilities are treated as read-only (model-only instructions). Community skills published to ClawHub **must** declare capabilities matching their tool usage — undeclared capabilities are blocked at runtime.