agents-evolution: Skill for Claude Code

.agents/skills/pr-prep-secret-guard/SKILL.md

secret-guard is a skill for Claude Code from kissrosecicd-hub/agents-evolution. It costs 57 tokens per session (682 once invoked), scanned A, original, MIT.

A required check for secret values before changes are added to Git, a version-control system. It looks for passwords, API keys, tokens, private keys, and risky credential files.

In plain words
What is it for?
Use it before staging files, committing, pushing, or creating a pull request to inspect changes for exposed credentials and flag high-risk files.
Why use it?
It helps prevent confidential access details from being stored in shared code history or sent to a remote repository.

Skill for Claude Code

Written for Claude Code: context: fork in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; installed under .agents/ (shared by several agents).

This is kissrosecicd-hub/agents-evolution's own configuration. It tells Claude Code how to work on agents-evolution itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agents-evolution configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kissrosecicd-hub/agents-evolution. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kissrosecicd-hub/agents-evolution/main/.agents/skills/pr-prep-secret-guard/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/kissrosecicd-hub/agents-evolution

Made for: Claude Code.

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/kissrosecicd-hub/agents-evolution/pr-prep-secret-guard/github.svg)](https://agentmods.dev/skills/kissrosecicd-hub/agents-evolution/pr-prep-secret-guard)
Your own site
<a href="https://agentmods.dev/skills/kissrosecicd-hub/agents-evolution/pr-prep-secret-guard"><img src="https://agentmods.dev/badge/skills/kissrosecicd-hub/agents-evolution/pr-prep-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/kissrosecicd-hub/agents-evolution/pr-prep-secret-guard"><img src="https://agentmods.dev/badge/skills/kissrosecicd-hub/agents-evolution/pr-prep-secret-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 682 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00057 $0.00682
Opus 5 $0.00028 $0.00341
Sonnet 5 $0.00011 $0.00136
Haiku 4.5 $0.00006 $0.00068

Measured 12d ago against content hash 22a31e691b71, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

secret-guard 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 12d 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/pr-prep-secret-guard/SKILL.md · 80 lines

How it starts

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

Secret Guard

MANDATORY: Run before ANY git commit, push, add, or PR operation.

Scan Commands

Run these before proceeding with any git operation:

# Check for secret keywords in staged changes (skip removed lines)
git diff --cached | grep -iE '(client_secret|password|api[_-]?key|secret_key|private_key|token|bearer|credential)' | grep -v "^-" | head -20

# Check for long credential-like strings (base64, hex, Azure secrets with ~)
git diff --cached | grep -oE '[a-zA-Z0-9+/~]{35,}' | head -10

# Check config files specifically for secrets
git diff --cached -- '*.json' '*.yaml' '*.yml' | grep -iE '(secret|password|key|token)' | grep -v "^-" | head -10

# List staged files
git diff --cached --name-only

High-Risk Files

STOP and warn if any of these are staged:

  • .env, .env.* — Never commit
  • .claude/settings.json — Often contains embedded secrets
  • *.pem, *.key, *.p12, *.pfx — Private keys
  • credentials.json, secrets.json, auth*.json, *token*.json
  • **/config/*.json — May contain hardcoded credentials

Secret Patterns

Pattern Identifier
Azure AD secrets Contains ~ (e.g., Pl~8Q~abc...)
AWS Access Keys Starts with AKIA
GitHub tokens Starts with ghp_, gho_, ghs_
API keys Prefixes: sk-, pk-, api_
JWT tokens Starts with eyJ
Base64 secrets 40+ alphanumeric chars

If Secrets Detected

BLOCK the git operation immediately.

Response format:

🚨 SECRET DETECTED - BLOCKING COMMIT

Found in: <filename>
Pattern: <what was found>

REQUIRED ACTIONS:
1. Remove the secret from the file
2. Use environment variables instead
3. If already committed: rotate the credential immediately

Proceed with commit? (only after user confirms false positive)

Read the full file on GitHub · 80 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. 12d ago First seen · 80 lines · 57 tokens per session scan A 22a31e691b71

Subscribe to this mod's changes

secret-guard is a skill published in the GitHub repository kissrosecicd-hub/agents-evolution (31 stars, last pushed 5mo ago), licensed MIT. It adds 57 tokens to every session and 682 once invoked, about $0.0003 per session on Opus 5. 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.