Pick the right task

The fastest way to waste an afternoon is to skill-ify something you only do once a month. A good first skill is a task that's boring, frequent, and follows the same shape every time. My first one was a daily log check: pull the last 24 hours of errors from a machine, summarize them, and send a message. Nothing clever, just something I was tired of doing by hand.

If you come from an automation background, you already know the rule: don't automate the edge cases first. Get the happy path working, then add the weird stuff.

Where skills live

OpenClaw keeps your workspace in ~/.openclaw/workspace/ and installed skills under ~/.openclaw/skills/. A skill bundles a set of instructions, scripts, and config into one reusable unit. The exact fields change between releases, so check the docs for the current schema rather than copying mine blindly.

What matters more than the file format is how you think about the skill. A good one has three parts:

A working example

Here's the shape of that daily log-check skill, minus the boilerplate that changes per version. The useful parts are the trigger and the output, not the scaffolding around them.

name: daily-log-check
description: Summarize the last 24h of errors from the target machine

trigger:
  schedule: "0 7 * * *"   # every morning at 07:00

steps:
  - run: ssh target 'journalctl --since "24 hours ago" -p err'
  - summarize: keep only unique errors, group by service
  - send: telegram message with the summary

The point isn't the exact syntax. It's that you chain three boring things, run, summarize, send, and suddenly you have a 7am report without touching a keyboard.

For something closer to hardware or monitoring, the same pattern works: read a Modbus register or a log file, compare it against a threshold, and only message you when something's actually wrong. Alerting on silence is where these agents genuinely earn their keep.

Mistakes I made

Once the first one runs on schedule without you thinking about it, you'll find ten more things to hand it. That's the whole game.