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

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.

Updated · Markdown version

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 valueProject pathGlobal path
Claude Codeclaude-code.claude/skills/~/.claude/skills/
Codexcodex.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. 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 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.

Platform Score is our assessment under a published method. It is not a safety guarantee.

Next steps

  1. OpenCode Skills: Where They Live and How Agents Load Them Read next.
  2. Impeccable skill: what it does, how to install it and how it compares Read next.
  3. All guides by topic Browse everything.

Sources

This page is not offered to search engines yet: The content file does not mark this page indexable yet.