A meta-skill for creating and optimizing OpenClaw skills following official best practices. Guides you through a structured workflow from intent to publish-ready skill.
Determine the mode:
| Mode | Trigger |
|---|---|
| ------ | --------- |
| Create | User wants a new skill |
| Optimize | User wants to improve or review an existing skill |
If creating: Ask the user for 2-3 concrete usage examples (what would they say to trigger this skill, what should happen). These examples drive the description and workflow design.
If optimizing: Read the existing SKILL.md and note its current structure before proceeding.
Create the skill directory under ~/workspace/skills/:
<skill-name>/
├── SKILL.md (required — agent instructions)
├── README.md (recommended for published skills)
├── scripts/ (if deterministic code is needed)
└── references/ (if large docs needed on-demand)
Naming rules:
workout-track, skill-builder)name field in frontmatterThe SKILL.md is the core file — it contains the agent's instructions for executing the skill.
Three fields:
---
name: <skill-name>
description: <what it does>. Use when <trigger context>.
metadata: {"openclaw":{"requires":{"bins":["list","of","binaries"]}}}
---
name: Must match folder name exactlydescription: Primary trigger mechanism. Include "Use when..." to help the agent decide when to activate. Be specific to avoid overlap with other skillsmetadata: Declare runtime dependencies. Load {baseDir}/references/frontmatter-spec.md for the full reference if neededWrite the body following these rules:
## Workflow: Numbered H3 steps (### 1. Step name) — imperative formexec tool JSON format:```json
{
"tool": "exec",
"command": "
}
```
## Examples: Table with realistic input/output pairs (minimum 3 rows)references/{baseDir} for paths within the skill directory (e.g., {baseDir}/scripts/run.sh).env, or openclaw.json via jqUser-facing documentation with these sections:
# <Skill Name>
<What it does — 1-2 lines>
## Requirements
- <binary or service 1>
- <binary or service 2>
## Setup
<Step-by-step setup instructions>
## Usage
<2-3 natural language examples showing what the user would say>
## Install
\`\`\`bash
clawhub install <author>/<skill-name>
\`\`\`
Load {baseDir}/references/checklist.md and validate every item:
name + descriptionname matches folder name{baseDir} used for all internal pathsrequires.bins, requires.env)Report the results as a checklist to the user, noting any failures.
When reviewing an existing skill:
Do not rewrite an entire SKILL.md — make targeted, minimal edits.
| User says | Mode | Action |
|---|---|---|
| ----------- | ------ | -------- |
| "I want to create a skill that tracks my reading list" | Create | Scaffold reading-track/, gather examples, write SKILL.md + README.md |
| "Can you review my sm-saver skill?" | Optimize | Read sm-saver/SKILL.md, run checklist, report issues |
| "Build a skill for checking server status" | Create | Scaffold server-check/, gather examples, write SKILL.md + README.md |
| "Improve the reminder skill for ClawHub" | Optimize | Read reminder/SKILL.md, run checklist, add README.md if missing |
共 1 个版本