SkillSpace/meta-skills/create-claude-code-skill/spec.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

1.4 KiB
Raw Permalink Blame History

Claude Code 技能规范摘要

本文件摘要整理 Claude Code 技能的核心规范,供快速参考。完整规范请参阅 Anthropic 官方文档。

技能目录结构

<skill-name>/
├── skill.json      # 技能元信息(必填)
├── prompt.md       # 自定义指令 / Prompt必填
├── tools/          # 工具定义(可选)
├── tests/          # 验证用例(可选)
└── CHANGELOG.md    # 版本变更记录(推荐)

skill.json 字段

字段 类型 必填 说明
name string 技能名称
version string 语义化版本号
description string 技能功能描述
instructions string 自定义指令的简要说明
tools array 依赖的工具列表
tags array 标签

prompt.md 格式

Claude Code 的技能核心是自定义指令:

  • 使用 Markdown 格式编写
  • 描述技能的执行规则和约束
  • 明确指定 Claude 在特定场景下的行为方式
  • 可包含示例对话或指令模板

工具调用

Claude Code 使用 Anthropic 的 Tool Use 协议:

  • 工具以 JSON Schema 格式定义
  • 支持函数调用和结果返回
  • 工具定义可放在 tools/ 目录

参考链接