Creating Agent Skills requires understanding a specific file format and directory structure. This skill provides step-by-step guidance for building skills that work with Claude, Codex, and Claude Code.
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“create-skill”。 Create a skill called 'pdf-helper' that extracts text from PDF files.
预期结果:
- Created skill structure: pdf-helper/SKILL.md
- Added frontmatter with name and description
- Included optional references/ folder for detailed documentation
- Skill ready for activation when user needs PDF help
正在使用“create-skill”。 Help me understand the skill naming rules.
预期结果:
- Skill names must be 1-64 characters
- Only lowercase letters, numbers, and hyphens are allowed
- Cannot start or end with a hyphen
- Cannot contain consecutive hyphens
- Must match the parent directory name exactly
正在使用“create-skill”。 What goes in the scripts folder?
预期结果:
- The scripts/ folder contains executable code
- Supported languages depend on the agent implementation
- Common options include Python, Bash, and JavaScript
- Scripts should be self-contained or document dependencies
- Include helpful error messages and handle edge cases
安全审计
安全This skill is purely documentation containing instructions and reference guides for creating Agent Skills. No executable code, no network access, no file system access, no environment variable access, and no command execution capabilities. The 146 static findings are all false positives triggered by markdown documentation patterns (code formatting backticks, documentation URLs, and text patterns).
风险因素
⚙️ 外部命令 (99)
质量评分
你能构建什么
Build New Skills
Create well-structured Agent Skills following the official specification format and best practices.
Write Reference Docs
Structure reference materials in separate files for efficient context management in skills.
Extend AI Capabilities
Create custom skills that add specialized knowledge and workflows to AI agents.
试试这些提示
Create a new skill called [skill-name] in the [directory] folder. The skill should [description of what it does]. Follow the Agent Skills format specification.
Add a reference document to the [skill-name] skill that covers [topic]. The reference should explain [key concepts] with examples.
Verify that the [skill-name] skill follows the correct format. Check the frontmatter, directory structure, and instruction quality.
Restructure [skill-name] to use progressive disclosure. Move detailed reference material to separate files and keep main instructions concise.
最佳实践
- Keep SKILL.md under 500 lines for efficient context loading
- Include specific keywords in descriptions to help agents identify relevant tasks
- Use relative paths for file references and keep them one level deep
- Match the skill directory name exactly to the frontmatter name field
避免
- Using uppercase letters or consecutive hyphens in skill names
- Putting all documentation in SKILL.md without using references/ folder
- Writing vague descriptions that do not explain when to use the skill
- Leaving optional directories (scripts/, references/, assets/) empty