用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/opendatahub-io/ai-helpers --skill torchtalk-trace命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when you need to evaluate CodeRabbit PR comments and fix or reply
Use this skill to write unit tests that strictly conform to the project's existing testing structure, patterns, and style by learning from similar tests before writing anything new.
Review an Architectural Decision Record (ADR) using a team of six specialist reviewer subagents and produce a consolidated report as both PDF and PPTX slide deck. Use this skill whenever the user asks to review, critique, audit, or get feedback on an ADR, architecture decision, design doc, or RFC — whether the input is a Markdown file, a .docx document, or pasted text. Trigger even if the user does not explicitly say "ADR"; phrases like "review this architecture decision", "critique this design doc", or "run the reviewer panel on this" should also invoke this skill.
正在显示 SKILL.md
| name | torchtalk-trace |
| description | Trace a PyTorch function's cross-language binding chain (Python -> C++ -> CUDA) |
| argument-hint | <function-name> [focus] |
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 TorchTalk