Sensitive Check Skill
Skill by 1227323804
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/1227323804/sensitive-check-skill错敏检测 Skill
简介
这是一个用于检测文本敏感信息的 Skill,通过调用 UCAP 平台的安全防护接口,快速识别文本内容中的敏感数据,适用于内容审核、数据合规等场景。
功能特性
- 支持多种敏感类型检测(可自定义检测类型列表)
- 标准化的 JSON 格式输入输出
- 完善的错误处理和超时机制
- 兼容 OpenClaw 对话式调用
使用方法
对话式调用
请帮我检测这段文本是否包含敏感信息:{待检测文本内容}
参数说明
| 参数名 | 类型 | 必传 | 说明 |
|---|---|---|---|
| content | string | 是 | 待检测的文本内容 |
| userKey | string | 是 | UCAP 平台用户密钥 |
| sensitive_code_list | array | 否 | 检测类型列表,不传则检测所有类型 |
返回格式
{
"code": 0,
"message": "检测成功",
"data": {
// UCAP 接口返回的检测结果
},
"request_params": {
// 请求参数,方便调试
}
}
错误码说明
| 错误码 | 说明 |
|---|---|
| 0 | 检测成功 |
| -1 | 待检测文本不能为空 |
| -2 | userKey 不能为空 |
| -3 | 接口调用超时(15秒) |
| -4 | 接口返回错误 |
| -5 | 接口调用失败 |
| -6 | 接口返回非 JSON 格式数据 |
依赖环境
- Python 3.6+
- requests 库
安装依赖
pip install requests
示例代码
from main import check_sensitive
# 基础检测
result = check_sensitive(
content="这是一段待检测的文本内容",
userKey="your_user_key_here"
)
# 指定检测类型
result = check_sensitive(
content="这是一段待检测的文本内容",
userKey="your_user_key_here",
sensitive_code_list=["TYPE_1", "TYPE_2"]
)
print(result)
注意事项
- 使用前需要获取有效的 UCAP 平台 userKey
- 接口调用超时时间为 15 秒
- 启用了 TLS 验证确保通信安全
Metadata
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-1227323804-sensitive-check-skill": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
Ucap Sensitive Check
Skill by 1227323804
batch-rename
This skill should be used when the user wants to batch rename multiple files at once. It handles various rename patterns including sequential numbering, find/replace, prefix/suffix addition, regular expression matching, extension filtering, and recursive subfolder processing. This skill is triggered when the user mentions "批量重命名", "batch rename", "批量改名", "批量修改文件名", or similar requests for renaming multiple files simultaneously.
Hj Check Test
Skill by 1227323804
Ucap Sensitive Check Skill
Skill by 1227323804
Check Test
Skill by 1227323804