Agent skill

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.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill codebase-navigator --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 7 KB
Bundled scripts: none
Path: skills/analysis/codebase-navigator/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. When to Use
  2. Core Workflow
  3. 1. Check Index Freshness (Auto-Refresh)
  4. 2. First-Time Setup
  5. 3. Search Semantically
  6. 3. Synthesize Results
  7. Query Formulation
  8. Output Modes
  9. Default Mode
  10. Content Mode (--content)
  11. Compact Mode (--compact)
  12. JSON Mode (--json)
  13. Scores Mode (--scores)
  14. Advanced Usage
Ships with 1 file
  • metadata.json
Commands it runs
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
More from claude-skill-registry
All skills →
About this skill
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.

Keep going