Search

PythonReactSEOPDF
OpenClaw

Check Test

错敏信息检测 API Sensitive Content Detection

12273238040 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install 1227323804/check-test

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

错敏信息检测 API (Sensitive Content Detection)

一个基于 FastAPI 的错敏信息检测服务,用于检测文本中的敏感词、错别字和规范表述问题。

功能特性

  • 敏感词检测:识别文本中的敏感词汇
  • 错别字检测:发现拼写错误和输入错误
  • 规范表述检测:检查专用表述是否符合规范
  • RESTful API:简单的 HTTP 接口调用
  • 详细日志记录:完整的请求/响应日志

快速开始

环境要求
  • Python 3.11+
  • pip
安装依赖
pip install -r requirements.txt
启动服务
python main.py

服务将在 http://localhost:8080 启动。

API 接口

检测接口

请求

POST /api/safeguard/check
Content-Type: application/json

请求参数

参数 类型 必填 说明
userKey string 是 用户密钥
content string 是 待检测的文本内容
sensitiveCodeList array 否 指定检测的错敏类型

请求示例

{
  "userKey": "your-user-key",
  "content": "这是一段需要检测的文本"
}

响应示例

{
  "code": 0,
  "message": "ok",
  "content": [
    {
      "sentencePos": 0,
      "termPos": 0,
      "wrongTerm": "错误的词",
      "expectTerms": ["正确的词"],
      "errLevel": 3,
      "type": 3,
      "newType": "A0200E01",
      "explain": "错误说明",
      "sentence": "错误词所在句子",
      "newTypeMeaning": "错误类型含义"
    }
  ]
}

响应字段说明

字段 类型 说明
code number 响应码,0表示成功,1表示失败
message string 响应消息
content array 检测到的问题列表
其他接口
接口 方法 说明
/ GET 服务信息
/health GET 健康检查
/docs GET API 文档(Swagger UI)

配置说明

环境变量
变量 默认值 说明
PORT 8080 服务监听端口
SAFEGUARD_API_URL https://safeguard-pre.ucap.com.cn/... 上游API地址
API_TIMEOUT 30 API请求超时时间(秒)

日志

日志文件位于 logs/app.log,记录了:

  • 服务启动/关闭信息
  • 每个请求的详细信息
  • 上游API调用情况 -...

Source information

Source
github
Repository
openclaw/skills
Path
skills/1227323804/check-test
Version
—
Commit
409d44cd46588e222694fba99958aee5bb9e683b
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# 错敏信息检测 API (Sensitive Content Detection)

一个基于 FastAPI 的错敏信息检测服务,用于检测文本中的敏感词、错别字和规范表述问题。

## 功能特性

- 敏感词检测:识别文本中的敏感词汇
- 错别字检测:发现拼写错误和输入错误
- 规范表述检测:检查专用表述是否符合规范
- RESTful API:简单的 HTTP 接口调用
- 详细日志记录:完整的请求/响应日志

## 快速开始

### 环境要求

- Python 3.11+
- pip

### 安装依赖

```bash
pip install -r requirements.txt
```

### 启动服务

```bash
python main.py
```

服务将在 `http://localhost:8080` 启动。

## API 接口

### 检测接口

**请求**

```
POST /api/safeguard/check
Content-Type: application/json
```

**请求参数**

| 参数 | 类型 | 必填 | 说明 |
|------|------|------|------|
| userKey | string | 是 | 用户密钥 |
| content | string | 是 | 待检测的文本内容 |
| sensitiveCodeList | array | 否 | 指定检测的错敏类型 |

**请求示例**

```json
{
  "userKey": "your-user-key",
  "content": "这是一段需要检测的文本"
}
```

**响应示例**

```json
{
  "code": 0,
  "message": "ok",
  "content": [
    {
      "sentencePos": 0,
      "termPos": 0,
      "wrongTerm": "错误的词",
      "expectTerms": ["正确的词"],
      "errLevel": 3,
      "type": 3,
      "newType": "A0200E01",
      "explain": "错误说明",
      "sentence": "错误词所在句子",
      "newTypeMeaning": "错误类型含义"
    }
  ]
}
```

**响应字段说明**

| 字段 | 类型 | 说明 |
|------|------|------|
| code | number | 响应码,0表示成功,1表示失败 |
| message | string | 响应消息 |
| content | array | 检测到的问题列表 |

### 其他接口

| 接口 | 方法 | 说明 |
|------|------|------|
| `/` | GET | 服务信息 |
| `/health` | GET | 健康检查 |
| `/docs` | GET | API 文档(Swagger UI) |

## 配置说明

### 环境变量

| 变量 | 默认值 | 说明 |
|------|--------|------|
| PORT | 8080 | 服务监听端口 |
| SAFEGUARD_API_URL | https://safeguard-pre.ucap.com.cn/... | 上游API地址 |
| API_TIMEOUT | 30 | API请求超时时间(秒) |

## 日志

日志文件位于 `logs/app.log`,记录了:

- 服务启动/关闭信息
- 每个请求的详细信息
- 上游API调用情况
-...

Related skills

OpenClaw

humanpages

human-pages-ai

Search and hire real humans for tasks — photography, delivery, research, and more

OpenClaw

openclaw-skills

zseven-w

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.

OpenClaw

0xarchive

0xfantommenace

Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user...

OpenClaw

1sec-security

cutmob

Install, configure, and manage 1-SEC — an open-source, all-in-one cybersecurity platform (16 modules, single binary) on Linux servers and VPS instances. Use when the user asks to secure a server, install securi...