/odh-pytorch:torchtalk-trace <function-name> [focus]from odh-pytorch
Traces a PyTorch function's complete binding chain from Python through C++ to CUDA implementations, with file:line references and architectural analysis of dispatch keys and autograd integration.
Ships in odh-pytorch. 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.
odh-ai-helpers:torchtalk-trace
/torchtalk:trace <function-name>
/torchtalk:trace <function-name> full
/torchtalk:trace <function-name> dispatch
/torchtalk:trace <function-name> yaml
The torchtalk:trace command traces a PyTorch function's complete binding chain from Python through C++ to CUDA implementations. It uses the TorchTalk MCP server to look up operator definitions in native_functions.yaml, find pybind11 and TORCH_LIBRARY bindings, and map dispatch keys to backend implementations.
After gathering the raw binding data, the command analyzes the results to explain:
This command requires the TorchTalk MCP server to be running. Run mcp__torchtalk__get_status to verify availability.
/torchtalk:setup if not yet installedmcp__torchtalk__get_status to confirm the TorchTalk server is running and has indexed data availablemcp__torchtalk__trace with the function name and optional focus parameter to retrieve the full binding chainmcp__torchtalk__calls with the function name to understand what the function invokes internallynative_functions.yaml definition and its dispatch configurationderivatives.yaml) if applicablefile:line references so the developer can navigate directly to the sourceTrace a common operator:
/torchtalk:trace matmul
Output: Full binding chain from torch.matmul through at::native::matmul to LinearAlgebra.cpp, including CPU and CUDA dispatch paths.
Focus on dispatch mapping only:
/torchtalk:trace conv2d dispatch
Output: Which backends handle conv2d and where each kernel is registered.
Focus on YAML definition:
/torchtalk:trace softmax yaml
Output: The native_functions.yaml entry for softmax, including its function schema, dispatch keys, and derivative formula.
Full deep trace:
/torchtalk:trace add full
Output: Complete trace from Python API through every layer including structured kernel registrations, autograd formula, and all backend implementations.
<function-name>: The PyTorch function name to trace (e.g., matmul, conv2d, softmax, add). Can be a short name or fully qualified (e.g., at::native::matmul).[focus]: Optional focus parameter. One of:
full (default): Complete binding chain across all layersdispatch: Only dispatch key to backend mappingyaml: Only the native_functions.yaml definition/torchtalk:setup - Install and configure TorchTalkWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub opendatahub-io/ai-helpers --plugin odh-pytorch3 skills in this plugin
/torchtalk-analyzerAnalyze PyTorch internals across Python, C++, and CUDA layers using the TorchTalk MCP server. Use when asked about how PyTorch operators work internally, where functions are implemented, what would break if code is modified, or finding tests for PyTorch operators./torchtalk-setupInstall and configure TorchTalk MCP server for PyTorch cross-language analysis3 plugins in one repository ship this exact skill · first indexed Jul 10, 2026
Other plugins' skills for the same job