security

Detect and redact PII and sensitive data in repository files using customizable regexes and pre-commit hooks.

15|3|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/LazyIsEfficient/agentic-os --skill security-lazyisefficient
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security
Source: https://github.com/LazyIsEfficient/agentic-os/tree/main/.claude/skills/security
Command: npx skills add https://github.com/LazyIsEfficient/agentic-os --skill security-lazyisefficient

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Scanning code repositories for PII and sensitive data is error-prone and risky; this skill automates detection and redaction to help teams publish safely.

Core Features & Use Cases

  • PII detection across repo files
  • Configurable blocklists and regex patterns
  • Pre-commit hook to block commits containing PII
  • In-place sanitization with placeholders
  • Customizable skip patterns

Quick Start

Run the sanitizer on your repository to scan for and redact PII before committing.

Frequently Asked Questions about security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan a code repository for PII and sensitive data before committing?

To scan code repositories for PII, run the sanitizer CLI on your project directory to automatically detect and flag sensitive data across all files. It uses configurable blocklists and regex patterns to identify risky content before publication.

How do I redact PII in place within my repository files?

In-place PII redaction replaces detected sensitive data with configurable placeholders directly inside your repository files. The sanitizer applies these substitutions based on your custom regex patterns and blocklists to sanitize code bases of any size.

Do I need external dependencies or specific Python packages to detect sensitive data in my repo?

No external dependencies are required to detect sensitive data; the scanner relies solely on the Python standard library. You only need a Python environment to run the CLI, pre-commit hook, and configurable detection rules.

What is the best way to customize PII detection rules for specific sensitive data formats?

The best way to customize PII detection is by defining specific regex patterns and blocklists in the sanitizer's configurable settings. You can also set skip patterns to exclude certain files or directories from sensitive data scans.

Are there limitations when scanning large code bases for sensitive data?

There are no inherent scale limitations for scanning large code bases; the sanitizer is designed for repositories of any size. However, complex custom regex patterns may impact scanning performance, and skip patterns should be configured to exclude irrelevant directories.