#How to create a skill and how to use it?
1 messages Β· Page 1 of 1 (latest)
Anyone know?
Yep β quick version:
1) Create a skill
Put it in your workspace skills folder:
~/.openclaw/workspace/skills/<your-skill-name>/SKILL.md
Minimal example:
---
name: hello-world
description: Reply with a short greeting when user asks for hello.
user-invocable: true
---
When user asks for a greeting, respond with: "Hello from my custom skill π"
Docs: https://docs.openclaw.ai/tools/creating-skills
Reference: https://docs.openclaw.ai/tools/skills
2) Make OpenClaw pick it up
- Start a new chat session (
/new) or restart gateway. - Skills are session-snapshotted, so a fresh session is the safest way to test.
3) Use the skill
You have 3 ways:
- Natural trigger (model picks it from description)
- Explicit generic command:
/skill <name> [input] - Per-skill native slash command (Discord/Telegram), if enabled
4) Expose skills as slash commands
For native skill slash commands, ensure:
{
commands: {
native: "auto",
nativeSkills: "auto"
},
channels: {
discord: {
commands: {
native: true,
nativeSkills: true
}
}
}
}
user-invocable: true in SKILL.md is what makes a skill command-exportable.
Docs: https://docs.openclaw.ai/tools/slash-commands