/codebase-intelligence:structured-code-search-mcpfrom codebase-intelligence
Searches, navigates, and extracts code using structural queries (AST patterns, symbol lookups, cross-file references) via an MCP-backed code search server.
Ships in codebase-intelligence. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use when an agent needs to search, navigate, or extract code using structural queries — AST patterns, symbol lookups, or cross-file reference tracing — beyond what simple grep or glob can provide, via an MCP-backed code search server.
npx -y ...@latest execution.Choose the right tool for the query:
| Need | Tool |
|---|---|
| Text/boolean search across files | search_code |
| Structural pattern (function shape, class with field) | query_code |
| Extract a specific file, range, or symbol | extract_code |
| List all symbols in target files | symbols_code |
Bound scope before searching — set base path and default paths to the workspace. Set a result limit before running broad queries (e.g., max 20 results).
Iterate from broad to narrow:
search_code or symbols_code to identify candidate files.query_code to narrow to the specific structural pattern.extract_code to retrieve the exact code range needed.Filter methods at the server — use allowlists for read/search methods. Block write and edit methods by default; only enable if code modification is explicitly part of the task.
Handle transport — support stdio or HTTP intentionally; set connect and tool call timeouts.
Debug minimally — enable debug logs only long enough to capture connection, tool discovery, and failed calls. Disable after diagnosis.
search_code — text/boolean search with session dedup and result limits.query_code — AST/structural search for code shapes.extract_code — file/line/symbol extraction after search narrows scope.symbols_code — symbol inventory for target files.Exact tool names and schemas vary by implementation. Read the server's tool list before assuming names.
references/code-search-tool-selection.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-search, ast-query, symbol-inventory, code-extraction, mcp
npx claudepluginhub yeaight7/agent-powerups --plugin codebase-intelligence5 skills in this plugin
/context-retrieval-loopUse when starting work in an unfamiliar area of a codebase, spawning a subagent that needs targeted file context, a first search pass missed the relevant file, or the file scope of a task is unclear./local-rag-mcpUse when querying, ingesting, or maintaining a local RAG MCP corpus for semantic document retrieval with privacy controls./managed-codebase-contextUse when connecting to a managed codebase-context MCP/session service, checking stale maps, or safely using MCP-provided repository context.2 plugins in one repository ship this exact skill · first indexed Jul 28, 2026
Other plugins' skills for the same job