code-search-expert

Locate code symbols, call hierarchies, and logic flows using AST, ripgrep, and semantic search.

1|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/ntd237/draft_toolkits_20042026 --skill code-search-expert-ntd237
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: code-search-expert
Source: https://github.com/ntd237/draft_toolkits_20042026/tree/main/.agents/skills/code-search-expert
Command: npx skills add https://github.com/ntd237/draft_toolkits_20042026 --skill code-search-expert-ntd237

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Finding specific business logic, functions, or call relationships in a large codebase is slow and error-prone, especially when requests are phrased in Vietnamese while the code uses English identifiers. This Skill bridges that vocabulary gap and picks the right search tool so nothing is missed and no tokens are wasted reading irrelevant files. ## Core Features & Use Cases - Multi-Engine Search: Routes queries to CodeGraph AST exploration, ripgrep literal search, or vector semantic retrieval based on the target type (symbols, call graphs, error strings, config keys). - Vietnamese-to-English Query Expansion: Automatically generates 4-6 English technical synonyms from Vietnamese requests before searching. - Fallback Ladder: Cascades through CodeGraph, semantic RAG, and partial-word grep so a search never concludes 'not found' after a single attempt. - Use Case: Ask 'tìm logic rút tiền trong codebase' and receive exact file paths, function signatures, and line ranges for the payout/withdrawal flow as clickable markdown links. ## Quick Start Ask the assistant to find where a specific feature or function is implemented in the codebase, for example 'find the code handling order cancellation and show who calls it'.

Frequently Asked Questions about code-search-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find where a function is called in a large codebase?▼

Use call hierarchy tools like codegraph_callers and codegraph_callees, which traverse graph edges to show who calls a function and what it calls. This handles callbacks and dynamic dispatch better than plain text search.

What is the difference between AST search and grep for code navigation?▼

AST-based tools like CodeGraph understand symbols, definitions, and call relationships, returning connected source in one pass. Grep (ripgrep) matches literal strings, making it better for error messages, log text, API routes, and config keys that are not AST symbols.

How do I search an English codebase with a Vietnamese query?▼

Expand the Vietnamese request into 4-6 English technical synonyms before searching, such as mapping 'rút tiền' to payout, withdraw, disbursement, and settlement. Passing raw Vietnamese directly into search tools will miss English identifiers.

Why does my code search return zero results?▼

Zero results usually mean the query vocabulary does not match code identifiers or the index is not initialized. Try alternative synonyms, then semantic vector search, then grep with partial word roots before concluding the target is absent.

When should I use semantic search instead of grep?▼

Use semantic vector retrieval when searching for abstract concepts or when AST and literal searches return nothing, since neural embeddings bridge vocabulary gaps. Use grep for exact strings like error messages and config keys where literal matching is required.