skill-creator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSkill Creator
技能创建工具
Create new Claude Code skills following the official format and best practices.
按照官方格式与最佳实践创建新的Claude Code技能。
Quick Reference
快速参考
- Structure Guide - Directory format and file organization
- Naming Rules - Skill naming requirements
- Description Guide - Writing effective descriptions
- Templates - Process, knowledge, and tool skill templates
- Examples - Complete skill creation walkthroughs
- Validation - Commands to validate new skills
- 结构指南 - 目录格式与文件组织
- 命名规则 - 技能命名要求
- 描述撰写指南 - 撰写高效的技能描述
- 模板 - 流程类、知识类与工具类技能模板
- 示例 - 完整的技能创建流程演示
- 验证 - 验证新技能的命令
When to Use
适用场景
- Creating a new reusable knowledge module
- Adding specialized guidance for specific tasks
- Building domain-specific expertise into Claude Code
- Need to ensure proper skill format and structure
- 创建新的可复用知识模块
- 为特定任务添加专业指导
- 为Claude Code构建特定领域专业能力
- 需要确保技能格式与结构规范
Required SKILL.md Format
必备的SKILL.md格式
Every skill requires a file with two parts:
SKILL.md- YAML frontmatter (metadata between markers on line 1)
--- - Markdown instructions (guidance for Claude)
markdown
---
name: skill-name
description: Brief description of what this skill does and when to use it
---每个技能都需要一个文件,包含两部分内容:
SKILL.md- YAML前置元数据(位于第一行标记之间的元数据)
--- - Markdown说明文档(给Claude的指导内容)
markdown
---
name: skill-name
description: Brief description of what this skill does and when to use it
---Skill Title
Skill Title
Instructions
Instructions
Step-by-step guidance for Claude...
undefinedStep-by-step guidance for Claude...
undefinedYAML Frontmatter Fields
YAML前置元数据字段
| Field | Required | Description |
|---|---|---|
| Yes | Lowercase letters, numbers, hyphens only (max 64 chars). Must match directory name. |
| Yes | What the skill does and when to use it (max 1024 chars). Claude uses this to match requests. |
| No | Tools Claude can use without permission |
| No | Specific model to use |
| No | Set to |
| 字段 | 是否必填 | 描述 |
|---|---|---|
| 是 | 仅允许小写字母、数字、连字符(最多64字符)。必须与目录名称一致。 |
| 是 | 说明技能功能与适用场景(最多1024字符)。Claude会用此字段匹配用户请求。 |
| 否 | Claude无需授权即可使用的工具 |
| 否 | 指定使用的模型 |
| 否 | 设置为 |
File Structure
文件结构
skill-name/
├── SKILL.md # Required - overview and navigation
├── reference.md # Detailed docs - loaded when needed
├── examples.md # Usage examples - loaded when needed
└── scripts/
└── helper.sh # Utility script - executed, not loadedskill-name/
├── SKILL.md # 必填 - 概览与导航
├── reference.md # 详细文档 - 按需加载
├── examples.md # 使用示例 - 按需加载
└── scripts/
└── helper.sh # 实用脚本 - 可执行,不加载Best Practices
最佳实践
- Keep SKILL.md under 250 lines - Use progressive disclosure
- Write specific descriptions - Include trigger terms users would naturally use
- Link supporting files - From SKILL.md using markdown links
- Validate structure - Check YAML syntax and file organization
See naming.md for naming conventions and templates.md for ready-to-use templates.
- SKILL.md文件行数控制在250行以内 - 采用渐进式信息披露方式
- 撰写具体的描述内容 - 包含用户会自然使用的触发词
- 关联支持文件 - 在SKILL.md中使用Markdown链接
- 验证结构规范 - 检查YAML语法与文件组织
请查看**naming.md了解命名规范,查看templates.md**获取即用型模板。