Build custom OpenClaw skills

Utilizing AI skills is incredibly useful. Building your own skills is a superpower. When you create a custom skill, you're turning your expertise into something any AI agent can run – iterative, reliable, and shareable with the world.

 

The AgentSkills specifications indicate that it works on Claude Code , VS Code Copilot, Codex CLI, Cursor, etc. The skills you build are not locked to any particular platform. And you don't need to be a programmer to create a skill – the SKILL.md files are just structured Markdown.

This course will take you from 'never having built any skills' to 'having published on ClawHub' in eight lessons.

You'll build your first operational skill in Lesson 2, then gradually add power: parameters and variables for flexible input, API integration to connect with external services, a testing framework to ensure your skill actually works, and multi-step workflows for complex tasks.

Security is given a separate lesson because public skills need to be secure. You will learn about the 7 most common attack vectors and how to defend against each one. The final project will guide you through the entire publishing process.

What you will learn

  • Explaining the AgentSkills specification structure and the incremental disclosure model.
  • Create a working SKILL.md file with the appropriate YAML frontmatter and instruction blocks.
  • Implement parameterized skills using $ARGUMENTS and shell expansion syntax.
  • Design secure API integrations with credential isolation and error handling.
  • Use Promptfoo and Cisco Skill Scanner to check and verify skills.
  • Build multi-step workflows using subagents and task orchestration.
  • Apply this security checklist to prevent 7 common skill attack vectors.
  • Implement publishing processes for ClawHub and GitHub according to quality and safety standards.

 

After this course, you will be able to

  • Transform your expertise into reusable, shareable AI skills that work with Claude Code, Copilot, Cursor, etc.
  • Develop parameterized skills with variables, integrate APIs and multi-step workflows to solve real-world problems.
  • Protect your skills from the 7 most common attack vectors using a structured security checklist.
  • Publish your skills on ClawHub and GitHub, establishing your reputation in the growing AI skills ecosystem.
  • Add the 'AI Developer skill' to your professional profile – a differentiating factor as the AgentSkills ecosystem expands.

What you will build

OpenClaw skill has been published.

A fully functional, security-tested, custom skill published to ClawHub - complete with YAML header, parameterized input, error handling, and documentation.

Multi-step workflow skills

An advanced skill combining multiple operations with subagent orchestration, API integration, and conditional logic demonstrates your ability to build production-grade AI tools.

The ability to build OpenClaw skills

Demonstrate that you can create, test, secure, and publish custom AI agent skills using the AgentSkills specification.

Prerequisites

  • Completed the basic OpenClaw course (or has equivalent knowledge of OpenClaw)
  • Basic proficiency in text editors and file management.
  • Understanding API concepts (helpful but not required)

Participants

  • OpenClaw users have been using community skills and want to build their own skills.
  • Developers want to transform their workflows into reusable and shareable AI tools.
  • Professional prompt creators are willing to go beyond one-time prompts and create parameterized and testable skill packages.
  • Anyone who has built a custom GPT and wants a similar idea but portable across all major AI agents.

The structure of an AgentSkill

Understanding the AgentSkills specification - what the SKILL.md file is, how incremental disclosure works, and why this open standard is important beyond OpenClaw.

 

The file teaches the AI ​​agent new tricks.

What if you could teach your AI agent a new skill, just like how you write a memo?

That's exactly what a SKILL.md file is – a Markdown document instructing the AI ​​agent on how to perform a task it doesn't yet know how to do. No programming required. No compilation needed. No special tools required. Just a structured text file.

Simon Willison, a security researcher who has tracked the development of AI agents, calls the AgentSkills specification "incredibly compact." And he's right—the entire specification fits on a single page. Two required fields. That's it.

But that simplicity is deceptive. Behind those two fields is a system powerful enough to create everything from a simple email formatter to a multi-step research assistant.

Things you need to know

This is an intermediate course. You should have a solid understanding of the basics of OpenClaw. You don't need to know programming, but familiarity with the text editor and file structure will be helpful.

Each lesson builds upon the previous one. The skills you develop in the early lessons will become the foundation for more advanced techniques later on.

AgentSkills Standards

Before examining the format, let's understand the problem it solves.

Each AI agent platform has its own way of extending capabilities. Claude Code has its own format. VS Code Copilot has a different format. OpenClaw has yet another format. If you build a skill for one platform, it will be useless on other platforms.

By the end of 2025, Anthropic proposed a universal standard: AgentSkills. A single SKILL.md format that any compliant agent can read. Build once, use everywhere - in Claude Code, VS Code Copilot, Codex CLI, Cursor, OpenClaw, etc.

The design philosophy is radical simplicity. Barry Zhang and the Anthropic engineering team wrote: the specifications use a step-by-step disclosure method – starting simple, adding complexity only when necessary.

Quick Check : Why does the industry need a standardized skill format?

Answer : Each platform has its own proprietary format. A universal standard means building once and using that skill across Claude Code, VS Code, OpenClaw, Codex, etc.

