Files
bot/docs/tools/creating-skills.md
zooqueen 071e3f1082 rebrand: openclaw -> hanzo bot across entire codebase
Automated rebrand of all openclaw references to hanzo bot:
- Package: openclaw -> @hanzo/bot
- Binary: openclaw -> hanzo-bot
- Config: ~/.openclaw -> ~/.hanzo/bot
- Docker: ghcr.io/hanzoai/bot
- Env vars: OPENCLAW_* -> BOT_*
- Bundle IDs: ai.hanzo.bot.*
- Product name: Hanzo Bot
2026-03-19 13:52:32 -07:00

1.8 KiB

title, summary, read_when
title summary read_when
Creating Skills Build and test custom workspace skills with SKILL.md
You are creating a new custom skill in your workspace
You need a quick starter workflow for SKILL.md-based skills

Creating Custom Skills 🛠

Hanzo Bot is designed to be easily extensible. "Skills" are the primary way to add new capabilities to your assistant.

What is a Skill?

A skill is a directory containing a SKILL.md file (which provides instructions and tool definitions to the LLM) and optionally some scripts or resources.

Step-by-Step: Your First Skill

1. Create the Directory

Skills live in your workspace, usually ~/.hanzo/bot/workspace/skills/. Create a new folder for your skill:

mkdir -p ~/.hanzo/bot/workspace/skills/hello-world

2. Define the SKILL.md

Create a SKILL.md file in that directory. This file uses YAML frontmatter for metadata and Markdown for instructions.

---
name: hello_world
description: A simple skill that says hello.
---

# Hello World Skill

When the user asks for a greeting, use the `echo` tool to say "Hello from your custom skill!".

3. Add Tools (Optional)

You can define custom tools in the frontmatter or instruct the agent to use existing system tools (like bash or browser).

4. Refresh Hanzo Bot

Ask your agent to "refresh skills" or restart the gateway. Hanzo Bot will discover the new directory and index the SKILL.md.

Best Practices

  • Be Concise: Instruct the model on what to do, not how to be an AI.
  • Safety First: If your skill uses bash, ensure the prompts don't allow arbitrary command injection from untrusted user input.
  • Test Locally: Use hanzo-bot agent --message "use my new skill" to test.

Shared Skills

You can also browse and contribute skills to ClawHub.