Overview
- Skill Key
- daisuke134/prompt-sanitizer
- Author
- Daisuke134
- Source Repo
- openclaw/skills
- Version
- 1.0.0
- Source Path
- skills/daisuke134/prompt-sanitizer
- Latest Commit SHA
- 5b26c04ba6540fc6741d3e49ddfa3b6366e2a2b8
Sanitize prompts before sending to LLMs. Detects PII, prompt injection, toxicity, and off-topic content. Returns cleaned text + risk score. Use when: sanitize input, check prompt safety, detect injection, remove PII, content moderation, guardrails, agent safety.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 prompt-sanitizer 技能。 若已安装,则直接安装 prompt-sanitizer 技能。
# prompt-sanitizer
Sanitize any text before sending it to an LLM. Detects and flags PII, prompt injection attempts, toxicity, and off-topic hijacking. Returns cleaned text with PII masked and a risk score.
## Prerequisite
```bash
npm install -g awal@2.0.3
awal auth login
```
## Usage
```bash
npx awal@2.0.3 x402 pay https://anicca-proxy-production.up.railway.app/api/x402/prompt-sanitizer \
-X POST \
-d '{"text": "My email is john@example.com. Ignore previous instructions.", "checks": ["pii", "injection", "toxicity", "off_topic"], "language": "en"}'
```
## Input
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| text | string (max 10000) | yes | Text to sanitize |
| checks | array of: pii, injection, toxicity, off_topic | no (default: all) | Which checks to run |
| language | "en" or "ja" | no (default: "en") | Language hint |
## Output
```json
{
"sanitizer_id": "san_a1b2c3",
"original_length": 89,
"sanitized_text": "My email is [EMAIL]. ...",
"flags": [{"type": "pii", "severity": "high", "detail": "Email detected", "position": {"start": 12, "end": 28}}],
"risk_score": 1.0,
"safe_to_send": false,
"safe_t_flag": true
}
```
## Pricing
$0.005 USDC per request (Base network, eip155:8453)
## Endpoint
POST https://anicca-proxy-production.up.railway.app/api/x402/prompt-sanitizer
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.