mcpField
S
skill-create

skill-create

github.com/skillscatalogAgent 工作流1595 次安装43 周前更新
代码仓库

关于 skill-create

skill-create 根据所选模板生成结构完整的 Agent Skill 目录,适合创建或快速试做技能,并可选择包含脚本和资源文件夹。

主要功能

  1. 01按模板生成技能目录
  2. 02创建有效的 SKILL.md
  3. 03提供 basic、with-scripts 和 with-assets 模板
  4. 04添加描述和作者等元数据
  5. 05检查名称格式并避免覆盖现有目录

适用场景

  1. 01从头创建新技能
  2. 02试做带脚本或资源的技能
  3. 03检查技能命名和目录结构

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/skillscatalog/registry --skill skill-create

安装后在 Claude Code 中输入/skill-create确认已加载。

附带文件MANIFEST.jsonscripts/create_skill.py

详细介绍

说明

使用此技能从模板创建新的 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

示例

Basic 技能:

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 标准库)

评论

支持 Markdown