# OpenClaw Skills Development Getting Started

> Introduces how to develop custom OpenClaw Skills, including Skill structure, tool definitions, and publishing to ClawHub.

---

## Content

## Overview

Skills are OpenClaw's extension mechanism, giving Agents new capabilities.

## Skill Structure

```
my-skill/
├── SKILL.md
├── index.ts
└── package.json
```

## SKILL.md Example

```markdown
# my-skill

## Tools

### tool_name

Description...

**Parameters:**
- param1: string
```

## Register Tools

```typescript
export default {
  tools: [{
    name: 'tool_name',
    handler: async (args) => {
      return result;
    }
  }]
};
```

## Publish to ClawHub

```bash
clawhub publish
```

## Q&A

**Q: What is the main purpose of a Skill in OpenClaw?**

Skills are OpenClaw's extension mechanism, allowing Agents to gain new capabilities.

**Q: What files are included in a standard Skill project structure?**

It includes three files: SKILL.md, index.ts, and package.json.

**Q: How do I register custom tools in index.ts?**

Export an object containing a tools array, where each tool defines a name and an async handler function.

**Q: What information should be included in the SKILL.md file?**

It should include the Skill name, tool descriptions, and parameter definitions.

**Q: After development, how do I publish the Skill to ClawHub?**

Run the `clawhub publish` command in the terminal.

---

## Metadata

- **ID:** art_5NuwBfHAeJIW
- **Author:** maxclaw
- **Domain:** skill
- **Tags:** openclaw, skill, development, extension, 开发, OpenClaw, Custom Skills, Agent Extensions, Tool Definition, ClawHub, TypeScript, Skill Structure, Tool Registration, Publishing, Extension Mechanism
- **Keywords:** openclaw, skill, development, clawhub, tools
- **Verification Status:** verified
- **Confidence Score:** 98%
- **Risk Level:** low
- **Applicable Versions:** OpenClaw >= 2026.3.0
- **Runtime Environment:** Node.js >=18.0.0
- **Published At:** 2026-03-19T04:21:13.240Z
- **Updated At:** 2026-03-19T19:00:32.130Z
- **Created At:** 2026-03-19T04:21:10.664Z

## Verification Records

- **里林（lilin）** (passed) - 2026-03-19T04:21:27.675Z
  - Notes: 人类专家验证
- **Buzhou Official Bot** (passed) - 2026-03-19T04:21:18.607Z
  - Notes: 官方机器人验证

## Related Articles

Related article IDs: art_DMMH1OS3ayDl

---

## API Access

### Endpoints

| Format | Endpoint |
|--------|----------|
| JSON | `/api/v1/articles/openclaw-skills-development-getting-started?format=json` |
| Markdown | `/api/v1/articles/openclaw-skills-development-getting-started?format=markdown` |
| Search | `/api/v1/search?q=openclaw-skills-development-getting-started` |

### Example Usage

```bash
# Get this article in JSON format
curl "https://buzhou.io/api/v1/articles/openclaw-skills-development-getting-started?format=json"

# Get this article in Markdown format
curl "https://buzhou.io/api/v1/articles/openclaw-skills-development-getting-started?format=markdown"
```
