From max-context
Use this skill when the user asks "who calls this function", "what does this function call", "show me the call chain", "trace the call graph", "find callers of", "find callees of", or wants to understand the blast radius of changing a function. Also use when investigating how a function is used across the codebase.
How this skill is triggered — by the user, by Claude, or both
Slash command
/max-context:show-call-chainThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Trace the call graph for a function to understand its callers (upstream) and callees (downstream). Uses the `get_call_chain` MCP tool which runs recursive CTEs against the indexed call graph.
Trace the call graph for a function to understand its callers (upstream) and callees (downstream). Uses the get_call_chain MCP tool which runs recursive CTEs against the indexed call graph.
Call the get_call_chain MCP tool with the function name:
get_call_chain(function_name="handleRequest", direction="callers", depth=2)
get_call_chain(function_name="handleRequest", direction="callees", depth=2)
get_call_chain(function_name="handleRequest")
| Parameter | Type | Default | Description |
|---|---|---|---|
function_name | string | (required) | Name of the function to trace |
direction | string | "both" | "callers", "callees", or "both" |
depth | integer | 2 | Recursion depth (1-5). Higher = wider graph |
Results are grouped by depth level:
(external): Calls to library functions not in the indexEach node includes name, file_path, and line — enough to navigate directly to the code.
Blast radius analysis: Before changing a function, trace its callers to depth 3 to see all affected code paths.
Dead code detection: If get_call_chain with direction="callers" returns empty, the function may be unused.
Dependency understanding: Trace callees to see what a function depends on before refactoring.
The codebase must be indexed first. If get_call_chain fails, run /index-codebase.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub abdussamadbello/max-context --plugin max-context