redact-pii
GitHub检测并掩码文本中的个人身份信息(PII),将其替换为标签占位符,适用于数据脱敏、日志清理或分享前的隐私保护场景。
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 chat_completions *)",
"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. Run this with the exec tool, pasting the user's text into the heredoc verbatim — no escaping or quoting required (the quoted heredoc handles every shell metacharacter, newline, quote, and paren safely):
zerogpu chat_completions -m gliner-multi-pii-v1 --metadata '{"usecase":"redact","mask":"label"}' <<'ZGPU_END_OF_INPUT'
<the text to redact, verbatim>
ZGPU_END_OF_INPUT
Output is a JSON object: redacted_text is the original text with PII spans replaced by [LABEL] placeholders, and entities lists what was found. Lead with redacted_text. 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
-
4e1b070
Current 2026-09-22 08:08
升级至v4.4.0,改为调用zerogpu-cli模型无关端点,使插件独立于CLI模型变更;执行方式从!块改为exec工具指令。
-
cee9321
2026-08-02 21:16
更新依赖及安全修复
- 7b9b503 2026-07-24 11:48


