add-new-skills-to-workflow
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAdd New Skills to Workflow
为工作流添加新技能
Add skills from GitHub to an existing workflow and update all related documentation.
从GitHub向现有工作流中添加技能并更新所有相关文档。
Workflow
工作流
Step 1: Download Skills
步骤1:下载技能
Use skill-downloader to download skills from GitHub:
bash
python .claude/skills/skill-downloader/scripts/download_from_github.py <repo-url> <skill-path> --output <workflow-path>/.claude/skills/Parse GitHub URL:
- → repo:
https://github.com/user/repo/blob/main/path/to/skill, skill-path:https://github.com/user/repopath/to/skill - → repo:
https://github.com/user/repo/tree/main/.claude/skills/my-skill, skill-path:https://github.com/user/repo.claude/skills/my-skill
Example:
bash
undefined使用skill-downloader从GitHub下载技能:
bash
python .claude/skills/skill-downloader/scripts/download_from_github.py <repo-url> <skill-path> --output <workflow-path>/.claude/skills/解析GitHub URL:
- → 仓库:
https://github.com/user/repo/blob/main/path/to/skill, 技能路径:https://github.com/user/repopath/to/skill - → 仓库:
https://github.com/user/repo/tree/main/.claude/skills/my-skill, 技能路径:https://github.com/user/repo.claude/skills/my-skill
示例:
bash
undefinedpython .claude/skills/skill-downloader/scripts/download_from_github.py https://github.com/XIYO/zheon .claude/skills/slidev --output ./workflows/talk-to-slidev-workflow/.claude/skills/
python .claude/skills/skill-downloader/scripts/download_from_github.py https://github.com/XIYO/zheon .claude/skills/slidev --output ./workflows/talk-to-slidev-workflow/.claude/skills/
Use --force to overwrite existing
使用 --force 覆盖现有内容
python .claude/skills/skill-downloader/scripts/download_from_github.py <repo> <path> --output <target> --force
undefinedpython .claude/skills/skill-downloader/scripts/download_from_github.py <repo> <path> --output <target> --force
undefinedStep 2: Read Downloaded Skill
步骤2:读取已下载的技能
Read the downloaded to understand:
SKILL.md- Skill name and description
- What category it belongs to
- How it fits into the workflow pipeline
读取下载后的以了解:
SKILL.md- 技能名称和描述
- 所属类别
- 如何融入工作流流水线
Step 3: Update skill-source.json
步骤3:更新skill-source.json
Add the new skill entry to :
workflows/<name>/.claude/skill-source.jsonjson
{
"skill-name": {
"source": "https://github.com/user/repo",
"path": "path/to/skill"
}
}在中添加新技能条目:
workflows/<name>/.claude/skill-source.jsonjson
{
"skill-name": {
"source": "https://github.com/user/repo",
"path": "path/to/skill"
}
}Step 4: Update Documentation
步骤4:更新文档
Update these files (all that exist for the workflow):
| File | Updates Required |
|---|---|
| Add new skill source entry |
| Skill count, skill table, pipeline |
| Same as above (Chinese) |
| Available skills list, recommended sequences |
| Skill count, skill table, pipeline |
| Same as above (Chinese) |
| Skill count in workflow table |
| Same as above (Chinese) |
更新工作流中存在的以下所有文件:
| 文件 | 需要更新的内容 |
|---|---|
| 添加新技能源条目 |
| 技能数量、技能表格、流水线 |
| 与上述内容一致(中文版本) |
| 可用技能列表、推荐序列 |
| 技能数量、技能表格、流水线 |
| 与上述内容一致(中文版本) |
| 工作流表格中的技能数量 |
| 与上述内容一致(中文版本) |
Documentation Update Checklist
文档更新检查清单
-
Skill Count: Update total count (e.g., "18 skills" → "20 skills")
- Quick install comment
- Section header
- Description text
-
Skill Table: Add new skill row in appropriate categorymarkdown
| `skill-name` | Brief description of what it does | -
Pipeline: Add skill to relevant stage if applicable
Stage X: Category ├── existing-skill → Description └── new-skill → Description -
AGENTS.md: Add to available skills and update recommended sequences
-
Root README: Update skill count in workflow overview table
-
技能数量:更新总数量(例如:"18 skills" → "20 skills")
- 快速安装注释
- 章节标题
- 描述文本
-
技能表格:在对应类别中添加新技能行markdown
| `skill-name` | 技能简要描述 | -
流水线:若适用,将技能添加到相关阶段
阶段X:类别 ├── existing-skill → 描述 └── new-skill → 描述 -
AGENTS.md:添加到可用技能列表并更新推荐序列
-
根目录README:更新工作流概览表格中的技能数量
Example: Adding Skills to talk-to-slidev-workflow
示例:向talk-to-slidev-workflow添加技能
Given: Add and skills
slidevslidev-presentationsStep 1: Download
bash
python .claude/skills/skill-downloader/scripts/download_from_github.py https://github.com/XIYO/zheon .claude/skills/slidev --output ./workflows/talk-to-slidev-workflow/.claude/skills/
python .claude/skills/skill-downloader/scripts/download_from_github.py https://github.com/clearfunction/cf-devtools skills/slidev-presentations --output ./workflows/talk-to-slidev-workflow/.claude/skills/Step 2: Read downloaded skills to understand their purpose
Step 3: Update skill-source.json with new skill entries
Step 4: Update all 8 files:
- Update skill-source.json with source info
- Update skill count
- Add new category with skill table
- Update pipeline to reference new skills
- Update AGENTS.md skill lists and sequences
- Update root README skill count
场景: 添加和技能
slidevslidev-presentations步骤1: 下载
bash
python .claude/skills/skill-downloader/scripts/download_from_github.py https://github.com/XIYO/zheon .claude/skills/slidev --output ./workflows/talk-to-slidev-workflow/.claude/skills/
python .claude/skills/skill-downloader/scripts/download_from_github.py https://github.com/clearfunction/cf-devtools skills/slidev-presentations --output ./workflows/talk-to-slidev-workflow/.claude/skills/步骤2: 读取已下载的技能以了解其用途
步骤3: 在skill-source.json中添加新技能条目
步骤4: 更新全部8个文件:
- 在skill-source.json中添加源信息
- 更新技能数量
- 添加新类别及技能表格
- 更新流水线以引用新技能
- 更新AGENTS.md中的技能列表和序列
- 更新根目录README中的技能数量