npx skills add Tutorial: Review Skills Before You Install
Install one Agent Skill for Claude Code, Codex, and Cursor with npx skills add. Tested on 1.10.0: where files land, what to review, and how to lock versions.
One npx skills add command can install the same Agent Skill for Claude Code, Codex, and Cursor. When I asked Claude Code to run it, the CLI skipped the prompts and installed skills it had flagged for review. Read SKILL.md and the files it references first, then name the skill and the agents in the install command.
I tested skills 1.10.0 on December 3, 2026, a day after its release. It requires Node.js 22.20 or later, and commands and output may differ in other versions.
Vercel’s skills CLI Supports About 80 Agents
Vercel Labs publishes vercel-labs/skills under the MIT license as skills on npm. The CLI finds skills in Git repositories, including GitHub and GitLab, or in local directories. It then puts the files where the agents can read them.
Each skill has a SKILL.md that tells the agent when to use it and what to do. See How to Write an Agent Skill: SKILL.md, Triggers, Tests for an example.
Vercel lists the supported agents in the 1.10.0 README, including OpenCode. You can search for public skills on skills.sh.
| Command | What it does |
|---|---|
add <source> --list | Lists the skills in a source without installing |
use <source>@<skill> | Prints the prompt for the agent without installing the skill |
add <source> --skill <skill> -a <agent> | Selects the skill and the install targets |
list | Lists installed skills and compares project skills with skills-lock.json |
check | Checks for upstream updates and edits to project skills |
install | Restores skills from skills-lock.json |
remove | Removes skills |
In CI (checks that run automatically on every push) or a team script, I use npx skills@1.10.0 in place of npx skills to pin the CLI version.
Use --list to See What’s in a Repository
I’m using Vercel’s own vercel-labs/agent-skills. Start in your project root.
1
npx skills add vercel-labs/agent-skills --list
The CLI found nine skills and printed their names and descriptions. It added no skill files to the project. Here’s the output for two of them.
1
2
3
4
5
6
7
8
9
10
11
12
13
◇ Found 9 skills
│
◇ Available Skills
│
│ web-design-guidelines
│
│ Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", ...
│
│ writing-guidelines
│
│ Review docs/prose for Writing Guidelines compliance. Use when asked to "review my docs", ...
│
└ Use --skill <name> to install specific skills
The description gives you an idea of when the skill might be useful. To see what it asks an agent to do, open SKILL.md and the files it references.
Read SKILL.md for Commands and Files the Agent Will Use
I start with the skill’s folder on GitHub, such as skills/writing-guidelines/. To see the prompt the CLI generates from the skill, run use.
1
npx skills use vercel-labs/agent-skills@writing-guidelines | less
I ran this and checked that the project had no new skill files. Leave out --agent when you just want to read the prompt. That option starts the agent and passes it the generated prompt.
A skill can ask the agent to use any of the permissions it already has. Here’s what I look for.
- Commands it tells the agent to run, and bundled scripts such as
scripts/or.shfiles. - Steps that download content at run time and treat it as instructions.
- Files the agent would read or write, plus any credentials or environment variables it needs.
In this repo, web-design-guidelines ships with its review rules. writing-guidelines downloads its rules again for every review.
web-design-guidelines | writing-guidelines | |
|---|---|---|
| Rule file | references/command.md, bundled with the skill | WebFetch reads command.md from the GitHub main branch on each run |
| How the rules are pinned | Records the upstream commit and SHA-256 hash and tells the agent to use the bundled file | Reads whatever is on main at the time |
| Snyk rating on skills.sh | Low Risk | Med Risk, 2 issues |
The SKILL.md for writing-guidelines says “Fetch fresh guidelines before each review.” If that command.md changes on GitHub, your next review picks up the new rules even if you haven’t reinstalled the skill.
Snyk’s review of this Vercel skill flags two issues.
- Third-party content can carry indirect prompt injection (instructions hidden in content the agent reads).
- The skill leaves the remote rules unpinned, so you can’t tell from the installed files which version the agent will get next time.
I use findings like these to decide what to read before installing. The skills-lock.json example below pins the files that go into your project. The rules writing-guidelines fetches during a review sit outside that lock.
Install One Skill for Three Agents With --skill and -a
I picked web-design-guidelines after reading it. --skill names the skill, and -a names the install targets.
1
npx skills add vercel-labs/agent-skills --skill web-design-guidelines -a claude-code -a codex -a cursor
In a terminal, the CLI first asks you to choose Project or Global. It then asks whether to use Symlink (a link to another path) or Copy (a separate copy of the files). It defaults to Symlink.
I chose Project and Symlink. After showing the install summary and security ratings, the CLI asked “Proceed with installation?” with Yes selected. Here’s the output with the path shortened.
1
2
3
4
5
6
7
8
9
10
◇ Installation Summary
│ ./.agents/skills/web-design-guidelines
│ universal: Codex, Cursor
│ symlink → Claude Code
│
◇ Security Risk Assessments
│ Gen Socket Snyk
│ web-design-guidelines Safe 0 alerts Low Risk
│
└ Done! Review skills before use; they run with full agent permissions.
After the install, the CLI asked if I wanted to add find-skills, with Yes already selected.
The CLI asks about find-skills only once.
I pressed Enter. The CLI installed find-skills globally in ~/.agents/skills/ and added a link in ~/.claude/skills/. Snyk rates it Med Risk, but the CLI went ahead without a second confirmation.
If you don’t want find-skills, choose No at the first prompt.
The Files Go in a Shared Folder and Claude Code Gets a Link
Back in the project, I checked the two directories for web-design-guidelines. Only one held the actual skill files.
1
ls -la .claude/skills .agents/skills
1
2
3
4
5
.agents/skills:
drwxr-xr-x web-design-guidelines
.claude/skills:
lrwxr-xr-x web-design-guidelines -> ../../.agents/skills/web-design-guidelines
flowchart LR
A["vercel-labs/agent-skills"] --> B[".agents/skills/"]
B --> C["Codex, Cursor read"]
B -->|symlink| D[".claude/skills/"]
D --> E["Claude Code reads"]
A --> F["skills-lock.json"]
The CLI calls agents like Codex and Cursor universal because they read .agents/skills/ directly. It creates a relative symlink in .claude/skills/ for Claude Code.
| Agent | Project scope (default) | Global scope (-g) |
|---|---|---|
| Claude Code | .claude/skills/ (symlink) | ~/.claude/skills/ (symlink) |
| Codex | .agents/skills/ | ~/.agents/skills/ |
| Cursor | .agents/skills/ | ~/.agents/skills/ |
I tested a global install for the same three agents. The CLI put the files in ~/.agents/skills/ and linked to them from ~/.claude/skills/.
Vercel’s agent table gives ~/.cursor/skills/ as Cursor’s global path, but 1.10.0 didn’t create it in my test. Cursor also reads ~/.agents/skills/, as noted in its documentation at the time of writing and in a reply from the Cursor team.
Other agents can see the skill if they read .agents/skills/. When I ran npx skills list, Gemini CLI and other agents I hadn’t selected showed up too.
1
Agents: Antigravity CLI, Claude Code, Codex, Cursor, Gemini CLI +1 more
I tried again with just -a claude-code. The CLI put the files directly in .claude/skills/<skill> and left .agents/skills/ empty.
For environments without symlink support, there’s --copy. I added it to the earlier three-agent command. The CLI made .claude/skills/<skill> a regular directory and copied the files into each target directory.
The CLI Skips Confirmation When It Detects an Agent
I asked Claude Code to run npx skills add. The CLI opened with this message.
1
● claude-code_2-1-335_agent Agent detected — installing non-interactively
Once the CLI detects the agent, it behaves as if you passed -y and skips the terminal prompts. I gave Claude Code a command with just the source.
1
npx skills add vercel-labs/agent-skills
The CLI installed all nine skills in .agents/skills/ and added links for Claude Code. The summary listed 20 agents that can read the shared directory.
1
universal: Amp, Cline, Codex, Cursor, Deep Agents +15 more
Four of the nine skills appeared under “Review before installing.” The CLI installed all four anyway.
flowchart TD
A["npx skills add source"] --> B{Skip prompts?}
B -->|No| C[Ask, then confirm]
B -->|"Yes (-y or in agent)"| D{"--skill given?"}
D -->|No| E[Install every skill]
D -->|Yes| F{"-a given?"}
F -->|No| G[CLI chooses targets]
F -->|Yes| H[Use named targets]
class C,H pass
class E fail
Pass both --skill and -a when you ask an agent to run the install or use -y in your terminal. That way you’ve made both choices before the command runs.
Do Security Ratings Block an Install?
In my tests, a flag changed the default answer at the confirmation prompt. If the CLI skipped the prompt, it still installed the skill. The ratings come from skills.sh and combine results from Gen Agent Trust Hub, Socket, and Snyk.
- I tried installing
writing-guidelines, which Snyk rates Med Risk, in a terminal. The confirmation defaulted to No, so pressing Enter canceled the install. - I blocked the CLI’s connection to skills.sh and tried again. Without a rating to display, the CLI left out the table and the confirmation defaulted to Yes.
- According to the source code, the CLI requests ratings only for repositories that GitHub confirms are public. That leaves out private repos and other Git hosts. I tried a local directory and a local Git repo (
file://), and neither showed ratings.
A flag adds a “Review before installing” section below the ratings.
The Review links show the findings and their dates. Snyk’s June 12, 2026 review of writing-guidelines flags the rule file the skill downloads from GitHub on every run.
According to the CLI docs, the CLI sends anonymous usage data by default. For public GitHub repos, that includes repo and skill names. Other remote sources may also send names. Setting either DISABLE_TELEMETRY=1 or DO_NOT_TRACK=1 also turns off security rating lookups.
1
DO_NOT_TRACK=1 npx skills add vercel-labs/agent-skills --skill writing-guidelines -a codex
I ran the command above, and the ratings table disappeared. For skills on an internal Git server, I turn off telemetry and read SKILL.md myself.
Lock Versions With skills-lock.json and Catch Edits With check
Installing a skill in a project records its source and version in skills-lock.json. I pin a commit by adding @ followed by its full hash to the source. A Git tag works there too.
1
npx skills add vercel-labs/agent-skills@5a37a6329fbad3666c3207392a6a7c0110e92efb --skill web-design-guidelines -a claude-code -a codex
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"skills": {
"web-design-guidelines": {
"commit": "5a37a6329fbad3666c3207392a6a7c0110e92efb",
"computedHash": "5994e4cfd86144903d2ba750f862b9e36af15e3297aac983679e347b99f6cb71",
"ref": "5a37a6329fbad3666c3207392a6a7c0110e92efb",
"skillPath": "skills/web-design-guidelines/SKILL.md",
"source": "vercel-labs/agent-skills",
"sourceType": "github"
}
},
"version": 2
}
commit records the upstream commit the CLI installed. computedHash lets the CLI check the files in .agents/skills/<skill>, and ref records the version you supplied after @. The CLI still records a commit if you leave out @.
Once skills-lock.json is in Git, teammates and CI can restore the same version.
1
npx skills install --frozen-lockfile
I deleted .agents/ and .claude/ from my test project and ran the restore. The CLI downloaded the recorded commit and rebuilt the Claude Code link.
Next I used an empty home directory to simulate a fresh machine. The CLI only restored .agents/skills/. After I created an empty ~/.claude and ran the restore again, it detected Claude Code and added the link.
CI runners usually lack ~/.claude. If your workflow needs the Claude Code link, give the CLI the agent name when you restore.
1
npx skills install --frozen-lockfile -a claude-code
I tried this in the fresh environment, and the CLI created the link in .claude/skills/.
--frozen-lockfile checks the downloaded files against the hash in the lock file. I replaced computedHash with zeros and ran the restore again. The CLI refused to install the skill.
1
2
3
■ Failed to restore web-design-guidelines from vercel-labs/agent-skills/…: Cannot install with --frozen-lockfile because skills-lock.json is not up to date:
│ web-design-guidelines has changed since skills-lock.json was written
│ Run again with --no-frozen-lockfile to update it.
The command returned 1 as its exit code, the number it uses to report its status. The CLI left the lock file alone and created neither skill directory.
Setting CI=true enables the same check by default. When I left out both --frozen-lockfile and CI=true, the CLI installed the skill and wrote the hash of the downloaded files to the lock file.
Use check to look for edits after installation. I tried it on the project skill I’d installed earlier without @.
1
2
npx skills check
echo $?
Right after the install, check printed “All project skills are up to date” and returned 0. I added a line to SKILL.md and ran it again.
1
2
3
4
✓ All project skills are up to date
✎ web-design-guidelines has local changes
1 skill(s) differ from skills-lock.json; run npx skills install --force to restore them
This time check returned 1. npx skills list also marked the skill “modified (differs from the lock).”
check only looks for local edits in project skills. I added a line to a globally installed SKILL.md, and both check and check -g printed “All global skills are up to date” and returned 0.
For skills without an explicit pin, check also returns 1 when it finds an upstream update. I installed an older commit from November 9 and removed ref from the lock file to simulate an update after installation. check printed a link to the diff.
1
2
3
4
↑ web-design-guidelines has an update
Repository changes: https://github.com/vercel-labs/agent-skills/compare/f766b64a952cd9bd5595c8d00f56cdb5c0b61ae2..5a37a6329fbad3666c3207392a6a7c0110e92efb
1 skill(s) can be updated; run npx skills update to install
If you run check in CI, an available update will fail that check. I use the diff link to review the changes before deciding whether to update the skill.
1
npx skills update web-design-guidelines
I tested the same old commit again with ref in place. check printed “All project skills are up to date” and returned 0. If you pin a skill to a commit, you’ll need to look for upstream updates yourself.
remove Deletes the Skill Files and the Link
1
npx skills remove web-design-guidelines
The command removed the files from .agents/skills/ and the link from .claude/skills/. It updated skills-lock.json to {"skills": {}, "version": 2}.
npx skills remove --all removes only skills recorded in the lock file. In a separate test, I added a my-notes skill by hand to both directories. The CLI removed web-design-guidelines and reported that it had skipped my-notes.
1
2
▲ [SKILLS_REMOVE_UNTRACKED_SKIPPED] Skipped 1 untracked skill(s) not recorded in the lock file: my-notes
│ ╰▶ fix: Remove them by name, e.g. skills remove <name>
Keep the Version You Reviewed in the Project
When I install a skill for a team, I pin the commit I’ve read and commit skills-lock.json with the project. If the skill runs scripts or reads credentials, I also go through the checklist in Agent Skill and MCP Security Risks: 5 Cases, a Checklist.
Further Reading
- Every skills CLI command and option. CLI reference
- How to Write an Agent Skill: SKILL.md, Triggers, Tests
- SkillEvaluator Tutorial: Check a Skill Before You Ship It
- Claude Code Plugins: What to Check Before You Install One
- What Claude Code and Codex Run When You Open an Untrusted Repo
- mattpocock/skills, Part 1: Install, Set Up, Then /ask-matt
