secrets-scan

secrets-scan is a skill for Claude Code, Codex from lglucas/ai-dev-operating-system. It costs 99 tokens per session (172 once invoked), scanned A, original, MIT.

A check for secrets such as API keys, passwords, access tokens, private keys, cookies, and personal data in project files and changes.

In plain words
What is it for?
It is used before commits, releases, and deployments to inspect code, documentation, prompts, logs, and configuration for leaked credentials or private data.
Why use it?
It helps catch private information before it is committed or released, including unsafe environment-variable handling and exposed data in logs.

Skill for Claude CodeCodex

Part of the ai-dev-operating-system plugin — 28 skills, 11 commands, 12 agents, 1 hook shipped together

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.

agentmods
npx agentmods add skills/lglucas/ai-dev-operating-system/secrets-scan
Any agent
npx skills add lglucas/ai-dev-operating-system --skill secrets-scan
Clone the repo
git clone --depth 1 https://github.com/lglucas/ai-dev-operating-system

Made for: Claude Code, Codex.

Or install ai-dev-operating-system, the plugin that ships this one along with the rest of its 28 skills, 11 commands, 12 agents, 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 secrets-scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/lglucas/ai-dev-operating-system/secrets-scan.svg)](https://agentmods.dev/skills/lglucas/ai-dev-operating-system/secrets-scan)
Your own site
<a href="https://agentmods.dev/skills/lglucas/ai-dev-operating-system/secrets-scan"><img src="https://agentmods.dev/badge/skills/lglucas/ai-dev-operating-system/secrets-scan.svg" alt="Measured on agentmods" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 172 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00099 $0.00172
Opus 5 $0.00049 $0.00086
Sonnet 5 $0.00020 $0.00034
Haiku 4.5 $0.00010 $0.00017

Measured 5d ago against content hash 6b3a4c8ff9b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

secrets-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 5d 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.

.claude/skills/secrets-scan/SKILL.md · 15 lines

What it actually says

Secrets Scan

Checklist

  • No .env committed.
  • .env.example contains placeholders only.
  • No API keys, tokens, private keys, cookies, or production credentials in code/docs/prompts.
  • No logs exposing secrets or personal data.
  • CI/CD secrets are referenced by environment name, not literal value.
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. 5d ago First seen · 15 lines · 99 tokens per session scan A 6b3a4c8ff9b2

Subscribe to this mod's changes

secrets-scan is a skill published in the GitHub repository lglucas/ai-dev-operating-system (11 stars, last pushed 27d ago), licensed MIT. It adds 99 tokens to every session and 172 once invoked, about $0.0005 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.