# Skills CLI

本書では、 `npx skills` で操作する[Skills CLI](https://github.com/vercel-labs/skills)を使います。ほとんどのAIコーディングエージェント向けのクロスプラットフォームインストーラーです。Claude Codeのみを使う場合は、プラグインマーケットプレースからの方法の方が簡単です。別のエージェントを使う場合は、AIエージェント向けの[インストール方法](/keeperpam/jp/secrets-manager/integrations/ai-agents.md#installation)をすべてご確認ください。

***

### 要件 <a href="#requirements" id="requirements"></a>

* **Node.js 18+** ( `npx` の実行に必要 )

インストールされているエージェントは自動的に検出されます。

***

### インストール <a href="#install" id="install"></a>

**対話型 (推奨)**。インストールするスキルとエージェントを対話形式で選べます。

```bash
npx skills add Keeper-Security/keeper-agent-kit
```

<figure><img src="/files/DLaUcFIB1qBnv9lvdsWj" alt=""><figcaption></figcaption></figure>

**特定のエージェントを指定する場合**

```bash
npx skills add Keeper-Security/keeper-agent-kit -a cursor
npx skills add Keeper-Security/keeper-agent-kit -a claude-code
npx skills add Keeper-Security/keeper-agent-kit -a codex
```

**検出されたエージェントすべてに一度にインストールする場合**

```bash
npx skills add Keeper-Security/keeper-agent-kit --all
```

**単一のスキルだけをインストールする場合**

```bash
npx skills add Keeper-Security/keeper-agent-kit --skill keeper-secrets
```

<figure><img src="/files/UPd98Cqc2e49Dom53Shp" alt=""><figcaption></figcaption></figure>

***

### グローバルとプロジェクト単位のインストール <a href="#global-vs-project-install" id="global-vs-project-install"></a>

デフォルトでは、 `npx skills add` は現在のプロジェクトディレクトリへインストールされます。

**プロジェクト単位** (デフォルト)。スキルは `./.agents/skills/` に置かれ、検出された各エージェントのディレクトリへシンボリックリンクが張られます。チーム全員が同じKeeperスキルを揃えたい場合に適しています。

**グローバル**。ホームディレクトリに置かれ、すべてのプロジェクトで利用できます。

```bash
npx skills add Keeper-Security/keeper-agent-kit -g
```

複数のリポジトリでKeeperを扱い、プロジェクトごとにインストールしたくない場合は、グローバルインストールを使います。

***

### 動作確認 <a href="#verify" id="verify"></a>

インストール内容の確認。

```bash
npx skills list
```

エージェントを指定した絞り込み。

```bash
npx skills ls -a cursor
```

`keeper-secrets`、`keeper-admin`、`keeper-setup` が一覧に表示されます。

***

### 更新 <a href="#update" id="update"></a>

新しいバージョンの有無の確認。

```bash
npx skills check
```

最新版の取得。

```bash
npx skills update
```

***

### 対応エージェント <a href="#supported-agents" id="supported-agents"></a>

下表は、Skills CLIがインストール先として扱えるエージェントの一覧です。インストール済みのエージェントが検出され、それぞれに合ったディレクトリが用意されます。

| エージェント         | フラグ              | スキルのパス                |
| -------------- | ---------------- | --------------------- |
| Claude Code    | `-a claude-code` | `~/.claude/skills/`   |
| Cursor         | `-a cursor`      | `~/.cursor/skills/`   |
| Codex          | `-a codex`       | `~/.codex/skills/`    |
| GitHub Copilot | `-a copilot`     | `~/.github/skills/`   |
| OpenCode       | `-a opencode`    | `~/.opencode/skills/` |
| Gemini CLI     | `-a gemini`      | `~/.gemini/skills/`   |

一覧にないエージェントの場合は、汎用の `.agents/skills/` ディレクトリが作成されます。適切なパスはエージェントのドキュメントをご参照のうえ、ファイルをそこへコピーしてください。

***

### アンインストール <a href="#uninstall" id="uninstall"></a>

```bash
npx skills remove keeper-secrets
npx skills remove keeper-admin
npx skills remove keeper-setup
```

これでエージェント向けスキルだけが削除されます。KSM CLIとコマンダー CLI はマシン上に残ります。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.keeper.io/keeperpam/jp/secrets-manager/integrations/ai-agents/skills-cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
