/secure-coding:secret-guardfrom secure-coding
Detects hardcoded secrets, cloud keys (AWS/GCP/Azure), tokens, and sensitive files before commit/push. Verifies .gitignore covers required patterns.
Ships in secure-coding. 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.
Catch secrets and sensitive files before they reach git history — hardcoded or in
.env/config files — and make sure .gitignore actually excludes the categories of
file that should never be tracked. Enforcement (blocking) happens via the installed
git hooks (scripts/install-git-hooks.sh) and the Claude Code PreToolUse hook in
hooks/hooks.json; this skill is for the interactive/manual pass, e.g. reviewing a
diff before the user commits, or auditing an existing repo.
git diff --cached) by default, or the path the user names,
or a full-repo audit (including history) if the user asks for that explicitly.gitleaks detect --source <path> -v (or gitleaks protect --staged -v for staged-only) if installed.detect-secrets scan <path> if installed and gitleaks isn't.reference.md (cloud key formats, generic
key=/token=/secret= assignments, PEM private key headers) — never skip
the check for lack of a tool.reference.md (.env*, *.pem, *.key, id_rsa*, credentials.json,
.aws/credentials, *.pfx, secrets.yml, etc.) regardless of content — these
files should not be tracked at all, secret-looking content or not..gitignore check: read the repo's .gitignore (root and any per-package ones)
and diff it against the required-patterns list in rules/gitignore-required.txt
(relative to $CLAUDE_PLUGIN_ROOT). Report any missing pattern.SECRETS FOUND: <count>
[<severity>] <file>:<line> — <what matched> (<detector: gitleaks|detect-secrets|pattern>)
→ Remediation: remove from source, load from env/secret manager, ROTATE the credential.
SENSITIVE FILES TRACKED: <count>
<file> — matches sensitive-file pattern, must not be tracked.
→ Remediation: `git rm --cached <file>`, add pattern to .gitignore.
.GITIGNORE GAPS: <count>
Missing: <pattern> (<why it matters>)
If nothing found, say so plainly — don't pad a clean result with caveats.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
secret-detection, git-hooks, gitignore, hardcoded-secrets, pre-commit
2 skills in this plugin
npx claudepluginhub jassics/awesome-claude-security --plugin secure-codingOther plugins' skills for the same job