Skip to main content
New: the Agentic AI Academy, 5 courses on running AI agents in production.Start free →
Back to Blog

Building Custom OpenClaw Skills

Learn how to create, package, and share custom skills for OpenClaw agents. From simple automations to complex integrations.

Luca BertonFebruary 22, 20262 min read

What Are Skills?

Skills are modular capability packages for OpenClaw agents. Each skill contains:

  • SKILL.md — instructions the agent follows
  • Scripts — helper scripts and tools
  • References — documentation and examples
  • Assets — any supporting files

Your First Skill

Let's create a simple skill that checks website uptime.

Directory Structure

skills/
  uptime-checker/
    SKILL.md
    check.sh

SKILL.md

markdown
# Uptime Checker

Check if a website is responding.

## Usage

When the user asks to check a website's status, use the `check.sh`
script in this skill's directory.

## Commands

- `bash check.sh <url>` — Returns HTTP status code and response time

check.sh

bash
#!/bin/bash
URL="${1:?Usage: check.sh <url>}"
STATUS=$(curl -s -o /dev/null -w "%{http_code}" --max-time 10 "$URL")
TIME=$(curl -s -o /dev/null -w "%{time_total}" --max-time 10 "$URL")
echo "Status: $STATUS | Response time: ${TIME}s | URL: $URL"
Related Course

Learn this topic with guided video lessons

Go beyond reading — follow expert video guidance and try the examples in your own environment.

Browse Courses →

Skill Best Practices

Keep Instructions Clear

Your SKILL.md is what the agent reads. Be explicit about: - When to use the skill - What commands are available - Expected inputs and outputs - Error handling

Use Relative Paths

Skills reference files relative to the skill directory. The agent resolves these automatically.

Make Skills Self-Contained

A good skill works without external dependencies. If it needs something, document it in the prerequisites section.

Advanced: Skills with Configuration

Some skills need per-user configuration. Store this in TOOLS.md:

markdown
### Uptime Checker
- Monitored sites: copypastelearn.com, lucaberton.com
- Check interval: 30 minutes
- Alert via: Discord #alerts channel
Stay Updated

Get weekly IT automation tips

Docker, Ansible, Terraform, MLOps — curated insights delivered to your inbox. No spam.

Subscribe Free →

Sharing Skills

Package your skill and share it on ClawhHub. The community benefits from reusable, well-documented skills.

Built-in Skills

OpenClaw comes with several skills out of the box: - Weather — forecasts via wttr.in or Open-Meteo - Discord — channel management and messaging - Health Check — system security auditing - Skill Creator — meta-skill for building new skills

---

Ready to go deeper? Check out our hands-on course: OpenClaw Agent — practical exercises you can follow along on your own machine.

Further reading

To go deeper, the Ansible intelligent assistant and MCP server expands on these patterns in production.

Ready to learn by doing?

Stop reading tutorials — start building. Expert video courses with practical examples you can follow at your own pace.

Share this article
LB
Luca Berton

Docker Captain, IT automation expert, Red Hat Summit & KubeCon speaker. Building hands-on education for DevOps engineers at CopyPasteLearn.

Related Articles

Explore topics

Browse more articles on the topics covered here.