by anthropics
创建 Claude Code 自定义技能需要了解正确的文件结构和前置格式。本技能提供完整的参考模板,包含技能结构、触发条件和插件技能开发最佳实践的文档。
1. 打开 Claude 聊天界面
2. 点击下方 "📋 复制" 按钮
3. 粘贴到 Claude 聊天框中并发送
4. 输入 "使用 example-skill 技能" 开始使用
=== example-skill 技能 === 作者: anthropics 描述: 创建 Claude Code 自定义技能需要了解正确的文件结构和前置格式。本技能提供完整的参考模板,包含技能结构、触发条件和插件技能开发最佳实践的文档。 使用方法: 1. 调用技能: "使用 example-skill 技能" 2. 提供相关信息: 根据技能要求提供必要参数 3. 查看结果: 技能会返回处理结果 示例: "使用 example-skill 技能,帮我分析一下这段代码"
这种方法适用于所有 Claude 用户,不需要安装额外工具。
documentation
safe
This skill demonstrates the structure and format for Claude Code plugin skills.
Skills are model-invoked capabilities that Claude autonomously uses based on task context. Unlike commands (user-invoked) or agents (spawned by Claude), skills provide contextual guidance that Claude incorporates into its responses.
This skill activates when the user's request involves:
skills/
└── skill-name/
└── SKILL.md # Main skill definition (required)
skills/
└── skill-name/
├── SKILL.md # Main skill definition
├── README.md # Additional documentation
├── references/ # Reference materials
│ └── patterns.md
├── examples/ # Example files
│ └── sample.md
└── scripts/ # Helper scripts
└── helper.sh
Skills support these frontmatter fields:
The description field is crucial - it tells Claude when to invoke the skill.
Good description patterns:
description: This skill should be used when the user asks to "specific phrase", "another phrase", mentions "keyword", or discusses topic-area.
Include:
View Count
0
Download Count
0
Favorite Count
0
Quality Score
69