Harden Credentials — Git skill for Claude Code
Scan for leaked secrets, set up pre-commit hooks, and harden credential hygiene.
How to install Harden Credentials
Installs to ~/.claude/skills/latiotech-secure-supply-chain-skills-harden-credentials/SKILL.md
mkdir -p ~/.claude/skills/latiotech-secure-supply-chain-skills-harden-credentials && curl -fsSL https://raw.githubusercontent.com/latiotech/secure-supply-chain-skills/HEAD/commands/harden-credentials.md -o ~/.claude/skills/latiotech-secure-supply-chain-skills-harden-credentials/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Harden Credentials does
description: Scan for leaked secrets, set up pre-commit hooks, and harden credential hygiene allowed-tools: Read, Write, Edit, Glob, Grep, Bash(git:*, gh:*, betterleaks:*, pip:*, npx:*, curl:*, which:*, brew:*, cargo:*) argument-hint: [directory]
Audit and harden credential hygiene across the project. **This command takes action by default** - it scans for leaked secrets, adds protective gitignore rules, sets up pre-commit hooks, and fixes credential anti-patterns. Changes are explained
Alternatives in Git
- Om Peer Scan — Peer PR Deep Scan 4.6k ★
- Linting — Run rm -rf .mypy_cache && pre-commit run --all-files and fix the issues 3.1k ★
- TDD Guard — by Nizar Selander - A hooks-driven system that monitors file operations in real-time and blocks changes that v 1.9k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Secret Crusade
Unleash parallel Secret Purist agents to scan the codebase and git history for leaked credentials, API keys, a
Secrets Hunt
Hunt leaked credentials in a filesystem path, git history, JS bundles from a recon run, or an entire GitHub or
Check Secrets
Scan the working tree and recent git history for accidentally-committed BFL API keys, webhook secrets, or othe
Bob Fix Precommit
Run pre-commit on a git repo and resolve everything it fires, where safe to auto-fix. Never auto-allowlists se
Devgod Enforce
Set up devgod-scan, RLS gate, CI workflow, pre-commit, and PR template in this repo.
Husky
by evmts - Sets up and manages Husky Git hooks by configuring pre-commit hooks, establishing commit message st
Related Agents
Secret Purist
The paranoid sentinel of credential security. Use this agent to scan codebases and git history for leaked secr
Secret Guard
MUST be used whenever the user asks to scan for secrets, API keys, credentials, or tokens before a commit or i
Secret Hunter
Hunts publicly-leaked credentials (API tokens, cloud keys, DB strings) that belong to a previously-ingested pr