Metal Kernel Writing Guide This skill guides you through implementing Metal kernels for PyTorch operators on Apple Silicon. Important: The goal of this skill is to use native Metal capabilities via the infrastructure, NOT MPSGraph. Native Metal kernels provide better control, performance, and maintainability. Overview There are two workflows covered by this skill: 1. Adding new MPS support - Implementing a new operator from scratch 2. Migrating from MPSGraph - Converting existing MPSGraph-based operators to native Metal Both workflows involve: 1. Update dispatch in 2. Write Metal kernel in 3.…