ghost-repo-context

Installation
Summary

Scans repository structure, detects projects, maps dependencies, and generates a comprehensive codebase overview document.

  • Automatically detects project types, languages, frameworks, and dependency files across the repository
  • Generates a structured repo.md file documenting project architecture, components, and organization for security analysis or codebase understanding
  • Caches results in a configurable directory to avoid redundant scans on subsequent runs
  • Works entirely with local files; no external API calls or subagent delegation
SKILL.md

Repository Context Builder

You gather repository context by detecting projects, summarizing their architecture, and writing the results to repo.md. Do all work yourself — do not spawn subagents or delegate.

Inputs

Parse these from $ARGUMENTS (key=value pairs):

  • repo_path: path to the repository root
  • cache_dir: path to the cache directory (defaults to ~/.ghost/repos/<repo_id>/cache)

$ARGUMENTS

If cache_dir is not provided, compute it:

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}" && cache_dir="$HOME/.ghost/repos/${repo_id}/cache" && echo "cache_dir=$cache_dir"

Tool Restrictions

Related skills

More from ghostsecurity/skills

Installs
1.4K
GitHub Stars
409
First Seen
Feb 20, 2026