skilllib 1.11.0 โ 1.11.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 +43 -31
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# โ skilllib
|
|
4
4
|
|
|
5
|
-
**Manage your agent skills like dependencies.**<br>
|
|
5
|
+
**Manage your agent skills like dependencies, or let your agents do it.**<br>
|
|
6
6
|
One library for all your skills. Each repo gets only the ones it needs,<br>
|
|
7
7
|
and every agent you use can see them.
|
|
8
8
|
|
|
@@ -12,9 +12,11 @@ and every agent you use can see them.
|
|
|
12
12
|

|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
|
|
15
|
+
npm install -g skilllib && skilllib agent-skill install
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
Then ask your agent: *"Which skills can you use here, and which of my global skills should only load in this repo?"*
|
|
19
|
+
|
|
18
20
|
<img src="docs/design/repo.svg" alt="skilllib: Places on the left, a repo's skills with their issues and uses, and the selected skill's fixes and actions below" width="100%">
|
|
19
21
|
|
|
20
22
|
</div>
|
|
@@ -43,18 +45,18 @@ Most agents can't turn off a global skill for just one repo. Claude Code can, bu
|
|
|
43
45
|
|
|
44
46
|
## How skilllib fixes it
|
|
45
47
|
|
|
48
|
+
- **๐ค Your agents run it.** One small skill teaches Claude Code, Cursor, Codex, Zed and Grok to use the skilllib CLI. Ask them what's loaded here, what to add, what's out of date, or to move a global skill into the repos that use it. Every command has `--json` output shaped for agents, and they ask before changing anything.
|
|
46
49
|
- **๐ Your skills: one versioned library.** Every skill has a single master copy in `~/.skilllib/library`, and each change becomes a new version.
|
|
47
50
|
- **๐ฆ Per-repo installs, pinned like dependencies.** Each repo lists its skills and versions in `skilllib.json`. `sync` reproduces them exactly, and `update` moves to the newest.
|
|
48
51
|
- **๐ค One copy, every agent.** skilllib puts one real copy in the repo and links it into whichever folders your other agents read.
|
|
49
|
-
- **๐งน Health: one list of what to fix.** Global skills you haven't decided about, skills loaded twice, duplicate copies, updates, broken links, each with its fix. For a global skill: move it to the repos that need it, keep it global, or delete it. Usage numbers and descriptions help you decide.
|
|
52
|
+
- **๐งน Health: one list of what to fix.** Global skills you haven't decided about, skills loaded twice, duplicate copies, updates, broken links, each with its fix. For a global skill: move it to the repos that need it, keep it global, or delete it. Usage numbers and descriptions help you, or your agent, decide.
|
|
50
53
|
- **โ Global on purpose.** Some skills belong everywhere. Mark them once and skilllib stops warning about them.
|
|
51
54
|
- **๐ See everything in a repo:**
|
|
52
55
|
- where each skill comes from (the repo, your library, global, a plugin, claude.aiโฆ)
|
|
53
56
|
- which agents load it
|
|
54
57
|
- whether it's committed to git or gitignored
|
|
55
58
|
- how often it was used
|
|
56
|
-
-
|
|
57
|
-
- **โฆ Ask an agent.** Copy a ready-made prompt with all of that data, and let Claude Code, Cursor, Codex or Grok tell you what to keep, move or delete.
|
|
59
|
+
- **๐ฅ An app when you want to look yourself.** `skilllib` opens a terminal app with the same data and fixes, and can copy a review prompt for any agent.
|
|
58
60
|
- **๐ Nothing is lost.** Every removal goes to a backup you can restore with one key.
|
|
59
61
|
|
|
60
62
|
Everything runs locally: no server, no account, no network calls.
|
|
@@ -63,17 +65,27 @@ Everything runs locally: no server, no account, no network calls.
|
|
|
63
65
|
|
|
64
66
|
## Quick start
|
|
65
67
|
|
|
68
|
+
It needs **Node.js 22+** and works on macOS and Linux. Windows support is newer: it uses directory junctions, so no admin rights are needed.
|
|
69
|
+
|
|
70
|
+
### With your agents
|
|
71
|
+
|
|
66
72
|
```bash
|
|
67
|
-
npm install -g skilllib
|
|
68
|
-
skilllib
|
|
73
|
+
npm install -g skilllib
|
|
74
|
+
skilllib agent-skill install
|
|
69
75
|
```
|
|
70
76
|
|
|
71
|
-
|
|
77
|
+
This installs the `skilllib` skill where your agents look, in every repo (see [Use it from your agents](#use-it-from-your-agents)). Start a new agent session in any repo and ask away.
|
|
78
|
+
|
|
79
|
+
### In the app
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
skilllib # or: npx skilllib
|
|
83
|
+
```
|
|
72
84
|
|
|
73
85
|
On first run, skilllib asks two things:
|
|
74
86
|
|
|
75
87
|
1. **Which agents you use:** Claude Code, Cursor, Codex, Zed, Grok. The ones installed on your machine are pre-selected.
|
|
76
|
-
2. **Where your projects live**, e.g. `~/Projects`. It finds every git repo in there, and rescans each time it opens.
|
|
88
|
+
2. **Where your projects live**, e.g. `~/Projects`. It finds every git repo in there, and rescans each time it opens. Agent worktrees (`<repo>/.claude/worktrees/*`) aren't counted as projects.
|
|
77
89
|
|
|
78
90
|
Then a good first session looks like this:
|
|
79
91
|
|
|
@@ -83,7 +95,26 @@ Then a good first session looks like this:
|
|
|
83
95
|
|
|
84
96
|
---
|
|
85
97
|
|
|
86
|
-
##
|
|
98
|
+
## Use it from your agents
|
|
99
|
+
|
|
100
|
+
`skilllib agent-skill install` puts a small `skilllib` skill in `~/.claude/skills` (Claude Code, Cursor and Grok read it there), with a link in `~/.agents/skills` (Codex and Zed). This is the one skill that should be global, because it's about every repo. Upgrading skilllib keeps it up to date, and `skilllib agent-skill remove` takes it out. Agents use it from their next session.
|
|
101
|
+
|
|
102
|
+
Then ask in plain words. A few examples, with what the agent runs:
|
|
103
|
+
|
|
104
|
+
| Ask | The agent runs |
|
|
105
|
+
|---|---|
|
|
106
|
+
| *Which skills can you use here, and where does each come from?* | `status --json`, which Claude Code gets as the skill loads, so it answers in one step |
|
|
107
|
+
| *Which of my skills should this repo use?* | `list --json`, then reads the README and manifests, and gives a reason for each pick |
|
|
108
|
+
| *Which skills do I use most? Which ones never?* | `usage --json` (Claude Code usage only, so "never" is a hint) |
|
|
109
|
+
| *Move my global skills into the repos that actually use them.* | `usage --json` to see where each is used, then `global move <name> --to <repo>`, or `global keep <name>` for the ones you want everywhere |
|
|
110
|
+
| *Is anything broken or out of date? Fix it.* | `status --json` or `doctor --json`, then `doctor --fix` for the safe repairs and `apply <id> <choice>` for each decision you approve |
|
|
111
|
+
| *Add the skill from github.com/acme/skills to my library.* | Clones the repo into a temporary folder, then `import <dir>` and `add <name>`. skilllib itself downloads nothing |
|
|
112
|
+
|
|
113
|
+
The agent asks before it changes anything, unless you asked for that exact change. Anything skilllib removes can be restored: see [Backups](#backups).
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## The app
|
|
87
118
|
|
|
88
119
|
### The screen
|
|
89
120
|
|
|
@@ -224,25 +255,6 @@ Paste it into Claude Code, Cursor, Codex or Grok. You get back **keep global / m
|
|
|
224
255
|
|
|
225
256
|
It's in every skill's actions, in a repo's **โฏ** menu (all its skills), and at the top of Global (all your global skills).
|
|
226
257
|
|
|
227
|
-
### Ask your agents about skills
|
|
228
|
-
|
|
229
|
-
Run this once:
|
|
230
|
-
|
|
231
|
-
```bash
|
|
232
|
-
skilllib agent-skill install
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
This installs a small `skilllib` skill that tells your agents how to use skilllib. It goes where your agents look, in every repo: `~/.claude/skills` for Claude Code and Cursor, with a link in `~/.agents/skills` for Codex and Zed. This is the one skill that should be global, because it's about every repo. Health and Settings offer the same install, and upgrading skilllib keeps the skill up to date.
|
|
236
|
-
|
|
237
|
-
Then, in any repo, you can ask:
|
|
238
|
-
|
|
239
|
-
- *Which skills can you use in this repo?*
|
|
240
|
-
- *Where does each one come from?*
|
|
241
|
-
- *Which skills from my library would you add to this project?*
|
|
242
|
-
- *Is anything out of date? Update it.*
|
|
243
|
-
|
|
244
|
-
The agent runs `skilllib status --json`, `skilllib list --json` and similar commands, reads the repo, and answers. It asks before it adds or removes anything. `skilllib agent-skill remove` uninstalls it.
|
|
245
|
-
|
|
246
258
|
### Duplicates
|
|
247
259
|
|
|
248
260
|
The same skill often reaches your agents more than once: a copy in `.claude/skills` *and* in `.agents/skills`, a global copy *and* a repo copy, a plugin *and* your skill. skilllib keeps **one real copy per skill, plus only the links your agents need**. **Health** lists each case on the skill it's about, with its fix. From the command line, `skilllib doctor` lists them and `skilllib tidy` fixes the folder ones.
|
|
@@ -351,7 +363,7 @@ A skill is a folder with a `SKILL.md`. These are all the places your agents load
|
|
|
351
363
|
|
|
352
364
|
## Command line
|
|
353
365
|
|
|
354
|
-
Everything the app does also works as a command, for scripts and CI:
|
|
366
|
+
Everything the app does also works as a command, for your agents, scripts and CI:
|
|
355
367
|
|
|
356
368
|
```
|
|
357
369
|
skilllib open the app (prints `status` when piped)
|
|
@@ -442,7 +454,7 @@ Environment variables: `SKILLLIB_HOME` moves `~/.skilllib`, `$VISUAL` / `$EDITOR
|
|
|
442
454
|
- Turning off Cursor marketplace plugins: skilllib lists them and reports ones that duplicate your skills, but Cursor doesn't record which plugins are on in a file skilllib can read.
|
|
443
455
|
- Installing plugins from a marketplace: use `/plugin` in Claude Code. Plugins a repo's own `.claude/settings.json` turns on without installing them aren't listed in Plugins yet.
|
|
444
456
|
- Unloading a `npx skills` skill doesn't update that tool's lock file.
|
|
445
|
-
-
|
|
457
|
+
- Downloading skills: skilllib makes no network calls. To get a skill from GitHub, clone the repo and run `skilllib import <folder>`, or ask your agent to.
|
|
446
458
|
|
|
447
459
|
---
|
|
448
460
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skilllib",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"description": "Manage your agent skills like dependencies. One library for all your skills; each repo gets only the ones it needs, and every agent can see them. Works with Claude Code, Cursor, Codex, Zed and Grok.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent-skills",
|