LearnDecember 2, 20257 minBy Skilltree

How to Install Agent Skills in Claude Code, Codex, Cursor and 20+ Agents

Use the npx skills CLI for project and global installs, agent paths, updates, lockfiles, and troubleshooting.

The skills CLI is the supported way to install Agent Skills into coding agents. It copies or symlinks skill folders from a Git repository, URL, or local path into per-agent directories. Skilltree equip commands are generated from the same flags the CLI documents.

This guide covers prerequisites, skills add workflows, project vs global installs, where each agent reads skills, updating and removing packages, CI restore, and safe troubleshooting.

Table of contents

Prerequisites

  • Node.js 22.20 or later — required by the published skills package (README).
  • A supported coding agent installed locally (Claude Code, Codex CLI, Cursor, etc.).
  • Network access to your skill source (public GitHub, private repo credentials, or a local path).

Verify the CLI:

npx skills --help

Quick start

From your project root, install a curated pack:

npx skills add vercel-labs/agent-skills

The command is interactive by default: choose skills and target agents. For automation, pin skill and agent flags:

npx skills add vercel-labs/agent-skills \
  --skill web-design-guidelines \
  -a cursor \
  -y

Skilltree pages copy a similar command with the repository and skill slug you selected. Paste into the repo where you want the skill available, not necessarily where you browsed Skilltree.

Common source formats (commands reference):

# GitHub shorthand
npx skills add vercel-labs/agent-skills

# Direct path to one skill folder
npx skills add https://github.com/vercel-labs/agent-skills/tree/main/skills/web-design-guidelines

# Local checkout
npx skills add ./my-local-skills

List without installing:

npx skills add vercel-labs/agent-skills --list

Project vs global installs

ScopeCLI flagTypical use
Project(default)Team repos, versioned skills-lock.json, reproducible CI
Global-g / --globalPersonal defaults across many checkouts

Project installs write into agent paths inside the repository (for example .agents/skills/). Commit the lockfile the CLI generates so teammates and CI restore the same versions:

npx skills install

Global installs target user home directories (~/.cursor/skills/, ~/.claude/skills/, etc.). Use global only when your security policy allows shared home-directory content.

Non-interactive example for CI:

npx skills add owner/repo --skill my-skill -g -a claude-code -y

Pass --copy to materialize files instead of symlinking into agent directories. Copy mode is slower but survives environments that restrict symlinks on network drives.

Renaming on install

Use --rename {new-name} when upstream folder names collide with an internal naming scheme. The lockfile hashes the installed layout, including renamed name frontmatter (renaming docs).

Agent install paths

The CLI maps each -a agent name to documented folders. Skilltree agent pages mirror vercel-labs/skills docs/agents.md. Featured agents:

Agent (-a flag)Project pathGlobal path
claude-code.claude/skills/~/.claude/skills/
codex.agents/skills/~/.agents/skills/
cursor.agents/skills/~/.cursor/skills/
github-copilot.agents/skills/~/.copilot/skills/
gemini-cli.agents/skills/~/.gemini/skills/
opencode.agents/skills/~/.config/opencode/skills/
openclawskills/~/.openclaw/skills/
windsurf.windsurf/skills/~/.codeium/windsurf/skills/
goose.goose/skills/~/.config/goose/skills/

Many agents share the .agents/skills/ project layout; Claude Code and several specialized CLIs use dedicated folders. Always pass -a matching the agent you actually run — Skilltree equip commands pre-fill this flag.

Install to multiple agents in one command:

npx skills add vercel-labs/agent-skills -a claude-code -a cursor -a codex

Full agent list: Supported agents.

Agent-specific tips

Claude Code — Project skills under .claude/skills/ travel with the repository; prefer that for team contracts.

Cursor — Uses .agents/skills/ in-repo; global ~/.cursor/skills/ is convenient for personal experiments but hide from teammates unless documented.

Codex — Shares .agents/skills/ with several OpenAI-compatible CLIs; verify you are not overwriting another tool's skills when colocated.

OpenClaw — Expects skills/ at the repo root; confirm paths on Agents before scripting.

Listing, updating, and removing

