tools-manager 0.1.0 → 0.1.1
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 +25 -19
- package/README.zh-CN.md +25 -19
- package/docs/remote-skill-repositories.md +21 -2
- package/package.json +9 -1
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
[中文文档](README.zh-CN.md)
|
|
4
4
|
|
|
5
|
+
GitHub: [pipihua666/tools-manager](https://github.com/pipihua666/tools-manager)
|
|
6
|
+
|
|
5
7
|
Tools Manager (`tm`) is a Bun-powered CLI for managing AI agent skills and MCP server configuration across Codex, Claude Code, and Cursor.
|
|
6
8
|
|
|
7
9
|
It gives you one local source of truth for:
|
|
@@ -42,13 +44,20 @@ For source checkout usage, see [Development](#development).
|
|
|
42
44
|
|
|
43
45
|
## Quick Start
|
|
44
46
|
|
|
45
|
-
Import all existing local agent skills into Tools Manager, then
|
|
47
|
+
Import all existing local agent skills into Tools Manager, then sync them back to all supported agents:
|
|
46
48
|
|
|
47
49
|
```bash
|
|
50
|
+
# Create the Tools Manager home directory and default config.
|
|
48
51
|
tm init
|
|
52
|
+
|
|
53
|
+
# Import existing skills from Codex, Claude Code, and Cursor.
|
|
49
54
|
tm skills add --tool all
|
|
55
|
+
|
|
56
|
+
# Show the skills now managed by Tools Manager.
|
|
50
57
|
tm skills list
|
|
51
|
-
|
|
58
|
+
|
|
59
|
+
# Sync the default skill group back to all supported agents.
|
|
60
|
+
tm skills sync
|
|
52
61
|
```
|
|
53
62
|
|
|
54
63
|
If you have not linked or installed the package yet, use:
|
|
@@ -57,7 +66,7 @@ If you have not linked or installed the package yet, use:
|
|
|
57
66
|
bun run tm init
|
|
58
67
|
bun run tm skills add --tool all
|
|
59
68
|
bun run tm skills list
|
|
60
|
-
bun run tm
|
|
69
|
+
bun run tm skills sync
|
|
61
70
|
```
|
|
62
71
|
|
|
63
72
|
By default, Tools Manager writes state to:
|
|
@@ -150,11 +159,21 @@ tm skills sync --mode copy
|
|
|
150
159
|
tm skills sync Work --tool codex --mode symlink
|
|
151
160
|
```
|
|
152
161
|
|
|
153
|
-
`tm skills sync`
|
|
162
|
+
`tm skills sync` is the main command for making agent tools see your managed skills.
|
|
163
|
+
|
|
164
|
+
Defaults:
|
|
165
|
+
|
|
166
|
+
- `tm skills sync` syncs preset `Default`
|
|
167
|
+
- `tm skills sync` syncs to `--tool all`, which means Codex, Claude Code, and Cursor
|
|
168
|
+
- `tm skills sync` uses the configured `sync_mode`; pass `--mode symlink` or `--mode copy` to override it for one run
|
|
169
|
+
|
|
170
|
+
In short: after adding or moving skills, run `tm skills sync`.
|
|
154
171
|
|
|
155
172
|
## Skill Presets
|
|
156
173
|
|
|
157
|
-
Skill presets are named groups of skills.
|
|
174
|
+
Skill presets are named groups of skills. They help you decide which skills should be synced together.
|
|
175
|
+
|
|
176
|
+
For example, you can keep everyday skills in `Default`, and work-only skills in `Work`. Imported skills are added to `Default` automatically.
|
|
158
177
|
|
|
159
178
|
List skill presets:
|
|
160
179
|
|
|
@@ -174,19 +193,7 @@ Move all skills from one skill preset to another:
|
|
|
174
193
|
tm presets move Default Work
|
|
175
194
|
```
|
|
176
195
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
```bash
|
|
180
|
-
tm presets apply
|
|
181
|
-
tm presets apply Work --tool cursor
|
|
182
|
-
tm presets apply --mode copy
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
Defaults:
|
|
186
|
-
|
|
187
|
-
- `tm presets apply` uses preset `Default`
|
|
188
|
-
- `tm presets apply` uses `--tool all`
|
|
189
|
-
- `tm presets apply` uses `sync_mode` from config unless `--mode symlink|copy` is provided
|
|
196
|
+
After changing preset membership, use `tm skills sync` to update agent skill directories.
|
|
190
197
|
|
|
191
198
|
## MCP Servers
|
|
192
199
|
|
|
@@ -272,7 +279,6 @@ tm skills show <name> [--json]
|
|
|
272
279
|
tm skills remove <name> [--yes]
|
|
273
280
|
tm skills sync [preset] [--tool <tool|all>] [--mode <symlink|copy>]
|
|
274
281
|
tm presets list [--json]
|
|
275
|
-
tm presets apply [preset] [--tool <tool|all>] [--mode <symlink|copy>]
|
|
276
282
|
tm presets move-skill <skill> <from> <to>
|
|
277
283
|
tm presets move <from> <to>
|
|
278
284
|
tm mcp add <name> --command <cmd> [--arg value] [--env K=V] [--tool <tool|all>]
|
package/README.zh-CN.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.md)
|
|
4
4
|
|
|
5
|
+
GitHub: [pipihua666/tools-manager](https://github.com/pipihua666/tools-manager)
|
|
6
|
+
|
|
5
7
|
Tools Manager (`tm`) 是一个基于 Bun 的 CLI,用来统一管理 Codex、Claude Code 和 Cursor 等 AI Agent 的 skills 与 MCP server 配置。
|
|
6
8
|
|
|
7
9
|
它提供一个本地统一管理入口:
|
|
@@ -41,13 +43,20 @@ tm status
|
|
|
41
43
|
|
|
42
44
|
## 快速开始
|
|
43
45
|
|
|
44
|
-
先把所有本地 Agent 里已有的 skills 导入 Tools Manager
|
|
46
|
+
先把所有本地 Agent 里已有的 skills 导入 Tools Manager,再同步回所有支持的 Agent:
|
|
45
47
|
|
|
46
48
|
```bash
|
|
49
|
+
# 创建 Tools Manager 的本地管理目录和默认配置。
|
|
47
50
|
tm init
|
|
51
|
+
|
|
52
|
+
# 从 Codex、Claude Code、Cursor 导入已有 skills。
|
|
48
53
|
tm skills add --tool all
|
|
54
|
+
|
|
55
|
+
# 查看当前由 Tools Manager 托管的 skills。
|
|
49
56
|
tm skills list
|
|
50
|
-
|
|
57
|
+
|
|
58
|
+
# 把默认 skill 分组同步回所有支持的 Agent。
|
|
59
|
+
tm skills sync
|
|
51
60
|
```
|
|
52
61
|
|
|
53
62
|
如果还没有 link 或安装这个包,可以使用:
|
|
@@ -56,7 +65,7 @@ tm presets apply
|
|
|
56
65
|
bun run tm init
|
|
57
66
|
bun run tm skills add --tool all
|
|
58
67
|
bun run tm skills list
|
|
59
|
-
bun run tm
|
|
68
|
+
bun run tm skills sync
|
|
60
69
|
```
|
|
61
70
|
|
|
62
71
|
默认情况下,Tools Manager 会把状态写入:
|
|
@@ -149,11 +158,21 @@ tm skills sync --mode copy
|
|
|
149
158
|
tm skills sync Work --tool codex --mode symlink
|
|
150
159
|
```
|
|
151
160
|
|
|
152
|
-
`tm skills sync`
|
|
161
|
+
`tm skills sync` 是让 Agent 工具看到托管 skills 的主命令。
|
|
162
|
+
|
|
163
|
+
默认行为:
|
|
164
|
+
|
|
165
|
+
- `tm skills sync` 同步 `Default` preset
|
|
166
|
+
- `tm skills sync` 同步到 `--tool all`,也就是 Codex、Claude Code 和 Cursor
|
|
167
|
+
- `tm skills sync` 使用配置里的 `sync_mode`;传入 `--mode symlink` 或 `--mode copy` 可以覆盖本次执行
|
|
168
|
+
|
|
169
|
+
简单理解:添加或移动 skills 后,执行 `tm skills sync`。
|
|
153
170
|
|
|
154
171
|
## Skill Presets
|
|
155
172
|
|
|
156
|
-
Skill presets 是命名的 skill
|
|
173
|
+
Skill presets 是命名的 skill 分组,用来决定哪些 skills 要一起同步。
|
|
174
|
+
|
|
175
|
+
例如,日常使用的 skills 可以放在 `Default`,工作专用的 skills 可以放在 `Work`。导入的 skills 会自动加入 `Default`。
|
|
157
176
|
|
|
158
177
|
列出 skill presets:
|
|
159
178
|
|
|
@@ -173,19 +192,7 @@ tm presets move-skill my-skill Default Work
|
|
|
173
192
|
tm presets move Default Work
|
|
174
193
|
```
|
|
175
194
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
```bash
|
|
179
|
-
tm presets apply
|
|
180
|
-
tm presets apply Work --tool cursor
|
|
181
|
-
tm presets apply --mode copy
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
默认行为:
|
|
185
|
-
|
|
186
|
-
- `tm presets apply` 使用 preset `Default`
|
|
187
|
-
- `tm presets apply` 使用 `--tool all`
|
|
188
|
-
- `tm presets apply` 默认使用配置里的 `sync_mode`,传入 `--mode symlink|copy` 时覆盖本次执行
|
|
195
|
+
调整 preset 分组后,使用 `tm skills sync` 更新 Agent skill 目录。
|
|
189
196
|
|
|
190
197
|
## MCP Servers
|
|
191
198
|
|
|
@@ -271,7 +278,6 @@ tm skills show <name> [--json]
|
|
|
271
278
|
tm skills remove <name> [--yes]
|
|
272
279
|
tm skills sync [preset] [--tool <tool|all>] [--mode <symlink|copy>]
|
|
273
280
|
tm presets list [--json]
|
|
274
|
-
tm presets apply [preset] [--tool <tool|all>] [--mode <symlink|copy>]
|
|
275
281
|
tm presets move-skill <skill> <from> <to>
|
|
276
282
|
tm presets move <from> <to>
|
|
277
283
|
tm mcp add <name> --command <cmd> [--arg value] [--env K=V] [--tool <tool|all>]
|
|
@@ -23,6 +23,19 @@ tm skills add 'git@github.com:you/my-skill-repo.git'
|
|
|
23
23
|
|
|
24
24
|
Use this layout when one repository contains multiple skills:
|
|
25
25
|
|
|
26
|
+
```text
|
|
27
|
+
my-skills-repo/
|
|
28
|
+
skills/
|
|
29
|
+
skill-a/
|
|
30
|
+
SKILL.md
|
|
31
|
+
skill-b/
|
|
32
|
+
SKILL.md
|
|
33
|
+
skill-c/
|
|
34
|
+
SKILL.md
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
The `skills/` directory is optional. Tools Manager scans recursively from the selected import root, so this also works:
|
|
38
|
+
|
|
26
39
|
```text
|
|
27
40
|
my-skills-repo/
|
|
28
41
|
skill-a/
|
|
@@ -33,7 +46,13 @@ my-skills-repo/
|
|
|
33
46
|
SKILL.md
|
|
34
47
|
```
|
|
35
48
|
|
|
36
|
-
Import all skills
|
|
49
|
+
Import all skills from the repository:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
tm skills add 'git@github.com:you/my-skills-repo.git#main'
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Or import all skills under the `skills/` directory explicitly:
|
|
37
56
|
|
|
38
57
|
```bash
|
|
39
58
|
tm skills add 'git@github.com:you/my-skills-repo.git#main:skills'
|
|
@@ -42,7 +61,7 @@ tm skills add 'git@github.com:you/my-skills-repo.git#main:skills'
|
|
|
42
61
|
Or import a specific skill by providing the branch, tag, or commit and the skill subpath:
|
|
43
62
|
|
|
44
63
|
```bash
|
|
45
|
-
tm skills add 'git@github.com:you/my-skills-repo.git#main:skill-a'
|
|
64
|
+
tm skills add 'git@github.com:you/my-skills-repo.git#main:skills/skill-a'
|
|
46
65
|
```
|
|
47
66
|
|
|
48
67
|
The Git source format is:
|
package/package.json
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tools-manager",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A Bun CLI for managing AI agent skills and MCP server configuration across tools.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/pipihua666/tools-manager.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/pipihua666/tools-manager#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/pipihua666/tools-manager/issues"
|
|
13
|
+
},
|
|
6
14
|
"type": "module",
|
|
7
15
|
"bin": {
|
|
8
16
|
"tm": "./dist/cli.js"
|