{"id":"078f2446-3034-4c7a-9549-c13b5b113df9","shortId":"Kf9Hek","kind":"skill","title":"Git Secrets Pre-Commit Scanner","tagline":"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.","description":"# Git Secrets Pre-Commit Scanner\n\nScans 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.\n\n## Installation\n\nUse the upstream install or setup path that matches your environment:\n- docker run --rm -it -v \"$PWD:/pwd\" trufflesecurity/trufflehog:latest github --org=trufflesecurity\n- brew install trufflehog\n- docker run --rm -it -v \"$PWD:/pwd\" trufflesecurity/trufflehog:latest github --repo https://github.com/trufflesecurity/test_keys\n- docker run --rm -it -v \"%cd:/=\\%:/pwd\" trufflesecurity/trufflehog:latest github --repo https://github.com/trufflesecurity/test_keys\n\nRequirements and caveats from upstream:\n- ### Docker:\n- <sub><i>_Ensure Docker engine is running before executing the following commands:_</i></sub>\n- ### Using installation script, verify checksum signature (requires cosign to be installed)\n\nBasic usage or getting-started notes:\n- # :rocket: Quick Start\n- Clone the git repo. For example [test keys](git@github.com:trufflesecurity/test_keys.git) repo.\n\n- Source: https://github.com/trufflesecurity/trufflehog\n- Extracted from upstream docs: https://raw.githubusercontent.com/trufflesecurity/trufflehog/HEAD/README.md\n\n## Source\n\n- [Agent Skill Exchange](https://agentskillexchange.com/skills/git-secrets-precommit-scanner/)","tags":["git","secrets","precommit","scanner","skills","agentskillexchange","agent-skills","ai-agents","ai-tools","awesome-list","claude-code","codex"],"capabilities":["skill","source-agentskillexchange","skill-git-secrets-precommit-scanner","topic-agent-skills","topic-ai-agents","topic-ai-tools","topic-awesome-list","topic-claude-code","topic-codex","topic-cursor","topic-llm","topic-mcp","topic-npx-skills","topic-openclaw","topic-skills-catalog"],"categories":["skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/agentskillexchange/skills/git-secrets-precommit-scanner","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add agentskillexchange/skills","source_repo":"https://github.com/agentskillexchange/skills","install_from":"skills.sh"}},"qualityScore":"0.454","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,374 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:10:36.925Z","embedding":null,"createdAt":"2026-05-18T13:16:44.966Z","updatedAt":"2026-05-18T19:10:36.925Z","lastSeenAt":"2026-05-18T19:10:36.925Z","tsv":"'/pwd':91,106,120 '/skills/git-secrets-precommit-scanner/)':193 '/trufflesecurity/test_keys':113,127 '/trufflesecurity/trufflehog':179 '/trufflesecurity/trufflehog/head/readme.md':186 'agent':188 'agentskillexchange.com':192 'agentskillexchange.com/skills/git-secrets-precommit-scanner/)':191 'api':31,67 'basic':155 'block':36,72 'brew':97 'caveat':130 'cd':119 'checksum':148 'clone':165 'command':143 'commit':5,25,41,61 'cosign':151 'custom':18,54 'detect':16,52 'diff':9,45 'doc':183 'docker':85,100,114,133,135 'engin':136 'ensur':134 'entropi':15,51 'environ':84 'exampl':170 'exchang':190 'execut':140 'expos':11,47 'extract':180 'follow':142 'get':159 'getting-start':158 'git':1,8,37,44,167 'git@github.com':173 'github':28,64,94,109,123 'github.com':112,126,178 'github.com/trufflesecurity/test_keys':111,125 'github.com/trufflesecurity/trufflehog':177 'hook':26,62 'instal':73,77,98,145,154 'integr':21,57 'key':172 'latest':93,108,122 'match':82 'note':161 'org':95 'path':80 'pattern':20,56 'pre':4,24,40,60 'pre-commit':3,23,39,59 'protect':30,66 'push':29,65 'pwd':90,105 'quick':163 'raw.githubusercontent.com':185 'raw.githubusercontent.com/trufflesecurity/trufflehog/head/readme.md':184 'real':34,70 'real-tim':33,69 'regex':19,55 'repo':110,124,168,175 'requir':128,150 'rm':87,102,116 'rocket':162 'run':86,101,115,138 'scan':7,43 'scanner':6,42 'script':146 'secret':2,12,38,48 'setup':79 'signatur':149 'skill':189 'skill-git-secrets-precommit-scanner' 'sourc':176,187 'source-agentskillexchange' 'start':160,164 'test':171 'time':35,71 'topic-agent-skills' 'topic-ai-agents' 'topic-ai-tools' 'topic-awesome-list' 'topic-claude-code' 'topic-codex' 'topic-cursor' 'topic-llm' 'topic-mcp' 'topic-npx-skills' 'topic-openclaw' 'topic-skills-catalog' 'trufflehog':14,50,99 'trufflesecur':96 'trufflesecurity/test_keys.git':174 'trufflesecurity/trufflehog':92,107,121 'upstream':76,132,182 'usag':156 'use':13,49,74,144 'v':89,104,118 'verifi':147","prices":[{"id":"87268270-883a-4a34-82dc-94eb7aa1e361","listingId":"078f2446-3034-4c7a-9549-c13b5b113df9","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"agentskillexchange","category":"skills","install_from":"skills.sh"},"createdAt":"2026-05-18T13:16:44.966Z"}],"sources":[{"listingId":"078f2446-3034-4c7a-9549-c13b5b113df9","source":"github","sourceId":"agentskillexchange/skills/git-secrets-precommit-scanner","sourceUrl":"https://github.com/agentskillexchange/skills/tree/main/skills/git-secrets-precommit-scanner","isPrimary":false,"firstSeenAt":"2026-05-18T13:16:44.966Z","lastSeenAt":"2026-05-18T19:10:36.925Z"}],"details":{"listingId":"078f2446-3034-4c7a-9549-c13b5b113df9","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"agentskillexchange","slug":"git-secrets-precommit-scanner","github":{"repo":"agentskillexchange/skills","stars":8,"topics":["agent-skills","ai-agents","ai-tools","awesome-list","claude-code","codex","cursor","llm","mcp","npx-skills","openclaw","skills-catalog"],"license":"mit","html_url":"https://github.com/agentskillexchange/skills","pushed_at":"2026-05-18T19:02:17Z","description":"The open catalog of AI agent skills — 2,000+ security-scanned skills for Claude Code, Cursor, Codex, and more.","skill_md_sha":"191ac892048d89542167106d1abdac3566f0684b","skill_md_path":"skills/git-secrets-precommit-scanner/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/agentskillexchange/skills/tree/main/skills/git-secrets-precommit-scanner"},"layout":"multi","source":"github","category":"skills","frontmatter":{"name":"Git Secrets Pre-Commit Scanner","description":"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."},"skills_sh_url":"https://skills.sh/agentskillexchange/skills/git-secrets-precommit-scanner"},"updatedAt":"2026-05-18T19:10:36.925Z"}}