← 返回
未分类

Skill Authoring

Create, edit, and package new AgentSkills. Use when asked to create a skill, build a skill, author a skill, or when需要对技能进行创建、打包或审核。Triggers on phrases like "...
创建、编辑和打包新的 AgentSkill。适用于需要创建、构建或审核技能的场景,触发于相应短语。
eddieguan801-oss eddieguan801-oss 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 360
下载
💾 0
安装
1
版本
#latest

概述

Skill Authoring

Create modular, self-contained skills that extend agent capabilities.

The 6-Step Workflow

1. Understand → 2. Plan → 3. Init → 4. Edit → 5. Package → 6. Iterate

Step 1: Understand the Skill

Ask clarifying questions if needed. Understand:

  • What functionality should this skill support?
  • What are concrete usage examples?
  • What should trigger this skill?

When to skip: When usage patterns are already clear.

Step 2: Plan Reusable Contents

Identify what to bundle:

  • scripts/ — Executable code (Python/Bash) for deterministic tasks
  • references/ — Documentation to load when needed
  • assets/ — Files used in output (templates, icons)

Step 3: Initialize the Skill

Always use init_skill.py — never create manually:

python3 <skill-creator>/scripts/init_skill.py <name> --path <output-dir> --resources scripts,references,assets

Example:

python3 /usr/local/lib/node_modules/openclaw/skills/skill-creator/scripts/init_skill.py my-skill --path /var/root/.openclaw/workspace/skills --resources scripts,references

Step 4: Edit the Skill

SKILL.md Structure

---
name: skill-name
description: Clear description of what it does AND when to trigger it. Include Chinese triggers too.
---

# Skill Name

## Quick Start

## Details...

Naming Rules

  • Lowercase, hyphens only
  • Under 64 characters
  • Verb-led preferred (e.g., pdf-edit, list-skills)

Key Principles

  • Concise: Only add what the model doesn't already know
  • Progressive disclosure: Keep SKILL.md lean, put details in references/
  • Imperative mood: Use "do this" not "does this"

Step 5: Package the Skill

python3 <skill-creator>/scripts/package_skill.py <path/to/skill-folder>

Output: .skill file (zip format).

Validation runs automatically before packaging.

Step 6: Iterate

Test with real tasks, gather feedback, improve.

Skill Template

skill-name/
├── SKILL.md           # Required: name + description + instructions
├── scripts/           # Optional: executable code
├── references/        # Optional: load-as-needed docs
└── assets/            # Optional: output files

Quick Reference

ResourceWhen to Use
-----------------------
scripts/Same code rewritten repeatedly
references/Large docs the model should read on demand
assets/Templates, images, boilerplate

Keep SKILL.md under 500 lines. Move details to references/.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 14:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,497 📥 561,874
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,429 📥 327,025
dev-programming

Hermes Minimax Oauth

eddieguan801-oss
为Hermes Agent添加MiniMax OAuth认证支持,适用于集成、修复或扩展MiniMax OAuth功能。
★ 0 📥 594