redact-pii
GitHub通过 Superlinked MCP 工具检测并替换文档中的个人身份信息(PII),支持多种格式输入,处理后仅使用脱敏内容继续任务。
Trigger Scenarios
Install
npx skills add superlinked/sie --skill redact-pii -g -y
SKILL.md
Frontmatter
{
"name": "redact-pii",
"description": "Redact personal data from a document through the connected Superlinked MCP edge before working with the content. Use when the user asks to redact, anonymize, scrub, de-identify, or remove PII\/sensitive data from a document."
}
Redact PII with Superlinked MCP
Use the connected Superlinked MCP server to detect and replace PII on the SIE
cluster through the MCP redact_pii tool.
Hard Rules
- Do not open, view, attach, or read the source document into context before redaction.
- After redaction, continue the user's task using only the redacted artifact.
- The MCP tool intentionally does not return a placeholder-to-original map. Do not promise de-redaction from the MCP flow.
Steps
-
Call the Superlinked MCP
redact_piitool:- For PDF, scan, image-of-text, DOCX, PPTX, XLSX, or HTML inputs, read raw
bytes only, base64-encode them, and pass
document_base64plusfilename. - For text or markdown inputs, read raw bytes only, base64-encode them, and
pass
content_base64. - Pass
labelsonly if the user wants a custom PII/sensitive-data set. - Leave
engineasautounless the user explicitly asks to force a conversion engine.
- For PDF, scan, image-of-text, DOCX, PPTX, XLSX, or HTML inputs, read raw
bytes only, base64-encode them, and pass
-
Write the returned
redacted_texttoprocessed/<source-stem>.redacted.md. Createprocessed/if it does not exist. -
Your next message must begin with a short receipt:
Redacted <span_count> spans from <source> -> processed/<source-stem>.redacted.mdInclude the label counts and the note that detection is model-based and best-effort, not a certified scrubber.
-
Continue the user's actual task using only the redacted artifact.
Errors
If the MCP call fails, relay the tool error and do not retry blindly. For auth
or connector errors, tell the user to reinstall the generated MCP plugin pack or
rerun the generated claude mcp add ... --header 'Authorization: Bearer ...'
command from INSTALL.md.
Version History
- 1c7bbe8 Current 2026-09-08 17:34


