git-ai-code-search
1
总安装量
1
周安装量
#43750
全站排名
安装命令
npx skills add https://github.com/mars167/git-ai-cli --skill git-ai-code-search
Agent 安装分布
codex
1
Skill 文档
git-ai Code Search
Semantic code search with AST analysis and change tracking.
Quick Start
For Agents – 3-step pattern:
1. check_index({ path }) â verify index exists
2. semantic_search({ path, query }) â find relevant code
3. read_file({ path, file }) â read the actual code
For Users – build index first:
cd your-repo
git-ai ai index # build index
git-ai ai semantic "authentication logic" # search
Core Tools
| Need | Tool | Example |
|---|---|---|
| Search by meaning | semantic_search |
{ path, query: "error handling", topk: 10 } |
| Search by name | search_symbols |
{ path, query: "handleAuth", mode: "substring" } |
| Who calls X | ast_graph_callers |
{ path, name: "processOrder" } |
| What X calls | ast_graph_callees |
{ path, name: "processOrder" } |
| Call chain | ast_graph_chain |
{ path, name: "main", direction: "downstream" } |
| Project overview | repo_map |
{ path, max_files: 20 } |
Rules
- Always pass
path– Every tool requires explicit repository path - Check index first – Run
check_indexbefore search tools - Read before modify – Use
read_fileto understand code before changes