secret-guard

secret-guard is a skill for Claude Code from jassics/awesome-claude-security. It costs 117 tokens per session (736 once invoked), scanned C, original, GPL-3.0.

A pre-commit check that finds hardcoded passwords, cloud keys, access tokens, .env files, and other sensitive configuration before they enter Git. It also checks whether .gitignore excludes those files.

In plain words
What is it for?
Use it before commits or pushes, or when checking whether a project may have exposed a secret.
Why use it?
It helps prevent credentials from being accidentally committed or pushed to a shared repository.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the secure-coding plugin — 2 skills, 1 agent, 1 hook shipped together

Good fit Use it before commits or pushes, or when checking whether a project may have exposed a secret.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jassics/awesome-claude-security/secret-guard
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.

Any agent
npx skills add jassics/awesome-claude-security --skill secret-guard
Clone the repo
git clone --depth 1 https://github.com/jassics/awesome-claude-security

Made for: Claude Code.

Or install secure-coding, the plugin that ships this one along with the rest of its 2 skills, 1 agent, 1 hook.

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 secret-guard

README.md
[![agentmods](https://agentmods.dev/badge/skills/jassics/awesome-claude-security/secret-guard/github.svg)](https://agentmods.dev/skills/jassics/awesome-claude-security/secret-guard)
Your own site
<a href="https://agentmods.dev/skills/jassics/awesome-claude-security/secret-guard"><img src="https://agentmods.dev/badge/skills/jassics/awesome-claude-security/secret-guard/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for secret-guard

Your own site · 80×15
<a href="https://agentmods.dev/skills/jassics/awesome-claude-security/secret-guard"><img src="https://agentmods.dev/badge/skills/jassics/awesome-claude-security/secret-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 736 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.1 $0.00117 $0.00736
Opus 5 $0.00059 $0.00368
Sonnet 5 $0.00023 $0.00147
Haiku 4.5 $0.00012 $0.00074

Measured 7d ago against content hash 62f80e39f913, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade C, and why

secret-guard scanned grade C with 1 finding 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 7d 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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

`.aws/credentials`, `*.pfx`, `secrets.yml`, etc.) regardless of content — these
plugins/secure-coding/skills/secret-guard/SKILL.md · 52 lines

The source is not reproduced here

Licensed GPL-3.0

The repository is licensed GPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago First seen · 52 lines · 117 tokens per session scan C 62f80e39f913

Subscribe to this mod's changes

secret-guard is a skill published in the GitHub repository jassics/awesome-claude-security (6 stars, last pushed 1mo ago), licensed GPL-3.0. It adds 117 tokens to every session and 736 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

branch-and-worktree-workflow

Isolates feature work in its own branch or worktree and integrates it cleanly when done. Use this when starting work that should not disturb the current workspace, when several efforts must proceed in parallel on one repository, or when implementation is finished and the change needs merging, rebasing, or splitting…

cbrock84/headcount · 70 tokens

precommit

Pre-commit checks — lint:fix -> build -> test.

sd0xdev/sd0x-harness · 15 tokens

unslop-commit

Rewrites commit messages so they sound like a careful human engineer wrote them. Strips AI/marketing slop ("comprehensive solution", "robust implementation", "leverage", "enhance", "seamlessly", "This commit..."). Keeps Conventional Commits format. Subject ≤72 chars (aim ≤50), imperative mood. Body only when "why"…

MohamedAbdallah-14/unslop · 139 tokens

workflow

Run the complete 5-step development workflow: focus problem → prevent over-development → test-first (TDD) → document → smart commit. Use when starting a new feature, or when the user runs /workflow or asks for the full development flow.

claude-world/director-mode-lite · 52 tokens

claude-code-bash-patterns

Claude Code Bash tool patterns with hooks, automation, git workflows. Use for PreToolUse hooks, command chaining, CLI orchestration, custom commands, or encountering bash permissions, command failures, security guards, hook configurations.

secondsky/claude-skills · 52 tokens

smart-commit

Create clean Conventional Commits: inspect the diff, group related changes, run quality checks, and write type(scope) messages. Use when committing work, or when the user runs /smart-commit or asks to commit changes.

claude-world/director-mode-lite · 49 tokens