Community研究&データ分析github.com

ghostsecurity/ghost-repo-context

ディレクトリ構造をスキャンし、プロジェクトを検出し、依存関係をマッピングし、コード構成をrepo.mdファイルに文書化します。セキュリティ分析の前にコードベースの概要、プロジェクト構造マップ、またはリポジトリコンテキストが必要なときに使用します。

ghost-repo-context とは?

このスキルは、リポジトリのディレクトリ構造を自動的にスキャンし、プロジェクトタイプを検出し、依存関係をマッピングし、コードの構成を明確に文書化した`repo.md`ファイルを生成します。これは主にセキュリティ分析の事前準備段階で使用され、開発者やセキュリティ担当者がリポジトリ全体のコンテキストを素早く把握できるようにします。スキルを実行すると、ルートディレクトリから走査を開始し、主要なプログラミング言語やフレームワークを識別し、パッケージマネージャーや設定ファイルから依存関係を抽出します。結果として得られる`repo.md`は、プロジェクトの概要、ディレクトリツリー、検出されたプロジェクト一覧、依存関係グラフ、および主要な技術スタックの情報を含みます。どのAIエージェントプラットフォーム(Claude Code、Cursor、Codexなど)でも使用できる汎用的なスキルで、セキュリティ監査の前にリポジトリの構造を理解する必要がある場合に特に有用です。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ghostsecurity/skills/tree/main/skills/ghost-repo-context

Installed? Explore more 研究&データ分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

ghost-repo-context は何をしますか?

ディレクトリ構造をスキャンし、プロジェクトを検出し、依存関係をマッピングし、コード構成をrepo.mdファイルに文書化します。セキュリティ分析の前にコードベースの概要、プロジェクト構造マップ、またはリポジトリコンテキストが必要なときに使用します。

使い方

このスキルは、以下のコマンドで実行できます:

ghost-repo-context

オプション

  • --path <path>:スキャンするディレクトリパス(デフォルト:カレントディレクトリ)
  • --output <file>:出力ファイル名(デフォルト:repo.md)
  • --depth <number>:スキャンするディレクトリの深さ(デフォルト:5)

出力内容

repo.mdファイルには以下の情報が含まれます:

  1. プロジェクト概要:リポジトリ全体の説明と技術スタックの要約
  2. ディレクトリツリー:主要なディレクトリとファイルの階層構造
  3. 検出されたプロジェクト:各プロジェクトの種類(ライブラリ、アプリケーションなど)
  4. 依存関係マップ:外部パッケージや内部モジュール間の依存関係
  5. 技術スタック:使用されている言語、フレームワーク、ツールの一覧

サポートされるプロジェクトタイプ

  • Node.js:package.json から検出
  • Python:requirements.txt、setup.py、Pipfile、pyproject.toml から検出
  • Java:pom.xml、build.gradle から検出
  • Go:go.mod から検出
  • Ruby:Gemfile から検出
  • Rust:Cargo.toml から検出
  • Docker:Dockerfile から検出

注意事項

  • このスキルはファイルの内容自体を分析せず、ディレクトリ構造と設定ファイルのみを解析します。
  • 大きなリポジトリの場合、スキャンに時間がかかることがあります。
  • 出力ファイルは既存のファイルを上書きします。

Individual skills in this repo

This repo contains 6 individual skills — each has its own dedicated page.

ghostsecurity/ghost-proxy

Starts and controls the reaper MITM proxy to capture, inspect, search, and replay HTTP/HTTPS traffic between clients and servers. Capabilities include starting/stopping the proxy scoped to specific domains, viewing captured request/response logs, searching traffic by method/path/status/host, and inspecting full raw HTTP entries for security analysis. Use when the user asks to "start the proxy", "capture traffic", "intercept requests", "inspect HTTP traffic", "search captured requests", or "view request/response".

ghostsecurity/ghost-report

Ghost Security — combined security report. Aggregates findings from all scan skills (scan-deps, scan-secrets, scan-code) into a single prioritized report focused on the highest risk, highest confidence issues. Use when the user requests a security overview, vulnerability summary, full security audit, or combined scan results.

ghostsecurity/ghost-scan-code

Ghost Security - SAST code scanner. Finds security vulnerabilities in source code by planning and executing targeted scans for issues like SQL injection, XSS, BOLA, BFLA, SSRF, and other OWASP categories. Supports applications (backend, frontend, mobile) and libraries (prototype pollution, unsafe deserialization, ReDoS, path traversal, zip slip). Use when the user asks for a code security audit, SAST scan, vulnerability scan of source code, or wants to find security flaws in a codebase or library.

ghostsecurity/ghost-scan-deps

Ghost Security - Software Composition Analysis (SCA) scanner. Scans dependency lockfiles for known vulnerabilities, identifies CVEs, and generates findings with severity levels and remediation guidance. Use when the user asks about dependency vulnerabilities, vulnerable packages, CVE checks, security audits of dependencies, or wants to scan lockfiles like package-lock.json, yarn.lock, go.sum, or Gemfile.lock.

ghostsecurity/ghost-scan-secrets

Ghost Security - Secrets and credentials scanner. Scans codebase for leaked API keys, tokens, passwords, and sensitive data. Detects hardcoded secrets and generates findings with severity and remediation guidance. Use when the user asks to check for leaked secrets, scan for credentials, find hardcoded API keys or passwords, detect exposed .env values, or audit code for sensitive data exposure.

ghostsecurity/ghost-validate

This skill should be used when the user asks to "validate a finding", "check if a vulnerability is real", "triage a security finding", "confirm a vulnerability", "determine if a finding is a true positive or false positive", or provides a security finding for review. It validates security vulnerability findings by tracing data flows, verifying exploit conditions, analyzing security controls, and optionally testing attack vectors against a live application.

関連スキル