secrets-scanner

secrets-scanner is a skill for Claude Code, Codex from codebygarv/Ai-skills. It costs 45 tokens per session (602 once invoked), scanned A, original, MIT.

A focused code and configuration scanner for hardcoded secrets such as passwords, API keys, tokens, private keys, and credential-filled connection strings.

In plain words
What is it for?
Use it to check source files, environment files, deployment settings, comments, and other configuration for leaked credentials.
Why use it?
It helps catch credentials accidentally left in a repository before they reach a commit, pull request, or public codebase.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to check source files, environment files, deployment settings, comments, and other configuration for leaked credentials.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/codebygarv/ai-skills/secrets-scanner
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 codebygarv/Ai-skills --skill secrets-scanner
Clone the repo
git clone --depth 1 https://github.com/codebygarv/Ai-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 secrets-scanner

README.md
[![agentmods](https://agentmods.dev/badge/skills/codebygarv/ai-skills/secrets-scanner/github.svg)](https://agentmods.dev/skills/codebygarv/ai-skills/secrets-scanner)
Your own site
<a href="https://agentmods.dev/skills/codebygarv/ai-skills/secrets-scanner"><img src="https://agentmods.dev/badge/skills/codebygarv/ai-skills/secrets-scanner/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 secrets-scanner

Your own site · 80×15
<a href="https://agentmods.dev/skills/codebygarv/ai-skills/secrets-scanner"><img src="https://agentmods.dev/badge/skills/codebygarv/ai-skills/secrets-scanner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 602 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.00045 $0.00602
Opus 5.5 $0.00018 $0.00241
Sonnet 5.5 $0.00009 $0.00120
Haiku 4.5 $0.00005 $0.00060

Measured 2mo ago against content hash fbae7cd7b996, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

secrets-scanner 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 2mo 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/security/secrets-scanner/SKILL.md · 35 lines

How it starts

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

Purpose

Find hardcoded secrets — API keys, passwords, tokens, private keys, connection strings with embedded credentials — sitting in code or config where they shouldn't be. Narrow and mechanical by design, unlike Security Auditor's broader vulnerability sweep.

When to Use

  • Before committing/opening a PR, especially after copy-pasting example code or config from elsewhere.
  • Auditing an existing codebase for accidentally-committed secrets, e.g. before making a private repo public.
  • The user specifically asks to check for "hardcoded secrets," "leaked credentials," or similar.

What to Analyze

  1. Obvious credential patterns — variables/constants assigned literal strings that look like API keys, tokens, passwords, or private keys (common prefixes like sk_, AKIA, ghp_, PEM -----BEGIN PRIVATE KEY----- blocks, etc.).
  2. Connection strings with embedded credentials — database URLs, message queue URLs, etc. containing a username:password directly in the string.
  3. Config files — .env-style files, YAML/JSON config, checked-in Docker/CI config, for values that should be pulled from a secrets manager or environment instead.
  4. Comments and commented-out code — secrets left in comments or disabled code are just as exposed as live code.
  5. Test/example code — flag but treat with lower severity if it's obviously a placeholder (sk_test_xxx, password123 in a clearly-fake example) versus something that looks like a real, live credential.

Output Format

  • Each finding: file/line, the type of secret suspected, a redacted version of the value (never repeat the full secret back in the output), and the fix (move to environment variable / secrets manager, add to .gitignore if it's a file).
  • Flag real-looking credentials as Critical and placeholder/test-looking ones as Low — don't treat them the same.
  • If a secret appears to already be committed to git history (not just the current working tree), note explicitly that removing it from the current file isn't sufficient — it needs rotation (treat as compromised) and, ideally, history rewriting.

Read the full file on GitHub · 35 lines

Files

What ships with it

2 files 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. 2mo ago First seen · 35 lines · 45 tokens per session scan A fbae7cd7b996

Subscribe to this mod's changes

secrets-scanner is a skill published in the GitHub repository codebygarv/Ai-skills (28 stars, last pushed 3mo ago), licensed MIT. It adds 45 tokens to every session and 602 once invoked, about $0.0002 per session on Opus 5.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-09-03.

Related

secrets-scanner compared with skills from other repositories

secrets-scanner next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
secrets-scannercodebygarv/Ai-skillsSkill283mo agoMITA45Claude Code, Codex
git-commitdmythro/agent-skillsSkill719d agoMITA73Claude Code, Codex
gitentropy-cloud/attractor-guided-engineering-templateSkill83todayMITA46Claude Code, Codex
git-prdmythro/agent-skillsSkill719d agoMITA151Claude Code, Codex
git-projectdmythro/agent-skillsSkill719d agoMITA193Claude Code, Codex
git-workflow-guideThe-AI-Directory-Company/agents-and-skillsSkill58mo agoMITA31Claude Code, Codex
autofix-prQwenLM/qwen-codeSkill31ktodayApache-2.0A142Claude Code