Skip to content

Commit 07c4eaa

Browse files
Document the npx skills option --skill (#1570)
1 parent c5ed534 commit 07c4eaa

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

  • .agents/skills/usethis-skills-external-add

.agents/skills/usethis-skills-external-add/SKILL.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ External skills are sourced from third-party repositories rather than written lo
1414
## Procedure
1515

1616
1. Set the line-ending environment variables (see "Line endings and reproducible hashes" below).
17-
2. Install the skills using `npx skills add <source> --skill '*' --agent github-copilot --yes` (e.g. `npx skills add CodSpeedHQ/codspeed --skill '*' --agent github-copilot --yes`).
17+
2. Install the skill(s) — see "Installing the skill" below for the correct `--skill` flag.
1818
3. Note the skill name(s) added to `skills-lock.json`.
1919
4. Add each new skill to the external skills registry in `AGENTS.md`.
2020
5. Verify the hook passes: `uv run prek check-skills-documented`.
@@ -29,13 +29,19 @@ Due to a [bug in the skills CLI](https://github.com/vercel-labs/skills/issues/78
2929

3030
## Installing the skill
3131

32-
To **add a new** external skill, run from the repository root (with the line-ending environment variables set as described above):
32+
To **add a specific skill** from a source, run from the repository root (with the line-ending environment variables set as described above):
33+
34+
```commandline
35+
npx skills add <github-org>/<repo> --skill '<skill-name>' --agent github-copilot --yes
36+
```
37+
38+
To **add all skills** from a source (only when you want every skill the source offers):
3339

3440
```commandline
3541
npx skills add <github-org>/<repo> --skill '*' --agent github-copilot --yes
3642
```
3743

38-
This adds the skill entry to `skills-lock.json`. Multiple skills may be added from a single source.
44+
**Warning:** `--skill '*'` installs _every_ skill from the source repository, which can be hundreds of unwanted skills. Always prefer `--skill '<skill-name>'` unless you genuinely want all of them.
3945

4046
## Documenting in AGENTS.md
4147

0 commit comments

Comments
 (0)