什么是 Skill?
Skill 是 OpenClaw 的插件系统,可以把你的工作流打包成可复用、可分享的模块。
重点:可以上架 ClawHub 赚钱。
为什么开发 Skill?
| 对比 | 自己用 | 打包成 Skill |
|---|---|---|
| 使用 | 每次手动配置 | 一键安装 |
| 分享 | 发代码给别人 | 直接上架 |
| 变现 | 接单 ¥500/次 | 卖 Skill ¥99/份,卖 100 份 = ¥9900 |
| 维护 | 自己改代码 | 用户自动更新 |
一句话:做一次,卖多次,被动收入。
Skill 结构
my-skill/
├── SKILL.md # 技能说明(必需)
├── README.md # 详细文档
├── package.json # 元数据
├── scripts/ # 脚本
│ └── main.py
├── templates/ # 模板文件
└── examples/ # 示例
SKILL.md 模板
# 我的技能
## 描述
一句话说明这个 Skill 能做什么。
## 使用场景
- 场景 1
- 场景 2
## 安装
\`\`\`bash
openclaw skill install my-skill
\`\`\`
## 使用
\`\`\`bash
openclaw run my-skill --input xxx
\`\`\`
## 配置
在 \`~/.openclaw/config.json\` 中添加:
\`\`\`json
{
"my-skill": {
"apiKey": "your-key"
}
}
\`\`\`
## 示例
输入:xxx
输出:xxx
实战:开发一个文案生成 Skill
1. 创建目录
mkdir -p content-generator/{scripts,templates}
cd content-generator
2. 编写 SKILL.md
# Content Generator
## 描述
批量生成产品描述、广告文案、社交媒体内容。
## 使用场景
- 电商产品描述
- 短视频脚本
- 公众号文章大纲
## 安装
\`\`\`bash
openclaw skill install content-generator
\`\`\`
## 使用
\`\`\`bash
# 生成产品描述
openclaw run content-generator --type product --input products.csv
# 生成短视频脚本
openclaw run content-generator --type video --topic "AI赚钱"
# 生成文章大纲
openclaw run content-generator --type article --topic "DeepSeek实战"
\`\`\`
## 配置
\`\`\`json
{
"content-generator": {
"model": "deepseek-chat",
"apiKey": "your-deepseek-key"
}
}
\`\`\`
3. 编写脚本
# scripts/main.py
import argparse
import json
import os
import openclaw
def load_config():
config_path = os.path.expanduser("~/.openclaw/config.json")
with open(config_path) as f:
return json.load(f).get("content-generator", {})
def generate_product_description(product):
prompt = f"""
为以下商品写一段 100 字营销描述:
商品名称:{product['name']}
核心卖点:{product['features']}
要求:
1. 突出产品优势
2. 语言生动有吸引力
3. 包含使用场景
"""
config = load_config()
return openclaw.chat(prompt, model=config.get("model", "deepseek-chat"))
def generate_video_script(topic):
prompt = f"""
为主题"{topic}"写一个 30 秒短视频脚本:
要求:
1. 开头有吸引力的钩子
2. 中间有价值内容
3. 结尾有行动号召
"""
config = load_config()
return openclaw.chat(prompt, model=config.get("model", "deepseek-chat"))
def generate_article_outline(topic):
prompt = f"""
为主题"{topic}"写一个公众号文章大纲:
要求:
1. 吸引人的标题
2. 5-7 个要点
3. 每个要点 2-3 句话扩展
"""
config = load_config()
return openclaw.chat(prompt, model=config.get("model", "deepseek-chat"))
def main():
parser = argparse.ArgumentParser(description="Content Generator")
parser.add_argument("--type", choices=["product", "video", "article"])
parser.add_argument("--input", help="Input file for product type")
parser.add_argument("--topic", help="Topic for video/article type")
parser.add_argument("--output", default="output.txt")
args = parser.parse_args()
if args.type == "product":
with open(args.input) as f:
products = json.load(f)
results = []
for product in products:
desc = generate_product_description(product)
results.append({"name": product["name"], "description": desc})
with open(args.output, "w") as f:
json.dump(results, f, ensure_ascii=False, indent=2)
print(f"生成 {len(results)} 条产品描述,保存到 {args.output}")
elif args.type == "video":
script = generate_video_script(args.topic)
with open(args.output, "w") as f:
f.write(script)
print(f"视频脚本已生成:{args.output}")
elif args.type == "article":
outline = generate_article_outline(args.topic)
with open(args.output, "w") as f:
f.write(outline)
print(f"文章大纲已生成:{args.output}")
if __name__ == "__main__":
main()
4. 测试
# 测试产品描述生成
echo '[{"name":"蓝牙耳机","features":"40小时续航,主动降噪"}]' > test_products.json
openclaw run content-generator --type product --input test_products.json
# 测试视频脚本生成
openclaw run content-generator --type video --topic "AI赚钱秘籍"
# 测试文章大纲生成
openclaw run content-generator --type article --topic "DeepSeek实战指南"
5. 打包发布
# 创建 package.json
cat > package.json << 'EOF'
{
"name": "content-generator",
"version": "1.0.0",
"description": "批量生成产品描述、广告文案、社交媒体内容",
"author": "Your Name",
"license": "MIT",
"keywords": ["content", "generator", "ai", "marketing"],
"price": 99,
"currency": "CNY"
}
EOF
# 发布到 ClawHub
openclaw skill publish
定价策略
| Skill 类型 | 建议定价 | 目标用户 |
|---|---|---|
| 简单工具 | ¥29-49 | 个人用户 |
| 专业工具 | ¥99-199 | 自由职业者 |
| 企业工具 | ¥299-999 | 企业/团队 |
变现模式
1. 单次购买
{
"price": 99,
"currency": "CNY"
}
2. 订阅制
{
"subscription": {
"monthly": 29,
"yearly": 199,
"lifetime": 499
}
}
3. 免费 + 增值
{
"price": 0,
"addons": {
"premium_templates": 49,
"api_access": 99
}
}
推广方式
- 掘金文章:写教程展示 Skill 功能
- GitHub:开源基础版,收费高级版
- 社群推广:Discord/Telegram/微信群
- 视频教程:B站/抖音展示效果
成功案例
案例 1:翻译助手 Skill
功能:批量翻译文档,支持 20+ 语言 定价:¥49 销量:200+ 份 收入:¥9800
案例 2:SEO 优化器 Skill
功能:自动生成 SEO 文章,优化关键词 定价:¥199 销量:80+ 份 收入:¥15920
案例 3:企业客服 Bot Skill
功能:一键部署企业微信客服机器人 定价:¥299 销量:50+ 份 收入:¥14950
总结
- Skill 可以把工作流变成产品
- 一次开发,多次销售
- 定价 ¥29-999,根据目标用户调整
- 推广靠内容 + 社群
把你的技能变成 Skill,开始被动收入。
需要 OpenClaw 安装服务? 点击这里
- 基础安装:¥99
- 高级配置:¥299(含 Skill 开发指导)
- 企业定制:¥999(含定制 Skill)