coldpress-labs/coldpress-os/scan-secrets
Claude Code and agent skill by coldpress-labs/coldpress-os
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Run Gitleaks against the repo history + working tree; emits normalised ScanResult JSON
Install
npx vskill@latest install coldpress-labs/coldpress-os/scan-secretsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as coldpress-labs/coldpress-os/scan-secrets.
Purpose
Run Gitleaks (MIT) to detect leaked secrets — API keys, tokens, private keys, dotenv values — across both the git history and the working tree. Complements the pre-commit check-secrets.sh hook (which scans the staged diff) by covering historical commits and untracked files.
Emits a ScanResult conforming to schemas/security-gate-result.schema.ts.
When to Use
- Phase 7 pre-deployment gate (mandatory — any
high+ finding blocks the deploy) - After repo-init: once, to establish a clean historical baseline
- Ad-hoc after any credential-rotation event
Prerequisites
- Gitleaks on PATH. Install:
brew install gitleaksor download from releases. - Project must be a git repo (Gitleaks relies on
git logfor history scan).
Process
- Invoke Gitleaks with JSON output:
``bash gitleaks detect --source . --report-format json --report-path _context/audit/security/gitleaks-raw.json --no-banner || true ``
- Normalise Gitleaks findings (
RuleID,Description,File,StartLine,Secret/Match,Commit) toFindingSchema. Severity mapping:
- All secret-detection findings are
highby default (credentials = high stakes). - The
Secret/Matchfield is NEVER included in the normalisedFindingSchema—descriptionuses the rule ID + file + line only. Secret values must never enter the audit trail.
- Compute histogram; write
ScanResultJSON to_context/audit/security/gitleaks-{date}.json. - Exit
0on success (including findings present),1only on tool failure.
Secret-value guardrail
Critical: the wrapper MUST strip Secret / Match from every normalised finding. The raw audit field also strips these values before persisting — Gitleaks' native output contains the leaked secret verbatim, which would leak into _context/audit/ if passed through naively. The wrapper tests enforce this guardrail.
Output
One ScanResult JSON file. Secret values never appear anywhere in the output.
Failure modes
- Gitleaks not installed — aborts with
brew install gitleakshint. - Not a git repo — aborts with a hint to
git initor scan with--no-git.
Licence
Gitleaks is MIT. Subprocess invocation.
Version Control
| Version | Date | Author | Changes | |
|---|---|---|---|---|
| 1.0 | 2026-04-24 | Cadbury-hq | Initial Gitleaks wrapper spec — part of Wave 5 Block Y §5.1. Secret-value stripping guardrail codified. Subprocess adapter deferred pending Gitleaks install. |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/security/scan-secrets/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/coldpress-labs/coldpress-os/scan-secrets)