Loading...
Loading...
Scans directory structure, detects projects, maps dependencies, and documents code organization into a repo.md file. Use when the user needs a codebase overview, project structure map, or repository context before security analysis.
npx skill4agent add ghostsecurity/skills ghost-repo-contextrepo.md$ARGUMENTS~/.ghost/repos/<repo_id>/cachecache_dirrepo_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"skill_dir=$(find . -path '*/skills/repo-context/SKILL.md' 2>/dev/null | head -1 | xargs dirname)
echo "skill_dir=$skill_dir"<cache_dir>/repo.mdRepository context is at: <cache_dir>/repo.mdmkdir -p <cache_dir><skill_dir>/detector.md<repo_path>repo.md<skill_dir>/summarizer.md<cache_dir>/repo.md<skill_dir>/template-repo.md<cache_dir>/repo.md<skill_dir>/template-repo.mdRepository context is at: <cache_dir>/repo.md