---
title: "Metal Kernel Writing Guide - Air Market"
description: "You have a PyTorch operator that does not run on Apple Silicon machines, and you need it to. This skill takes you through making that happen: writing the Metal shader code the machine needs, handling…"
canonical: "https://airmarket.ai/app/metal-kernel"
---

[Air Market](/) / [Developer Tools](/category/devtools) / Metal Kernel Writing Guide

Skill by [pytorch](/@pytorch)

# Metal Kernel Writing Guide

Get your PyTorch operators running on Apple Silicon GPUs

## What this does

You have a PyTorch operator that does not run on Apple Silicon machines, and you need it to. This skill takes you through making that happen: writing the Metal shader code the machine needs, handling the surrounding glue so the operator can be called, and carrying over a CUDA version if you already have one. Reach for it any time an operator needs Apple Silicon support.

### Top 3 things it does for you

- Add MPS support to a PyTorch operator
- Write a Metal shader for an operator
- Port a CUDA kernel to Apple Silicon

## Information

**Metal Kernel Writing Guide at a glance**

|  |  |
| --- | --- |
| Kind | Skill |
| Publisher | [pytorch](/@pytorch) |
| Category | [Developer Tools](/category/devtools) |
| Works with | Agent Skills - an open standard supported by 40+ agents |
| Size | 18 KB |
| Licence | _Not recorded_ |
| Repository | [pytorch/pytorch](https://github.com/pytorch/pytorch/tree/6c805de38e97c92823603d2020e03e91896868e8/.claude/skills/metal-kernel) |
| GitHub stars | 105,281 (as of Nov 2026) |
| Installs | 3,189, counted by skills.sh (Nov 2026) |

## Security report

**Verified.** AIR scanned this exact version of Metal Kernel Writing Guide and flagged nothing. AIR's verdict: **safe**.

**What Metal Kernel Writing Guide's check was run against**

|  |  |
| --- | --- |
| Commit | 6c805de38e97c92823603d2020e03e91896868e8 |
| Content hash | 9cffe4788a1522b9d75af434bdcb78e20fe13f8f3d8a928d5671c3f677206324 |
| Files read | [Browse the files at this exact commit](https://github.com/pytorch/pytorch/blob/6c805de38e97c92823603d2020e03e91896868e8/.claude/skills/metal-kernel/SKILL.md) |

A scan is named by the exact content it read, not by a version number. A different version is a different artifact, and nothing here applies to a version AIR has not scanned.

[Read the full security report for Metal Kernel Writing Guide](/security/metal-kernel)

## About Metal Kernel Writing Guide

This skill is for adding MPS device support to PyTorch operators. It covers the pieces of that work: dispatch registration in native_functions.yaml, host-side operator implementation, and the Metal kernel itself.

Reach for it when an operator needs Metal shader code written, or when you want to port an existing CUDA kernel to Apple Silicon.

## What's inside

- SKILL.md - instructions

## Questions

### Is Metal Kernel Writing Guide safe to install?

AIR scanned this exact version of Metal Kernel Writing Guide and flagged nothing. AIR's verdict: safe. The verdict is named by the content that was read, at commit 6c805de38e97, so it cannot drift onto a version nobody scanned. The full report is at https://airmarket.ai/security/metal-kernel.

### How do I install Metal Kernel Writing Guide?

Open https://airmarket.ai/app/metal-kernel on Air Market and use the install action: Air Market hands Claude a prompt naming this exact skill, and Claude sets it up. Source, pinned to the exact commit this listing describes: https://github.com/pytorch/pytorch/tree/6c805de38e97c92823603d2020e03e91896868e8/.claude/skills/metal-kernel. Install from that link, not the branch.

## Related on Air Market

- [More Developer Tools listings](/category/devtools)
- [Everything by pytorch](/@pytorch)

---

Canonical URL: <https://airmarket.ai/app/metal-kernel>
