SkillSpace/meta-skills/create-claude-code-skill/prompt.md
sinohqb 4fe53197c4 Initial commit: SkillSpace project structure
- 5 agent frameworks: Qoder, Claude Code, Codex, OpenClaw, Hermes Agent
- 9 lifecycle skills: lifecycle router, discover, create, test, audit, debug, update, publish, retire
- 5 framework-specific meta-skills with specs and guides
- OpenClaw meta-skill enriched with ClawHub official ecosystem data
- Per-framework directories with skills/, versions/, publish/, docs/
2026-07-01 19:23:58 +08:00

22 lines
892 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 如何创建 Claude Code 技能
本技能指导你为 Claude Code 框架创建符合规范的技能和自定义指令。
## 创建流程
1. **了解 Claude Code 规范**:阅读 `spec.md`,了解 Claude Code 的工具调用和指令扩展机制
2. **参考官方示例**:查看 `examples/` 目录中的参考实现
3. **创建技能目录**:在 `claude-code/skills/<skill-name>/` 下新建目录
4. **编写技能文件**
- `skill.json`:技能元信息
- `prompt.md`:自定义指令 / 系统提示
- 按需添加工具定义和测试用例
5. **验证技能**:在 Claude Code 环境中加载并测试
6. **发布技能**:更新版本号,归档到 `versions/`
## 注意事项
- Claude Code 通过自定义指令Custom Instructions扩展行为
- 工具调用遵循 Anthropic 的 Tool Use 协议
- 建议参考 `examples/` 中的示例了解指令格式