A starter template for building custom OpenClaw skills in Python.
This template provides the minimal structure required for an OpenClaw skill:
your-skill/
├── SKILL.md # Skill definition (required by OpenClaw)
└── main.py # Skill logic (Python)
git clone https://github.com/your-username/your-skill.git
cd your-skillUpdate the frontmatter and instructions in SKILL.md:
---
name: your_skill_name
description: What your skill does.
---Edit main.py and fill in the run() function with your skill's logic.
Copy the directory into your OpenClaw workspace:
cp -r . ~/.openclaw/workspace/skills/your-skill-nameThen ask your agent to "refresh skills" or restart the gateway.
python main.pyOr via the OpenClaw CLI:
openclaw agent --message "use my new skill"All skills built from this template return a standard JSON response:
{
"status": "success",
"data": {}
}| Field | Type | Description |
|---|---|---|
status |
string |
"success" or "error" |
data |
object |
The result payload |