redact-pii
GitHub用于在文本中检测并遮蔽个人身份信息(PII),将其替换为标签占位符。适用于用户要求脱敏、匿名化或清理文本的场景,通过调用ZeroGPU API在服务端完成处理。
Trigger Scenarios
Install
npx skills add zerogpu/zerogpu-router --skill redact-pii -g -y
SKILL.md
Frontmatter
{
"name": "redact-pii",
"metadata": {
"openclaw": {
"install": [
{
"bins": [
"zerogpu"
],
"kind": "node",
"package": "zerogpu-cli"
}
],
"requires": {
"bins": [
"zerogpu"
]
}
}
},
"description": "Detect and mask PII in-line in the text, 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.",
"allowed-tools": "Bash(zerogpu redact_pii*)",
"argument-hint": "<text>"
}
Sends the raw, un-redacted text to ZeroGPU's hosted API — detection runs server-side, so the PII reaches the third-party service before it is masked. This reduces what you forward downstream, not what reaches ZeroGPU. Don't submit regulated data you aren't cleared to share with a third party. See the plugin README's "Data & privacy" section.
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 and do not mention or suggest the cost-savings skill — this note is intentionally occasional, not shown every time.
Version History
-
cee9321
Current 2026-08-02 21:16
更新依赖及安全修复
- 7b9b503 2026-07-24 11:48


