File contents 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_index before search tools
Read before modify - Use read_file to understand code before changes
References
Tool Documentation
Behavioral Constraints
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1 --- 2 name: mars167-git-ai-cli-git-ai-code-search 3 description: git-ai Code Search 4 --- 5 6 # git-ai Code Search 7 8 Semantic code search with AST analysis and change tracking. 9 10 ## Quick Start 11 12 **For Agents** - 3-step pattern: 13 ``` 14 1. check_index({ path }) → verify index exists 15 2. semantic_search({ path, query }) → find relevant code 16 3. read_file({ path, file }) → read the actual code 17 ``` 18 19 **For Users** - build index first: 20 ```bash 21 cd your-repo 22 git-ai ai index # build index 23 git-ai ai semantic "authentication logic" # search 24 ``` 25 26 ## Core Tools 27 28 | Need | Tool | Example | 29 |------|------|---------| 30 | Search by meaning | `semantic_search` | `{ path, query: "error handling", topk: 10 }` | 31 | Search by name | `search_symbols` | `{ path, query: "handleAuth", mode: "substring" }` | 32 | Who calls X | `ast_graph_callers` | `{ path, name: "processOrder" }` | 33 | What X calls | `ast_graph_callees` | `{ path, name: "processOrder" }` | 34 | Call chain | `ast_graph_chain` | `{ path, name: "main", direction: "downstream" }` | 35 | Project overview | `repo_map` | `{ path, max_files: 20 }` | 36 37 ## Rules 38 39 1. **Always pass `path`** - Every tool requires explicit repository path 40 2. **Check index first** - Run `check_index` before search tools 41 3. **Read before modify** - Use `read_file` to understand code before changes 42 43 ## References 44 45 - [Tool Documentation](references/tools.md) 46 - [Behavioral Constraints](references/constraints.md) 47 48 --- 49 > Converted and distributed by [TomeVault](https://tomevault.io/claim/mars167) — claim your Tome and manage your conversions. 50 <!-- tomevault:4.0:skill_md:2026-04-13 -->
tomevault-io/skills-registry/tree/main/mars167--git-ai-cli--git-ai-code-search commit 49e236202d
Frequently asked questions How do I install the Mars167 Git AI CLI Git AI Code Search skill? Run npx skillmds@latest add tomevault-io/mars167-git-ai-cli-git-ai-code-search in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Mars167 Git AI CLI Git AI Code Search skill do? git-ai Code Search It is listed under Coding & Dev Tools on SkillMD.
Is Mars167 Git AI CLI Git AI Code Search safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Mars167 Git AI CLI Git AI Code Search? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Mars167 Git AI CLI Git AI Code Search free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Mars167 Git AI CLI Git AI Code Search? tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.