vs-searchlisted
Install: claude install-skill JSungMin/vs-token-safer
# vs-token-safer search routing
Code search runs through an OFFICIAL language server's index (clangd for C++, a Roslyn-based LSP for
C#) and the result is token-capped to a compact `file:line` list — no source bodies. No IDE needs to
be open; the engine is spawned headlessly. Karpathy-style rules: do the listed thing, do not improvise.
## Tools (MCP server name: `vs-search`)
- Symbol / class / function / type / variable → `search_symbol` (args: `q`, `projectPath`, `backend`, `maxResults`). Never `grep`/`rg` for this.
- References / usages of a symbol → `find_references` (args: `path`, `line`, `character` — 0-based — `includeDeclaration`). Semantic, not a text match.
- Definition of a symbol → `goto_definition` (args: `path`, `line`, `character` — 0-based).
- Type / signature at a position → `hover` (args: `path`, `line`, `character`).
- Outline a file (its classes/functions) → `document_symbols` (args: `path`).
- Rename a symbol project-wide → `rename` (args: `path`, `line`, `character`, `newName`, `apply`). Semantic (every reference), not a `sed`. Preview by default; `apply=true` writes the edits.
- **Add / replace / delete a WHOLE declaration → edit it by NAME**, don't Read-the-file-then-Edit:
- Replace a function/method/class body (signature included) → `replace_symbol_body` (args: `symbol`, `body`, optional `path`/`line`, `apply`).
- Add a sibling declaration after/before one → `insert_after_symbol` / `insert_before_symbol` (args: `symbol`, `text`, `apply`).