Secret Scan — Development skill for Claude Code
Scan working directory untuk secrets — gitleaks detect mode, custom rules, fail-fast kalau ada leak.
How to install Secret Scan
Installs to ~/.claude/skills/fqih-.mycc-setup-secret-scan/SKILL.md
mkdir -p ~/.claude/skills/fqih-.mycc-setup-secret-scan && curl -fsSL https://raw.githubusercontent.com/Fqih/.mycc-setup/HEAD/commands/secret-scan.md -o ~/.claude/skills/fqih-.mycc-setup-secret-scan/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Secret Scan does
description: Scan working directory untuk secrets — gitleaks detect mode, custom rules, fail-fast kalau ada leak.
/secret-scan
Scan working directory (staged + unstaged) untuk secret leak. Fail-fast kalau ditemukan.
Mode 1: Scan staged only (before commit)
# v8 detect tidak punya --staged; pakai --pipe dengan git diff
git diff --cached | ~/.local/bin/gitleaks detect \
--no-git \
--pipe \
--config .gitleaks.toml \
--redact \
--exit-code 2 \
-v
Mode 2:
Alternatives in Development
- JWT Scan — JWT attack toolkit (offline) — alg:none forgery, RS256→HS256 algorithm confusion, weak-secret crack, static cl 4.5k ★
- /token Scan — Fast rug pull detection for meme coins and token contracts 1.7k ★
- Claude Code Source Code Leak — Claude Code Snapshot for Research 271 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Secret Guard
Cross-agent secret-leak guard: gitleaks-based detection core + per-tool hook adapters (Claude Code, OpenCode,
Heeler Secrets Scan
Run Heeler secret scanning for a repository or staged changes. Use when comitting code or the user asks to det
Dsh Guard Pack
Nine DeepSeek Harness guard plugins in one installable set: secret-leak blocking, a per-session cost cap, auto
Agent Redact
Zero-latency, zero-leak secret & PII redactor for LLMs, Claude Code, and Agentic workflows
Claude Secret Guard Kit
Block Claude Code from reading, echoing, or committing your secrets. Read-deny rules + shell filename guard +
Apikeys Handler
Rotate API keys and secrets after a breach. Shows progress, or plans a rotation (dry run). Never reads or prin
Related Agents
ForensicAgent
Forensic security analyst — PII detection, secret scanning, identity leak auditing across git history, staged
Secret Scanner
PYA specialist spawned by the /pya orchestrator. Finds hardcoded and leaked credentials in an untrusted reposi
Secret Purist
The paranoid sentinel of credential security. Use this agent to scan codebases and git history for leaked secr