当前位置: 首页 > Skill >

Skills Creator — Build High-Quality OpenClaw Skills

Skills Creator — Build High-Quality OpenClaw Skills

1.0.3 2026.11.27 浏览:728
获取Skill文件查看使用说明
作者:沈禾许可证:
本文目录展开

Skills Creator

Guide the creation, review, and optimization of OpenClaw skills that trigger reliably and instruct LLMs clearly. Based on analysis of top-performing skills across the ClawHub ecosystem.

Quick Reference

User wants... Do this
Create a new skill → Mode 1: Gather requirements, pick complexity tier, write frontmatter + body
Review an existing skill → Mode 2: Run quality checklist, output findings as table
Fix poor triggering → Focus on Description Writing Formula, rewrite with trigger phrases
Retrofit / optimize a skill → Mode 3: Audit → rewrite description → restructure content → re-audit
Add external API integration → Mode 4: Create scripts/ with curl wrapper, declare dependencies
Publish to ClawHub → Verify quality checklist passes, then clawhub publish

Important Rules

Rule 1: Always determine complexity tier first

Before writing anything, classify the skill into a tier. This decides file structure, SKILL.md length, and whether supporting directories are needed.

Tier When to use SKILL.md size Directories
Simple Pure instructions, no executable code < 150 lines None
Medium Needs scripts or deep reference docs 100–300 lines scripts/ or references/
Complex Multiple workflows + hooks + cross-platform 200–650 lines Multiple subdirs

Rule 2: Description is the highest-leverage field

The description in frontmatter determines whether an LLM activates the skill at all. Spend disproportionate effort here. A mediocre skill with a great description outperforms a great skill with a mediocre description.

Rule 3: Write instructions for an LLM, not documentation for a human

The SKILL.md is injected into an LLM's context. Write actionable directives ("Do X when Y"), not explanatory documentation ("This skill provides..."). The LLM needs to know what to do, not what the skill is.

Rule 4: Use tables for decision logic, not prose

Tables are the LLM's fastest lookup structure. Any conditional logic ("if X then Y") should be a table row, not a paragraph. Reserve prose for context that doesn't fit a table.

Rule 5: The skill must describe itself accurately and be internally consistent

Self-consistency is a quality signal. If the skill teaches "add a Quick Reference table", it must have one. If it references a tool, that tool must exist and its description must accurately reflect what it does. Never claim capabilities the skill doesn't have.

Rule 6: Never auto-execute generated scripts without user confirmation

This skill guides the creation of files including shell scripts. Always present generated scripts to the user for review before executing them. Never run chmod +x or execute a newly created script without explicit user approval. The skill is instructional — the user decides what to run.

Workflow Modes

Mode 1: Create New Skill

Step 1: Gather requirements

Ask the user:

  • What does the skill do? (one sentence)
  • What triggers it? (user phrases, situations, events)
  • Does it need external tools, APIs, or binaries?
  • Does it need environment variables?

Step 2: Determine complexity tier

Use the tier table from Rule 1. When uncertain, start Simple — it's easier to add complexity than remove it.

Step 3: Write frontmatter

---
name: my-skill-name
description: [Action verb] + [value proposition]. Use when [trigger 1], [trigger 2], ... or discusses [topic area].
version: 1.0.0
homepage: https://github.com/user/repo
metadata: {"clawdbot":{"emoji":"🔧","requires":{"bins":["node"],"env":["MY_API_KEY"]},"primaryEnv":"MY_API_KEY"}}
---

Field rules:

Field Required Format Rules
name Yes lowercase kebab-case Must match folder name. No spaces, no uppercase.
description Yes Single string Follow the Description Writing Formula below. Include 5+ trigger phrases.
version Yes semver Independent from any npm/PyPI package version.
homepage No URL Link to source repo or documentation site.
metadata No Single-line JSON Parser does not support multiline. Use clawdbot key (not openclaw).

Metadata sub-fields:

Sub-field Purpose Example
emoji Visual identifier on ClawHub "🔍"
requires.bins Executables the skill needs ["node", "npx", "curl"]
requires.env Environment variables needed ["TAVILY_API_KEY"]
primaryEnv Main env var for quick setup hint "TAVILY_API_KEY"

Step 4: Write SKILL.md body

