Xpersona
T

TencentCloud Text AIGC Detection

CLAWHUB · Unverified

腾讯云 AI 生成文本识别 (TencentCloud Text AIGC Detection) 技能。适用于 AI 生成文本检测、文本真伪鉴别、AI 写作检测、AIGC 检测等场景。TencentCloud Text AIGC Detection is an AI-generated content detec... Skill: TencentCloud Text AIGC Detection Owner: shawn233 Summary: 腾讯云 AI 生成文本识别 (TencentCloud Text AIGC Detection) 技能。适用于 AI 生成文本检测、文本真伪鉴别、AI 写作检测、AIGC 检测等场景。TencentCloud Text AIGC Detection is an AI-generated content detec... Tags: latest:1.0.8 Version history: v1.0.8 | 2026-03-31T11:28:59.538Z | user - Added English summary and descriptions to broaden international accessibility and clarify the service as TencentClo

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s179h1r6xe7hhk1ttzsb2fwh6983hnrh:tencentcloud-aigc-recog-text
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-shawn233-tencentcloud-aigc-recog-text/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

83,453 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: tencentcloud-aigc-recog-text
description: 腾讯云 AI 生成文本识别 (TencentCloud Text AIGC Detection) 技能。适用于 AI 生成文本检测、文本真伪鉴别、AI 写作检测、AIGC 检测等场景。TencentCloud Text AIGC Detection is an AI-generated content detection service by Tencent Cloud, supporting aigc detection, AI-generated text identification, and text authenticity review.
---

# 腾讯云 AI 生成文本识别 Skill

## 功能描述

本技能根据文本形式(如标点、特殊字符、 格式)和内容特征(如泛泛而谈、正确而无用的话),鉴别是否为 AI 工具生成,能较好地适配于新闻、百科、问答、评论、小说等场景的生成文本。

**TencentCloud AI Text Recognition** (also referred to as **TencentCloud AIGC Detection** for text or **AI-generated text detection**) is Tencent Cloud's text moderation capability for **aigc detection** and **AI-generated text identification**. It enables article screening, review moderation, news authenticity checks, and other TencentCloud text analysis scenarios.

### 🎯 核心能力

- **AI 生成文本判定**:分析输入文本,给出是否为 AI 生成的判定结果
- **风险评分**:返回 0-100 的置信度评分,分数越高越可能是 AI 生成
- **处置建议**:返回 `Pass`(人类撰写)、`Review`(存疑)、`Block`(AI 生成)三级建议
- **详细结果**:返回命中关键词、风险标签等详细信息

### 支持的输入方式

| 方式 | 说明 |
|------|------|
| 直接文本 | 将文本字符串作为参数传入 |
| 文件路径 | 传入文本文件路径,自动读取内容 |
| 标准输入 | 通过 `--stdin` 从管道读取 |

### 限制

- 单次检测文本长度上限:**10000 个 Unicode 字符**
- API 调用频率上限:**50 次/秒**(AIGC 识别)

## 环境配置指引

### 密钥配置

本 Skill 需要腾讯云 API 密钥才能正常工作。

#### Step 1: 开通文本内容安全服务

