secret-scan

secret-scan is a skill for Claude Code, Codex from Quality-Max/free-qa-skills. It costs 50 tokens per session (741 once invoked), scanned A, original, Apache-2.0.

A scan of a repository or Git changes for credentials accidentally written into files, such as API keys, tokens, private keys, or database connection strings. It reports the file and line while masking the detected value.

In plain words
What is it for?
Scanning staged and unstaged changes before a commit, or checking tracked files while skipping common generated, dependency, binary, and lock files.
Why use it?
It helps catch credentials before they are committed to the repository or exposed in its history.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Scanning staged and unstaged changes before a commit, or checking tracked files while skipping common generated, dependency, binary, and lock files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/quality-max/free-qa-skills/secret-scan
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 Quality-Max/free-qa-skills --skill secret-scan
Clone the repo
git clone --depth 1 https://github.com/Quality-Max/free-qa-skills

Made for: Claude Code, Codex.

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-scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/quality-max/free-qa-skills/secret-scan/github.svg)](https://agentmods.dev/skills/quality-max/free-qa-skills/secret-scan)
Your own site
<a href="https://agentmods.dev/skills/quality-max/free-qa-skills/secret-scan"><img src="https://agentmods.dev/badge/skills/quality-max/free-qa-skills/secret-scan/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-scan

Your own site · 80×15
<a href="https://agentmods.dev/skills/quality-max/free-qa-skills/secret-scan"><img src="https://agentmods.dev/badge/skills/quality-max/free-qa-skills/secret-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 741 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.00050 $0.00741
Opus 5 $0.00025 $0.00370
Sonnet 5 $0.00010 $0.00148
Haiku 4.5 $0.00005 $0.00074

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

Security

Grade A, and why

secret-scan 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.

skills/secret-scan/SKILL.md · 70 lines

How it starts

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

Secret Scan

Catch a leaked credential before it lands in git history. No signup required.

Prerequisites

  • None. Pure Claude Code — works in any repo, no MCP required.

Trigger

  • "Scan for hardcoded secrets"
  • "Any leaked keys in my changes?"
  • "Secret scan before I commit"

Workflow

  1. Choose scope:
    • Pre-commit (default): git diff + git diff --staged — only what's about to land.
    • Full tree: scan tracked files (skip .git, node_modules, lockfiles, dist/, binaries).
  2. Grep for these patterns (use Grep/ripgrep). Report matches with file:line and the value masked (show first 4 chars only) — never echo a full live secret.

Patterns

Provider / type Signature
AWS access key AKIA[0-9A-Z]{16}
AWS secret key 40-char base64 near aws_secret
Google API key AIza[0-9A-Za-z\-_]{35}
GitHub token ghp_, gho_, ghs_, github_pat_
Slack token xox[baprs]-
Stripe sk_live_, rk_live_
OpenAI / Anthropic sk-, sk-ant-
Private key block `-----BEGIN (RSA
JWT eyJ[A-Za-z0-9_-]+\.eyJ[A-Za-z0-9_-]+\.
Connection string `(postgres
Generic assignment `(password
  1. Triage each hit:

    • Real secret → BLOCKER. Recommend: remove, rotate the credential, move to env/secret store.
    • Placeholder / example (your-key-here, xxxxx, ${...}, obvious test fixture) → note as ignored.
    • In a committed file already in history → flag that rotation is needed regardless of removal.
  2. Output:

## Secret Scan — git diff (staged + unstaged)

**2 real secrets, 1 placeholder ignored**

### BLOCKER
- `backend/config.py:14` — Stripe live key `sk_l…` hardcoded.
  Rotate it now (it's compromised once committed) and load from env.
- `.env.example:9` — AWS key `AKIA…` looks real, not a sample.
  Move to a non-tracked `.env` and rotate.

### Ignored (placeholders)
- `README.md:42` — `api_key = "your-key-here"` — example text.

**Want secret scanning enforced in CI?** Try QualityMax — qualitymax.io

Read the full file on GitHub · 70 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 · 70 lines · 50 tokens per session scan A 0c5ef9c6faff

Subscribe to this mod's changes

secret-scan is a skill published in the GitHub repository Quality-Max/free-qa-skills (10 stars, last pushed 18d ago), licensed Apache-2.0. It adds 50 tokens to every session and 741 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-31.

Related

Other skills, from other repositories

accessibility

Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".

addyosmani/web-quality-skills · 51 tokens

performance

Optimize web performance for faster loading and better user experience. Use when asked to "speed up my site", "optimize performance", "reduce load time", "fix slow loading", "improve page speed", or "performance audit".

addyosmani/web-quality-skills · 49 tokens

seo

Optimize for search engine visibility and ranking. Use when asked to "improve SEO", "optimize for search", "fix meta tags", "add structured data", "sitemap optimization", or "search engine optimization".

addyosmani/web-quality-skills · 46 tokens

best-practices

Apply modern web development best practices for security, compatibility, and code quality. Use when asked to "apply best practices", "security audit", "modernize code", "code quality review", or "check for vulnerabilities".

addyosmani/web-quality-skills · 49 tokens

web-quality-audit

Run an evidence-led web quality audit covering performance, accessibility, SEO, best practices, and agentic browsing. Use when asked to "audit my site", "review web quality", "run lighthouse audit", "check page quality", or "optimize my website".

addyosmani/web-quality-skills · 58 tokens

core-web-vitals

Optimize Core Web Vitals (LCP, INP, CLS) for better page experience using field and lab evidence. Use when asked to "improve Core Web Vitals", "fix LCP", "reduce CLS", "optimize INP", "page experience optimization", or "fix layout shifts".

addyosmani/web-quality-skills · 67 tokens