CommandPurpose
npx skills listShow installed skills
npx skills checkReport available updates
npx skills update [skills...]Pull newer versions
npx skills remove [skills...]Uninstall selected skills
npx skills find [query]Search the ecosystem
npx skills sync -yLink skills shipped inside npm dependencies

After updates, reload the agent UI so indexes refresh.

Use npx skills use source@skill --agent claude-code to try a skill without persisting files (skills use).

npm package skills

Some npm packages ship agent instructions beside their code. After installing the dependency, run:

npx skills sync -y

This links packaged skills and honors package.json skill declarations (sync reference).

Lockfiles and CI

Successful project installs record skills-lock.json (version 2 includes per-skill computedHash for integrity checks). Commit this file. On a new machine or in CI:

npx skills install

For frozen pipelines:

npx skills install --frozen-lockfile

Hashes cover installed files under .agents/skills/{skill-name} per the lock file rules in the README. Git sources also pin commit so restores do not drift to latest main unexpectedly.

Troubleshooting

SymptomThings to check
Agent does not show a new skillConfirm -a agent name, reload the agent, verify files exist under the project/global path
skills add cannot cloneGit credentials for private repos; optional GITHUB_TOKEN / GH_TOKEN for API access
Hash mismatch on installRun skills update or re-add the skill; avoid hand-editing installed folders
Wrong skill contentCase-sensitive skill folder names; use --list to see repository skill ids
Download URL skills fail in CISigned URLs with query strings may not be lockable — re-add with a fresh URL

See troubleshooting.md for environment variables and telemetry (DISABLE_TELEMETRY=1).

Private Azure DevOps and GitLab URLs work with the same skills add flow as GitHub when Git authentication is configured.

Security notes

  • Default installs run a skills.sh security audit; only use --bypass-audit when you accept the risk.
  • Review SKILL.md and bundled scripts before approving installs in shared repos.
  • Prefer pinning commits or tags in lockfiles for third-party skills.
  • Do not store API keys inside skills; load secrets from your environment.

The CLI collects anonymous usage telemetry by default. Set DISABLE_TELEMETRY=1 or DO_NOT_TRACK=1 in regulated environments (telemetry section).

Skilltree workflow

  1. Find a skill on Skills or a bundle on Loadouts.
  2. Open the detail page, pick your agent, and copy the equip command.
  3. Run the command at the repo root (or with -g if appropriate).
  4. Track dependencies shown on Skilltree before installing dependent skills.

Conceptual background: What Are Agent Skills?. Compose sets: Building a Skill Loadout.

FAQ

Does Skilltree host SKILL.md? No. We link to upstream Git trees and generate equip commands.

Can I install one skill from Skilltree's graph? Yes. Skill pages include repo coordinates; loadouts chain multiple adds.

What Node version tracks the CLI? Follow the README requirement (Node.js 22.20+ as of this writing) before upgrading production CI images.

Reference tables for busy teams

TaskCommand
Install one skill to Cursor (project)npx skills add owner/repo --skill name -a cursor -y
Install all skills from a repo to one agentnpx skills add owner/repo --skill '*' -a claude-code -y
Restore teammates' installsnpx skills install
Preview without writing disknpx skills use owner/repo@skill --agent codex
Remove a skillnpx skills remove skill-name

Keep a short internal runbook linking to Skilltree Agents and the upstream agents.md when onboarding contractors. When vendors ship new agent names, the skills repo updates first; Skilltree agent pages follow the same directory table.

When mirroring Skilltree equip output into documentation, preserve the -a and --skill flags verbatim. Paraphrasing repo slugs is the most common cause of "skill not found" support threads — folder names are case-sensitive and must match the upstream tree you see on GitHub.

Coordinating with platform engineering

Document the Node.js baseline (22.20+) in your contributor guide next to the loadout script so CI images upgrade in lockstep with laptop installs.

Platform teams often own both the golden AGENTS.md and the recommended loadout script. Publish the script in your internal template repository and mirror a public-safe subset on Skilltree when you want external contributors to match your agents. Document which loadout is mandatory for production services versus optional for experiments so developers are not asked to install fifteen skills before fixing a typo.

Related posts