> ## 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 Agent Skills：适用于 Cursor 与 Claude Code 的 KYC 集成

> 通过单提示词 SDK 技能将 Didit KYC 和身份验证集成至 AI Agent、Cursor、Claude Code 及 ClawHub。Agent 原生设计，支持 MCP。

## 什么是 Agent Skills

Agent Skills 是预构建的指令集，使 AI 编程助手（如 Cursor、GitHub Copilot、Claude 等）能够通过单一命令将 Didit 的身份验证 API 集成到您的代码库中。

每项技能均包含：

* 完整的 API 文档和 endpoint 详情
* 认证配置说明
* 附带示例的请求/响应模式
* 开箱即用的代码片段
* 错误处理模式

***

## 可用技能

| 技能 | 描述 | 安装 |
| - | - | - |
| **didit-sessions** | 完整的会话管理、工作流、黑名单和 Webhook（11 个 endpoint） | `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)
>
> 全部 11 个 Didit 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"
```

从 [Business Console](https://business.didit.me) 侧边栏的 **API 和 Webhook** 中获取您的 API 密钥。

***

## 工作原理

安装完成后，只需提示您的 AI 助手执行验证任务即可：

> “为新用户注册创建验证会话”

> “为我的 Express.js 后端添加身份证件验证”

> “配置用于接收验证状态更新的 Webhook 处理逻辑”

> “对照 AML/PEP 观察名单筛查该用户”

AI 将读取技能文档，并使用 Didit 的 API 生成可直接用于生产环境的代码。


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