隐私清除器卫士(privacyscrubber-guard)

2026-10-22查看 3复制 0

- 在代理呼叫之前清理 RAM 中的 PII 和机密

Download (.md)

📘如何使用这个技能

  1. 1
    复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
  2. 2
    打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
  3. 3
    粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
  4. 4
    直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景

💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。

SKILL.md1669 chars
---
name: privacyscrubber-guard
description: Pre-ingestion zero-trust PII, secret, and regulated data sanitization skill for AI coding agents (Claude Code, Cursor, Codex, Gemini CLI, Windsurf) via @privacyscrubber/mcp-server. Intercepts files, shell commands, and prompts in local RAM with 30 specialized industry profiles and SHA-256 compliance receipts.
metadata:
  author: moxno
  version: "2.3.8"
  mcp_server: "npx -y @privacyscrubber/mcp-server"
---

# PrivacyScrubber Guard — Agent Skill

Enforces local in-RAM PII and secret sanitization before AI agents read files, run terminal commands, apply patches, or send context to external LLM APIs.

## Quick Setup

```bash
claude mcp add privacyscrubber -- npx -y @privacyscrubber/mcp-server
```

Or via Python (`uvx`):

```bash
claude mcp add privacyscrubber -- uvx privacyscrubber-mcp
```

## Core Agent Workflow

1. **Sanitize Text & Prompts (`scrub_text`):** Mask PII, API keys, HIPAA PHI, PCI-DSS PAN/IBAN, and corporate secrets into deterministic surrogate tokens (`[EMAIL_1]`, `[OPENAI_KEY_1]`, `[SSN_1]`) in local RAM.
2. **Guard File Reads & Shell Commands (`guard_read_file`, `guard_exec`, `guard_apply_patch`):** Automatically redact sensitive literals from local files and command outputs before they enter the agent context window.
3. **Restore Cleartext Locally (`reveal_text`):** Re-hydrate surrogate tokens from volatile session memory into final local outputs without exposing cleartext to external LLM providers.
4. **Compliance Attestation (`generate_audit_receipt`):** Emit a deterministic SHA-256 compliance receipt mapping detected entities to GDPR, HIPAA, SOC 2, PCI-DSS, and NIST frameworks.
来源:prompthub

评论0

登录后参与评论

还没有评论,来抢沙发吧