skill-development
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSkill Development Rules
Skill开发规则
When working with files in :
.claude/skills/在处理目录下的文件时:
.claude/skills/SKILL.md Structure
SKILL.md 结构
yaml
undefinedyaml
undefinedDO
应当遵循
- Keep SKILL.md concise (< 200 lines)
- Include clear "When to Use" section
- Provide copy-paste bash commands
- Reference scripts/ for MCP operations
- Add triggers to skill-rules.json
- 保持SKILL.md简洁(不超过200行)
- 包含清晰的“适用场景”章节
- 提供可直接复制粘贴的bash命令
- 引用scripts/目录下的文件用于MCP操作
- 向skill-rules.json中添加触发规则
DON'T
应当避免
- Include implementation details in SKILL.md
- Duplicate content across skills
- Create skills without corresponding trigger in skill-rules.json
- Use allowed-tools that aren't needed
- 在SKILL.md中包含实现细节
- 在不同Skill中重复内容
- 创建未在skill-rules.json中配置对应触发规则的Skill
- 使用不必要的allowed-tools
MCP Wrapper Skills
MCP包装类Skill
For skills that wrap MCP scripts:
- Use to restrict capabilities
allowed-tools: [Bash, Read] - Point to the script in scripts/ directory
- Include parameter documentation
对于封装MCP脚本的Skill:
- 使用来限制功能权限
allowed-tools: [Bash, Read] - 指向scripts/目录下的脚本文件
- 包含参数说明