reskill 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -3
- package/README.zh-CN.md +53 -30
- package/dist/cli/commands/completion.d.ts +13 -0
- package/dist/cli/commands/completion.d.ts.map +1 -0
- package/dist/cli/commands/index.d.ts +1 -1
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/install.d.ts +10 -11
- package/dist/cli/commands/install.d.ts.map +1 -1
- package/dist/cli/commands/uninstall.d.ts.map +1 -1
- package/dist/cli/index.js +918 -615
- package/dist/core/cache-manager.d.ts +13 -0
- package/dist/core/cache-manager.d.ts.map +1 -1
- package/dist/core/config-loader.d.ts +63 -15
- package/dist/core/config-loader.d.ts.map +1 -1
- package/dist/core/installer.d.ts +9 -0
- package/dist/core/installer.d.ts.map +1 -1
- package/dist/core/skill-manager.d.ts +8 -8
- package/dist/core/skill-manager.d.ts.map +1 -1
- package/dist/index.js +287 -258
- package/dist/utils/fs.d.ts +6 -0
- package/dist/utils/fs.d.ts.map +1 -1
- package/package.json +3 -2
- package/dist/cli/commands/link.d.ts +0 -5
- package/dist/cli/commands/link.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -42,7 +42,6 @@ reskill offers **fine-grained skill management and synchronization**:
|
|
|
42
42
|
|
|
43
43
|
- **Declarative config** — `skills.json` clearly expresses project dependencies
|
|
44
44
|
- **Global cache** — Avoid redundant downloads, speed up installation
|
|
45
|
-
- **Local development** — Use `link` to develop and debug skills locally
|
|
46
45
|
|
|
47
46
|
### Engineering-Grade Management
|
|
48
47
|
|
|
@@ -151,11 +150,35 @@ npx reskill@latest list
|
|
|
151
150
|
| `npx reskill@latest update [skill]` | Update all or specific skill |
|
|
152
151
|
| `npx reskill@latest outdated` | Check for outdated skills |
|
|
153
152
|
| `npx reskill@latest uninstall <skill>` | Remove a skill |
|
|
154
|
-
| `npx reskill@latest
|
|
155
|
-
| `npx reskill@latest unlink <skill>` | Unlink a local skill |
|
|
153
|
+
| `npx reskill@latest completion install` | Install shell tab completion |
|
|
156
154
|
|
|
157
155
|
Run `npx reskill@latest <command> --help` for detailed options.
|
|
158
156
|
|
|
157
|
+
### Shell Completion
|
|
158
|
+
|
|
159
|
+
reskill supports tab completion for bash, zsh, and fish shells.
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
# Install completion (interactive, one-time setup)
|
|
163
|
+
reskill completion install
|
|
164
|
+
|
|
165
|
+
# Then restart your shell or run:
|
|
166
|
+
source ~/.zshrc # for zsh
|
|
167
|
+
source ~/.bashrc # for bash
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
After installation, you can use tab completion:
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
reskill <Tab> # Show all commands
|
|
174
|
+
reskill info <Tab> # Complete installed skill names
|
|
175
|
+
reskill uninstall <Tab> # Complete installed skill names
|
|
176
|
+
reskill install -<Tab> # Complete options (-f, -g, -a, etc.)
|
|
177
|
+
reskill install -a <Tab> # Complete agent names
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
To remove completion: `reskill completion uninstall`
|
|
181
|
+
|
|
159
182
|
## Private GitLab Support
|
|
160
183
|
|
|
161
184
|
reskill fully supports private GitLab repositories, including self-hosted instances. Authentication is handled transparently through your system's git configuration.
|
package/README.zh-CN.md
CHANGED
|
@@ -42,7 +42,6 @@ reskill 提供**精细化的 skill 管理和同步方案**:
|
|
|
42
42
|
|
|
43
43
|
- **声明式配置** — `skills.json` 清晰表达项目依赖
|
|
44
44
|
- **全局缓存** — 避免重复下载,加速安装
|
|
45
|
-
- **本地开发** — 使用 `link` 链接本地 skill 进行开发调试
|
|
46
45
|
|
|
47
46
|
### 工程化项目管理
|
|
48
47
|
|
|
@@ -115,13 +114,13 @@ npx reskill@latest install user/skill@v1.0.0
|
|
|
115
114
|
|
|
116
115
|
### 版本规范
|
|
117
116
|
|
|
118
|
-
| 格式
|
|
119
|
-
|
|
120
|
-
| 精确版本 | `@v1.0.0`
|
|
121
|
-
| 最新版本 | `@latest`
|
|
122
|
-
| 范围版本 | `@^2.0.0`
|
|
123
|
-
| 分支
|
|
124
|
-
| Commit
|
|
117
|
+
| 格式 | 示例 | 说明 |
|
|
118
|
+
| -------- | ----------------- | ----------------------------- |
|
|
119
|
+
| 精确版本 | `@v1.0.0` | 锁定到指定 tag |
|
|
120
|
+
| 最新版本 | `@latest` | 获取最新 tag |
|
|
121
|
+
| 范围版本 | `@^2.0.0` | semver 兼容(>=2.0.0 <3.0.0) |
|
|
122
|
+
| 分支 | `@branch:develop` | 指定分支 |
|
|
123
|
+
| Commit | `@commit:abc1234` | 指定 commit hash |
|
|
125
124
|
|
|
126
125
|
## 命令
|
|
127
126
|
|
|
@@ -143,20 +142,44 @@ npx reskill@latest list
|
|
|
143
142
|
|
|
144
143
|
### 命令参考
|
|
145
144
|
|
|
146
|
-
| 命令
|
|
147
|
-
|
|
148
|
-
| `npx reskill@latest init`
|
|
149
|
-
| `npx reskill@latest install [skill]`
|
|
150
|
-
| `npx reskill@latest list`
|
|
151
|
-
| `npx reskill@latest info <skill>`
|
|
152
|
-
| `npx reskill@latest update [skill]`
|
|
153
|
-
| `npx reskill@latest outdated`
|
|
154
|
-
| `npx reskill@latest uninstall <skill>`
|
|
155
|
-
| `npx reskill@latest
|
|
156
|
-
| `npx reskill@latest unlink <skill>` | 取消链接本地 skill |
|
|
145
|
+
| 命令 | 说明 |
|
|
146
|
+
| --------------------------------------- | ----------------------------------------------- |
|
|
147
|
+
| `npx reskill@latest init` | 在当前目录初始化 `skills.json` |
|
|
148
|
+
| `npx reskill@latest install [skill]` | 安装 `skills.json` 中的所有 skills 或指定 skill |
|
|
149
|
+
| `npx reskill@latest list` | 列出已安装的 skills |
|
|
150
|
+
| `npx reskill@latest info <skill>` | 查看 skill 详情 |
|
|
151
|
+
| `npx reskill@latest update [skill]` | 更新所有或指定 skill |
|
|
152
|
+
| `npx reskill@latest outdated` | 检查过期的 skills |
|
|
153
|
+
| `npx reskill@latest uninstall <skill>` | 卸载 skill |
|
|
154
|
+
| `npx reskill@latest completion install` | 安装 Shell Tab 补全 |
|
|
157
155
|
|
|
158
156
|
运行 `npx reskill@latest <command> --help` 查看详细选项。
|
|
159
157
|
|
|
158
|
+
### Shell 补全
|
|
159
|
+
|
|
160
|
+
reskill 支持 bash、zsh 和 fish 的 Tab 补全。
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
# 安装补全(交互式,一次性设置)
|
|
164
|
+
reskill completion install
|
|
165
|
+
|
|
166
|
+
# 然后重启 shell 或执行:
|
|
167
|
+
source ~/.zshrc # zsh
|
|
168
|
+
source ~/.bashrc # bash
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
安装后即可使用 Tab 补全:
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
reskill <Tab> # 显示所有命令
|
|
175
|
+
reskill info <Tab> # 补全已安装的 skill 名称
|
|
176
|
+
reskill uninstall <Tab> # 补全已安装的 skill 名称
|
|
177
|
+
reskill install -<Tab> # 补全选项 (-f, -g, -a 等)
|
|
178
|
+
reskill install -a <Tab> # 补全 agent 名称
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
卸载补全:`reskill completion uninstall`
|
|
182
|
+
|
|
160
183
|
## 私有 GitLab 支持
|
|
161
184
|
|
|
162
185
|
reskill 完整支持私有 GitLab 仓库,包括自建实例。认证通过系统的 git 配置透明处理。
|
|
@@ -254,14 +277,14 @@ npx reskill@latest install git@git.mycompany.io:team/skill.git@v1.0.0
|
|
|
254
277
|
|
|
255
278
|
reskill 支持所有主流 AI 编程 Agent。Skills 默认安装到 `.skills/` 目录,可与任何 Agent 集成。
|
|
256
279
|
|
|
257
|
-
| Agent
|
|
258
|
-
|
|
259
|
-
| Cursor
|
|
260
|
-
| Claude Code
|
|
261
|
-
| Codex
|
|
262
|
-
| OpenCode
|
|
263
|
-
| Windsurf
|
|
264
|
-
| GitHub Copilot | `.github/skills/`
|
|
280
|
+
| Agent | 集成路径 |
|
|
281
|
+
| -------------- | ------------------------------------- |
|
|
282
|
+
| Cursor | `.cursor/rules/` 或 `.cursor/skills/` |
|
|
283
|
+
| Claude Code | `.claude/skills/` |
|
|
284
|
+
| Codex | `.codex/skills/` |
|
|
285
|
+
| OpenCode | `.opencode/skills/` |
|
|
286
|
+
| Windsurf | `.windsurf/skills/` |
|
|
287
|
+
| GitHub Copilot | `.github/skills/` |
|
|
265
288
|
|
|
266
289
|
## Skill 仓库结构
|
|
267
290
|
|
|
@@ -308,10 +331,10 @@ my-project/
|
|
|
308
331
|
|
|
309
332
|
## 环境变量
|
|
310
333
|
|
|
311
|
-
| 变量
|
|
312
|
-
|
|
334
|
+
| 变量 | 说明 | 默认值 |
|
|
335
|
+
| ------------------- | ------------ | ------------------ |
|
|
313
336
|
| `RESKILL_CACHE_DIR` | 全局缓存目录 | `~/.reskill-cache` |
|
|
314
|
-
| `DEBUG`
|
|
337
|
+
| `DEBUG` | 启用调试日志 | - |
|
|
315
338
|
|
|
316
339
|
## 开发
|
|
317
340
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
/**
|
|
3
|
+
* completion command - Setup shell completion
|
|
4
|
+
*/
|
|
5
|
+
export declare const completionCommand: Command;
|
|
6
|
+
/**
|
|
7
|
+
* Check if completion is being requested and handle it
|
|
8
|
+
*
|
|
9
|
+
* This should be called at the start of CLI execution
|
|
10
|
+
*/
|
|
11
|
+
export declare function maybeHandleCompletion(): boolean;
|
|
12
|
+
export default completionCommand;
|
|
13
|
+
//# sourceMappingURL=completion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/completion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2IpC;;GAEG;AACH,eAAO,MAAM,iBAAiB,SA2D1B,CAAC;AAEL;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAO/C;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
export { completionCommand, maybeHandleCompletion } from './completion.js';
|
|
1
2
|
export { infoCommand } from './info.js';
|
|
2
3
|
export { initCommand } from './init.js';
|
|
3
4
|
export { installCommand } from './install.js';
|
|
4
|
-
export { linkCommand, unlinkCommand } from './link.js';
|
|
5
5
|
export { listCommand } from './list.js';
|
|
6
6
|
export { outdatedCommand } from './outdated.js';
|
|
7
7
|
export { uninstallCommand } from './uninstall.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
2
|
/**
|
|
3
|
-
* install command - Install a skill
|
|
3
|
+
* install command - Install a skill or all skills from skills.json
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* Installation Flow:
|
|
6
|
+
* 1. Resolve target agents (CLI > stored > detected > prompt)
|
|
7
|
+
* 2. Resolve installation scope (global vs project)
|
|
8
|
+
* 3. Resolve installation mode (symlink vs copy)
|
|
9
|
+
* 4. Execute installation
|
|
10
|
+
* 5. Save defaults for future installs
|
|
9
11
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* 3. Select installation scope (project/global)
|
|
14
|
-
* 4. Select installation method (symlink/copy)
|
|
15
|
-
* 5. Confirm and execute
|
|
12
|
+
* Behavior:
|
|
13
|
+
* - Single skill install: Prompts for agents/mode (stored config as defaults)
|
|
14
|
+
* - Reinstall all (no args): Uses stored config directly, no confirmation
|
|
16
15
|
*/
|
|
17
16
|
export declare const installCommand: Command;
|
|
18
17
|
export default installCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/install.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/install.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkjBpC;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,SA6DvB,CAAC;AAEL,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/uninstall.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/uninstall.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAoEzB,CAAC;AAEL,eAAe,gBAAgB,CAAC"}
|