# npx skills: What the CLI Installs and How to Remove It

> Canonical: https://skillalmanac.com/learn/npx-skills-cli-guide | Updated: 2026-11-23 | Index status: not offered to search engines

What npx skills add writes to disk for Claude Code and Codex, where each scope lands, and how to list, update, and remove installed skills.

## Facts

- 2026-11-21: The skills CLI requires Node.js 22.20 or later. (https://github.com/vercel-labs/skills)
- 2026-11-21: Project installs are the default, and the -g flag makes a skill available across all projects. (https://github.com/vercel-labs/skills)
- 2026-11-21: Claude Code skills install to .claude/skills/ in a project and to ~/.claude/skills/ globally. (https://github.com/vercel-labs/skills/blob/main/docs/agents.md)
- 2026-11-21: Codex skills install to .agents/skills/ in a project and to ~/.agents/skills/ globally. (https://github.com/vercel-labs/skills/blob/main/docs/agents.md)
- 2026-11-21: skills-lock.json (version 2) stores a computedHash for each project skill, and Git sources also record a commit. (https://github.com/vercel-labs/skills)
- 2026-11-21: Telemetry can be turned off with DISABLE_TELEMETRY=1 or DO_NOT_TRACK=1. (https://github.com/vercel-labs/skills)
- 2026-11-23: skills remove accepts one or more skill names; --global targets global scope and --agent limits removal to named agents. (https://github.com/vercel-labs/skills/blob/main/docs/commands.md)

`npx skills add` copies a skill folder from a source repository into a directory that your coding agent reads, and it records the project-scope install in a lock file. To undo it, list what is installed, remove the skill with the CLI, and then confirm the folder is gone from the agent's directory on disk.

## What the CLI writes to disk

The default scope is the current project. Adding `-g` installs into your user profile so every project can see the skill. The install directory depends on which agent you target, and the `-a` flag selects that agent. The agents reference lists these paths as of 2026-11-21:

| Agent | `-a` value | Project path | Global path |
|---|---|---|---|
| Claude Code | `claude-code` | `.claude/skills/` | `~/.claude/skills/` |
| Codex | `codex` | `.agents/skills/` | `~/.agents/skills/` |

Several other agents, including Cursor and GitHub Copilot, read the same `.agents/skills/` project folder, so one install can show up in more than one tool. Check the full table in the agents reference before you remove anything from a shared folder.

## How to install and check a skill for Claude Code

1. Confirm Node.js is 22.20 or later with `node --version`. The CLI will not run on older versions.
2. Search for candidates with `npx skills find <query>`, or start from a known repository such as `vercel-labs/agent-skills`.
3. Install one skill into the current project: `npx skills add <owner/repo> --skill <name> -a claude-code`. The files land under `.claude/skills/<name>` in that project.
4. For a skill you want in every project, add `-g`. The files then land under `~/.claude/skills/<name>`.
5. Check the result with `npx skills list`, then open the listed directory and confirm the skill folder exists.

If the folder is missing, the agent flag is the usual cause. Run `npx skills --help` to confirm the flag names for your installed CLI version.

## How to remove a skill

1. Run `npx skills list` and copy the exact skill name.
2. Run `npx skills remove <name>`. Add `--global` (or `-g`) for a global install, and add `--agent <agent>` (or `-a <agent>`) when you want to remove only that agent's link. Use the same scope you used at install time.
3. Open `.claude/skills/` (project) or `~/.claude/skills/` (global) and confirm the folder is gone. If a folder remains, delete it by hand, then run `npx skills list` again.
4. For a project install, check `skills-lock.json` in the project root. Commit the lock file change with your project so teammates do not restore a skill you removed.

To update instead, run `npx skills check` to see what is out of date, then `npx skills update <name>`. For Git sources the lock file keeps the commit that was installed, so a restore fetches that commit and not the newest one on the branch.

## Pitfalls

- **Installed in one project, missing in another.** A project-scope install lives only in that project's folder. Notice it when `npx skills list` shows nothing elsewhere. Fix it by using `-g` or by installing again in each project.
- **Wrong agent flag.** Leaving out `-a` or choosing a different agent writes files to a directory Claude Code never reads. Fix it by checking the path table and reinstalling with `-a claude-code`.
- **Removing a skill from a shared folder.** Cursor, GitHub Copilot, and Codex can all read `.agents/skills/`, so deleting a folder there can change behavior for more than one agent. Fix it by checking which agents read the folder before you delete anything.
- **Hand-edited files and frozen restores.** The lock file's `computedHash` covers the installed files. An edited skill fails `install --frozen-lockfile` until you revert the edit or install again. Notice it from the error on restore, then reinstall or revert.
- **Expecting a fresh clone to match the latest skill.** Restores use the recorded commit, so a teammate can get an older version than the branch shows. Fix it by running `npx skills update <name>` on purpose and committing the lock change.

## When to use a skill instead

Use `npx skills` when the instructions you want to reuse should sit in a fixed folder and survive between sessions, with an install record you can diff. Before pulling from a repository you have not used, run its folder through [skill-safety-audit](/skills/skill-almanac/skill-safety-audit). Its strict JSON output lists file and line evidence, so you can review the risk table before anything lands in your agent's directory. When you know the job but not which skill fits it, [verified-skill-finder](/skills/skill-almanac/verified-skill-finder) is the better starting point, because it ranks candidates from folders and sources you choose before you run any install command. If you only need a single one-time answer from an agent, a plain prompt is simpler, and no skill install is needed.

## FAQ

**What is npx skills?**
It is the command-line entry point for the `skills` package, which installs reusable instruction folders for agents such as Claude Code, Codex, and Cursor. It needs Node.js 22.20 or later. The project is open source at github.com/vercel-labs/skills.

**How do I use skills in Claude Code CLI?**
Install with `-a claude-code`, either in a project or with `-g`. Claude Code reads project skills from `.claude/skills/` and global skills from `~/.claude/skills/`, as listed in the agents reference [verify whether a restart is needed after install].

**Where does a global Codex skill go?**
Global Codex skills go to `~/.agents/skills/`. Project Codex skills go to `.agents/skills/` in the repository root, and that folder is shared with several other agents.

## Related skills

- [skill-safety-audit](https://skillalmanac.com/skills/skill-almanac/skill-safety-audit.md): Platform Score 57/100 (provisional)
- [verified-skill-finder](https://skillalmanac.com/skills/skill-almanac/verified-skill-finder.md): Platform Score 83/100

## Related guides

- [OpenCode Skills: Where They Live and How Agents Load Them](https://skillalmanac.com/learn/opencode-skills-explained.md)
- [Impeccable skill: what it does, how to install it and how it compares](https://skillalmanac.com/learn/impeccable-skill-explained.md)
- [Codex Skills Explained: Locations and AGENTS.md Differences](https://skillalmanac.com/learn/codex-skills-explained.md)
- [Cursor Agent Skills Explained: How Skills Load vs Rules](https://skillalmanac.com/learn/cursor-agent-skills-explained.md)
- [Caveman skill for Claude Code: what it does, how to install it and what it saves](https://skillalmanac.com/learn/caveman-skill-explained.md)
- [The grill-me skill: what it does, how to install it and how the interview works](https://skillalmanac.com/learn/grill-me-skill-explained.md)

## Sources

- https://github.com/vercel-labs/skills
- https://github.com/vercel-labs/skills/blob/main/docs/agents.md
- https://github.com/vercel-labs/skills/blob/main/docs/commands.md

Platform Scores report our assessment under a published method. They are not a safety guarantee.
