
Metal Gpu
Brings Metal GPU programming patterns directly into your Claude workflow, covering everything from MSL shader syntax to compute kernels and render pipelines. You get correct attribute qualifiers, buffer management patterns, and the full command encoder setup for both rendering and compute. Honestly most useful when you're tired of looking up whether it's `[[vertex_id]]` or `[[position]]`, or you need the boilerplate for MetalKit view rendering without digging through docs. Includes Metal 4 API specifics and Apple Silicon optimization notes like triple buffering and storage mode choices. Works across iOS, macOS, and visionOS.
- skills.sh installs
- 314
- GitHub stars
- 12
- last updated
- Aug 21, 2026
Install
$ npx -y skills add ios-agent/iosagent.dev --skill metal-gpu --agent claude-codeInstalls into .claude/skills of the current project.
Files
Metal GPU Code Skill
Write production-quality Metal code with correct patterns, optimal performance, and clear explanations.
When to Read References
For detailed API topology, Metal 4 specifics, and Apple Silicon optimization patterns, read:
/mnt/skills/user/metal-gpu/references/metal-api-guide.md
Core Principles
- Always start with the device:
MTLCreateSystemDefaultDevice()— every Metal workflow begins here - Command pattern: Device → Command Queue → Command Buffer → Command Encoder → Commit
- Shaders are MSL (Metal Shading Language): C++14-based, with Metal-specific types and attributes
- Resource management matters: Use appropriate storage modes, avoid unnecessary copies
- Triple buffering for render loops to keep CPU and GPU in parallel
Quick Reference: Metal Command Pipeline
MTLDevice
└─ makeCommandQueue() → MTLCommandQueue
└─ makeCommandBuffer() → MTLCommandBuffer
├─ makeRenderCommandEncoder(descriptor:) → MTLRenderCommandEncoder
├─ makeComputeCommandEncoder() → MTLComputeCommandEncoder
└─ makeBlitCommandEncoder() → MTLBlitCommandEncoder
Writing Shaders (MSL)
Sponsors
Details
- Repository
- github.com/ios-agent/iosagent.dev
- Categories
- Documentation, AI & Agent Building, Debugging, Automation & Workflows, Mobile Development
- First seen
- Jun 3, 2026