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.
Install
npx skills add pytorch/pytorch --skill at-dispatch-v2npx skills add pytorch/pytorch --skill at-dispatch-v2 -a claude-code -gnpx skills add pytorch/pytorch --skill at-dispatch-v2 -a codex -ggemini skills install https://github.com/pytorch/pytorch.git --path .claude/skills/at-dispatch-v2gh skill install pytorch/pytorch at-dispatch-v2git clone --depth 1 https://github.com/pytorch/pytorch /tmp/pytorch__pytorch
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/pytorch__pytorch/.claude/skills/at-dispatch-v2 ~/.claude/skills/at-dispatch-v2 # Claude Code
cp -R /tmp/pytorch__pytorch/.claude/skills/at-dispatch-v2 ~/.agents/skills/at-dispatch-v2 # Codex, Cursor, Gemini CLI, Copilot, OpenCode