> ## Documentation Index
> Fetch the complete documentation index at: https://docs.didit.me/llms.txt
> Use this file to discover all available pages before exploring further.

# AIエージェントスキル：Cursor・Claude CodeでKYCを連携

> DiditのKYC・本人確認を、1つのプロンプトで使えるSDKスキルでAIエージェント、Cursor、Claude Code、ClawHubに連携。エージェントネイティブでMCPに対応しています。

## Agent Skillsとは

Agent Skillsは、AIコーディングアシスタント(Cursor、GitHub Copilot、Claudeなど)が1つのコマンドでDiditの本人確認APIをコードベースに統合できるようにする、構築済みの指示セットです。

各スキルには次の内容が含まれます。

* 完全なAPIドキュメントとエンドポイントの詳細
* 認証のセットアップ手順
* 例付きのリクエスト/レスポンスのスキーマ
* そのまま使えるコードスニペット
* エラー処理のパターン

***

## 利用可能なスキル

| スキル | 説明 | インストール |
| - | - | - |
| **didit-sessions** | セッションの包括的な管理、ワークフロー、ブロックリスト、Webhook(11エンドポイント) | `clawhub install didit-sessions` |
| **didit-id-verification** | OCRと真正性チェックによる本人確認書類の検証 | `clawhub install didit-id-verification` |
| **didit-passive-liveness** | セルフィー画像からのディープフェイクおよびなりすましの検知 | `clawhub install didit-passive-liveness` |
| **didit-face-match** | セルフィーと書類写真の1:1顔照合 | `clawhub install didit-face-match` |
| **didit-face-search** | 過去の認証を対象とした1:N顔検索 | `clawhub install didit-face-search` |
| **didit-age-estimation** | セルフィー写真からの年齢推定 | `clawhub install didit-age-estimation` |
| **didit-aml-screening** | AML、PEP、制裁のスクリーニング | `clawhub install didit-aml-screening` |
| **didit-database-validation** | 政府データベースとの照合による検証 | `clawhub install didit-database-validation` |
| **didit-email-verification** | OTPによるメールアドレス所有の確認 | `clawhub install didit-email-verification` |
| **didit-phone-verification** | SMS/WhatsAppによる電話番号検証 | `clawhub install didit-phone-verification` |
| **didit-proof-of-address** | 住所証明書類の抽出と検証 | `clawhub install didit-proof-of-address` |

***

## クイックインストール

### ClawHub経由（推奨）

すべてのスキルを一度にインストールします。

```bash theme={null}
clawhub install didit-sessions didit-id-verification didit-passive-liveness didit-face-match didit-aml-screening
```

`clawhub`がグローバルにインストールされていない場合は、以下を使用します。

```bash theme={null}
npx clawhub@latest install didit-sessions didit-id-verification didit-passive-liveness didit-face-match didit-aml-screening
```

### Cursor IDE経由

スキルをプロジェクトに直接コピーします。

```bash theme={null}
# Clone the skills repo
git clone https://github.com/didit-protocol/skills.git

# Copy the skills you need into your project
cp -r didit-agent-skills/skills/didit-sessions .cursor/skills/
cp -r didit-agent-skills/skills/didit-id-verification .cursor/skills/
```

### GitHub経由

リポジトリから個別のスキルを閲覧してダウンロードします。

> [card] [didit-agent-skills](https://github.com/didit-protocol/skills)
>
> Diditの全11種類のAI Agent Skills。GitHubでオープンソースとして公開

***

## セットアップ

すべてのスキルで`DIDIT_API_KEY`環境変数が必要です。一部のスキルでは追加の変数が必要です。

```bash theme={null}
# Required for all skills
export DIDIT_API_KEY="your-api-key-here"

# Required for session-based workflows
export DIDIT_WORKFLOW_ID="your-workflow-id-here"

# Required for webhook signature verification
export DIDIT_WEBHOOK_SECRET="your-webhook-secret-here"
```

APIキーは、[Business Console](https://business.didit.me)のサイドバーにある**API & Webhooks**から取得できます。

***

## 仕組み

インストール後は、AIアシスタントに本人確認タスクを依頼するだけです。

> 「新規ユーザー登録用の認証セッションを作成して」

> 「Express.jsのバックエンドに本人確認を追加して」

> 「認証ステータスの更新を受け取るWebhook処理をセットアップして」

> 「このユーザーをAML/PEPのウォッチリストと照合して」

AIはスキルのドキュメントを読み込み、DiditのAPIを使用した本番環境向けのコードを生成します。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.