data-leakage-prevention
Installation
SKILL.md
Data Leakage Prevention
Use this skill for submission-time security checks and general file compliance reviews. Combine semantic review with deterministic tooling, and make the audit boundary explicit before any scan starts.
Core Rules
- Declare the audit boundary first. State the scope type and the resolved files before scanning.
- Collect environment context early. Check whether the target is git-backed, whether
.gitleaks.tomlor similar policy files exist, whether.pre-commit-config.yamlexists, and whether local text-extraction tools are available for binary documents. - Respect repository rules before running detectors. If
.gitleaks.tomlor similar config exists, honor its ignore rules and use its custom rules as review constraints when possible. - Choose scan depth from the change summary. Do not default to full semantic review for generated, third-party, or oversized changes.
- Report precise findings and keep likely false positives separate.
Boundary And Context
Supported scope types:
- Git:
staged,changed,commit <hash>,pr <id> - Filesystem:
entire repo,directory,specific file