3 levels of a skill

This is a step-by-step disclosure model that helps the entire system function:

Layer 1: Metadata (always loaded)

When an agent starts up, it only reads the names and descriptions of all available skills. This is very lightweight—perhaps only 100 characters per skill—so loading hundreds of skills doesn't slow anything down.

 

--- name: daily-standup-formatter description: > Định dạng ghi chú họp giao ban hàng ngày thành một mẫu nhất quán. Sử dụng khi người dùng yêu cầu định dạng ghi chú họp giao ban hoặc chuẩn bị cho cuộc họp nhóm hàng ngày. ---

It's a complete, valid skill, consisting of 2 fields, and it works well.

Level 2: Complete Instructions (loaded upon request)

When the system decides a skill suits your needs, it will read the entire contents of SKILL.md—the Markdown content below the introduction. This is where you place your detailed instructions:

--- name: daily-standup-formatter description: > Định dạng ghi chú họp giao ban hàng ngày thành một mẫu nhất quán. --- # Công cụ định dạng họp giao ban hàng ngày Định dạng ghi chú họp giao ban của người dùng bằng cấu trúc này: ## Hôm qua - Những việc đã hoàn thành ## Hôm nay - Những việc dự kiến ## Vấn đề cản trở - Bất kỳ trở ngại nào (hoặc "None" nếu rõ ràng) Giữ cho các gạch đầu dòng ngắn gọn (mỗi dòng một mục). Luôn hỏi về các phần còn thiếu.

Layer 3: Linked files (loaded as needed)

For complex skills, you can include supporting files in the skill folder:

daily-standup-formatter/ ├── SKILL.md # Hướng dẫn chính ├── scripts/ │ └── parse-jira.py # Script để lấy Jira ticket ├── references/ │ └── team-style-guide.md # Cách nhóm định dạng cuộc họp đứng └── assets/ └── template.md # Mẫu đầu ra

The agent only reads these files when needed—not at startup, not when the skill is first called, but when the instructions reference them.

Quick check : Your agent has 200 skills installed. How many skills are fully loaded into memory upon startup?

Answer : Nothing is fully loaded. The compiler only loads Class 1 – the name and description – for all 200 skills. The full instructions are only loaded for the skill currently in use.

Required fields (and their functions)

There are only two important fields in the YAML header:

name(Required, maximum 64 characters)

  • Only lowercase letters, numbers, and hyphens.
  • This is how agents identify the skill: daily-standup-formatter
  • If the skill can be called by the user, this will become a slash command:/daily-standup-formatter

description(Required, maximum 1024 characters) :

  • The most important part of your skill is the text.
  • This is the section the agent reads to decide if your skills are a good fit.
  • Write for AI, not for humans – clearly state when to use the skill.

The description is a brief introduction to your skill for the AI. A vague description means the agent won't know when to use your skill. An accurate description means it will be triggered precisely when needed.

Poor description : "A useful tool for formatting everything"

Good description : "Formats daily briefing notes using Yesterday/Today/Blockers templates. Use this when users require formatting for briefing notes, preparing daily meeting reports, or organizing their completed tasks."

Optional fields you need to know about

School Purpose When to use
license Skill license declaration When made public
compatibility Note regarding platform requirements (maximum 500 characters) When a skill requires specific features.
metadata Key-value pairs for custom data Used to track versions, author information, etc.
allowed-tools Limit the tools that this skill can use (experimental) Security sensitivity skills
disable-model-invocation Only the user can activate this skill. Skills with side effects such as/deploy
user-invocable Setting up falsefoundational knowledge and skills Skills that agents use silently.

 

MCP vs. Skill: What's the difference?

You may have heard of MCP (Model Context Protocol). So how are they related?

The MCP is like a pipeline system. It defines which tools exist – "there's a calendar tool, an email tool, a GitHub tool." It handles the connection layer.

Skills are like brains. They define how to use those tools effectively — "when a user requests a briefing summary, read their Jira tickets through the Jira MCP tool, format them into a template, and ask about the issues that are hindering you."

You can build skills without MCP, and MCP works without skills. But when combined, they are very powerful: MCP gives the user the ability to manipulate, while skills provide them with the knowledge of when and how to use them.

