skills 1.7.3 → 1.7.4
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 +5 -4
- package/dist/cli.mjs +7 -7
- package/docs/commands.md +12 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ private repositories, and all options.
|
|
|
46
46
|
| `npx skills find [query]` | Search for skills |
|
|
47
47
|
| `npx skills list` | List installed skills |
|
|
48
48
|
| `npx skills use <source>@<skill>` | Use one skill without installing |
|
|
49
|
-
| `npx skills
|
|
49
|
+
| `npx skills experimental_sync` | Sync skills from npm dependencies (experimental) |
|
|
50
50
|
| `npx skills check` | Check for available updates |
|
|
51
51
|
| `npx skills update [skills...]` | Update installed skills |
|
|
52
52
|
| `npx skills remove [skills...]` | Remove installed skills |
|
|
@@ -64,18 +64,19 @@ npx skills use vercel-labs/agent-skills@web-design-guidelines --agent claude-cod
|
|
|
64
64
|
|
|
65
65
|
Omit `--agent` to print the prompt instead. See [`skills use`](docs/commands.md#skills-use).
|
|
66
66
|
|
|
67
|
-
## Sync Skills from npm Packages
|
|
67
|
+
## Sync Skills from npm Packages (Experimental)
|
|
68
68
|
|
|
69
69
|
Some npm packages bundle instructions for your agent alongside their code:
|
|
70
70
|
|
|
71
71
|
```bash
|
|
72
72
|
npm install -D skills agent-browser
|
|
73
|
-
npx skills
|
|
73
|
+
npx skills experimental_sync -y
|
|
74
74
|
```
|
|
75
75
|
|
|
76
76
|
Sync links packaged skills into your project so they update with
|
|
77
77
|
the dependency. It also supports skill packs declared in `package.json`.
|
|
78
|
-
|
|
78
|
+
This feature is experimental; its options and behavior may change as we iterate.
|
|
79
|
+
See [npm skills and automatic setup](docs/commands.md#skills-experimental_sync).
|
|
79
80
|
|
|
80
81
|
## Supported Agents
|
|
81
82
|
|
package/dist/cli.mjs
CHANGED
|
@@ -4182,7 +4182,7 @@ async function tryBlobInstall(ownerRepo, options = {}) {
|
|
|
4182
4182
|
tree
|
|
4183
4183
|
};
|
|
4184
4184
|
}
|
|
4185
|
-
var version$1 = "1.7.
|
|
4185
|
+
var version$1 = "1.7.4";
|
|
4186
4186
|
const NOTION_API_VERSION = "2026-03-11";
|
|
4187
4187
|
const NTN_TIMEOUT_MS = 3e4;
|
|
4188
4188
|
const NTN_MAX_BUFFER_BYTES = 10 * 1024 * 1024;
|
|
@@ -6682,7 +6682,7 @@ async function runSync(args, options = {}) {
|
|
|
6682
6682
|
}
|
|
6683
6683
|
}
|
|
6684
6684
|
console.log();
|
|
6685
|
-
if (!agentResult.isAgent) intro(import_picocolors.default.bgCyan(import_picocolors.default.black(" skills
|
|
6685
|
+
if (!agentResult.isAgent) intro(import_picocolors.default.bgCyan(import_picocolors.default.black(" skills experimental_sync ")));
|
|
6686
6686
|
if (agentResult.isAgent) log.info(import_picocolors.default.bgCyan(import_picocolors.default.black(import_picocolors.default.bold(` ${agentResult.agent.name} `))) + " Agent detected — installing non-interactively");
|
|
6687
6687
|
const spinner$2 = spinner();
|
|
6688
6688
|
spinner$2.start("Scanning node_modules for skills…");
|
|
@@ -8652,7 +8652,7 @@ function showBanner() {
|
|
|
8652
8652
|
console.log();
|
|
8653
8653
|
console.log(` ${DIM}$${RESET} ${TEXT}npx skills experimental_install${RESET} ${DIM}Restore from skills-lock.json${RESET}`);
|
|
8654
8654
|
console.log(` ${DIM}$${RESET} ${TEXT}npx skills init ${DIM}[name]${RESET} ${DIM}Create a new skill${RESET}`);
|
|
8655
|
-
console.log(` ${DIM}$${RESET} ${TEXT}npx skills
|
|
8655
|
+
console.log(` ${DIM}$${RESET} ${TEXT}npx skills experimental_sync${RESET} ${DIM}Sync skills from node_modules${RESET}`);
|
|
8656
8656
|
console.log();
|
|
8657
8657
|
console.log(`${DIM}try:${RESET} npx skills add vercel-labs/agent-skills`);
|
|
8658
8658
|
console.log();
|
|
@@ -8683,8 +8683,8 @@ function showHelp() {
|
|
|
8683
8683
|
["skills update -g", "update global skills only"],
|
|
8684
8684
|
["skills experimental_install", "restore from skills-lock.json"],
|
|
8685
8685
|
["skills init my-skill"],
|
|
8686
|
-
["skills
|
|
8687
|
-
["skills
|
|
8686
|
+
["skills experimental_sync", "sync from node_modules (experimental)"],
|
|
8687
|
+
["skills experimental_sync -y", "sync without prompts"]
|
|
8688
8688
|
];
|
|
8689
8689
|
const exampleWidth = Math.max(...examples.filter(([, description]) => description).map(([command]) => command.length));
|
|
8690
8690
|
const formattedExamples = examples.map(([command, description]) => {
|
|
@@ -8720,7 +8720,7 @@ ${BOLD}Update Options:${RESET}
|
|
|
8720
8720
|
${BOLD}Project:${RESET}
|
|
8721
8721
|
experimental_install Restore skills from skills-lock.json
|
|
8722
8722
|
init [name] Initialize a skill (creates <name>/SKILL.md or ./SKILL.md)
|
|
8723
|
-
|
|
8723
|
+
experimental_sync Sync skills from node_modules into agent directories (alias: sync)
|
|
8724
8724
|
|
|
8725
8725
|
${BOLD}Add Options:${RESET}
|
|
8726
8726
|
-g, --global Install skill globally (user-level) instead of project-level
|
|
@@ -8747,7 +8747,7 @@ ${BOLD}Remove Options:${RESET}
|
|
|
8747
8747
|
-y, --yes Skip confirmation prompts
|
|
8748
8748
|
--all Remove every installed skill (-y implied). Do not combine with named skills.
|
|
8749
8749
|
|
|
8750
|
-
${BOLD}Sync Options:${RESET}
|
|
8750
|
+
${BOLD}Experimental Sync Options:${RESET}
|
|
8751
8751
|
-a, --agent <agents> Specify agents to install to (use '*' for all agents)
|
|
8752
8752
|
-y, --yes Skip confirmation prompts
|
|
8753
8753
|
--copy Copy skills instead of linking them to node_modules
|
package/docs/commands.md
CHANGED
|
@@ -252,16 +252,22 @@ npx skills rm my-skill
|
|
|
252
252
|
| `-y, --yes` | Skip confirmation prompts |
|
|
253
253
|
| `--all` | Shorthand for `--skill '*' --agent '*' -y` |
|
|
254
254
|
|
|
255
|
-
##
|
|
255
|
+
## Experimental commands
|
|
256
|
+
|
|
257
|
+
These commands are still experimental. Their names, options, and behavior may change.
|
|
258
|
+
|
|
259
|
+
<a id="skills-sync"></a>
|
|
260
|
+
|
|
261
|
+
### `skills experimental_sync`
|
|
256
262
|
|
|
257
|
-
Sync skills from npm packages and `package.json` declarations. `
|
|
258
|
-
|
|
263
|
+
Sync skills from npm packages and `package.json` declarations. `sync` remains
|
|
264
|
+
supported as a compatibility alias for users of skills@1.7.3.
|
|
259
265
|
|
|
260
266
|
Install a package that ships skills, then sync them into your project:
|
|
261
267
|
|
|
262
268
|
```bash
|
|
263
269
|
npm install -D skills agent-browser
|
|
264
|
-
npx skills
|
|
270
|
+
npx skills experimental_sync -y
|
|
265
271
|
```
|
|
266
272
|
|
|
267
273
|
Sync reads installed dependencies declared in your project's `package.json`, including
|
|
@@ -275,7 +281,7 @@ The `.agents/skills/` directory is the shared location. Selecting Claude Code al
|
|
|
275
281
|
creates links under `.claude/skills/` pointing to the shared skills:
|
|
276
282
|
|
|
277
283
|
```bash
|
|
278
|
-
npx skills
|
|
284
|
+
npx skills experimental_sync -a claude-code -y
|
|
279
285
|
```
|
|
280
286
|
|
|
281
287
|
Outside an agent, sync detects installed agents. When run inside a coding agent,
|
|
@@ -289,7 +295,7 @@ To run sync after dependency installation, add a `prepare` script:
|
|
|
289
295
|
```json
|
|
290
296
|
{
|
|
291
297
|
"scripts": {
|
|
292
|
-
"prepare": "skills
|
|
298
|
+
"prepare": "skills experimental_sync -y"
|
|
293
299
|
}
|
|
294
300
|
}
|
|
295
301
|
```
|
|
@@ -327,10 +333,6 @@ The include/exclude filters apply to both packaged and remote skills. For remote
|
|
|
327
333
|
skills, the package pattern matches the package declaring the entry (`.` for the
|
|
328
334
|
project's own field). Eve always receives copies because it rewrites skill frontmatter.
|
|
329
335
|
|
|
330
|
-
## Experimental commands
|
|
331
|
-
|
|
332
|
-
These commands are still experimental. Their names, options, and behavior may change.
|
|
333
|
-
|
|
334
336
|
### Restore skills from the project lock file
|
|
335
337
|
|
|
336
338
|
```bash
|