Basic Usage ✅ Beginner

Your First Skill: Build Your First Automation Task in 5 Minutes

Your OpenClaw can already chat, but its real power lies in Skills. Follow along and turn a manual task into a one-click automation.

📝 建立:2026年2月25日 ✅ 最後驗證:2026年2月25日
鴨編 卡住很正常——點段落旁的 😵 卡關 讓我們知道,或直接往下滾到問答區發問。 也可以用 👍 看懂 / 😢 看不懂 告訴我們哪裡寫得好、哪裡要改。

You’ve Reached the Final Step

The last article in the Blue Duck beginner series! This tutorial will have you building your first Skill automation task in 5 minutes.

By now, your OpenClaw can already have a conversation with you. But that’s just the beginning.

When you chat with AI directly, you have to describe the task from scratch every time. Skills let you write tasks as workflows that you can repeat with a single command.

🎯 Goal of this article: Build and run your first Skill in 5 minutes.


Direct Chat vs Skills

Let’s first clarify why this extra step is worth it:

Direct ChatUsing a Skill
Each time you use itDescribe the task from scratchTrigger with one command
Result consistencyMay vary each timeSame workflow every time
Can connect to tools❌ Chat only✅ Can search the web, read files, save to Drive
Best forOne-off questionsTasks you repeat daily/weekly

Think of it this way: Direct chat = verbally instructing a new employee every time. Skill = writing an SOP that the employee follows every time.

Duck Editor Duck Editor says: You wouldn’t explain “I want an egg crepe, no spice, add cheese, medium iced milk tea half sugar” from scratch every time at a breakfast shop — you’d just say “the usual.” A Skill is your “the usual.”


What Are We Building?

A “Daily News Summary” Skill:

  1. Search for the latest news on a specified topic
  2. Use AI to organize it into 3 key highlights
  3. Display the results

Once completed, you just say “run daily news summary” to get today’s news digest.


Step 1: Create the Skill File

A Skill is a YAML file placed in the skills/ folder of your workspace directory.

1.1 Create the Folder

mkdir -p ~/.openclaw/workspace/skills

1.2 Create the File

Open your preferred editor and create ~/.openclaw/workspace/skills/daily-news.yaml:

# Open with VS Code
code ~/.openclaw/workspace/skills/daily-news.yaml

# Or use nano (built-in terminal editor)
nano ~/.openclaw/workspace/skills/daily-news.yaml

1.3 Paste the Following Content

name: "Daily News Summary"
description: "Search for the latest news on a specified topic and organize into key highlights"

trigger:
  type: manual

inputs:
  - name: topic
    type: string
    description: "What topic do you want news about?"
    default: "AI Technology"

steps:
  - id: search
    action: web_search
    params:
      query: "{{topic}} latest news today"
      max_results: 5

  - id: summarize
    action: llm_generate
    params:
      prompt: |
        Here are the latest news search results about "{{topic}}":

        {{steps.search.output}}

        Please organize into 3 key highlights in this format:
        1. **Title**: One-sentence summary
        2. **Title**: One-sentence summary
        3. **Title**: One-sentence summary

        End with an "Overall Trend Observation."

output:
  result: "{{steps.summarize.output}}"

Duck Editor Don’t worry about typos. The most common YAML error is incorrect indentation. Make sure to use spaces (not tabs), with 2 spaces per indentation level.

Understanding This Skill

SectionDescription
name + descriptionThe Skill’s name and description
trigger: manualManually triggered (can be changed to scheduled later)
inputsParameters the user can provide
stepsExecution steps, run sequentially from top to bottom
steps[0]: web_searchStep 1: Search the web
steps[1]: llm_generateStep 2: Use AI to organize the search results
outputWhat gets returned at the end

Steps pass results to each other using {{steps.search.output}} — like passing a baton in a relay race.

Duck Editor In other words: The entire Skill is like a factory assembly line — the first station gathers raw materials (searching news), the second station processes and packages (AI organization), and the final product ships out (displaying the summary). You just flip the switch and the line runs itself.


Step 2: Run Your First Skill

Option A: Run via Command Line

openclaw skill run daily-news

It will ask you for a topic (default is “AI Technology”) — press Enter for the default, or type your preferred topic.

Wait 10-20 seconds and you’ll see the organized news summary!

Option B: Run via Telegram

Message your OpenClaw bot directly:

Run daily news summary

Or specify a topic:

Run daily news summary, topic: electric vehicles

Option C: Via Web Interface

Open http://localhost:18789 and type the same command in the chat box.


Step 3: Customize Your Skill

The power of Skills lies in their flexibility. Try modifying these:

Change the Prompt

Replace 3 key highlights with 5, or add “present in a table format.”

Change the Search Scope

Change max_results: 5 to 10 to search for more data.

Add a Scheduled Trigger

Change the trigger to run automatically every day at 9 AM:

trigger:
  type: schedule
  schedule: "0 9 * * *"  # Every day at 9 AM

Save Results to a File

Add one more step to the end of steps:

  - id: save
    action: file_write
    params:
      path: "~/Desktop/news-{{date}}.md"
      content: "{{steps.summarize.output}}"

🎉 Congratulations — You’ve Completed the Getting Started Path!

You’ve successfully:

  1. ✅ Learned what OpenClaw is
  2. ✅ Chosen and obtained an LLM API Key
  3. ✅ Installed OpenClaw
  4. ✅ Completed initial setup and heard AI’s first response
  5. Built and ran your first Skill

You’re no longer just an AI tool user — you’ve started automating your workflows.


What’s Next?

Dive Deeper into Skills

Understand the Core Architecture

Practical Workflows

Further Reading


這篇文章對你有幫助嗎?

💬 問答區

卡關了?直接在這裡問,其他讀者和作者都能幫忙解答。

載入中...