git-secrets-precommit-scanner

git-secrets-precommit-scanner is a skill for Claude Code, Codex from kissrosecicd-hub/agents-evolution. It costs 0 tokens per session (4,695 once invoked), scanned A, original, MIT.

A scanner that checks Git changes for exposed passwords, API keys, and other secret tokens. It uses entropy checks and custom text patterns, and can run before a commit or during continuous integration (automated checks on submitted code).

In plain words
What is it for?
Use it in pre-commit hooks, CI pipelines, or GitHub push checks. It scans only the changed parts, supports configurable rules, and allows false-positive tuning.
Why use it?
It helps catch sensitive credentials before they are committed or pushed to a shared repository. It can also connect to GitHub's push protection to block unsafe pushes.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/kissrosecicd-hub/agents-evolution/git-secrets-precommit-scanner
Any agent
npx skills add kissrosecicd-hub/agents-evolution --skill git-secrets-precommit-scanner
Clone the repo
git clone --depth 1 https://github.com/kissrosecicd-hub/agents-evolution

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-secrets-precommit-scanner

README.md
[![agentmods](https://agentmods.dev/badge/skills/kissrosecicd-hub/agents-evolution/git-secrets-precommit-scanner.svg)](https://agentmods.dev/skills/kissrosecicd-hub/agents-evolution/git-secrets-precommit-scanner)
Your own site
<a href="https://agentmods.dev/skills/kissrosecicd-hub/agents-evolution/git-secrets-precommit-scanner"><img src="https://agentmods.dev/badge/skills/kissrosecicd-hub/agents-evolution/git-secrets-precommit-scanner.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,695 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.04695
Opus 5 $0.00000 $0.02348
Sonnet 5 $0.00000 $0.00939
Haiku 4.5 $0.00000 $0.00470

Measured 3d ago against content hash 0f2e11baf9ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

git-secrets-precommit-scanner scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/git-secrets-precommit-scanner/SKILL.md · 563 lines

How it starts

The opening of the file, as written. The whole thing — 563 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git Secrets Pre-Commit Scanner

Scans git diffs for exposed secrets using truffleHog entropy detection and custom regex patterns. Integrates with pre-commit hooks and GitHub push protection API for real-time blocking.

Field Value
Identifier agentskillexchange-skills-git-secrets-precommit-scanner
Version 1.0.1
Author agentskillexchange
Category git-github
Installs
Rating / 5 ( ratings)
License

GitHub: agentskillexchange/skills — ⭐ | Forks:


Skill Overview

Git Secrets Pre-Commit Scanner inspects git diffs for exposed credentials and sensitive tokens by combining truffleHog entropy detection with customizable regex patterns. It runs locally as a pre-commit hook to give developers immediate feedback, and can integrate with the GitHub push protection API to block unsafe pushes in real time. Key features include diff-scoped scanning for fast results, configurable rules and false-positive tuning, support for standard pre-commit tooling and CI pipelines, and multiple install options (npx, Claude Code, Cursor, OpenClaw, Codex). Use cases include preventing secret leaks in developer workflows, enforcing secrets policies across teams, and adding a safety layer to CI/CD and repo protection. Core advantages are reduced risk of credential exposure, low developer friction, and centralized enforcement via push protection.


About LobeHub Skills Marketplace

This skill was found via the LobeHub Skills Marketplace — the world's largest skills marketplace with over 100,000 skills. Each skill is a self-contained instruction set that teaches agents new capabilities.

Read the full file on GitHub · 563 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 563 lines · 0 tokens per session scan A 0f2e11baf9ef

Subscribe to this mod's changes

git-secrets-precommit-scanner is a skill published in the GitHub repository kissrosecicd-hub/agents-evolution (31 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,695 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories