feat: support custom skill sources

This commit is contained in:
2026-07-27 18:09:13 +08:00
parent 86cd1fa36d
commit 3411e54b13
9 changed files with 695 additions and 49 deletions
+25
View File
@@ -97,6 +97,28 @@ skiff fetch superpowers
skiff install-external superpowers
```
### 自定义仓库(Custom Sources
公司或团队维护、且一个仓库中包含多个 skill 时,使用命名 custom source
```bash
skiff source add company \
git@git.company.com:platform/agent-skills.git \
--skills-path skills
skiff list --source company
skiff add company/internal-review -g
```
也可以接入已有本地 checkout:
```bash
skiff source add company --local ~/code/company-skills --skills-path skills
```
配置保存在 `~/.config/skiff/config.yaml`Git source 默认 clone 到
`~/.local/share/skiff/sources/<source>/`。项目 `.skills.yaml` 只记录逻辑
source 名称,每台机器独立配置实际仓库地址。
### 社区(External NPM / GitHub
推荐使用 Vercel CLI 安装第三方 skill
@@ -143,6 +165,7 @@ registry.yaml ←── skiff add / fetch
| ---------------- | ---------------------------------- | ------------------------------- |
| **Owned** | `skills/<name>/` | 本仓库 commit |
| **External Git** | `~/.local/share/skills/externals/` | `skiff fetch` |
| **Custom Source** | `~/.local/share/skiff/sources/` 或本地路径 | `skiff source add/fetch` |
| **External NPM** | `node_modules/` | `npx skills add` / `skills-npm` |
### 非 Skill 资料分类
@@ -176,6 +199,8 @@ skills:
- name: superpowers
source: registry
ref: main
- name: internal-review
source: company
targets: # 可选,默认 all
- cursor