codebase-navigator
Semantic code search using osgrep for understanding codebases, finding implementations, and navigating large projects. Use when asked "where is", "how does", "find the code that", or any question about code location or implementation.
npx skills add majiayu000/claude-skill-registry --skill codebase-navigator --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Codebase Navigator Semantic code search powered by osgrep - find code by meaning, not just keywords. ## When to Use Invoke when user: - Asks "where is [feature] implemented?" - Asks "how does [component] work?" - Wants to "find the code that handles [task]" - Needs to understand codebase architecture - Searches for implementation patterns ## Core Workflow ### 1. Check Index Freshness (Auto-Refresh) **Before searching, check if index is stale (>4 hours):** ```bash # Find store for current repo osgrep list # Check age of relevant store (macOS) STORE=~/.osgrep/data/YOUR-STORE.lance STORE_AGE=$(( $(date +%s) - $(stat -f %m "$STORE") )) # If older than 4 hours (14400 seconds), refresh if [ $STORE_AGE -gt 14400 ]; then echo "Index is $(( STORE_AGE / 3600 )) hours old - refreshing..." osgrep index fi ``` **Quick version:** If unsure, just use `--sync`: ```bash osgrep search "query" --sync # Always safe, updates before searching ``` ### 2. First-Time Setup If no store exists for current repo: ```bash osgrep list # See available stores osgrep doctor # Verify setup is healthy osgrep index # Index current directory (takes ~30s-2min) ``` ### 3. Search Semantically **Basic search:** ```bash o
- When to Use
- Core Workflow
- 1. Check Index Freshness (Auto-Refresh)
- 2. First-Time Setup
- 3. Search Semantically
- 3. Synthesize Results
- Query Formulation
- Output Modes
- Default Mode
- Content Mode (--content)
- Compact Mode (--compact)
- JSON Mode (--json)
- Scores Mode (--scores)
- Advanced Usage
Find store for current repo osgrep list Check age of relevant store (macOS) If older than 4 hours (14400 seconds), refresh if [ $STORE_AGE -gt 14400 ]; then echo "Index is $(( STORE_AGE / 3600 )) hours old - refreshing..." osgrep index fi osgrep search "query" --sync # Always safe, updates before searching osgrep list # See available stores
What does the codebase-navigator skill do?
Semantic code search using osgrep for understanding codebases, finding implementations, and navigating large projects. Use when asked "where is", "how does", "find the code that", or any question about code location or implementation.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill codebase-navigator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
