Advanced Code Search

VerifiedSafe

Intelligent code search tool that finds definitions, usages, and references of symbols across the entire codebase. Understands C++ structure and shows context for each match.

Sby Skills Guide Bot
DevelopmentIntermediate
206/2/2026
Claude Code
#code-search#symbol-reference#code-navigation#codebase-analysis

Recommended for

Our review

This skill performs intelligent code search across an entire codebase, finding definitions, usages, and references for any symbol (function, class, variable) in source, test, example, benchmark, and fuzz files.

Strengths

  • Understands C++ code structure
  • Shows context around each match
  • Groups results by category (source, test, etc.)
  • More powerful than simple grep

Limitations

  • Only searches predefined directories
  • Requires Python and uv to be installed
  • May not handle all languages equally
When to use it

When you need to trace how a symbol is used across the entire project, including in tests and benchmarks.

When not to use it

When you need a simple text search for a string that is not a symbol, or when dealing with extremely large codebases where a more specialized index might be faster.

Security analysis

Safe
Quality score85/100

The skill runs a local Python search script via uv, with no destructive, exfiltrating, or obfuscated actions. It only searches codebases and has no network or system‑modification commands.

No concerns found

Examples

Search for a class
Search for all uses of the class NetworkClient in the codebase.
Search for a method
Find all definitions and usages of the method connect.
Search for a variable
Find all references to the variable server_address across the project.

name: search description: Advanced code search tool that finds definitions, usages, tests, and references across the entire codebase. Use when you need to understand how a symbol is used throughout the project.

Code Search

Intelligent code search that finds all references to symbols (functions, classes, variables, etc.) across code, tests, examples, benchmarks, and fuzz tests.

Instructions

  1. Run the search command with a symbol name:
    uv run python .claude/skills/search/search.py <symbol>
    

Features

  • Finds function/class definitions
  • Locates all usages and references
  • Searches across:
    • Source files (src/, include/)
    • Test files (tests/)
    • Examples (examples/)
    • Benchmarks (benchmarks/)
    • Fuzz tests (fuzz/)
  • Shows context around each match
  • Groups results by category

Examples

Search for a function:

uv run python .claude/skills/search/search.py NetworkClient

Search for a method:

uv run python .claude/skills/search/search.py connect

Search for a variable:

uv run python .claude/skills/search/search.py server_address

Notes

  • More powerful than simple grep - understands C++ code structure
  • Shows both definitions and all usages
  • Helps trace how code flows through the system
Related skills