You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Note the skill name(s) added to `skills-lock.json`.
19
+
4. Add each new skill to the external skills registry in `AGENTS.md`.
20
+
5. Verify the hook passes: `python hooks/check-skills-documented.py`.
21
+
22
+
## Line endings and reproducible hashes
23
+
24
+
Due to a [bug in the skills CLI](https://github.com/vercel-labs/skills/issues/781), `computedHash` values in `skills-lock.json` differ depending on git's `core.autocrlf` setting. To produce reproducible hashes, **always** set the following environment variables when running any `npx skills` command:
25
+
26
+
-`GIT_CONFIG_COUNT=1`
27
+
-`GIT_CONFIG_KEY_0=core.autocrlf`
28
+
-`GIT_CONFIG_VALUE_0=false`
20
29
21
30
## Installing the skill
22
31
23
-
To **add a new** external skill, run from the repository root:
32
+
To **add a new** external skill, run from the repository root (with the line-ending environment variables set as described above):
description: Reinstall already-tracked external skills from skills-lock.json (e.g. after a fresh clone)
4
+
compatibility: usethis, agent skills, npx
5
+
license: MIT
6
+
metadata:
7
+
version: "1.0"
8
+
---
9
+
10
+
# Installing External Skills
11
+
12
+
External skills tracked in `skills-lock.json` may not be present locally (e.g. after a fresh clone, since skill files are gitignored). This skill describes how to restore them.
13
+
14
+
## Procedure
15
+
16
+
1. Set the line-ending environment variables to ensure reproducible hashes (see below).
17
+
2. Run `npx skills experimental_install` from the repository root.
18
+
3. Verify `skills-lock.json` is unchanged (e.g. `git diff --exit-code skills-lock.json`).
19
+
20
+
## Line endings and reproducible hashes
21
+
22
+
Due to a [bug in the skills CLI](https://github.com/vercel-labs/skills/issues/781), `computedHash` values in `skills-lock.json` differ depending on git's `core.autocrlf` setting. To produce reproducible hashes, **always** set the following environment variables when running any `npx skills` command:
0 commit comments