Advanced Code Search

VerifiedSafe

Advanced code search tool that locates definitions, usages, tests, and references for any symbol across the entire codebase. It helps developers understand how a function, class, or variable is used throughout the project. More powerful than simple text search as it understands code structure and groups results by category.

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

Recommended for

Our review

Advanced code search tool that finds definitions, usages, tests, and references of symbols across the entire codebase.

Strengths

  • Understands C++ code structure for more accurate results than simple grep.
  • Searches across all file types (source, test, example, benchmark).
  • Provides context around each match and groups results by category.

Limitations

  • Requires the Python script and dependencies to be set up.
  • Only works with projects that follow a specific directory structure.
  • May be slow on very large codebases.
When to use it

Use it when you need to understand how a symbol is defined and used throughout the entire project.

When not to use it

Avoid using it for simple string searches where a quick grep would suffice.

Security analysis

Safe
Quality score90/100

The skill runs a local Python script for code search. No network calls, file deletion, or obfuscation are indicated. The command is straightforward and takes a symbol name as argument. Assuming the script behaves as described, there are no security risks.

No concerns found

Examples

Find class references
Find all usages and definitions of the NetworkClient class in the codebase.
Trace function usage
Search for all occurrences of the connect method, including its definition and all calls.
Locate variable references
Show me every place where the server_address variable is used, including its definition.

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