Agent Skills guide
How to install Agent Skills in Claude, Codex, Cursor, Copilot and more
Where each agent looks for SKILL.md folders, and the exact commands to install Agent Skills in Claude Code, Claude apps and API, Codex, Cursor and Copilot.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOn this page
To install an Agent Skill, copy its folder (the one containing SKILL.md) into the skills folder your agent reads: ~/.claude/skills/ for Claude Code, ~/.agents/skills/ for Codex and most others, or a project’s .claude/skills/ or .agents/skills/. Or run npx skills add owner/repo, which knows each agent’s path. Pin to a commit you have read.
Every agent reads the same SKILL.md format, but each one looks for skills in its own folders and offers its own installer. If the format itself is new to you, start with what Agent Skills are. This guide covers the main agents, then the cross-agent skills CLI that knows everyone’s paths. Commands were checked against each vendor’s documentation on 19 November 2026.
Two habits apply whatever agent you use. Read the skill before you install it, and install a version pinned to a commit or tag so it cannot change underneath you. Every page in our Agent Skills directory gives commands pinned to the commit we reviewed, and the security checklist for third-party skills covers what to read before you install.
Where each agent looks for skills
| Agent | Project folder | User folder |
|---|---|---|
| Claude Code | .claude/skills/ |
~/.claude/skills/ |
| Codex | .agents/skills/ (from the working directory up to the repo root) |
~/.agents/skills/ |
| Cursor | .agents/skills/, .cursor/skills/ (also reads .claude/skills/) |
~/.cursor/skills/ |
| GitHub Copilot | .github/skills/, .agents/skills/, .claude/skills/ |
~/.copilot/skills/, ~/.agents/skills/ |
| Gemini CLI | .gemini/skills/ or .agents/skills/ |
~/.gemini/skills/ or ~/.agents/skills/ |
| Antigravity | .agents/skills/ |
~/.gemini/config/skills/ |
The .agents/skills/ convention is widely shared, but Claude Code’s documentation lists only .claude/skills/ locations. If you want one project folder to serve every agent, install to both.
How to install skills, agent by agent
Claude Code
The simplest route is to copy the folder. Put the skill folder in .claude/skills/ to share it with everyone working in the repository (commit it), or in ~/.claude/skills/ to have it in every project on your machine.
mkdir -p ~/.claude/skills
cp -R path/to/skill-name ~/.claude/skills/
Claude Code watches these folders, so new and edited skills are picked up in the current session. If you create a skills folder that did not exist when the session started, run /reload-skills. When names clash, enterprise skills win over personal ones, and personal over project.
Many collections are packaged as plugins. Add the marketplace, then install the plugin, inside Claude Code:
/plugin marketplace add anthropics/skills
/plugin install document-skills@anthropic-agent-skills
Anthropic’s official marketplace, claude-plugins-official, is available without adding it. The same actions exist as shell commands (claude plugin marketplace add ..., claude plugin install ... --scope project) for scripts and CI. Plugin skills are namespaced, so a skill from a plugin runs as /plugin-name:skill-name.
Claude apps (claude.ai and desktop)
Skills work on claude.ai and in the desktop app on all plans when code execution is enabled. Anthropic’s document skills (Word, Excel, PowerPoint, PDF) are already built in.
- In Settings > Capabilities, turn on code execution and file creation.
- Zip the skill folder. The folder name must match the skill’s
name. - Open Customize > Skills, choose +, then Create skill > Upload a skill, and pick the zip.
- Make sure the skill is switched on.
cd path/to/parent-folder
zip -r ~/skill-name.zip skill-name
claude.ai is stricter than Claude Code: it rejects frontmatter fields outside the six in the open spec and names containing “claude” or “anthropic”. On Team and Enterprise plans, admins control skills under organisation settings and can share skills with the whole organisation.
Codex
Codex reads .agents/skills/ in every folder from your working directory up to the repository root, plus ~/.agents/skills/ for your user and /etc/codex/skills/ for admins. It also ships two built-in skills, $skill-installer and $skill-creator.
mkdir -p .agents/skills
cp -R path/to/skill-name .agents/skills/
Inside Codex you can also ask the installer for a curated skill by name, or ask it to fetch one from another repository:
$skill-installer linear
Codex detects new skills automatically; restart it if one does not appear. Start a skill explicitly with /skills or by typing $skill-name. To turn a skill off without deleting it, add an entry to ~/.codex/config.toml:
[[skills.config]]
path = "/path/to/skill-name/SKILL.md"
enabled = false
Cursor
Cursor reads skills from .agents/skills/ and .cursor/skills/ in a project and ~/.cursor/skills/ for your user. For compatibility it also picks up .claude/skills/ and .codex/skills/, so a repository already set up for Claude Code usually works as-is.
mkdir -p .cursor/skills
cp -R path/to/skill-name .cursor/skills/
Type / in the Agent chat to attach a skill to one message. To install skills distributed as Cursor plugins, import a GitHub repository that contains a .cursor-plugin/marketplace.json from the Customize screen. Cursor 2.4 and later also has /migrate-to-skills, which converts dynamic rules and slash commands into skills. Only ~/.cursor/skills/ syncs to Cloud Agents.
GitHub Copilot
Copilot reads project skills from .github/skills/, .claude/skills/ or .agents/skills/, and personal skills from ~/.copilot/skills/ or ~/.agents/skills/. That covers Copilot in VS Code, Visual Studio and JetBrains agent mode, the Copilot CLI and the cloud agent.
GitHub CLI 2.90.0 and later can search, preview and install skills, and can pin to a tag or commit:
gh skill search pdf
gh skill preview github/awesome-copilot git-commit
gh skill install github/awesome-copilot git-commit --pin <commit-sha>
gh skill install github/awesome-copilot git-commit --agent claude-code --scope user
gh skill update --all
gh skill install records the source repository and ref in the installed file so updates can be detected. --agent targets other agents, including claude-code, cursor and codex.
Gemini CLI, Antigravity and others
Gemini CLI reads ~/.gemini/skills/ or ~/.agents/skills/ and the project equivalents, and can install from a Git repository:
gemini skills install https://github.com/owner/repo.git
gemini skills list --all
It asks for confirmation before activating a skill. There is a --consent flag that skips the install prompt; we suggest you leave it off. Google announced in May 2026 that Gemini CLI is being replaced by the Antigravity CLI for consumer accounts; enterprise and paid API users keep it.
The Antigravity app, IDE and CLI (agy) read .agents/skills/ in a project and ~/.gemini/config/skills/ globally. Packaged skills install as plugins with agy plugin install.
OpenCode, Amp, goose, Kiro, Devin Desktop (formerly Windsurf), Cline and dozens of other agents read skills too, each from its own folder. The skills CLI below knows the paths, and our guide to skills in OpenCode, Amp, goose and Kiro covers those four in detail.
For the details of each major agent (precedence rules, extra frontmatter fields, plugins), see the per-agent guides for Claude Code, Codex, Cursor, GitHub Copilot, Antigravity, the Claude API and claude.ai, OpenCode, Amp, goose and Kiro, and OpenClaw.
The cross-agent route: npx skills
Vercel’s open-source skills CLI (npx skills, Node.js required) clones a skill source and copies or symlinks it into the right folder for each agent you choose. It is also the installer behind skills.sh. If you are not sure which skill you need, the find-skills skill has your agent search for one with the same CLI, though it ranks by install counts, so read what it suggests before installing.
# see what a repository contains
npx skills add getsentry/skills --list
# install one skill for one agent in this project
npx skills add getsentry/skills --skill code-review -a claude-code
# pin to a full commit SHA, install for several agents, user-wide
npx skills add getsentry/skills@<commit-sha> --skill code-review -a claude-code -a codex -a cursor -g
npx skills list # what is installed
npx skills check # are updates available?
npx skills update # apply them
Project installs write a skills-lock.json that records each skill’s source commit and a content hash, so a teammate can restore exactly what you reviewed. The CLI sends anonymous telemetry; set DISABLE_TELEMETRY=1 or DO_NOT_TRACK=1 to turn it off. Before you run npx skills update, read how to update Agent Skills safely: it covers diffing an update, moving the pin and rolling back.
Installing skills in the Claude API
On the Claude Developer Platform, skills are uploaded once to your workspace and then listed per request. Custom skills need the code execution tool.
curl -X POST "https://api.anthropic.com/v1/skills" \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2026-10-21" \
-F "files[]=@my_skill/SKILL.md;filename=my_skill/SKILL.md" \
-F "files[]=@my_skill/scripts/run.py;filename=my_skill/scripts/run.py"
The response includes a skill_id. Reference it in a Messages request inside container.skills, with "type": "custom", alongside the code_execution_20250825 tool. You can attach up to 20 skills per request, and Anthropic’s prebuilt pptx, xlsx, docx and pdf skills use "type": "anthropic". The API container has no network access and cannot install packages at runtime, and skills uploaded to the API, claude.ai and Claude Code do not sync with each other.
Checking the skill installed correctly
- Ask the agent what skills it has. Most will list them.
- Start the skill directly:
/skill-namein Claude Code, Cursor or Copilot,$skill-namein Codex. - If the agent does not list the skill at all, it is in the wrong folder or its frontmatter is broken. The checklist in skill description best practices walks through the usual causes.
- If it is listed but never triggers on its own, the description is usually the problem. The same guide shows how to fix it.
To use the same skill in several agents without copying it by hand, follow the port a skill across agents workflow. To write your own, see how to create a Claude skill.
Check your understanding
Installing Agent Skills quiz
Skill folders per agent, pinning to a commit, plugins in Claude Code, uploading to the Claude apps, Codex and Copilot installers, the skills CLI and checking an install worked.
7 questions · pass mark 70%
Review
Related
- skills CLI (skills.sh)
Vercel's skills directory and the npx skills installer for many agents.
- Claude Code
Anthropic's agentic coding tool for the terminal, IDEs, desktop and web.
- Codex
OpenAI's coding agent across a CLI, IDE extension and cloud tasks.
- Cursor
VS Code-based editor with agent mode, completions and Agent Skills support.
- Port one Agent Skill across Claude Code, Codex and Cursor
Strip non-portable fields, make scripts path-safe and install one source folder for every agent.