vault/Operations/Claude/skills/coding/secrets-audit/SKILL.md
Scan repository for accidentally committed secrets and credentials using gitleaks.
npx skillsauth add eddowding/cortex secrets-auditInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Scan for accidentally committed secrets and credentials.
Find and remediate any exposed secrets in the repository.
Uses gitleaks (1000+ built-in patterns + entropy analysis) to detect:
Excludes: Journal/, .obsidian/, node_modules/
gitleaks detect --source . --verbose
If secrets found:
SECRETS DETECTED
Finding: openai-key
Secret: sk-proj-***REDACTED***
File: path/to/file.md:215
If clean:
NO SECRETS DETECTED
Repository is clean!
For each secret found:
Remove from file:
sk-proj-ACTUAL_KEY → sk-proj-YOUR_KEY_HERE
Move to ~/.secrets/:
echo "OPENAI_API_KEY=sk-proj-ACTUAL_KEY" >> ~/.secrets/openai
Update documentation:
# Before
API Key: `sk-proj-ACTUAL_KEY`
# After
API Key: `source ~/.secrets/openai && echo $OPENAI_API_KEY`
Rotate the secret - Generate new key from provider
(Optional) Clean git history:
git-filter-repo --path "file-with-secret.md" --invert-paths
--no-verify (not recommended).gitleaks.toml allowlist.gitleaks.toml - Audit configurationtools
Dispatch to the right problem-solving technique based on how you're stuck.
testing
Interactive brainstorming and advisory mode that helps think through questions, critique approaches, propose alternatives, and reach optimal decisions.
tools
Find one insight that eliminates multiple components - 'if this is true, we don't need X, Y, or Z'
testing
Test at extremes (1000x bigger/smaller) to expose fundamental truths hidden at normal scales.