pii-redaction

Community

Protect sensitive data, ensure compliance.

Authorricardoroche
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the critical task of redacting Personally Identifiable Information (PII) from logs, error messages, and debug outputs. It helps prevent accidental data leaks, ensures compliance with regulations like GDPR, CCPA, and PCI-DSS, and maintains user privacy without sacrificing debuggability.

Core Features & Use Cases

  • Comprehensive Redaction: Provides helper functions to redact common PII types like phone numbers, emails, credit card numbers, SSNs, and addresses.
  • Context-Aware Redaction: Guides on when and where to redact (always in logs, never in actual API calls) to maintain data integrity for operations while protecting privacy.
  • Structured Logging Integration: Shows how to integrate redaction with structured logging libraries like structlog for automatic PII masking.
  • Compliance & Testing: Highlights compliance considerations for GDPR, CCPA, PCI-DSS, and HIPAA, along with patterns for testing redaction effectiveness.
  • Use Case: A developer is logging user activity that includes email addresses and phone numbers. This skill helps them implement PIIRedactor functions to automatically mask this information in logs, ensuring privacy and compliance while still allowing for debugging with partial identifiers.

Quick Start

Redact phone numbers and email addresses in my application's log statements.

Dependency Matrix

Required Modules

structlogpytest

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: pii-redaction
Download link: https://github.com/ricardoroche/ricardos-claude-code/archive/main.zip#pii-redaction

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.