Follow this section order:

  1. Title + one-paragraph intro — What it does, in action-oriented language
  2. Quick Reference table — | User wants... | Do this | — 4–8 rows covering main use cases
  3. Important Rules — Numbered constraints the LLM must follow (3–5 rules)
  4. Workflow Modes — Discrete scenarios with step-by-step instructions
  5. Reference sections — Field references, formulas, lookup tables
  6. Gotchas — Critical pitfalls with one-line fixes
  7. Further Reading — Links to references/ and assets/ files

Use the starter template at {baseDir}/assets/skill-template.md as a starting point.

Step 5: Create supporting files (Medium/Complex tiers)

Directory When to create What goes inside
references/ SKILL.md exceeds 200 lines, or has deep-dive content Detailed guides, examples, troubleshooting
scripts/ Skill needs executable code (API calls, automation) Shell/Node scripts using {baseDir} paths
assets/ Skill provides templates for users to copy Starter files, config templates
hooks/ Skill needs event-driven triggers (rare) Hook handlers for agent lifecycle events

Never create _meta.json — ClawHub generates it automatically.

Step 6: Run quality review

Read {baseDir}/references/quality-checklist.md and run through all 24 checks. Fix any failures before considering the skill complete.

Mode 2: Review Existing Skill

  1. Ask the user to provide their SKILL.md content (or a file path to read)
  2. Read {baseDir}/references/quality-checklist.md
  3. Evaluate the skill against all 6 categories (24 checks total)
  4. Present findings as a table:
| Category | Status | Issue | Fix |
|----------|--------|-------|-----|
| Frontmatter | ⚠️ | metadata is multiline JSON | Collapse to single line |
| Description | ❌ | No trigger phrases | Rewrite using the formula |
| Content | ✅ | — | — |
  1. Prioritize fixes by impact: Description > Structure > Security > Style
  2. Offer to apply fixes directly if the user provides a file path

Mode 3: Retrofit / Optimize Existing Skill

For skills that exist but don't follow best practices:

  1. Audit: Run the full quality checklist, list all failures
  2. Rewrite description: Apply the Description Writing Formula — this has the highest impact
  3. Add Quick Reference: If missing, create a situation → action table from the skill's content
  4. Convert prose to tables: Find any conditional logic in paragraphs, restructure as table rows
  5. Add guard clauses: Ensure "When to use" and "When NOT to use" are explicit
  6. Extract deep content: Move anything beyond 300 lines into references/
  7. Add negative cases: Ensure fallback handling exists (what to do when things fail)
  8. Re-audit: Run the checklist again to verify all fixes

Mode 4: Add External API Integration

When a skill needs to call an HTTP API (image generation, search, translation, etc.):

Pattern: scripts/ with curl wrapper

Create scripts/call-api.sh:

#!/usr/bin/env bash
# Usage: {baseDir}/scripts/call-api.sh "prompt text"
set -euo pipefail

API_KEY="${API_KEY:?Missing API_KEY environment variable}"

response=$(curl -sf -X POST "https://api.example.com/v1/generate" 
  -H "Authorization: Bearer ${API_KEY}" 
  -H "Content-Type: application/json" 
  -d "{"prompt": "$1", "size": "1024x1024"}")

echo "$response"

Update metadata to declare dependencies

metadata: {"clawdbot":{"emoji":"🎨","requires":{"bins":["curl"],"env":["API_KEY"]},"primaryEnv":"API_KEY"}}

Reference in SKILL.md

## Generate Image

```bash
{baseDir}/scripts/call-api.sh "a sunset over mountains"
```

Note: Replace the placeholder URL, headers, and body with the actual API specification. Declare ALL required environment variables in metadata.clawdbot.requires.env.

Description Writing Formula

Formula:

[Action verb] + [value proposition]. Use when someone asks to "[trigger phrase 1]",
"[trigger phrase 2]", "[trigger phrase 3]", ... or discusses [topic area 1], [topic area 2].

Good example:

Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails.

Bad example:

A helpful skill for improving agent capabilities and making things better.

Why bad: no trigger phrases, no specific scenarios, vague value proposition. The LLM has no pattern to match against user input.

Trigger phrase checklist — include at least 5 of these patterns:

Pattern Example
Imperative verb phrase "create a skill", "review my skill"
Question format "how do I make a skill", "what makes a good skill"
Topic mention "discusses skill development", "SKILL.md structure"
Tool/platform name "OpenClaw", "ClawHub", "agent skill"
Problem statement "skill not triggering", "fix my description"