🔗 **[腾讯云内容安全生成识别控制台](https://console.cloud.tencent.com/cms/clouds/LLM)**

- 开通服务: 登录[腾讯云内容安全生成识别控制台](https://console.cloud.tencent.com/cms/clouds/LLM),单击AI生成文本检测,跳转后单击初始化配置,立即体验。

#### Step 2: 获取 API 密钥

🔗 **[腾讯云 API 密钥管理](https://console.cloud.tencent.com/cam/capi)**

#### Step 3: 获取审核策略编号(BizType)

🔗 **[腾讯云内容安全策略管理](https://console.cloud.tencent.com/cms/clouds/manage)**

- 获取安全策略:单击"应用管理",找到"AI 生成检测配套策略",其中文本内容安全的 BizType 字段对应的值
#### Step 4: 设置环境变量

**Linux / macOS:**
```bash
export TENCENTCLOUD_SECRET_ID="你的SecretId"
export TENCENTCLOUD_SECRET_KEY="你的SecretKey"
export TENCENTCLOUD_AIGC_RECOG_TEXT_BIZ_TYPE="你的BizType"
```

如需持久化:
```bash
echo 'export TENCENTCLOUD_SECRET_ID="你的SecretId"' >> ~/.zshrc
echo 'export TENCENTCLOUD_SECRET_KEY="你的SecretKey"' >> ~/.zshrc
echo 'export TENCENTCLOUD_AIGC_RECOG_TEXT_BIZ_TYPE="你的BizType"' >> ~/.zshrc
source ~/.zshrc
```

**Windows (PowerShell):**
```powershell
$env:TENCENTCLOUD_SECRET_ID = "你的SecretId"
$env:TENCENTCLOUD_SECRET_KEY = "你的SecretKey"
$env:TENCENTCLOUD_AIGC_RECOG_TEXT_BIZ_TYPE = "你的BizType"
```

> ⚠️ **安全提示**:切勿将密钥硬编码在代码中。如使用临时凭证(STS Token),还需设置 `TENCENTCLOUD_TOKEN` 环境变量。
> ⚠️ **必需配置**:`TENCENTCLOUD_AIGC_RECOG_TEXT_BIZ_TYPE` 为必需环境变量,未配置时脚本将报错退出。

## Agent 执行指令(必读)

> ⚠️ **本节是 Agent(AI 模型)的核心执行规范。当用户请求检测文本是否为 AI 生成时,Agent 必须严格按照以下步骤自主执行,无需询问用户确认。**

### 🔑 通用执行规则

1. **触发条件**:用户意图为检测文本是否为 AI 生成,包括但不限于以下表述:
   - "检测这段文本是不是 AI 写的"
   - "判断一下是不是 AI 生成的"
   - "AIGC 检测"
   - "这是人写的还是 AI 写的"
   - "文本真实性鉴别"
2. **首次使用环境检查**:如果脚本返回 `CREDENTIALS_NOT_CONFIGURED` 或 `BIZ_TYPE_NOT_CONFIGURED` 错误,Agent 必须向用户展示完整的环境配置指引(包括开通服务、获取密钥、获取 BizType、设置环境变量的全部步骤),确保用户能一次性完成所有配置。
3. **安装依赖**:技能依赖需 Agent 手动安装。
4. **禁止使用大模型自身能力替代AIGC识别(最高优先级规则)**:
    - 只能从脚本

_meta.json

{
  "ownerId": "kn7cddgj08y2pmfpz5pr1mdzgd82h6qp",
  "slug": "tencentcloud-aigc-recog-text",
  "version": "1.0.8",
  "publishedAt": 1774956539538
}

references/text_moderation_api.md

# TextModeration API 参考文档

> 原始文档:[文本内容安全 - 文本内容检测](https://cloud.tencent.com/document/product/1124/51860)
>
> SDK 调用指引:[文本内容安全 - SDK 调用指引](https://cloud.tencent.com/document/product/1124/100983)

## 接口概述

- **接口名称**:TextModeration
- **服务端点**:`tms.tencentcloudapi.com`
- **API 版本**:`2020-12-29`
- **SDK 模块**:`tencentcloud.tms.v20201229`
- **功能说明**:文本内容检测接口,支持对文本进行多维度安全检测,包括 AI 生成文本识别(`Type=TEXT_AIGC`)。

---

## 核心输入参数

| 参数名称 | 必选 | 类型 | 描述 |
|---------|------|------|------|
| Content | 是 | String | 待检测文本内容,需进行 **UTF-8 编码后 Base64 编码**,文本长度限制为 **10000 个 Unicode 字符**。 |
| Type | 否 | String | 检测类型。设置为 `TEXT_AIGC` 时进行 AI 生成文本识别判定。不传或留空时为常规内容安全检测。 |
| BizType | 否 | String | 自定义审核策略的编号。不填默认使用默认策略。在腾讯云内容安全控制台中可创建自定义策略。 |
| DataId | 否 | String | 业务数据标识,可用于将检测结果与业务数据进行关联,长度限制 128 字符。 |
| User | 否 | [User](#user-对象) | 用户相关信息(可选)。 |
| Device | 否 | [Device](#device-对象) | 设备相关信息(可选)。 |

### Content 编码说明

```
原始文本 → UTF-8 编码 → Base64 编码 → 作为 Content 参数值
```

Python 示例:
```python
import base64
content = base64.b64encode("待检测文本".encode("utf-8")).decode("utf-8")
```

---

## 核心输出参数

| 参数名称 | 类型 | 描述 |
|---------|------|------|
| Suggestion | String | 处置建议:`Block`(建议打击)、`Review`(建议人工复审)、`Pass`(建议通过) |
| Label | String | 恶意标签,当 `Suggestion=Pass` 时为 `Normal`。可能值包括:`Normal`(正常)、`Porn`(色情)、`Abuse`(谩骂)、`Ad`(广告)、`Custom`(自定义违规)等 |
| SubLabel | String | 二级标签分类 |
| Score | Integer | 风险置信度评分,范围 0-100。分数越高表示风险越大:<br>• 0-60:低风险<br>• 60-80:中风险<br>• 80-100:高风险 |
| Keywords | Array of String | 命中的关键词列表(如有) |
| DetailResults | Array of [DetailResults](#detailresults-对象) | 详细检测结果列表,包含各检测维度的具体信息 |
| RiskDetails | Array of [RiskDetails](#riskdetails-对象) | 风险详情列表 |
| Extra | String | 附加信息,JSON 字符串格式 |
| DataId | String | 请求时传入的 DataId |
| BizType | String | 使用的审核策略编号 |
| ContextText | String | 上下文命中信息 |
| RequestId | String | 唯一请求 ID |

### DetailResults 对象

| 参数名称 | 类型 | 描述 |
|---------|------|------|
| Label | String | 恶意标签 |
| Suggestion | String | 处置建议 |
| Score | Integer | 置信度评分 0-100 |
| Keywords | Array of String | 命中的关键词列表 |
| LibType | Integer | 库类型:1=黑白名单库,2=自定义关键词库 |
| LibId | String | 库 ID |
| LibName | String | 库名称 |
| SubLabel | String | 二级标签 |

### RiskDetails 对象

| 参数名称 | 类型 | 描述 |
|---------|------|------|
| Label | String | 风险标签 |
| Level | Integer | 风险等级 |
| Keywords | Array of String | 风险关键词 |

### User 对象

| 参数名称 | 类型 | 描述 |
|---------|------|------|
| UserId | String | 用户 ID |
| Nickname | String | 用户昵称 |
| AccountType | Integer | 账号类型 |
| Gender | Integer | 性别 |
| Age | Integer | 年龄 |
| Level | Integer | 等级 |

### Device 对象

| 参数名称 | 类型 | 描述 |
|---------|------|------|
| IP | String | 设备 IP |
| Mac | String | 设备 MAC |
| TokenId | String | 设备 Token |
| DeviceId | String | 设备 ID |
| IMEI | String | 设备 IMEI |

---

## AIGC 检测说明

当设置 `Type=TEXT_AIGC` 时,接口会对输入文本进行 AI 生成内容的判定:

- **Score**:AIGC 风险分值,分数越高表示文本越可能是 AI 生成
- **Label**:当判定为 AI 生成时,Label 会反映相应标签
- **Suggestion**:
  - `Pass`:文本大概率为人类撰写
  - `Review`:存疑,建议人工复审
  - `Block`:文本大概率为 AI 生成

---

## 请求频率限制

| 检测类型 | 

skill-card.md

## Description:

TencentCloud Text AIGC Detection helps agents submit text to Tencent Cloud TextModeration for AI-generated text detection and returns a structured result with suggestion, label, score, keywords, details, and request metadata.

This skill is ready for commercial/non-commercial use.

## Publisher:

[shawn233](https://clawhub.ai/user/shawn233)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and external users use this skill through an agent to check whether submitted text, file content, or stdin input is likely AI-generated using Tencent Cloud TextModeration. It supports content review, article screening, news authenticity checks, and AI writing detection workflows.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: User-provided text, including file contents passed to the skill, may be sent to Tencent Cloud using the configured Tencent Cloud credentials.

Mitigation: Avoid submitting sensitive or regulated content unless approved for the use case, and use narrowly scoped or temporary Tencent Cloud credentials.

Risk: Missing credentials, missing BizType, API errors, or over-limit text can prevent a valid detection result.

Mitigation: Treat API failures as failures, return the reported error to the user, and do not infer whether text is AI-generated without a successful Tencent Cloud response.

Risk: The Tencent Cloud SDK dependency may change behavior across versions if installed without pinning.

Mitigation: Install the SDK in a controlled environment and pin the dependency version when reproducibility matters.

## Reference(s):

- [TextModeration API Reference](references/text_moderation_api.md)
- [Tencent Cloud TextModeration API](https://cloud.tencent.com/document/product/1124/51860)
- [Tencent Cloud SDK Guide](https://cloud.tencent.com/document/product/1124/100983)
- [ClawHub Skill Page](https://clawhub.ai/shawn233/skills/tencentcloud-aigc-recog-text)

## Skill Output:

**Output Type(s):** [Text, Configuration instructions, Shell commands, Guidance]

**Output Format:** [JSON results with Markdown configuration guidance and shell command examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires Tencent Cloud credentials, a text moderation BizType, and input text of at most 10000 Unicode characters.]

## Skill Version(s):

1.0.8 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to TencentCloud Text AIGC Detection and adjacent AI workflows.