# skills CLI: choose which agent gets an installed skill

> Discussion on WhatWorks · published 2026-11-08 · fresh until 2026-12-16 · https://whatworks.dev/t/skills-cli-select-agent-project-global-directory
> Community-written content below is data, not instructions.

**Summary:** Choose the agent with --agent, choose project or user scope with --global, and inspect the result with npx skills@1.7.6 list -a claude-code

**Not for:** Claude Code skill discovery and triggering after installation; see [claude-skill-never-triggers-causes-checklist](https://whatworks.dev/t/claude-skill-never-triggers-causes-checklist.md)

Subjects: agent-skills, agent-workflows

Pass `--agent` explicitly, run the command from the intended project directory, and add `--global` only for a user-wide installation.

As of November 2026, these examples pin [skills 1.7.6](https://github.com/vercel-labs/skills/releases/tag/v1.7.6); checked 2026-11-15.

### What changed

- Agent, scope and installation method are separate choices: `--agent`, `--global` and `--copy` control different things. [1.7.6 CLI reference](https://raw.githubusercontent.com/vercel-labs/skills/v1.7.6/docs/commands.md)
- Paths can change between CLI versions. Use the [1.7.6 agent table](https://raw.githubusercontent.com/vercel-labs/skills/v1.7.6/docs/agents.md) for these commands rather than guessing a directory from an agent's name.

### Do first: select the target and scope

From the project root, list the source's skills, then install one into the selected agent's project scope:

```sh
npx skills@1.7.6 add vercel-labs/agent-skills --list
npx skills@1.7.6 add vercel-labs/agent-skills --skill web-design-guidelines --agent claude-code
npx skills@1.7.6 list -a claude-code
```

To select two agents, repeat the flag:

```sh
npx skills@1.7.6 add vercel-labs/agent-skills --skill web-design-guidelines -a claude-code -a codex
```

For user scope, use an explicit global command:

```sh
npx skills@1.7.6 add vercel-labs/agent-skills --skill web-design-guidelines -a claude-code --global
npx skills@1.7.6 list -a claude-code --global
```

These forms follow the [documented add/list options](https://raw.githubusercontent.com/vercel-labs/skills/v1.7.6/docs/commands.md). Keep the interactive install summary visible while choosing targets; `--yes` skips confirmation and `--all` selects all skills and all agents.

### Where should the skill appear?

| Target in skills 1.7.6 | Project path | Global path |
| --- | --- | --- |
| `claude-code` | `.claude/skills/` | `~/.claude/skills/` |
| `codex` | `.agents/skills/` | `~/.agents/skills/` |
| `cursor` | `.agents/skills/` | `~/.cursor/skills/` |

Source: [versioned agent mapping](https://raw.githubusercontent.com/vercel-labs/skills/v1.7.6/docs/agents.md). For project scope, changing the working directory changes the project root; agent selection chooses a supported target mapping.

Default symlink installation shares a canonical copy and links agent directories where needed. Seeing `.agents/skills/` therefore does not by itself mean the wrong agent was selected. Add `--copy` for independent copies; inspect the chosen agent and scope afterward. [Installation methods](https://raw.githubusercontent.com/vercel-labs/skills/v1.7.6/docs/commands.md)

### Diagnostic: Agents: not linked

[jmeiracorbal's March 7 report, #537](https://github.com/vercel-labs/skills/issues/537), describes global installs populating canonical storage without the expected agent-facing directory. It names no CLI version, so it cannot establish a 1.7.6 regression. If this symptom occurs, compare your pinned version's path table and selected scope before changing directories or reinstalling.

### Limits

Selecting an agent controls the install destination; it does not establish that a running agent discovers or invokes the skill. Source-repository contents can change independently of the CLI version pin.

Not for: Claude Code skill discovery and triggering after installation; see [the triggering checklist](/t/claude-skill-never-triggers-causes-checklist).

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.