File Organization Guide

Path Purpose When to create
SKILL.md Core instructions — always present Always
references/ Deep-dive docs, examples, troubleshooting SKILL.md > 200 lines or has detailed reference content
scripts/ Executable code (shell, Node.js) Skill wraps an API or automates a task
assets/ Templates, config files for users to copy Skill generates boilerplate
hooks/ Event-driven agent lifecycle handlers Skill needs automatic triggers (rare)
_meta.json Never create — auto-generated by ClawHub Never

Keep SKILL.md under 300 lines. Extract to references/ beyond that threshold.

Use {baseDir} in SKILL.md to reference files within the skill package — the platform resolves this to the skill's installation path at runtime.

Gotchas

  • Metadata must be single-line JSON — the ClawHub parser does not support multiline. {"clawdbot":{"emoji":"🔧"}} not formatted JSON.
  • Never create _meta.json — ClawHub auto-generates it on publish. Committing one causes conflicts.
  • Use {baseDir} for script paths — skills can be installed anywhere. Never hardcode absolute paths.
  • Avoid VirusTotal-flagged terms — words like "upload", "public URL", "CDN" trigger security scans. Use "prepare", "reference", "compress" instead.
  • Pin versions in npx references — meigen@1.2.5 not meigen@latest. Floating versions are a supply chain risk.
  • List ALL binaries in requires.bins — include transitive dependencies (node, npx, not just your script name).
  • Use clawdbot key in metadata — not openclaw. This is the established convention (5/6 top skills use it).

Further Reading

  • {baseDir}/references/best-practices.md — comprehensive design guidelines with worked examples
  • {baseDir}/references/quality-checklist.md — full 24-point review checklist and retrofit process
  • {baseDir}/assets/skill-template.md — copy-paste starter template for new skills

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,031
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,029
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,017
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,014
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,011
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,011
Skill 文件
  • SKILL.md
    • Skills Creator
    • Quick Reference
    • Important Rules
      • Rule 1: Always determine complexity tier first
      • Rule 2: Description is the highest-leverage field
      • Rule 3: Write instructions for an LLM, not documentation for a human
      • Rule 4: Use tables for decision logic, not prose
      • Rule 5: The skill must describe itself accurately and be internally consistent
      • Rule 6: Never auto-execute generated scripts without user confirmation
    • Workflow Modes
      • Mode 1: Create New Skill
        • Step 1: Gather requirements
        • Step 2: Determine complexity tier
        • Step 3: Write frontmatter
        • Step 4: Write SKILL.md body
        • Step 5: Create supporting files (Medium/Complex tiers)
        • Step 6: Run quality review
      • Mode 2: Review Existing Skill
      • Mode 3: Retrofit / Optimize Existing Skill
      • Mode 4: Add External API Integration
        • Pattern: scripts/ with curl wrapper
        • Update metadata to declare dependencies
        • Reference in SKILL.md
    • Description Writing Formula
    • File Organization Guide
    • Gotchas
    • Further Reading
  • 项目或源文件

相关 Skill

更多
lobster-rank lobster-rank Scan locally installed OpenClaw skills, collect evidence data, submit to the lobster ranking server for scoring, and let the user confirm uploading their result to the public leaderboard. Use when the user asks to score, rate, evaluate, rank, or certify their lobster / AI agent capability set, or wants to upload their score to the leaderboard.
skill-list skill-list 列出 OpenClaw Skills:以表格形式展示所有 skills、显示功能介绍、找出功能重复的 skills。Use when: 用户想知道安装了哪些 skills、某个 skill 是做什么的、或者想找出重复功能的 skills。
Best Practice Skill Creator Best Practice Skill Creator Create OpenClaw skills from best practice videos or image sequences. Use when creating skill from video, generating skill from screenshots, converting tutori...
Skill From Memory Skill From Memory Convert memory, conversation history, or completed tasks into publishable OpenClaw skills. Use when (1) A task or workflow should be reusable, (2) Extracting...
openclaw-skillhub openclaw-skillhub 使用 SkillHub 安装和管理 OpenClaw Skills。用于安装、更新、搜索 SkillHub 技能库中的技能。触发场景:(1) 用户想要安装新的 skill,(2) 用户想要搜索 skill,(3) 用户想要更新已安装的 skill,(4) 用户提到 skillhub。