/privacy-legal:pii-scrub [optional: --de-para only (skip scrubbing, show table)]from privacy-legal
Before sharing client or processual content with the assistant, pseudonymize PII: names → PARTE_A/PARTE_B, CPF/CNPJ/RG → [REDIGIDO], endereços/e-mails/telefones → [REDIGIDO], processo numbers → [Nº PROCESSO]. Outputs pseudonymized text + a local de-para table for re-identification. Flags segredo de justiça and dados sensíveis (LGPD art. 11) risks. Use when pasting case files, contracts, client records, or any text with personal data into the assistant.
Ships in privacy-legal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Before a lawyer pastes processual content, client data, or contracts into Claude, pseudonymize sensitive identifiers. This skill:
This skill assumes Brasil (LGPD, Lei 13.709/2018) as the default jurisdiction. The obligations around PII and dados sensíveis come from:
[verified: https://www.planalto.gov.br/ccivil_03/_ato2015-2018/2015/lei/l13105.htm]~/.claude/plugins/config/claude-for-legal/privacy-legal/CLAUDE.md → your privacy practice profile (DPA status, regulatory footprint, base legal for data handling by the assistant).
Before scrubbing, ask:
Quick legal check — answer 1-2 questions:
- Does this document run under segredo de justiça (CPC art. 189
[verified: https://www.planalto.gov.br/ccivil_03/_ato2015-2018/2015/lei/l13105.htm]) or involve a sealed/confidential proceeding? (Yes / No / Unsure)- Does it contain dados sensíveis (health, race/ethnicity, religion, political opinion, biometrics, union, genetic — LGPD art. 11
[verified: https://www.planalto.gov.br/ccivil_03/_ato2015-2018/2018/lei/l13709.htm])? (Yes / No / Unsure)If yes to either: caution flag (see Step 4 below) before scrubbing.
Apply these substitutions to the pasted text:
| PII type | Substitution | Example |
|---|---|---|
| Person names | PARTE_A, PARTE_B, PESSOA_[N] | "João da Silva" → PARTE_A; "Acme Corp" → PARTE_A; "Maria" (counterparty) → PARTE_B |
| CPF / RG / CNPJ | [REDIGIDO] | 123.456.789-00 → [REDIGIDO]; 17.123.456/0001-90 → [REDIGIDO] |
| Email addresses | [email — REDIGIDO] | [email protected] → [email — REDIGIDO] |
| Phone numbers | [telefone — REDIGIDO] | (11) 98765-4321 → [telefone — REDIGIDO] |
| Addresses | [endereço — REDIGIDO] | "Rua X, 123, São Paulo" → [endereço — REDIGIDO] |
| Processo/Autos numbers | [Nº PROCESSO] | "Autos nº 0001234-56.2023.8.26.0100" → [Nº PROCESSO] |
| Bank account / card numbers | [conta — REDIGIDO] | Qualquer sequência 8+ dígitos → [conta — REDIGIDO] |
| Dates of birth | [data de nascimento — REDIGIDO] | 15/03/1985 (if clearly DOB context) → [data de nascimento — REDIGIDO] |
Preserve context: Keep surrounding text and structure so the analysis makes sense. Preserve document formatting (headings, lists, paragraphs).
Create a mapping table (local only, not sent to assistant with the document):
## De-Para — [data/hora]
| Scrubbed | Real value | Context |
|---|---|---|
| PARTE_A | João da Silva | Plaintiff/demandante |
| PARTE_B | Acme Corp | Defendant/demandada |
| [REDIGIDO] | 123.456.789-00 | CPF of PARTE_A |
| [Nº PROCESSO] | 0001234-56.2023.8.26.0100 | São Paulo Federal Court, case ID |
| [email — REDIGIDO] | [email protected] | PARTE_A contact |
Save this locally in a safe place (password-protected file, encrypted note, not shared). It's your key to re-identify results.
If the answer to Step 1 question 1 or 2 is yes:
⚠️ Caution: This document is classified as [segredo de justiça / contains dados sensíveis under LGPD art. 11]. Even pseudonymized, consider:
- Segredo de justiça: Sealed proceedings should not be discussed outside the legal team. Pasting here may waive the seal's confidentiality. Confirm that your organization has authorized disclosure to the AI assistant for legal analysis.
- Dados sensíveis (LGPD art. 11): Health records, biometric data, religious/political affiliation, racial/ethnic origin, union membership, genetic data cannot be processed by the assistant unless you have a valid base legal (LGPD art. 7) — ex., explicit consent, contractual necessity, legal obligation, or vital interest. Pseudonymization helps but does not create a base legal. Ask: does your privacy policy or user agreement permit processing of [type] data by third-party AI? If not, do not paste.
- Recommendation: If unsure, ask your DPO or privacy counsel before pasting.
Do not block the user from proceeding — just flag the risk. They decide.
Return TWO items:
[Full text with PII substituted, formatted as received]
## De-Para — [date/time]
[Table as above]
**Preserve this table.** It is your key to re-identify results later. Do not share with the assistant or anyone without need-to-know.
Este skill não gera sigilo profissional — pseudonymização não transforma um documento num memorando jurídico protegido. Se a análise que você faz depois, apoiada neste scrub, é rascunho para consultoria a um advogado, aquele rascunho precisa do cabeçalho apropriado (sigilo profissional advogado-cliente, Estatuto OAB, Lei 8.906/1994). O scrub é pré-processamento; o sigilo vem da relação jurídica com o profissional que orienta.
Base legal: não resolvida. Pseudonymização reduz risco mas não resolve o problema de base legal — sua empresa precisa de base legal (LGPD art. 7) para passar dados pessoais pro assistente, mesmo pseudonymizados. Se não tem (ex.: dados de cliente, sem consentimento informado, sem base contratual), isso é uma lacuna LGPD que este skill sinaliza mas não cura.
Input:
João da Silva, CPF 123.456.789-00, contratado em 01/02/2020,
foi rescindido em 30/11/2023 pela Acme Corp (CNPJ 17.123.456/0001-90).
Contato: [email protected], (11) 98765-4321.
Endereço: Rua das Flores, 456, São Paulo, SP.
Motivo da rescisão: desempenho insuficiente (notificado em 15/11/2023).
Output (scrubbed):
PARTE_A, [REDIGIDO], contratado em [data — 01/02/2020],
foi rescindido em 30/11/2023 pela PARTE_A (Empresa) ([REDIGIDO]).
Contato: [email — REDIGIDO], [telefone — REDIGIDO].
Endereço: [endereço — REDIGIDO], São Paulo, SP.
Motivo da rescisão: desempenho insuficiente (notificado em [data — 15/11/2023]).
De-para: | PARTE_A (person) | João da Silva | Employee | | [REDIGIDO] (CPF) | 123.456.789-00 | PARTE_A's CPF | | PARTE_A (company) | Acme Corp | Employer | | [REDIGIDO] (CNPJ) | 17.123.456/0001-90 | Employer CNPJ | | [email — REDIGIDO] | [email protected] | PARTE_A contact | | [telefone — REDIGIDO] | (11) 98765-4321 | PARTE_A contact | | [endereço — REDIGIDO] | Rua das Flores, 456, São Paulo, SP | PARTE_A address |
Input (after caution check):
Autos nº 0001234-56.2023.8.26.0100 (Tribunal de Justiça de São Paulo).
Demandante: Silva e Cia. Ltda. (CNPJ 11.222.333/0001-44)
Demandado: Fornecedor Brasil Imp. Exp. (CNPJ 22.333.444/0001-55)
Questão: inadimplência de R$ 500.000,00.
Data da sentença: 10/12/2024, Juiz Fernando de Souza.
Caution flag first:
⚠️ This is a civil case from TJSP. Check: does it run under segredo de justiça? If sealed/confidential, confirm your org has authorization to discuss with AI counsel.
Output (scrubbed if user confirms):
[Nº PROCESSO] (Tribunal de Justiça de São Paulo).
Demandante: PARTE_A ([REDIGIDO])
Demandado: PARTE_B ([REDIGIDO])
Questão: inadimplência de R$ 500.000,00.
Data da sentença: 10/12/2024, Juiz [REDIGIDO].
Antes de usar: Leia a seção ## Antes de colar dados de cliente no litigation-legal/CLAUDE.md e privacy-legal/CLAUDE.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub bossmann007/claude-legal-br --plugin privacy-legal12 skills in this plugin
/cold-start-interviewRun the cold-start interview — learns your privacy practice and writes CLAUDE.md from your policy, DPA template, and a reference PIA. Use on first run, when CLAUDE.md is missing or has placeholders, or when the user says "set up the privacy plugin", "onboard me", "configure privacy", or wants to re-run the interview or re-check integrations.
/customizeGuided customization of your privacy practice profile — change one thing without re-running the whole cold-start interview. Adjust risk posture, escalation contacts, DPA playbook, privacy policy commitments, PIA house style, DSAR process, or matter workspace paths. Use when the user says "change my [thing]", "update my profile", "edit my playbook", or "customize".
/Other plugins' skills for the same job