Skip to content
Back to skills

Secret Scan

ASecurity

Scan the vault and repo for leaked secrets — API keys, tokens, private keys — before committing or sending content externally. Use before a commit/push, before posting vault content to any external surface, or when the user asks to check for exposed credentials.

  • 28 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
ai-agentspythongobashnodeawsgitapisecurity

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add TheSmokeDev/taskchad-os --skill secret-scan --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Secret Scan?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Secret Scan
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thesmokedev-secret-scan/badge)](https://www.skillsdirectory.com/skills/thesmokedev-secret-scan)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: secret-scan
description: Scan the vault and repo for leaked secrets — API keys, tokens, private keys — before committing or sending content externally. Use before a commit/push, before posting vault content to any external surface, or when the user asks to check for exposed credentials.
version: 1.0.0
author: TaskChad OS
license: MIT
platforms: [linux, macos, windows]
metadata:
  YourProduct:
    category: security
    tags: [secrets, security, scanning, credentials, pre-commit]
    related_skills: [log-triage]
    mutates: false
---

# Secret Scan

Catch credentials before they leak into a commit or an outbound message.

## Run

```bash
uv run python optional-skills/security/secret-scan/scripts/scan.py .
# scan a specific path before sending it out:
uv run python optional-skills/security/secret-scan/scripts/scan.py vault/notes/draft.md
```

Exit code is non-zero if anything matches, so it drops into a pre-commit hook or
a pre-send guard.

## What it flags

Common high-signal patterns: AWS keys, Google API keys, Slack/Telegram/GitHub
tokens, OpenAI/Anthropic keys, private-key PEM blocks, and generic
`SECRET`/`PASSWORD`/`TOKEN = "..."` assignments. The detector lives in
`scripts/scan.py` — extend the pattern table there as new providers appear.

## Where this belongs in the framework

This is the read-only half of the framework's **default-deny mutation policy**.
Before any skill sends vault content to an external surface, run this scan on the
exact payload. A match means **stop and ask the user**, never auto-send. The
scan never edits or redacts on its own — it reports; a human decides.

## Reducing false positives

- Respect `.gitignore` / `.graphifyignore`; skip `.env*`, `node_modules`, `.git`.
- Example/placeholder values (`xxxx`, `your-key-here`, `example`) are downranked.
- When in doubt, surface the finding with `file:line` and let the user judge.

Files in this skill

  • SKILL.md1.9 KB
  • scripts/scan.py3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.