用途
skill-create 用于从模板创建新的 Agent Skills。它会生成一个结构规范的技能目录,其中包含有效的 SKILL.md 文件,以及可选的 scripts/assets 文件夹。
主要能力
- 从零开始创建新技能
- 确保技能结构和命名规范
- 快速原型验证新的技能想法
- 向他人演示如何组织技能结构
使用方式
按名称创建新技能:
Create a new skill called "pdf-tools"
使用指定模板创建技能:
Create a new skill called "data-analyzer" using the with-scripts template
可用模板:
- basic - 仅包含 SKILL.md(默认)
- with-scripts - SKILL.md + scripts 目录
- with-assets - SKILL.md + scripts + assets 目录
输出结构
basic 模板:
pdf-tools/
├── SKILL.md
└── README.md
with-scripts 模板:
pdf-tools/
├── SKILL.md
├── README.md
└── scripts/
└── main.py
with-assets 模板:
pdf-tools/
├── SKILL.md
├── README.md
├── scripts/
│ └── main.py
└── assets/
└── .gitkeep
示例
基础技能:
User: Create a new skill called "code-formatter"
Agent: Creating skill "code-formatter" with basic template...
Created:
✓ code-formatter/SKILL.md
✓ code-formatter/README.md
Next steps:
1. Edit SKILL.md with your skill's instructions
2. Add any supporting files
3. Run skill-validator to check compliance
交互模式:
User: Create a new skill
Agent: I'll help you create a new skill.
Skill name: code-formatter
Description: Format code in various languages
Template: with-scripts
License: MIT
Creating...
✓ Created code-formatter with with-scripts template
带元数据:
User: Create a new skill called "api-tester" with description "Test REST APIs" and author "acme-corp"
Agent: Creating skill "api-tester"...
✓ Created with custom metadata:
- Description: Test REST APIs
- Author: acme-corp
- License: MIT (default)
限制
- 技能名称必须为小写字母加连字符(1-64 个字符)
- 名称必须以字母开头
- 不会覆盖已存在的目录
- 模板为最小化模板,仅作为起点
依赖
- Python 3.9+
- 无外部依赖(使用 Python 标准库)