首页/安全与合规/ghost-scan-secrets
G

ghost-scan-secrets

by @ghostsecurityv1.0.0
0.0(0)

作为秘密扫描的顶级协调器,负责调用任务工具,生成子代理执行实际的秘密检测工作,确保安全合规。

Secret DetectionCredential ScanningSASTDevSecOpsSupply Chain SecurityGitHub
安装方式
npx skills add ghostsecurity/skills --skill ghost-scan-secrets
compare_arrows

Before / After 效果对比

1
使用前

缺乏统一的秘密扫描机制,导致敏感信息泄露风险高,难以全面覆盖,安全合规性难以保障。

使用后

作为秘密扫描协调器,调用工具生成子代理执行检测,确保全面覆盖,有效保障代码安全与合规。

description SKILL.md

ghost-scan-secrets

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 Setup — compute paths and create output directories Initialize Poltergeist — install the poltergeist binary Scan for Secrets — run poltergeist against the codebase Analyze Candidates — assess each candidate for confirmation Summarize Results — generate the final scan report Step 0: Setup Run this Bash command to compute the repo-specific output directory, create it, and locate the skill files: repo_name=$(basename "$(pwd)") && remote_url=$(git remote get-url origin 2>/dev/null || pwd) && short_hash=$(printf '%s' "$remote_url" | git hash-object --stdin | cut -c1-8) && repo_id="${repo_name}-${short_hash}" && short_sha=$(git rev-parse --short HEAD 2>/dev/null || date +%Y%m%d) && ghost_repo_dir="$HOME/.ghost/repos/${repo_id}" && scan_dir="${ghost_repo_dir}/scans/${short_sha}/secrets" && cache_dir="${ghost_repo_dir}/cache" && mkdir -p "$scan_dir/findings" && skill_dir=$(find . -path '*skills/scan-secrets/SKILL.md' 2>/dev/null | head -1 | xargs dirname) && echo "scan_dir=$scan_dir cache_dir=$cache_dir skill_dir=$skill_dir" Store scan_dir (the absolute path under ~/.ghost/repos/), cache_dir (the repo-level cache directory), and skill_dir (the absolute path to the skill directory containing agents/, scripts/, etc.). After this step, your only remaining tool is Task. Do not use Bash, Read, Grep, Glob, or any other tool for Steps 1–4. Step 1: Initialize Poltergeist Call the Task tool to initialize the poltergeist binary: { "description": "Initialize poltergeist binary", "subagent_type": "general-purpose", "prompt": "You are the init agent. Read and follow the instructions in <skill_dir>/agents/init/agent.md.\n\n## Inputs\n- skill_dir: <skill_dir>" } The init agent installs poltergeist to ~/.ghost/bin/poltergeist (or poltergeist.exe on Windows). Step 2: Scan for Secrets Call the Task tool to run the poltergeist scanner: { "description": "Scan for secret candidates", "subagent_type": "general-purpose", "prompt": "You are the scan agent. Read and follow the instructions in <skill_dir>/agents/scan/agent.md.\n\n## Inputs\n- repo_path: <repo_path>\n- scan_dir: <scan_dir>" } The scan agent returns the candidate count and writes <scan_dir>/candidates.json. If candidate count is 0: Skip to Step 4 (Summarize) with no findings. Step 3: Analyze Candidates Call the Task tool to analyze the candidates: { "description": "Analyze secret candidates", "subagent_type": "general-purpose", "prompt": "You are the analysis agent. Read and follow the instructions in <skill_dir>/agents/analyze/agent.md.\n\n## Inputs\n- repo_path: <repo_path>\n- scan_dir: <scan_dir>\n- skill_dir: <skill_dir>\n- cache_dir: <cache_dir>" } The analysis agent spawns parallel analyzers for each candidate and writes finding files to <scan_dir>/findings/. Step 4: Summarize Results Call the Task tool to summarize the findings: { "description": "Summarize scan results", "subagent_type": "general-purpose", "prompt": "You are the summarize agent. Read and follow the instructions in <skill_dir>/agents/summarize/agent.md.\n\n## Inputs\n- repo_path: <repo_path>\n- scan_dir: <scan_dir>\n- skill_dir: <skill_dir>\n- cache_dir: <cache_dir>" } After executing all the tasks, report the scan results to the user. Error Handling If any Task call fails, retry it once. If it fails again, stop and report the failure.Weekly Installs638Repositoryghostsecurity/skillsGitHub Stars360First SeenFeb 20, 2026Security AuditsGen Agent Trust HubFailSocketFailSnykWarnInstalled onclaude-code468codex281gemini-cli280opencode280github-copilot279kimi-cli279

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价,来写第一条吧

统计数据

安装量0
评分0.0 / 5.0
版本1.0.0
更新日期2026年3月17日
对比案例1 组

用户评分

0.0(0)
5
0%
4
0%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code

时间线

创建2026年3月17日
最后更新2026年3月17日