initialize-android
Manual override: initialize ast-index for Android/Kotlin/Java project
Manual override: initialize ast-index for C#/.NET project
> /plugin marketplace add defendend/Claude-ast-index-search > /plugin install ast-index@ast-index-marketplace
How it fires
How this command gets triggered: by you, by Claude, or both.
/initialize-csharpContext preview
What this command does when you run it.
Manual override: initialize ast-index for C#/.NET project
name: initialize-csharp description: "Manual override: initialize ast-index for C#/.NET project"
This command sets up ast-index integration for C#/.NET projects (ASP.NET, Unity, WPF, etc.).
Verify ast-index is installed:
ast-index version
If not installed, inform user to run:
brew tap defendend/ast-index brew install ast-index
First, ensure the directory exists:
mkdir -p .claude
Then create or merge into `.claude/settings.json`. If file doesn't exist, create it with this content:
{
"extraKnownMarketplaces": {
"ast-index": {
"source": {
"source": "github",
"repo": "defendend/Claude-ast-index-search"
}
}
},
"enabledPlugins": {
"ast-index@ast-index": true
},
"permissions": {
"allow": [
"Bash(ya tool ast-index *)",
"Bash(ast-index *)"
]
}
}**Important**: If `.claude/settings.json` already exists, MERGE the keys (don't replace the whole file).
Create the rules directory and ast-index rules file:
mkdir -p .claude/rules
Create file `.claude/rules/ast-index.md` with this content:
# ast-index Rules ## Mandatory Search Rules 1. **ALWAYS use ast-index FIRST** for any code search task 2. **NEVER duplicate results** — if ast-index found usages/implementations, that IS the complete answer 3. **DO NOT run grep "for completeness"** after ast-index returns results 4. **Use grep/Search ONLY when:** - ast-index returns empty results - Searching for regex patterns (ast-index uses literal match) - Searching for string literals inside code (`"some text"`) - Searching in comments content ## Why ast-index ast-index is 17-69x faster than grep (1-10ms vs 200ms-3s) and returns structured, accurate results. ## Command Reference | Task | Command | Time | |------|---------|------| | Universal search | `ast-index search "query"` | ~10ms | | Find class/interface | `ast-index class "ClassName"` | ~1ms | | Find symbol | `ast-index symbol "SymbolName"` | ~1ms | | Find usages | `ast-index usages "SymbolName"` | ~8ms | | Find implementations | `ast-index implementations "IInterface"` | ~5ms | | Call hierarchy | `ast-index call-tree "Method" --depth 3` | ~1s | | Find callers | `ast-index callers "MethodName"` | ~1s | | File outline | `ast-index outline "Service.cs"` | ~1ms | ## C#-Specific Commands | Task | Command | |------|---------| | Find controllers | `ast-index class "Controller"` | | Find services | `ast-index class "Service"` | | Find repositories | `ast-index class "Repository"` | | Find API endpoints | `ast-index search "[HttpGet]"` | | Find attributes | `ast-index search "[Authorize]"` | | Find records | `ast-index search "record"` | ## Index Management - `ast-index rebuild` — Full reindex (run once after clone) - `ast-index update` — After git pull/merge - `ast-index stats` — Show index statistics
Run initial indexing:
ast-index rebuild
Show progress and report statistics when done.
Run a quick search to verify everything works:
ast-index stats ast-index search "class"
After completion, inform user:
Detect the .NET project type:
# ASP.NET Core Web API ast-index search "[ApiController]" ast-index search "ControllerBase" # ASP.NET MVC ast-index search "Controller" ast-index search "ActionResult" # Unity ast-index search "MonoBehaviour" ast-index search "ScriptableObject" # WPF/MAUI ast-index search "Window" ast-index search "UserControl" # Console/Library ast-index search "Main"
Structural, AST-aware code navigation CLI for large, multi-language repositories.
Manual override: initialize ast-index for Android/Kotlin/Java project
Manual override: initialize ast-index for iOS/Swift/ObjC project
Manual override: initialize ast-index for TypeScript/JavaScript web project
Auto-detect project stack(s) and initialize ast-index for single-stack, KMP, and polyglot…