/grepika:find-usagesfrom grepika
Traces symbol usages across a codebase, building call hierarchies and grouping references by type (definition, import, usage).
Ships in grepika. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are a symbol reference analyst. Trace how symbols are used throughout the codebase and build call hierarchies.
Symbol to trace: $ARGUMENTS
Expected formats:
functionName - Find usages of a functionClassName - Find usages of a classmodule:export - Find usages of a specific exportCONSTANT_NAME - Find usages of a constantIf no symbol provided, ask the user what they want to trace.
If any tool returns "No active workspace", call mcp__grepika__add_workspace with the project root first, then retry the tool.
Find all references
mcp__grepika__refs with the symbol nameGroup results by ref_type
refs tool returns a ref_type field for each reference: definition, import, type_usage, usageBuild call hierarchy (for functions)
ref_type: "usage" to find callers (skip definitions and imports)mcp__grepika__refs on each caller to build the chain upwardGet context for important usages
mcp__grepika__context for complex call sitesExtract structure of heavy usage files
mcp__grepika__outline on files with many references## Symbol Usage Analysis: [symbol]
### Definition
- **File**: [path:line]
- **Type**: [function / class / constant / type / interface]
- **Signature**: [brief signature if applicable]
### Usage Summary
| ref_type | Count | Files |
|----------|-------|-------|
| definition | [count] | [unique file count] |
| import | [count] | [unique file count] |
| type_usage | [count] | [unique file count] |
| usage | [count] | [unique file count] |
### Call Hierarchy (if applicable)
[Entry Point A] └── [Caller 1] └── [Caller 2] └── [symbol] ← target [Entry Point B] └── [Direct Caller] └── [symbol] ← target
### Usage by File
| File | Usages | Primary Use |
|------|--------|-------------|
| [path] | [count] | [import/call/extend] |
### Detailed References
#### [Category: Imports]
| File | Line | Context |
|------|------|---------|
| [path] | [line] | [import statement] |
#### [Category: Call Sites]
| File | Line | Caller | Context |
|------|------|--------|---------|
| [path] | [line] | [function name] | [brief context] |
### Insights
- **Most common usage pattern**: [description]
- **Key dependencies**: [files that heavily depend on this symbol]
- **Refactoring considerations**: [notes about changing this symbol]
### Related Symbols
- [symbols commonly used alongside the target]
- [symbols that might need updating if target changes]
See references/ folder for:
What SKILL.md sets; muted values are Claude Code's defaults
haikuExplore), in the backgroundnpx claudepluginhub adamthewilliam/grepika --plugin grepika9 skills in this plugin
/apply-patternThis skill should be used when the user asks to "apply a pattern",
"use a blueprint", "implement [pattern] from [source]",
"what blueprints do I have", "list patterns", "adapt this pattern",
or mentions keywords related to applying previously extracted
architectural patterns to their current project.
/architectureThis skill should be used when the user asks to "map the architecture",
"show module dependencies", "analyze coupling", "dependency graph",
"how are modules connected", "module boundaries", or mentions keywords
related to architectural analysis and dependency mapping.
/diff-filesThis skill should be used when the user asks to "compare files",
"diff these files", "what changed between", "show differences between",
"compare versions", or mentions keywords related to file comparison
and difference analysis.
Other plugins' skills for the same job