Skip to content
Back to skills

创建技能

ASecurity

本指南介绍如何为 GolemBot 助手创建自定义技能。

  • 322 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
ai-agentspythongobashnode

Works with

  • cli

Security analysis

A93/100
  • highPerforms destructive filesystem operations

Pro scans all 4 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add 0xranx/golembot --skill skills --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 创建技能?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 创建技能
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/0xranx-golembot/badge)](https://www.skillsdirectory.com/skills/0xranx-golembot)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# 创建技能

本指南介绍如何为 GolemBot 助手创建自定义技能。

## 最小技能

在 `skills/` 下创建一个包含 `SKILL.md` 的目录:

```markdown
---
name: weather
description: 使用 wttr.in 查询天气预报
---

# 天气技能

当用户询问天气时,使用以下命令获取数据:

\`\`\`bash
curl -s "wttr.in/{city}?format=3"
\`\`\`

将 `{city}` 替换为请求的城市。用口语化的方式报告结果。
```

就这样。下次 `assistant.chat()` 运行时,Agent 就知道如何查天气了。

## 带脚本的技能

```
skills/
└── data-report/
    ├── SKILL.md
    ├── analyze.py
    └── template.md
```

在 `SKILL.md` 中描述如何调用脚本。Coding Agent 可以原生执行 Python、Node.js、Bash 或任何脚本 — 无需框架注册。

## SKILL.md 最佳实践

1. **清晰的 frontmatter** — 始终包含 `name` 和 `description`
2. **具体明确** — 告诉 Agent 确切要做什么、文件在哪、用什么格式
3. **包含约束** — Agent 不应该做什么
4. **引用路径** — 使用相对于助手根目录的路径
5. **保持聚焦** — 一个技能 = 一个能力领域

## 添加技能

```bash
# 通过 CLI
golembot skill add /path/to/my-skill

# 或手动复制
cp -r ~/my-skills/weather skills/weather

# 验证
golembot skill list
```

## 移除技能

```bash
golembot skill remove weather
# 或直接删除目录
rm -rf skills/weather
```

Files in this skill

  • builtin.md3.9 KB
  • create-skill.md1.4 KB
  • overview.md3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.