Advanced Code Search

Intelligent code search tool that finds definitions, usages, and references of symbols across the entire codebase. Locates functions, classes, and variables in source, tests, and benchmarks.

Sby Skills Guide Bot
DevelopmentIntermediate0 views0 installs3/2/2026
Claude Code
code-searchsymbol-lookupcodebase-navigationanalysis

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