torchtalk-analyzer
/torchtalk-analyzer
Analyze PyTorch internals across Python, C++, and CUDA layers. Use when asked about how PyTorch operators work internally, where functions are implemented (CPU/CUDA backends), what would break if code is modified (impact analysis), how torch.nn modules connect to native code, or finding tests for PyTorch operators. Covers ATen ops, nn.Module classes, dispatch mechanisms, and test infrastructure.
- Author
- torchedhat ↗
- Repository
- torchtalk ↗
- Licence
- MIT
- Last repository change
- 09.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 09.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Analyze PyTorch internals across Python, C++, and CUDA layers. Use when asked about how PyTorch operators work internally, where functions are implemented (CPU/CUDA backends), what would break if code is modified (impact analysis), how torch.nn modules connect to native code, or finding tests for PyTorch operators. Covers ATen ops, nn.Module classes, dispatch mechanisms, and test infrastructure.
Original author description
Analyze PyTorch internals across Python, C++, and CUDA layers. Use when asked about how PyTorch operators work internally, where functions are implemented (CPU/CUDA backends), what would break if code is modified (impact analysis), how torch.nn modules connect to native code, or finding tests for PyTorch operators. Covers ATen ops, nn.Module classes, dispatch mechanisms, and test infrastructure.
How it works
- When to Use
- Quick Start
- Tools
- Common Workflows
- Requirements
SKILL.md preview
---
name: torchtalk-analyzer
description: Analyze PyTorch internals across Python, C++, and CUDA layers. Use when asked about how PyTorch operators work internally, where functions are implemented (CPU/CUDA backends), what would break if code is modified (impact analysis), how torch.nn modules connect to native code, or finding tests for PyTorch operators. Covers ATen ops, nn.Module classes, dispatch mechanisms, and test infrastructure.
allowed-tools: mcp__torchtalk__get_status, mcp__torchtalk__trace, mcp__torchtalk__search, mcp__torchtalk__graph, mcp__torchtalk__modules, mcp__torchtalk__tests, mcp__torchtalk__affected, Read, Grep, Glob
---
# TorchTalk PyTorch Analyzer
## When to Use
- "How does torch.X work internally?"
- "Where is X implemented?" (Python/C++/CUDA)
- "What would break if I change X?"
- "How does nn.Linear connect to native code?"
- "Find tests for the softmax operator"
## Quick Start
```
get_status() # Check what's loaded and available
```
## Tools
| Tool | Use For |
|------|---------|
| `trace(name, focus?)` | Trace any PyTorch op: Python → YAML → C++ → file:line |
| `search(query, mode?, backend?)` | mode="bindings": find dispatch registrations. mode="kernels": find CUDA kernel launches |
| `graph(name, mode?, depth?, fuzzy_all_levels?, walk_python?, focus?)` | mode="callers": inbound. mode="calls": outbound. mode="impact": transitive callers (depth/walk_python/focus apply to impact only) |
| `modules(name, mode?, focus?)` | mode="trace": class details (focus="full" adds bases/docstring). mode="list": browse by category ("nn", "optim", "all") |
| `tests(query?, mode?, limit?, focus?)` | mode="find": search tests (focus narrows to functions/classes/files). mode="utils": list utilities (query/focus ignored). mode="file_info": test file details |
| `affected(funcs, depth?)` | Map changed C++ functions (comma-separated) to impacted Python test files |
## Common Workflows
### "How does torch.matmul work?"
```
trace("matmul") # Get binding chain
graph("matmul", mode="calls") # See internal dependencies
```
### "What breaks if I modify GEMM?"
```
graph("gemm", mode="impact", depth=4)
```
### "Where is conv2d for CUDA?"
```
search("conv2d", backend="CUDA")
trace("conv2d", focus="dispatch")
```
### "How does nn.Linear work?"
```
modules("Linear") # Python class details
trace("linear") # Underlying ATen op
```
### "Find tests for softmax"
```
tests("softmax")
```
## Requirements
- **Always available:** trace, search, modules, tests
- **Requires PyTorch build:** graph (needs `compile_commands.json`)
Run `get_status()` to check availability.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · torchedhat/torchtalk | 100 | MIT |
| opendatahub-io/ai-helpers | 100 | Apache-2.0 |
Database snapshot: 13.11.2026 · package version 89054bb9aa60 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100at-dispatch-v2
Convert PyTorch AT_DISPATCH macros to AT_DISPATCH_V2 format in ATen C++ code. Use when porting AT_DISPATCH_ALL_TYPES_AND*, AT_DISPATCH_FLOATING_TYPES*, or other dispatch macros to the new v2 API. For ATen kernel files, CUDA kernels, and native operator implementations. - 100abi-stable
Migrate C++/CUDA PyTorch extension code to use the PyTorch stable ABI. Use when the user wants to make their project ABI stable, migrate to stable ABI, or use torch::stable APIs. - 95metal-kernel
Write Metal/MPS kernels for PyTorch operators. Use when adding MPS device support to operators, implementing Metal shaders, or porting CUDA kernels to Apple Silicon. Covers native_functions.yaml dispatch, host-side operators, and Metal kernel implementation. - 100pytorch-profile-analysis
Analyze single-file PyTorch/Kineto Chrome trace `.json(.gz)` files using the VeloQ CLI. Use for CPU/CUDA/kernel correlation, ProfilerStep/annotation slicing, memory/shape grouping, and single-trace NCCL evidence. - 100cuda
AI-powered CUDA development with 4 specialist agents (General, Optimizer, Debugger, Analyzer) plus an MCP toolset. Use when writing CUDA kernels (.cu/.cuh), optimising GPU code (coalescing, shared memory, occupancy), debugging nvcc compilation or race conditions, or profiling… - 100tcgd-investigate
Investigate real PyTorch CUDA Graph tensor mismatches, replay drift, NaNs, gradients, allocator growth, pool behavior, or eager-versus-graph differences with torch-cudagraph-debug. Use when debugging CUDA Graph accuracy or GPU memory issues in an application workload, conducting…