Back to Registry
View Author Profile
Official Verified
shuyan-data-classification
数安云智数据分类分级同步接口 - 用于批量处理字段信息的分类分级。支持敏感数据识别、数据分类、数据分级等功能。使用前需配置API地址和认证密钥。
skill-install — Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/jianmo1997/shuyan-data-classificationOr
数安云智数据分类分级同步接口
这是一个用于批量处理字段信息分类分级的同步接口服务。
接口信息
- 接口地址: http://localhost:8080/api/llm_infer_zh_and_cls_and_type_v2_batchdata_sync
- 认证方式: Bearer Token
- Content-Type: application/json
环境变量配置
方式一:环境变量
# ~/.zshrc
export SHUYAN_API_KEY="your-api-key-here"
export SHUYAN_API_URL="http://localhost:8080"
方式二:OpenClaw配置
在 ~/.openclaw/openclaw.json 中配置:
{
"skills": {
"entries": {
"shuyan-data-classification": {
"enabled": true,
"apiKey": "your-api-key-here",
"apiUrl": "http://localhost:8080"
}
}
}
}
使用场景
✅ USE this skill when:
- 需要对数据库字段进行敏感数据分类
- 需要识别数据敏感级别
- 需要批量处理数据分类分级
- 需要获取分类理由和置信度
❌ DON'T use this skill when:
- 单个字段的实时查询(效率较低)
- 历史数据分析
请求格式
请求参数说明
| 字段名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| colNameCh | string | 否 | 字段中文名 |
| colNameComment | string | 否 | 字段含义 |
| colNameEn | string | 否 | 字段英文名 |
| projectName | string | 否 | 业务系统 |
| sampleList | array | 否 | 字段样例 |
| sizeInBytes | integer | 否 | 数据大小(字节) |
| standardCode | string | 是 | 分类标准代码 |
| tableNameCh | string | 否 | 表中文名 |
| tableNameEn | string | 否 | 表英文名 |
| sensitivityLevelRedisKey | string | 否 | 分级标准代码 |
| dataSize | string | 否 | 数据量 |
| isDesensitize | integer | 否 | 是否脱敏(0: 未脱敏, 1: 已脱敏) |
命令示例
批量分类分级同步
API_KEY="${SHUYAN_API_KEY:-your-api-key-here}"
API_URL="${SHUYAN_API_URL:-http://localhost:8080}"
curl -s -X POST "${API_URL}/api/llm_infer_zh_and_cls_and_type_v2_batchdata_sync" \
-H "Authorization: Bearer ${API_KEY}" \
-H "Content-Type: application/json" \
-d '[
{
"colNameCh": "用户姓名",
"colNameComment": "用户的真实姓名",
"colNameEn": "user_name",
"projectName": "用户管理系统",
"sampleList": ["张三", "李四", "王五"],
"sizeInBytes": 1024,
"standardCode": "llm_infer_zh_and_cls_and_type_v2_test",
"tableNameCh": "用户表",
"tableNameEn": "user",
"sensitivityLevelRedisKey": "fenji_standard",
"dataSize": "10000",
"isDesensitize": 0
},
{
"colNameCh": "身份证号",
"colNameComment": "用户的身份证号码",
"colNameEn": "id_card",
"projectName": "用户管理系统",
"sampleList": ["110101199001011234"],
"sizeInBytes": 2048,
"standardCode": "llm_infer_zh_and_cls_and_type_v2_test",
"tableNameCh": "用户表",
"tableNameEn": "user",
"sensitivityLevelRedisKey": "fenji_standard",
"dataSize": "10000",
"isDesensitize": 1
}
]'
响应格式
成功响应
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-jianmo1997-shuyan-data-classification": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.