Key points to remember

  • AgentSkills is a cross-platform standard — build once, use in Claude Code, VS Code, Codex CLI, OpenClaw, and many others.
  • Only the name and description are required — everything else is optional.
  • The gradual disclosure process loads skill content in three layers: metadata → instructions → linked file
  • descriptionThis is the most important field — it tells the AI ​​when to use your skill.
  • Skills are the brain; MCP is the pipeline system — skills determine how to use the tools effectively.
  • Question 1:

    Which of these platforms support the AgentSkills standard?

    EXPLAIN:

    The AgentSkills standard is truly cross-platform. The skills you build work on Claude Code, VS Code Copilot (GitHub Copilot), OpenAI Codex CLI, Cursor, Goose, Amp, OpenCode, and OpenClaw. Build once, use everywhere.

  • Question 2:

    What does 'gradual disclosure' mean in the context of Agent Skills?

    EXPLAIN:

    Gradual disclosure means the agent initially only sees the name and description (loaded at startup). When the skill seems suitable, it reads the entire SKILL.md file. When scripts or references are needed, it loads them on demand. This makes the context window work efficiently.

  • Question 3:

    What are the only two REQUIRED fields in the introduction of SKILL.md?

    EXPLAIN:

    AgentSkills' specifications only require a 'name' (up to 64 characters) and a 'description' (up to 1024 characters). All other fields are optional. This deliberate minimalism reduces the barrier to entry when creating skills, while the specifications handle complexity through gradual revelation.

 

Training results

You have completed 0 questions.

-- / --

Related posts
Other Program articles
  • Your first AI node: Basic LLM Chain

    bạn sẽ xây dựng một ai email classifier - một quy trình làm việc đọc các email đến và tự động gắn nhãn chúng theo mục đích. không cần code lập trình. chỉ cần một prompt, một llm và các mẫu luồng dữ liệu mà bạn đã biết.
  • AI Agent: Tools, prompts, and the decision-making process.

    basic llm chain giống như việc bạn hỏi ai đó một câu hỏi và nhận được câu trả lời. ai agent giống như việc bạn thuê một trợ lý nghiên cứu - bạn mô tả nhiệm vụ, và họ sẽ tìm ra các bước.
  • Memory and context: Helping agents remember

    nếu bạn hỏi agent tôi vừa hỏi bạn điều gì? , nó sẽ không nhớ gì cả. mỗi tin nhắn đều bắt đầu từ đầu. Đó là khoảng trống mà bộ nhớ lấp đầy - và đó là sự khác biệt giữa một công cụ chỉ dùng một lần và một trợ lý thực sự.
  • RAG workflow: AI understands your data

    thay vì hy vọng llm biết câu trả lời, bạn cung cấp cho rag các tài liệu thực tế của mình và để nó tìm thông tin liên quan trước khi trả lời.
  • Building a complete AI assistant

    trong dự án tổng kết này, bạn sẽ xây dựng một trợ lý ai duy nhất kết hợp mọi kỹ thuật từ khóa học - và bạn sẽ kết nối nó với claude desktop thông qua mcp để các công cụ ai khác có thể sử dụng quy trình làm việc n8n của bạn.
  • A guide to using Kaggle for data science.

    bạn quan tâm tới khoa học dữ liệu? vậy thì hãy làm quen với kaggle - cộng đồng khoa học dữ liệu lớn nhất trên thế giới. dưới đây là hướng dẫn sử dụng kaggle cho người mới bắt đầu.
Category

System

Windows XP

Windows Server 2012

Windows 8

Windows 7

Windows 10

Wifi tips

Virus Removal - Spyware

Speed ​​up the computer

Server

Security solution

Mail Server

LAN - WAN

Ghost - Install Win

Fix computer error

Configure Router Switch

Computer wallpaper

Computer security

Mac OS X

Mac OS System software

Mac OS Security

Mac OS Office application

Mac OS Email Management

Mac OS Data - File

Mac hardware

Hardware

USB - Flash Drive

Speaker headset

Printer

PC hardware

Network equipment

Laptop hardware

Computer components

Advice Computer

Game

PC game

Online game

Mobile Game

Pokemon GO

information

Technology story

Technology comments

Quiz technology

New technology

British talent technology

Attack the network

Artificial intelligence

Technology

Smart watches

Raspberry Pi

Linux

Camera

Basic knowledge

Banking services

SEO tips

Science

Strange story

Space Science

Scientific invention

Science Story

Science photo

Science and technology

Medicine

Health Care

Fun science

Environment

Discover science

Discover nature

Archeology

Life

Travel Experience

Tips

Raise up child

Make up

Life skills

Home Care

Entertainment

DIY Handmade

Cuisine

Christmas

Application

Web Email

Website - Blog

Web browser

Support Download - Upload

Software conversion

Social Network

Simulator software

Online payment

Office information

Music Software

Map and Positioning

Installation - Uninstall

Graphic design

Free - Discount

Email reader

Edit video

Edit photo

Compress and Decompress

Chat, Text, Call

Archive - Share

Electric

Water heater

Washing machine

Television

Machine tool

Fridge

Fans

Air conditioning

Program

Unix and Linux

SQL Server

SQL

Python

Programming C

PHP

NodeJS

MongoDB

jQuery

JavaScript

HTTP

HTML

Git

Database

Data structure and algorithm

CSS and CSS3

C ++

C #

AngularJS

Mobile

Wallpapers and Ringtones

Tricks application

Take and process photos

Storage - Sync

Security and Virus Removal

Personalized

Online Social Network

Map

Manage and edit Video

Data

Chat - Call - Text

Browser and Add-on

Basic setup