360 Secure SkillHub
360 安全技能中心

redact-pii

该 Skill 通过 Bash 调用 zerogpu 命令行工具的 redact_pii 子命令,用 heredoc 把用户提供的原始文本原样传入,返回把姓名、邮箱等敏感片段替换为 [PERSON]、[EMAIL] 等标签占位符的文本。仅做内联掩码,不提取 PII,也不生成文件。

zerogpu
zerogpu
热度 9.03
最近更新 2026-07-14 04:19:19
分类:安全依赖:代码执行 / 第三方 API应用场景:数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add redact-pii
Metadata
name
redact-pii
description
Detect and mask PII in-line via ZeroGPU, replacing it with label placeholders like [PERSON] and [EMAIL]. Use when the user asks to redact, scrub, mask, anonymize, or sanitize a passage before sharing or logging it.
argument-hint
<text>
allowed-tools
Bash(zerogpu redact_pii *)

Mask PII in-line. $ARGUMENTS is the raw user text — pass it verbatim, no escaping or quoting required (the heredoc below handles every shell metacharacter, newline, quote, and paren safely):

ZGPU_TEXT=$(cat <<'ZGPU_END_OF_INPUT'
$ARGUMENTS
ZGPU_END_OF_INPUT
)
zerogpu redact_pii "$ZGPU_TEXT"

Output is the original text with PII spans replaced by [LABEL] placeholders. To extract (not mask) PII, use extract-pii instead.

Savings note: only if the command output literally contains a line starting with 💰 ZeroGPU savings, append that exact line, unchanged, as the last line of your reply. If no such line is present, say nothing about savings.