搜索

PythonReactSEOPDF
OpenClaw

Expanso Pii Redact

pii redact

aronchick0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install aronchick/expanso-pii-redact

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

pii-redact

"Redact PII from text, replacing sensitive data with placeholders"

Requirements

  • Expanso Edge installed (expanso-edge binary in PATH)
  • Install via: clawhub install expanso-edge

Usage

CLI Pipeline
# Run standalone
echo '<input>' | expanso-edge run pipeline-cli.yaml
MCP Pipeline
# Start as MCP server
expanso-edge run pipeline-mcp.yaml
Deploy to Expanso Cloud
expanso-cli job deploy https://skills.expanso.io/pii-redact/pipeline-cli.yaml

Files

File Purpose
skill.yaml Skill metadata (inputs, outputs, credentials)
pipeline-cli.yaml Standalone CLI pipeline
pipeline-mcp.yaml MCP server pipeline

来源信息

Source
github
Repository
openclaw/skills
Path
skills/aronchick/expanso-pii-redact
Version
—
Commit
81b946576c70eaa268adcdb40fd0e6f67e4d6bf8
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

pii-redact

Redact personally identifiable information (PII) from text, replacing it with configurable placeholders.

Overview

This skill uses AI to detect and redact PII from text. Unlike pii-detect which only identifies PII, this skill transforms the text by replacing sensitive information with placeholders.

Usage

CLI Mode
# Set your API key (stays local!)
export OPENAI_API_KEY=sk-...

# Redact PII from text
echo "Contact John Smith at john.smith@company.com or 555-123-4567" | \
  expanso-edge run pipeline-cli.yaml

# Custom placeholder
PLACEHOLDER="***" echo "Contact John at john@example.com" | \
  expanso-edge run pipeline-cli.yaml
MCP Mode
# Start server
PORT=8080 expanso-edge run pipeline-mcp.yaml &

# Make request
curl -X POST http://localhost:8080/redact \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Contact John Smith at john.smith@company.com",
    "placeholder": "[HIDDEN]"
  }'

Output

{
  "redacted_text": "Contact [REDACTED] at [REDACTED] or [REDACTED]",
  "redaction_count": 3,
  "redacted_types": ["name", "email", "phone"],
  "metadata": {
    "skill": "pii-redact",
    "mode": "cli",
    "model": "gpt-4o-mini",
    "placeholder": "[REDACTED]",
    "trace_id": "abc123...",
    "timestamp": "2024-01-15T10:30:00Z"
  }
}

PII Types Detected

  • Names (first, last, full)
  • Email addresses
  • Phone numbers
  • Social Security Numbers
  • Street addresses
  • Credit card numbers
  • IP addresses
  • Dates of birth
  • Government IDs

Configuration

Variable Default Description
PLACEHOLDER [REDACTED] Text to replace PII with
OPENAI_API_KEY - Required for OpenAI backend

Use Cases

  • Log sanitization before storage
  • Data anonymization for analytics
  • Compliance with GDPR/CCPA
  • Preparing data for public sharing

来源内容

SKILL.md
# pii-redact

"Redact PII from text, replacing sensitive data with placeholders"

## Requirements

- Expanso Edge installed (`expanso-edge` binary in PATH)
- Install via: `clawhub install expanso-edge`

## Usage

### CLI Pipeline
```bash
# Run standalone
echo '<input>' | expanso-edge run pipeline-cli.yaml
```

### MCP Pipeline
```bash
# Start as MCP server
expanso-edge run pipeline-mcp.yaml
```

### Deploy to Expanso Cloud
```bash
expanso-cli job deploy https://skills.expanso.io/pii-redact/pipeline-cli.yaml
```

## Files

| File | Purpose |
|------|---------|
| `skill.yaml` | Skill metadata (inputs, outputs, credentials) |
| `pipeline-cli.yaml` | Standalone CLI pipeline |
| `pipeline-mcp.yaml` | MCP server pipeline |
README
# pii-redact

Redact personally identifiable information (PII) from text, replacing it with configurable placeholders.

## Overview

This skill uses AI to detect and redact PII from text. Unlike `pii-detect` which only identifies PII, this skill **transforms** the text by replacing sensitive information with placeholders.

## Usage

### CLI Mode

```bash
# Set your API key (stays local!)
export OPENAI_API_KEY=sk-...

# Redact PII from text
echo "Contact John Smith at john.smith@company.com or 555-123-4567" | \
  expanso-edge run pipeline-cli.yaml

# Custom placeholder
PLACEHOLDER="***" echo "Contact John at john@example.com" | \
  expanso-edge run pipeline-cli.yaml
```

### MCP Mode

```bash
# Start server
PORT=8080 expanso-edge run pipeline-mcp.yaml &

# Make request
curl -X POST http://localhost:8080/redact \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Contact John Smith at john.smith@company.com",
    "placeholder": "[HIDDEN]"
  }'
```

## Output

```json
{
  "redacted_text": "Contact [REDACTED] at [REDACTED] or [REDACTED]",
  "redaction_count": 3,
  "redacted_types": ["name", "email", "phone"],
  "metadata": {
    "skill": "pii-redact",
    "mode": "cli",
    "model": "gpt-4o-mini",
    "placeholder": "[REDACTED]",
    "trace_id": "abc123...",
    "timestamp": "2024-01-15T10:30:00Z"
  }
}
```

## PII Types Detected

- Names (first, last, full)
- Email addresses
- Phone numbers
- Social Security Numbers
- Street addresses
- Credit card numbers
- IP addresses
- Dates of birth
- Government IDs

## Configuration

| Variable | Default | Description |
|----------|---------|-------------|
| `PLACEHOLDER` | `[REDACTED]` | Text to replace PII with |
| `OPENAI_API_KEY` | - | Required for OpenAI backend |

## Use Cases

- Log sanitization before storage
- Data anonymization for analytics
- Compliance with GDPR/CCPA
- Preparing data for public sharing

相关技能

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

139mail

chang-tong

139邮箱邮件收发 Skill - 支持 IMAP/SMTP 协议,兼容139/QQ/163/Gmail等主流邮箱 功能: 1. 发送邮件(SMTP) 2. 接收邮件(IMAP) 3. 查看收件箱列表 4. 查看未读邮件 当用户提到 "发邮件"、"收邮件"、"查看邮件"、"邮箱"...