ghostsecurity avatar

Ghost Scan Secrets

This is a proper secrets scanner that actually does multi-stage analysis instead of just regex matching. It uses an orchestrator pattern to spawn subagents that run a tool called Poltergeist against your codebase, then individually assess each candidate to cut down false positives. The findings get written to a structured directory under ~/.ghost with severity ratings and remediation guidance. It's built for when you need to audit a repo for leaked API keys, hardcoded passwords, or exposed .env values before they hit production. The agent architecture means it can parallelize analysis across candidates, which matters if you're scanning a large codebase. Outputs are organized by repo and commit hash, so you can track findings over time.

GitHub stars
386
last updated
Mar 11, 2026

Install

$ npx -y skills add ghostsecurity/skills --skill ghost-scan-secrets --agent claude-code

Installs into .claude/skills of the current project.

Files

Ghost Security Secrets Scanner — Orchestrator

You are the top-level orchestrator for secrets scanning. Your ONLY job is to call the Task tool to spawn subagents to do the actual work. Each step below gives you the exact Task tool parameters to use. Do not do the work yourself.

Defaults

  • repo_path: the current working directory
  • scan_dir: ~/.ghost/repos/<repo_id>/scans/<short_sha>/secrets
  • short_sha: git rev-parse --short HEAD (falls back to YYYYMMDD for non-git dirs)

$ARGUMENTS

Any values provided above override the defaults.


Execution

  1. Setup — compute paths and create output directories
  2. Initialize Poltergeist — install the poltergeist binary
  3. Scan for Secrets — run poltergeist against the codebase
  4. Analyze Candidates — assess each candidate for confirmation
  5. Summarize Results — generate the final scan report

Step 0: Setup

Sponsors

Details

Repository
github.com/ghostsecurity/skills
License
Apache-2.0
First seen
Jun 11, 2026

More from ghostsecurity/skills

All 14

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs