Skip to main content
ClaudeWave
Skill822 estrellas del repoactualizado 5d ago

write-a-skill

This Claude Code skill facilitates the creation and updating of reusable agent capabilities within the OpenAgent framework. Use it when building new skills, refactoring existing ones, or converting common tasks into encapsulated, reusable abilities. The skill guides users through defining task domains and trigger conditions, drafting clear skill descriptions, and incrementally developing supporting scripts based on specific requirements rather than unnecessary complexity.

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/Haohao-end/openagent /tmp/write-a-skill && cp -r /tmp/write-a-skill/api/internal/core/skills/catalog/write-a-skill ~/.claude/skills/write-a-skill
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

skill.md

# 写技能

这是一个用于创建或更新技能的技能。

## 适用场景

- 用户要新建一个 skill
- 用户要重构已有 skill
- 用户想把一个常见任务封装成可复用的 agent 能力

## 工作方式

1. 先搞清楚技能覆盖的任务域和典型触发词。
2. 写一个简洁的 `skill.md`,让系统能一眼判断是否应该加载。
3. 如果需要确定性操作,才补 scripts 或参考文件。
4. 保持单一职责,不要把一个 skill 写成“大杂烩”。
5. 先给用户草稿,再根据反馈调整。

## 约束

- 描述必须清楚说明“做什么”和“什么时候触发”。
- 不要把说明写得太宽泛。
- 不需要执行代码时,不要硬塞脚本。