/smgrep:smgrepfrom smgrep
Searches codebases by concept or behavior using natural language queries. Returns file paths, line numbers, and truncated code snippets. Use for architectural questions or targeted implementation lookups.
Ships in smgrep. 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.
None: SKILL.md is the whole skill.
Use this to find code by concept or behavior (e.g., "where is auth validated", "how are plugins loaded"). Note: This tool prioritizes finding the right files and locations in the code. Snippets are truncated (max 16 lines) and are often just previews.
Example:
smgrep "how are plugins loaded"
smgrep "how are plugins loaded" packages/transformers.js/src
smgrep "authentication authorization checks"smgrep "session validation logic"smgrep "API authentication middleware"smgrep "logic for merging user and default configuration"... or cuts off mid-logic, read the file.Returns: path/to/file:line [Tags] Code Snippet
[Definition]: Semantic search detected a class/function here. High relevance....: Truncation Marker. Snippet is incomplete—use read_file for full context.smgrep "how does the server start" works better than guessing smgrep "server.init".smgrep "auth" src/server/What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub can1357/smgrep --plugin smgrep