redact-pii
GitHub用于检测和屏蔽文本中的个人身份信息(PII),将其替换为标签占位符。适用于用户要求脱敏、匿名化或清理文本的场景,支持提取和掩码两种模式。
Trigger Scenarios
Install
npx skills add zerogpu/zerogpu-router --skill redact-pii -g -y
SKILL.md
Frontmatter
{
"name": "redact-pii",
"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>"
}
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):
zerogpu chat_completions -m gliner-multi-pii-v1 --metadata '{"usecase":"redact","mask":"label"}' <<'ZGPU_END_OF_INPUT'
$ARGUMENTS
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. For extracting (not masking) PII, use /zerogpu-router:extract-pii.
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 /zerogpu-router:cost-savings — this note is intentionally occasional, not shown every time.
Version History
-
4e1b070
Current 2026-09-22 08:07
版本升级至2.3.0:改用模型无关的CLI端点命令,使插件独立于CLI模型变更;更新为调用chat_completions接口并指定模型;适配zerogpu-cli 3.8.0及以上版本。
- 7b9b503 2026-07-24 11:48


