ccc Semantic Code Search
cocoindex-io/cocoindex-code
Semantic code search and index management with the ccc CLI: the agent initializes, indexes and queries the project by concept, filtering by language or path.
Scans directory structure, detects projects, maps dependencies, and documents code organization into a repo.md file.
$ npx skills add ghostsecurity/skills --skill ghost-repo-context -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ghostsecurity/skills ghost-repo-context --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ghostsecurity/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ghost/skills/repo-context .claude/skills/ghost-repo-context && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "ghost-repo-context" agent skill from https://github.com/ghostsecurity/skills/tree/main/plugins/ghost/skills/repo-context into .claude/skills/ghost-repo-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ghost-repo-context", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ghostsecurity/skills/tree/main/plugins/ghost/skills/repo-contextType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ghostsecurity/skills --skill ghost-repo-context -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ghostsecurity/skills ghost-repo-context --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ghostsecurity/skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/ghost/skills/repo-context .agents/skills/ghost-repo-context && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "ghost-repo-context" agent skill from https://github.com/ghostsecurity/skills/tree/main/plugins/ghost/skills/repo-context into .agents/skills/ghost-repo-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ghost-repo-context", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ghostsecurity/skills --skill ghost-repo-context -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ghostsecurity/skills ghost-repo-context --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ghostsecurity/skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/ghost/skills/repo-context .cursor/skills/ghost-repo-context && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "ghost-repo-context" agent skill from https://github.com/ghostsecurity/skills/tree/main/plugins/ghost/skills/repo-context into .cursor/skills/ghost-repo-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ghost-repo-context", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ghostsecurity/skills.git --path plugins/ghost/skills/repo-context--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ghostsecurity/skills --skill ghost-repo-context -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ghostsecurity/skills ghost-repo-context --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ghostsecurity/skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/ghost/skills/repo-context .gemini/skills/ghost-repo-context && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "ghost-repo-context" agent skill from https://github.com/ghostsecurity/skills/tree/main/plugins/ghost/skills/repo-context into .gemini/skills/ghost-repo-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ghost-repo-context", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ghostsecurity/skills ghost-repo-contextInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ghostsecurity/skills --skill ghost-repo-context -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ghostsecurity/skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/ghost/skills/repo-context .github/skills/ghost-repo-context && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "ghost-repo-context" agent skill from https://github.com/ghostsecurity/skills/tree/main/plugins/ghost/skills/repo-context into .github/skills/ghost-repo-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ghost-repo-context", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ghostsecurity/skills --skill ghost-repo-context -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ghostsecurity/skills ghost-repo-context --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ghostsecurity/skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/ghost/skills/repo-context .opencode/skills/ghost-repo-context && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "ghost-repo-context" agent skill from https://github.com/ghostsecurity/skills/tree/main/plugins/ghost/skills/repo-context into .opencode/skills/ghost-repo-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ghost-repo-context", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
ghost-repo-contextScans directory structure, detects projects, maps dependencies, and documents code organization into a repo.md file.
Ghost Repo Context is an agent skill from ghostsecurity/skills. 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.
Its SKILL.md is about 790 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `detector.md`, `summarizer.md` and `template-repo.md`).
It sits in Agent Workflows, covering Codebase knowledge for agents. The repository describes itself as: Ghost Security's collection of AppSec skills for AI coding agents. The licence is Apache-2.0.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 25fdf06. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadWriteEditGlobGrepBashFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Ghost Repo Context loads about 786 tokens when it runs. Until then it costs about 63 tokens; SKILL.md has 293 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Read, Write, Edit, Glob, Grep, BashAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ghostsecurity/skills at commit 25fdf06, republished under its Apache-2.0 licence (© ghostsecurity). 293 words, ~786 tokens.
.claude/skills/ghost-repo-context/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.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.
Parse these from $ARGUMENTS (key=value pairs):
~/.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"Do NOT use WebFetch or WebSearch. All work must use only local files in the repository.
Discover this skill's own directory so you can reference agent files:
skill_dir=$(find . -path '*/skills/repo-context/SKILL.md' 2>/dev/null | head -1 | xargs dirname)
echo "skill_dir=$skill_dir"Check if <cache_dir>/repo.md already exists. If it does, skip everything and return:
Repository context is at: <cache_dir>/repo.mdIf it does not exist, run mkdir -p <cache_dir> and continue.
Detect Projects — Read <skill_dir>/detector.md and follow its instructions against <repo_path>. Save the full detection output (project details needed for step 2). If detection finds no projects, write a minimal repo.md noting "No projects detected" and skip to step 4.
Summarize Each Project — Read <skill_dir>/summarizer.md. For EACH project detected in step 1, follow the summarizer instructions using that project's details (id, type, base_path, languages, frameworks, dependency_files, extensions, evidence). Collect the summary for each project. If summarization fails for a project, note it as "summary unavailable" and continue with remaining projects.
Write repo.md — Combine detection and summary results into <cache_dir>/repo.md using the format in <skill_dir>/template-repo.md. For each project include:
Validate — Read <cache_dir>/repo.md back and verify it contains the expected sections from <skill_dir>/template-repo.md (e.g., project entries with Detection and Summary fields). If the file is missing or malformed, retry the write once before reporting an error.
Output — Return: Repository context is at: <cache_dir>/repo.md
© ghostsecurity, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files in plugins/ghost/skills/repo-context of ghostsecurity/skills.
Open the folder on GitHubat commit 25fdf06
Ghost Repo Context next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Ghost Repo Context this skillghostsecurity/skills | 408 | — | ~786 | Automated safety check: Notes | Apache-2.0 | |
| ccc Semantic Code Searchcocoindex-io/cocoindex-code | 2.7k | — | ~938 | Automated safety check: Pass | Apache-2.0 | |
| Context Engineeringabashev/vfs-s3 | 106 | 9 repos | ~2.6k | Automated safety check: Notes | Apache-2.0 | |
| Repomix Codebase Packeryamadashy/repomix | 29k | — | ~1.3k | Automated safety check: Notes | MIT | |
| Codebase Handbook BuilderRuhan-Wang/Harness_Handbook | 332 | — | ~2.2k | Automated safety check: Pass | Apache-2.0 | |
| CodemapJordanCoin/codemap | 704 | — | ~1.8k | Automated safety check: Pass | MIT |
cocoindex-io/cocoindex-code
Semantic code search and index management with the ccc CLI: the agent initializes, indexes and queries the project by concept, filtering by language or path.
abashev/vfs-s3
Optimizes agent context setup. An agent skill from abashev/vfs-s3.
yamadashy/repomix
Packs a local directory or remote GitHub repository into one AI-friendly file with Repomix, then searches it to explore structure, find patterns and count tokens.
Ruhan-Wang/Harness_Handbook
Generates, refreshes, validates and uses a compact handbook that maps where a change touches in a repository, using the active Codex session and no external LLM API.
JordanCoin/codemap
Gives an agent a quick map of a codebase's structure, dependencies, changes and handoffs, and tunes per-project config so the output stays code-first.
sopaco/deepwiki-rs
A skill your agent uses when an agent needs source code from the local repomix index under .terrain/agent/repomix.md (not committed; regenerate via Terrain scan).
ghostsecurity/skills
The single interface for building, improving, and debugging exo workflows.
ghostsecurity/skills
Ghost Security — combined security report. An agent skill from ghostsecurity/skills.
ghostsecurity/skills
Ghost Security - Software Composition Analysis (SCA) scanner.
ghostsecurity/skills
Ghost Security - Secrets and credentials scanner. An agent skill from ghostsecurity/skills.
Categories
Scans directory structure, detects projects, maps dependencies, and documents code organization into a repo.md file. Ghost Repo Context is an agent skill from ghostsecurity/skills.md file.
Ghost Repo Context fits situations like: the user needs a codebase overview; project structure map; repository context before security analysis.
Run `npx skills add ghostsecurity/skills --skill ghost-repo-context -a claude-code`. Or copy the skill folder (plugins/ghost/skills/repo-context in ghostsecurity/skills) into .claude/skills/ghost-repo-context in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ghostsecurity/skills --skill ghost-repo-context -a codex`. Or copy the skill folder (plugins/ghost/skills/repo-context in ghostsecurity/skills) into .agents/skills/ghost-repo-context in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ghostsecurity/skills --skill ghost-repo-context -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ghost-repo-context, .gemini/skills/ghost-repo-context, .github/skills/ghost-repo-context and .opencode/skills/ghost-repo-context in your project.
Going by SKILL.md and its folder, Ghost Repo Context needs the command-line tools its instructions call (git). Its frontmatter pre-approves these tools: Read, Write, Edit, Glob, Grep, Bash.
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Ghost Repo Context is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 786 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Ghost Repo Context: ccc Semantic Code Search (cocoindex-io/cocoindex-code, 2.7k stars), Context Engineering (abashev/vfs-s3, 106 stars), Repomix Codebase Packer (yamadashy/repomix, 29k stars) and Codebase Handbook Builder (Ruhan-Wang/Harness_Handbook, 332 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ghostsecurity (a GitHub organization) maintains it in ghostsecurity/skills, which has 408 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 28, 2026.
Source: ghostsecurity/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.