← ClaudeAtlas

safe-repolisted

Check the repository for sensitive data. Use when asked to "check for sensitive data" or verify no credentials or company data are committed; `--diff` scopes to staged + unstaged changes. Don't use for general code review or non-git directories.
helderberto/agent-skills · ★ 16 · Code & Development · score 79
Install: claude install-skill helderberto/agent-skills
# Safe Repository Check ## Context Security audit for sensitive data in repository. Check for credentials, API keys, company-specific information, and PII. ## Modes - **Default (full-scan)**: scans all git-tracked files plus history. Use for periodic audits or first-time repo review. - **`--diff`**: scans only staged + unstaged changes (`git diff` + `git diff --cached`). Use before commit or when called from `review` / `ship` workflows. Fast, no false positives from pre-existing files. ## Workflow ### Default (full-scan) 1. Run `bash scripts/scan-secrets.sh` to scan all tracked files for credential patterns 2. Check for sensitive tracked files by name: `.env*` (except `.env.example`), `*.pem`, `*.key`, `*_rsa*`, `*secret*`, `*credential*` 3. Analyze git history for removed secrets: `git log --all --full-history -- "*.env" "*.pem" "*.key" "*secret*" "*credential*"` 4. Review `.gitignore` for proper patterns 5. Report findings (see [assets/report-template.md](assets/report-template.md)) ### `--diff` mode 1. Compute changed files: `git diff --name-only HEAD` + `git diff --name-only --cached` 2. Scan only those files with the regexes in `scripts/scan-secrets.sh` (grep them directly) plus the filename checks above 3. Skip history analysis (not relevant for in-flight changes) 4. Report findings scoped to changed files only ## Rules - **Only check git-tracked files** (`git ls-files`) - ignore local configs - Check current tracked files AND git history - Filter false posit