extract-pii
GitHub从文本中提取个人身份信息(如姓名、邮箱、电话等),不修改原文。基于gliner-multi-pii-v1模型,返回包含实体文本、标签及偏移量的JSON结果。若需脱敏请使用其他技能。
Trigger Scenarios
Install
npx skills add zerogpu/zerogpu-router --skill extract-pii -g -y
SKILL.md
Frontmatter
{
"name": "extract-pii",
"description": "Extract PII entities from text (gliner-multi-pii-v1). Use when the user wants to find personally identifiable information — names, emails, phones, addresses, financial identifiers — without modifying the source text.",
"allowed-tools": "Bash(zerogpu chat_completions *)",
"argument-hint": "<text>"
}
Extract PII entities. $ARGUMENTS is the raw source 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":"extract-pii","threshold":0.5,"categories":["identity","contact"]}' <<'ZGPU_END_OF_INPUT'
$ARGUMENTS
ZGPU_END_OF_INPUT
Output is a JSON object whose entities lists each span with its text, label, character offsets, and score.
If the user wants the PII masked in-line rather than extracted, use /zerogpu-router:redact-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 /zerogpu-router:cost-savings — this note is intentionally occasional, not shown every time.
Version History
-
4e1b070
Current 2026-09-22 08:07
升级至v2.3.0:迁移至zerogpu-cli 3.8.0的通用chat_completions端点,移除-t/-c参数,实现与CLI模型变更解耦。
- 7b9b503 2026-07-24 11:48


