/gitguardian:install-hooksfrom GitGuardian
Installs or repairs Git hooks and AI-assistant hooks that scan for secrets using ggshield. Use when credential-handling work lacks hook protection or the user requests leak prevention.
Ships in GitGuardian. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Hooks do the recurring checks. The agent does not. Never run a scan yourself, and never write a script or other tool to find secrets. Check the existing protection once per context. Reuse protection that works. Offer a missing installation or a repair one time. If the user declines, do not ask again, and do not run scans instead.
| Requested protection | Hook | Content that the hook checks |
|---|---|---|
| Before a commit | pre-commit | Staged changes |
| Before a push | pre-push | Outgoing commits, including intermediate versions |
| During AI assistant actions | AI hook for the named or active assistant | Supported prompt and tool events |
Use the stage, the assistant, and the scope that the user specified. Ask only for a missing choice. For a bare "install hooks" request, ask which hook family the user wants. An explicit installation request authorizes its stated scope. A recommendation request or a scan request does not authorize an installation. A global installation needs explicit authorization.
Before an installation, check:
ggshield --version--help output of the relevant commandggshield api-status for authenticationDo not repeat a check that already passed in this context.
If the CLI is missing or not authenticated, read ggshield-cli-setup.md. Otherwise, continue.
Read the relevant section of hook-selection.md when you check, install, or repair protection. It covers the effective Git hook paths, existing hook managers, and scoped AI hook installation. Do not read it again for a routine operation that it already covered.
After an installation, check the configuration. Do not run a test scan. Do not create a test secret, a test commit, or a test push. Report "configured" and "ran and passed" as two different states. The next authorized operation runs the hook and gives the "ran and passed" result.
scan-secrets when it is available.scan-secrets is installed, it contains detailed remediation guidance.If a hook does not run, check the effective hook paths, the hook manager dispatch, the enabled events, the authentication, and the project trust settings. The hook-selection reference describes each check. An AI scan error can let an unscanned action continue. To uninstall, remove only the ggshield entries, through the hook manager that owns them. Keep the other hooks.
evals/evals.json (opens in a new tab)evals/files/README.md (opens in a new tab)evals/files/already-has-hook/setup.sh (opens in a new tab)evals/files/ambiguous-asks-family/setup.sh (opens in a new tab)evals/files/global-needs-consent/setup.sh (opens in a new tab)evals/files/install-claude-code/setup.sh (opens in a new tab)evals/files/install-precommit-local/setup.sh (opens in a new tab)evals/targets.json (opens in a new tab)references/ggshield-cli-setup.md (opens in a new tab)references/gitguardian-platform.md (opens in a new tab)references/hook-selection.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gitguardian/agent-skills --plugin gitguardian6 skills in this plugin
/check-hmslCheck whether a known credential has already leaked publicly via GitGuardian's HasMySecretLeaked (HMSL) hash-lookup service. Use when the user inherits credentials, suspects a specific token leaked, wants to vet a HashiCorp Vault inventory, or asks "has this secret leaked", "is this compromised", or "check against HMSL". Distinct from scan-secrets, which finds unknown secrets in code; this checks known secrets against the HMSL corpus. User-run only — this is a command-handoff skill, so the agent prepares the commands, the user runs them in their own terminal, and the agent only interprets the sanitized output the user pastes back./create-honeytokensUse when generating or planting GitGuardian honeytokens, canary tokens, decoys, or tripwire credentials. Use around .env.example, sample configs, pre-publication open-source repos, internal wikis, runbooks, deploy scripts, or other attractive leak surfaces./scan-machineScan a developer's entire machine for credentials across local git repositories, dotfiles, ~/.aws/credentials, ~/.kube/config, ~/.docker/config.json, ~/.npmrc, browser profile databases, shell history, AI agent caches, and abandoned project trees via ggshield machine scan. Use when preparing to wipe, sell, or hand off a laptop, when onboarding a new machine, when auditing what credentials live on a machine, or when the user explicitly asks to inventory secrets on the system itself. Requires endpoint scanning enabled on the GitGuardian workspace; not available on Free./scan-secretsScan files, staged changes, commits, history, Docker images, or packages for hardcoded secrets. Use when the user asks for a scan, during an audit, or when the user asks you to investigate a suspected leak or a finding. Use install-hooks for recurring checks on edits, commits, pushes, and AI assistant actions./triage-incidentsUse when triaging or reviewing GitGuardian secret incidents already detected in the dashboard, when asked what is leaking in the org or what to fix first, when remediating or rotating a credential flagged in an incident, after a Public Monitoring alert, or to assign, tag, or resolve incidents. Operates through the GitGuardian Developer MCP server.Other plugins' skills for the same job