coldpress-labs/coldpress-os/scan-secrets

Claude Code and agent skill by coldpress-labs/coldpress-os

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

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-secrets

Semi-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 gitleaks or download from releases.
  • Project must be a git repo (Gitleaks relies on git log for history scan).

Process

  1. Invoke Gitleaks with JSON output:

``bash gitleaks detect --source . --report-format json --report-path _context/audit/security/gitleaks-raw.json --no-banner || true ``

  1. Normalise Gitleaks findings (RuleID, Description, File, StartLine, Secret/Match, Commit) to FindingSchema. Severity mapping:
  • All secret-detection findings are high by default (credentials = high stakes).
  • The Secret/Match field is NEVER included in the normalised FindingSchema — description uses the rule ID + file + line only. Secret values must never enter the audit trail.
  1. Compute histogram; write ScanResult JSON to _context/audit/security/gitleaks-{date}.json.
  2. Exit 0 on success (including findings present), 1 only 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 gitleaks hint.
  • Not a git repo — aborts with a hint to git init or scan with --no-git.

Licence

Gitleaks is MIT. Subprocess invocation.


Version Control
VersionDateAuthorChanges
1.02026-04-24Cadbury-hqInitial 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/coldpress-labs/coldpress-os/scan-secrets/badge)](https://verified-skill.com/skills/coldpress-labs/coldpress-os/scan-secrets)

Something wrong with this skill or its page? Tell us.