search
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.
📖 中文导读: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. 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
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
- 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